/*
slideshow
*/
var images = [];  // array of loaded images
var ct = 0; // slide counter

function switchslide() 
{ 
	var n = (ct+1) % (slidelist.length);
	if (images[n] && (images[n].complete || images[n].complete == null)) {
		var slideimage = document.getElementById("slideimage");
		slideimage.src = images[n].src;
		ct = n;
	} else {
		images[n] = new Image;
		images[n].src = slidelist[n][0];
	}
	setTimeout("switchslide()", duration * 1000);
}

function learnmore()
{
	location.href = slidelist[ct][1];
} 


onload = function() 
{
	// disable menu for ie5 mac, because it forces floated elements in the body to stack above our absolutely-positioned dropdowns
	var notIE5Mac = !(
		(navigator.appVersion.indexOf("Mac") != -1) && 
		(navigator.appName.indexOf("Explorer") > 0) && 
		(parseFloat(navigator.appVersion) == 4)
	);

	if (notIE5Mac) {

	}
	
	// start slideshow
	if (document.images) {
		switchslide();
	}
}

