var t;
var count = 0;
var tmp =0;
var count2 =0;
window.onLoad = autoImg();
function autoImg(){
	if(which ==(photos.length-1)){
		which=photos.length-(photos.length+1);
	}
	if(count==0){
		t=setTimeout("	autoImg()",3000);
	}
	count =1;
	which++;
	document.images.photoslider.src=photos[which];
	stopCount();
}				
function stopCount()
{
	if(count2==0){
	document.getElementsByName("PageNumber")[count2].src=pageS[count2];						
	document.images.photoslider.src=photos[count2];
	which= count2;
	}
	else{
	document.getElementById('ins_Name').innerHTML =insName[which];
	document.getElementById('ins_Desig').innerHTML =insDesig[which];
	document.getElementById('ins_Content').innerHTML =insCnt[which];
	document.getElementsByName("PageNumber")[which].src=pageS[which];	
	document.getElementsByName("PageNumber")[tmp].src=page[tmp];
	tmp=which;
	}
	count2=1;
	clearTimeout(t);
	t=setTimeout("autoImg()",3000);
} 				
function pauseCount()
{
	clearTimeout(t);
}  				


