
var t1=new Array();
var gate_open1=new Array();
var prev_idx1;
var next_idx1;
var this_idx1;
var imgarr1 = new Array("image1.jpg","image2.jpg","image3.jpg","image4.jpg","image5.jpg","image6.jpg","image7.jpg","image8.jpg","image9.jpg","image10.jpg","image11.jpg","image12.jpg","image13.jpg");
var urlarr1 = new Array("http://" + window.location.hostname + "/pub/1066.html","http://" + window.location.hostname + "/pub/1072.html","http://" + window.location.hostname + "/pub/1068.html","http://" + window.location.hostname + "/pub/1074.html","http://" + window.location.hostname + "/pub/1070.html","http://" + window.location.hostname + "/pub/1053.html","http://" + window.location.hostname + "/pub/1037.html","http://" + window.location.hostname + "/pub/1052.html","http://" + window.location.hostname + "/pub/37.html","http://" + window.location.hostname + "/pub/1049.html","http://" + window.location.hostname + "/pub/1047.html","http://" + window.location.hostname + "/pg/268.html","http://" + window.location.hostname + "/pg/275.html");
var imgbase1 = "/syr/_si/icons/v/sw3/";
var img2pause1 = "/_16/Navigation Media Pause.png";
var img2play1 = "/_16/Navigation Media Play.png";
var imgpausereg1 = imgbase1 + "reg" + img2pause1;
var imgpausedis1 = imgbase1 + "dis" + img2pause1;
var imgplayreg1 = imgbase1 + "reg" + img2play1;
var imgplaydis1 = imgbase1 + "dis" + img2play1;
function js_rot_start1(id,idx) {
var imgset = document.getElementById('idimg1-' + id);
var urlset = document.getElementById('idurl1-' + id);
if (idx>=imgarr1.length) {
idx=0; 
} else if (idx<0) {
idx=imgarr1.length - 1;
}
imgset.src  = "/syl/prot/std/rot/flash_r/1/" + imgarr1[idx];
urlset.title = urlarr1[idx];
urlset.href = urlarr1[idx];
next_idx1=idx+1;
prev_idx1=idx-1;
this_idx1=idx;
if (gate_open1[id-1]==undefined) {gate_open1[id-1]=1;}
if (gate_open1[id-1]==1) { t1[id-1]=window.setTimeout("js_rot_start1(" + id + "," + next_idx1 + ")",5000);}
}
function js_rot_pause1(id) {
var imgplayset = document.getElementById('imgplay1-' + id);
var imgpauseset = document.getElementById('imgpause1-' + id);
imgplayset.src = imgplaydis1;
imgpauseset.src = imgpausereg1;
gate_open1[id-1]=0;
clearTimeout(t1[id-1]);
}
function js_rot_play1(id) {
var imgpauseset = document.getElementById('imgpause1-' + id);
var imgplayset = document.getElementById('imgplay1-' + id);
imgpauseset.src = imgpausedis1;
imgplayset.src = imgplayreg1;
gate_open1[id-1]=1;
clearTimeout(t1[id-1]);
js_rot_start1(id,this_idx1);
}
function js_rot_prev1(id) {
clearTimeout(t1[id-1]);
js_rot_start1(id,prev_idx1);
}
function js_rot_next1(id) {
clearTimeout(t1[id-1]);
js_rot_start1(id,next_idx1);
}

