<!--
// Cache mastheads
var aMastheadURL = [new Image(),new Image(),new Image(),new Image(),new Image(),new Image()];
aMastheadURL[0].src = "/images/homepage/homepage_syl.jpg";
aMastheadURL[1].src = "/images/homepage/homepage_cy.jpg";
aMastheadURL[2].src = "/images/homepage/homepage_dc.jpg";
aMastheadURL[3].src = "/images/homepage/homepage_tt.jpg";
aMastheadURL[4].src = "/images/homepage/homepage_ah.jpg";
aMastheadURL[5].src = "/images/homepage/homepage_mh.jpg";

function getRandomNumber(N) { return Math.floor(N*(Math.random()%1)) }

// Function to rotate masthead
function rotateMasthead()
{
	var oImage = document.getElementById("masthead");
	if (!oImage) return;

	var sNewURL = oImage.src;
	while (sNewURL == oImage.src)
	{
		sNewURL = aMastheadURL[getRandomNumber(aMastheadURL.length)].src;
	}
	oImage.src = sNewURL;
	setTimeout("rotateMasthead()", 7000);
}

function startMastheadRotation()
{
	setTimeout("rotateMasthead()", 7000);
}
//-->
