// Standard top Image rotaition

  	//This section generate a random number for the last image
  	var StopImage = 1 + Math.floor(Math.random() * 16);
	
	//var rand= "/images/hp-rot/tb_"+StopImage+"a.jpg"
	
//alert(rand);

 /*Start Image Rotation*/
 ss1();
 setTimeout("ss2()",75);
 setTimeout("ss3()",150);
 setTimeout("ss4()",225);
 
 function ss1() {
		var mygallery=new fadeSlideShow({
			wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
			dimensions: [250, 222], //width/height of gallery in pixels. Should reflect dimensions of largest image
			imagearray: [
				["/images/hp-rot/tb_1a.jpg"],
				["/images/hp-rot/tb_2a.jpg"],
				["/images/hp-rot/tb_3a.jpg"],
				["/images/hp-rot/tb_4a.jpg"],
				["/images/hp-rot/tb_5a.jpg"],
				["/images/hp-rot/tb_6a.jpg"],
				["/images/hp-rot/tb_7a.jpg"],
				["/images/hp-rot/tb_8a.jpg"],
				["/images/hp-rot/tb_9a.jpg"],
				["/images/hp-rot/tb_10a.jpg"],
				["/images/hp-rot/tb_11a.jpg"],
				["/images/hp-rot/tb_12a.jpg"],
				["/images/hp-rot/tb_13a.jpg"],
				["/images/hp-rot/tb_14a.jpg"],
				["/images/hp-rot/tb_15a.jpg"],
				["/images/hp-rot/tb_16a.jpg"],
				["/images/hp-rot/tb_"+StopImage+"a.jpg"] //<--Last Random stop image
			],
			displaymode: {type:'auto', pause:8000, cycles:1, wraparound:false},
			persist: false, //remember last viewed slide and recall within same session?
			fadeduration: 1000, //transition duration (milliseconds)
			descreveal: "ondemand",
			togglerid: ""
		})
	}
	
	function ss2() {
		var mygallery=new fadeSlideShow({
			wrapperid: "fadeshow2", //ID of blank DIV on page to house Slideshow
			dimensions: [250, 222], //width/height of gallery in pixels. Should reflect dimensions of largest image
			imagearray: [
				["/images/hp-rot/tb_1b.jpg"],
				["/images/hp-rot/tb_2b.jpg"],
				["/images/hp-rot/tb_3b.jpg"],
				["/images/hp-rot/tb_4b.jpg"],
				["/images/hp-rot/tb_5b.jpg"],
				["/images/hp-rot/tb_6b.jpg"],
				["/images/hp-rot/tb_7b.jpg"],
				["/images/hp-rot/tb_8b.jpg"],
				["/images/hp-rot/tb_9b.jpg"],
				["/images/hp-rot/tb_10b.jpg"],
				["/images/hp-rot/tb_11b.jpg"],
				["/images/hp-rot/tb_12b.jpg"],
				["/images/hp-rot/tb_13b.jpg"],
				["/images/hp-rot/tb_14b.jpg"],
				["/images/hp-rot/tb_15b.jpg"],
				["/images/hp-rot/tb_16b.jpg"],
				["/images/hp-rot/tb_"+StopImage+"b.jpg"] //<--Last Random stop image
			],
			displaymode: {type:'auto', pause:8000, cycles:1, wraparound:false},
			persist: false, //remember last viewed slide and recall within same session?
			fadeduration: 1000, //transition duration (milliseconds)
			descreveal: "ondemand",
			togglerid: ""
		})
	}
	
	function ss3() {
		var mygallery=new fadeSlideShow({
			wrapperid: "fadeshow3", //ID of blank DIV on page to house Slideshow
			dimensions: [250, 222], //width/height of gallery in pixels. Should reflect dimensions of largest image
			imagearray: [
				["/images/hp-rot/tb_1c.jpg"],
				["/images/hp-rot/tb_2c.jpg"],
				["/images/hp-rot/tb_3c.jpg"],
				["/images/hp-rot/tb_4c.jpg"],
				["/images/hp-rot/tb_5c.jpg"],
				["/images/hp-rot/tb_6c.jpg"],
				["/images/hp-rot/tb_7c.jpg"],
				["/images/hp-rot/tb_8c.jpg"],
				["/images/hp-rot/tb_9c.jpg"],
				["/images/hp-rot/tb_10c.jpg"],
				["/images/hp-rot/tb_11c.jpg"],
				["/images/hp-rot/tb_12c.jpg"],
				["/images/hp-rot/tb_13c.jpg"],
				["/images/hp-rot/tb_14c.jpg"],
				["/images/hp-rot/tb_15c.jpg"],
				["/images/hp-rot/tb_16c.jpg"],
				["/images/hp-rot/tb_"+StopImage+"c.jpg"] //<--Last Random stop image
			],
			displaymode: {type:'auto', pause:8000, cycles:1, wraparound:false},
			persist: false, //remember last viewed slide and recall within same session?
			fadeduration: 1000, //transition duration (milliseconds)
			descreveal: "ondemand",
			togglerid: ""
		})
	}
	
	
	function ss4() {
		var mygallery=new fadeSlideShow({
			wrapperid: "fadeshow4", //ID of blank DIV on page to house Slideshow
			dimensions: [250, 222], //width/height of gallery in pixels. Should reflect dimensions of largest image
			imagearray: [
				["/images/hp-rot/tb_1d.jpg"],
				["/images/hp-rot/tb_2d.jpg"],
				["/images/hp-rot/tb_3d.jpg"],
				["/images/hp-rot/tb_4d.jpg"],
				["/images/hp-rot/tb_5d.jpg"],
				["/images/hp-rot/tb_6d.jpg"],
				["/images/hp-rot/tb_7d.jpg"],
				["/images/hp-rot/tb_8d.jpg"],
				["/images/hp-rot/tb_9d.jpg"],
				["/images/hp-rot/tb_10d.jpg"],
				["/images/hp-rot/tb_11d.jpg"],
				["/images/hp-rot/tb_12d.jpg"],
				["/images/hp-rot/tb_13d.jpg"],
				["/images/hp-rot/tb_14d.jpg"],
				["/images/hp-rot/tb_15d.jpg"],
				["/images/hp-rot/tb_16d.jpg"],
				["/images/hp-rot/tb_"+StopImage+"d.jpg"] //<--Last Random stop image
			],
			displaymode: {type:'auto', pause:8000, cycles:1, wraparound:false},
			persist: false, //remember last viewed slide and recall within same session?
			fadeduration: 1000, //transition duration (milliseconds)
			descreveal: "ondemand",
			togglerid: ""
		})
	}
