
var t2=new Array();
var gate_open2=new Array();
var prev_idx2;
var next_idx2;
var this_idx2;
var imgarr2 = new Array("image1.jpg","image2.jpg","image3.jpg","image4.jpg","image5.jpg","image6.jpg","image7.jpg");
var urlarr2 = new Array("http://" + window.location.hostname + "/pub/1008.html","http://" + window.location.hostname + "/pub/158.html","http://" + window.location.hostname + "/pub/877.html","http://" + window.location.hostname + "/pub/108.html","http://" + window.location.hostname + "/pub/821.html","http://" + window.location.hostname + "/pub/184.html","http://" + window.location.hostname + "/pub/414.html");
var imgbase2 = "/syr/_si/icons/v/sw3/";
var img2pause2 = "/_16/Navigation Media Pause.png";
var img2play2 = "/_16/Navigation Media Play.png";
var imgpausereg2 = imgbase2 + "reg" + img2pause2;
var imgpausedis2 = imgbase2 + "dis" + img2pause2;
var imgplayreg2 = imgbase2 + "reg" + img2play2;
var imgplaydis2 = imgbase2 + "dis" + img2play2;
function js_rot_start2(id,idx) {
var imgset = document.getElementById('idimg2-' + id);
var urlset = document.getElementById('idurl2-' + id);
if (idx>=imgarr2.length) {
idx=0; 
} else if (idx<0) {
idx=imgarr2.length - 1;
}
imgset.src  = "/syl/prot/std/rot/flash_r/2/" + imgarr2[idx];
urlset.title = urlarr2[idx];
urlset.href = urlarr2[idx];
next_idx2=idx+1;
prev_idx2=idx-1;
this_idx2=idx;
if (gate_open2[id-1]==undefined) {gate_open2[id-1]=1;}
if (gate_open2[id-1]==1) { t2[id-1]=window.setTimeout("js_rot_start2(" + id + "," + next_idx2 + ")",5000);}
}
function js_rot_pause2(id) {
var imgplayset = document.getElementById('imgplay2-' + id);
var imgpauseset = document.getElementById('imgpause2-' + id);
imgplayset.src = imgplaydis2;
imgpauseset.src = imgpausereg2;
gate_open2[id-1]=0;
clearTimeout(t2[id-1]);
}
function js_rot_play2(id) {
var imgpauseset = document.getElementById('imgpause2-' + id);
var imgplayset = document.getElementById('imgplay2-' + id);
imgpauseset.src = imgpausedis2;
imgplayset.src = imgplayreg2;
gate_open2[id-1]=1;
clearTimeout(t2[id-1]);
js_rot_start2(id,this_idx2);
}
function js_rot_prev2(id) {
clearTimeout(t2[id-1]);
js_rot_start2(id,prev_idx2);
}
function js_rot_next2(id) {
clearTimeout(t2[id-1]);
js_rot_start2(id,next_idx2);
}

