/***********************************************
* Ultimate Fade In Slideshow v2.0- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
***********************************************/

var num_images = 3;
var start_index = Math.floor(Math.random() * num_images);

var home_right_imagearray = new Array();
var home_center_imagearray = new Array();
for (i = 0; i < num_images; i++) {
	index = start_index + 1;
	right_image = "_web-assets/home_right" + index + ".jpg";
	home_right_imagearray[i] = [right_image, "", "", ""];
	
	center_image = "_web-assets/home_center" + index + ".jpg";
	home_center_imagearray[i] = [center_image, "", "", ""];

	if (start_index < (num_images - 1)) {
		start_index = start_index + 1;	
	} else {
		start_index = 0;
	}
}

var home_right_image=new fadeSlideShow({
	wrapperid: "home_right_image", //ID of blank DIV on page to house Slideshow
	dimensions: [196, 388], //width/height of gallery in pixels. Should reflect dimensions of largest image
	imagearray: home_right_imagearray,
	displaymode: {type:'auto', pause:2000, cycles:1, wraparound:false},
	persist: false, //remember last viewed slide and recall within same session?
	fadeduration: 1500, //transition duration (milliseconds)
	descreveal: "none",
	togglerid: ""
})


var home_center_image=new fadeSlideShow({
	wrapperid: "home_center_image", //ID of blank DIV on page to house Slideshow
	dimensions: [610, 388], //width/height of gallery in pixels. Should reflect dimensions of largest image
	imagearray: home_center_imagearray,
	displaymode: {type:'auto', pause:2000, cycles:1, wraparound:false},
	persist: false, //remember last viewed slide and recall within same session?
	fadeduration: 1500, //transition duration (milliseconds)
	descreveal: "none",
	togglerid: ""
})

