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";
document.getElementById("focpic").style.visibility = "hidden";
document.getElementById("focpic").filters[0].Apply();
if (document.getElementById("focpic").style.visibility == "visible") {
document.getElementById("focpic").style.visibility = "hidden";
document.getElementById("focpic").filters.revealTrans.transition=23;
}
else
{
document.getElementById("focpic").style.visibility = "visible";
document.getElementById("focpic").filters[0].transition=23;
}
document.getElementById("focpic").filters[0].Play();
stopit();
}
function setfoc1(id){
document.getElementById("bocpic").src = picarry1[id];
document.getElementById("boclnk").href = lnkarry1[id];
document.getElementById("bttltxt").innerHTML = ""+ttlarry1[id]+"";
currslid = id;
document.getElementById("bocpic").filters.revealTrans.transition=23;
document.getElementById("bocpic").filters[0].Apply();
document.getElementById("bocpic").filters[0].Play();
}
function playnext()
{
if(currslid==3)
{
currslid = 0;
}
else
{
currslid++;
};
try{
setfoc(currslid);
}catch(e){}
playit();
}
function playit(){
slidint = setTimeout(playnext,4500);
}
function stopit(){
clearTimeout(slidint);
}
window.onload = function(){
playit();
}