
function Run_Show(){

if(!ns4) {
	Width=document.getElementById("SlideShow").style.width;
	Height=document.getElementById("SlideShow").style.height;
	
	if(picnum>Display.length-1){ picnum=0 }
	
	if(!ns){
		SlideShow.style.filter = newTrans[i];
		SlideShow.filters[0].apply();
	}

	document.getElementById("SlideShow").innerHTML = "<img src='"+Display[picnum][0]+"'width='"+Width+"'height='"+Height+"'>"

	if(!ns){ SlideShow.filters[0].play(tranSpeed); }

	/*if(Display[picnum][2]==""){
		document.getElementById("text").innerHTML=""
	}
	else{
		setTimeout("document.getElementById('text').innerHTML=Display[picnum][2]",250) // speed text is revealed
	}*/

	if(i==newTrans.length-1){ i=-1 }
	i++

	if(loop==true){
		setTimeout("picnum++;Run_Show()",advance)
	}
	else{
		if(loop==false&&picnum<Display.length-1){
			setTimeout("picnum++;Run_Show()",advance)
		}
	}
}
else { 
	// For NS4 browsers
	runNS4SlideShowPics();
}
} 

function runNS4SlideShowPics(){
	// Set SlideShowPicsSpeed (milliseconds)
	var SlideShowPicsSpeed = 2000;
	var t;

   	document.images.SlideShowPics.src = preloadpics[picnum].src;

   	picnum = picnum + 1;
   	if(picnum>Display.length-1){ picnum=0 };
   	t = setTimeout('runNS4SlideShowPics()', SlideShowPicsSpeed);
} 


function where(){
if(Display[picnum][1]==""){return}
doc=Display[picnum][1]
window.open(doc) // comment out if using the line below
//window.open(doc,'','left=200,top=200,width=200,height=200') // use for specific size and positioned window
}



