
var RotateSpeed = 20000; // Set the slideshow speed (in milliseconds)
var CrossFadeDuration = .5;

var Picture = new Array(); // don't change this

Picture[0]  = 'http://www.mathtlc.org/Images/Gallery/Slideshows/SidebarDefault/laramiemountain.jpg';
Picture[1]  = 'http://www.mathtlc.org/Images/Gallery/Slideshows/SidebarDefault/poudreriver.jpg';
Picture[2]  = 'http://www.mathtlc.org/Images/Gallery/Slideshows/SidebarDefault/rosshall.jpg';
Picture[3]  = 'http://www.mathtlc.org/Images/Gallery/Slideshows/SidebarDefault/uwy_rosshall.jpg';
Picture[4]  = 'http://www.mathtlc.org/Images/Gallery/Slideshows/SidebarDefault/tallprairiegrass.jpg';
Picture[5]  = 'http://www.mathtlc.org/Images/Gallery/Slideshows/SidebarDefault/laramiepeak.jpg';

			// =====================================
			// Do not edit anything below this line!
			// =====================================

			var tss; var iss; var jss = Math.round(Math.random()*(Picture.length-1));//start at random picture
			var pss = Picture.length; var preLoad = new Array();
			//create preLoad array
			for (iss = 0; iss < pss; iss++){
									preLoad[iss] = new Image();
									preLoad[iss].src = Picture[iss];}

			function runSidebarRotator(){
									if (document.all){
										document.images.PictureBox.style.filter="blendTrans(duration=2)";
										document.images.PictureBox.style.filter="blendTrans(duration=CrossFadeDuration)";
										document.images.PictureBox.filters.blendTrans.Apply();
									}
    								document.images.PictureBox.src = preLoad[jss].src;
  									if (document.all) document.images.PictureBox.filters.blendTrans.Play();
    								jss = jss + 1; 
									if (jss == pss){ jss = 0;}
    		tss = setTimeout('runSidebarRotator()', RotateSpeed);
			}