var currslid = 0; var slidint; function setfoc(id){ document.getelementbyid("focpic").src = picarry[id]; document.getelementbyid("foclnk").href = lnkarry[id]; document.getelementbyid("fttltxt").innerhtml = ''+ttlarry[id]+''; currslid = id; for(i=0;i<4;i++){ document.getelementbyid("tmb"+i).classname = "thubpic"; }; document.getelementbyid("tmb"+id).classname ="thubpiccur"; focpic.style.visibility = "hidden"; focpic.filters[0].apply(); if (focpic.style.visibility == "visible") { focpic.style.visibility = "hidden"; focpic.filters.revealtrans.transition=23; } else { focpic.style.visibility = "visible"; focpic.filters[0].transition=23; } focpic.filters[0].play(); stopit(); } function playnext(){ if(currslid==3){ currslid = 0; } else{ currslid++; }; setfoc(currslid); playit(); } function playit(){ slidint = settimeout(playnext,4500); } function stopit(){ cleartimeout(slidint); } window.onload = function(){ playit(); }