
//
var currslid = 0;
var slidint;
function setfoc(id){
	document.getElementById("focpic").src = picarry[id];
	document.getElementById("foclnk").href = lnkarry[id];
	document.getElementById("foctitle").innerHTML = '<a href="'+lnkarry[id]+'" target="_blank">'+ttlarry[id]+'</a>';
	currslid = id;
	for(i=0;i<5;i++){
		document.getElementById("tmb"+i).className = "thumb_off";
	};
	document.getElementById("tmb"+id).className ="thumb_on";
//	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==4){
		currslid = 0;
	}
	else{
		currslid++;
	};
	setfoc(currslid);
	playit();
}
function playit(){
	slidint = setTimeout(playnext,4500);
}
function stopit(){
	clearTimeout(slidint);
	}
window.onload = function(){
	playit();
}


function abc()
{
     
            var html='';
            html+='<table width="732" height="380" border="0" align="center" cellpadding="0" cellspacing="0">';
            html+='<tr>';
            html+='<td width="732"><div class="box" >';
            html+='<div class="boxpadding">';
            html+='<div id="Slide"> <a id="foclnk"><img id="focpic" style="FILTER: RevealTrans(duration=1;ransition=12); VISIBILITY: visible; POSITION: absolute" src="../UpLoadFile/indeximage/01.jpg" width="736" height="380" /></a>';
            html+='<div class="thumb_title" id="foctitle"></div>';
            html+='<div id="Slide_Thumb">';
            html+='<div class="thumb_on" id="tmb0" onmouseover=setfoc(0); onmouseout=playit();><img alt="" src="../UpLoadFile/indeximage/01.jpg" /></div>';
            html+='<div class=thumb_off id=tmb1 onmouseover=setfoc(1); onmouseout=playit();><img alt="" src="../UpLoadFile/indeximage/02.jpg" /></div>';
            html+='<div class=thumb_off id=tmb2 onmouseover=setfoc(2); onmouseout=playit();><img alt="" src="../UpLoadFile/indeximage/03.jpg" /></div>';
            html+='<div class=thumb_off id=tmb3 onmouseover=setfoc(3); onmouseout=playit();><img alt="" src="../UpLoadFile/indeximage/04.jpg" /></div>';
            html+='<div class=thumb_off id=tmb4 onmouseover=setfoc(4); onmouseout=playit();><img alt="" src="../UpLoadFile/indeximage/05.jpg" /></div>';
            html+='</div>';
            html+='</div>';
            html+='</div>';
            html+='</div></td>';
            html+='</tr>';
            html+='</table>';
            
            $('logodiv').innerHTML=html;
    
    
}
