//Begin
// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 6000;
// Duration of crossfade (seconds)
var crossFadeDuration = 7;
// Specify the image files
var Pic = new Array();
// to add more images, just continue
// the pattern, adding to the array below
var Links = new Array();


Pic[0] = '/rentalhousing/rotate_images/rentalhousing0.jpg';
Pic[1] = '/rentalhousing/rotate_images/rentalhousing1.jpg';
Pic[2] = '/rentalhousing/rotate_images/rentalhousing2.jpg';
Pic[3] = '/rentalhousing/rotate_images/rentalhousing3.jpg';
Pic[4] = '/rentalhousing/rotate_images/rentalhousing4.jpg';
Pic[5] = '/rentalhousing/rotate_images/rentalhousing5.jpg';


//Comment: all links have to go thru /banner.asp for redirection to the destination so that user's choice of a banner can be captured in IIS logs-->

Links[0]="/rentalhousing/";
Links[1]="/rentalhousing/";
Links[2]="/rentalhousing/";
Links[3]="/rentalhousing/";
Links[4]="/rentalhousing/";
Links[5]="/rentalhousing/";


// do not edit anything below this line
var t;
var j = 0;
var p = Pic.length;
var preLoad = new Array();
for (i = 0; i < p; i++) {
preLoad[i] = new Image();
preLoad[i].src = Pic[i];
}
function runSlideShow() 
{
	if (document.all) 
	{
		document.images.SlideShow.style.filter="blendTrans(duration=2)";
		document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";
		document.images.SlideShow.filters.blendTrans.Apply();
	}
	
	document.images.SlideShow.src = preLoad[j].src;
	document.getElementsByName("showlink").item(0).href=Links[j];
	
	if (document.all) 
	{
		document.images.SlideShow.filters.blendTrans.Play();
	}
	
	j = j + 1;
	
	if (j > (p - 1)) j = 0;
	
	t = setTimeout('runSlideShow()', slideShowSpeed);
}
