// Image Randomizer w/Incremental Link

var SlideShowSpeed = 3000;
var CrossFadeDuration = 2;
var Picture = new Array(); // don't change this
var Caption = new Array(); // don't change this
var showHot = false;       // don't change this

	Picture[1]  = 'img/innovation/Innovate_Display1.jpg';
	Picture[2]  = 'img/innovation/Innovate_Display2.jpg';
	Picture[3]  = 'img/innovation/Innovate_Display3.jpg';
	Picture[4]  = 'img/innovation/Innovate_Display4.jpg';
	Picture[5]  = 'img/innovation/Innovate_Display5.jpg';
	Picture[6]  = 'img/innovation/Innovate_Display6.jpg';
	Picture[7]  = 'img/innovation/Innovate_Display7.jpg';
	Picture[8]  = 'img/innovation/Innovate_Display8.jpg';
	Picture[9]  = 'img/innovation/Innovate_Display9.jpg';
	Picture[10]  = 'img/innovation/Innovate_Display10.jpg';
	
	
	Caption[1]  = "First Trade Show Exhibit in the Showcase of Innovation.";
	Caption[2]  = "Second Trade Show Exhibit in the Showcase of Innovation.";
	Caption[3]  = "Third Trade Show Exhibit in the Showcase of Innovation.";
	Caption[4]  = "Fourth Trade Show Exhibit in the Showcase of Innovation.";
	Caption[5]  = "Fifth Trade Show Exhibit in the Showcase of Innovation.";
	Caption[6]  = "Sixth Trade Show Exhibit in the Showcase of Innovation.";
	Caption[7]  = "Seventh Trade Show Exhibit in the Showcase of Innovation.";
	Caption[8]  = "Eighth Trade Show Exhibit in the Showcase of Innovation.";
	Caption[9]  = "Nineth Trade Show Exhibit in the Showcase of Innovation.";
      Caption[10]  = "Tenth Trade Show Exhibit in the Showcase of Innovation.";	

var tss;
var iss;
var jss = 0;
var pss = Picture.length-1;
var preLoad = new Array();
	for (iss = 1; iss < pss+1; iss++){
		preLoad[iss] = new Image();
		preLoad[iss].src = Picture[iss];}

	function control(how){
		if (showHot){
		if (how=="H") jss = 1;
		if (how=="F") jss = jss + 1;
		if (how=="B") jss = jss - 1;
		if (jss > (pss)) jss=1;
		if (jss < 1) jss = pss;
		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.getElementById) document.getElementById("CaptionBox").innerHTML= Caption[jss];
		if (document.all) document.images.PictureBox.filters.blendTrans.Play();
	}}