//<SCRIPT>

//Copyright White Technologies 1997-2007
//Load Images

//OnLoad="multiimager()"
//Use a standard naming convention to name gif images
//Modify extension to .jpg if needed
//Adjust Variable "i" to match number of pictures 
//////////////////////////////////////////////////////////////////////
//White Tech Image Loader
var imagesx=new Array();
for (var x=0; x<8; ++x){
	imagesx[x] = new Image()
	imagesx[x].src="slideshow/x"+x+".jpg"
}
var imagesy=new Array();
for (var y=0; y<8; ++y){
	imagesy[y] = new Image()
	imagesy[y].src="slideshow/y"+y+".jpg"
}
//Now can access images by their array values instead of name
//////////////////////////////////////////////////////////////////////

// Set the duration of crossfade (in seconds)
var crossfade = 2;
var crossfade2 = 5

//Set variable to iterate through pictures and initiate
var slide=1

function multiimager(){
if (document.all){
document.images.Screenx.style.filter="blendTrans(duration=5)";
document.images.Screenx.style.filter="blendTrans(duration=crossfade2)";
document.images.Screenx.filters.blendTrans.Apply();}
document.images.Screenx.src = imagesx[slide].src;
if (document.all) document.images.Screenx.filters.blendTrans.Play();

if (document.all){
document.images.Screeny.style.filter="blendTrans(duration=2)";
document.images.Screeny.style.filter="blendTrans(duration=crossfade)";
document.images.Screeny.filters.blendTrans.Apply();}
document.images.Screeny.src = imagesy[slide].src;
if (document.all) document.images.Screeny.filters.blendTrans.Play();
slide= ++slide;
if (slide > 7) slide=0;
//Change timeout to adjust speed of slides
setTimeout("multiimager()", 4000);
}
//END FUNCTION//////////////////////////////////////////////////////
//</SCRIPT>