/*=============================================================================
TITLE:			Standard Utility Functions
VERSION:		2005.08.31
AUTHOR: 		NetMediaOne - www.netmediaone.com
REQUIRES:   xLib (www.cross-browser.com)
=============================================================================*/

function imgOn(img)
{
	img.src = "images/" + img.id + "_on.gif";
}

function imgOff(img)
{
	img.src = "images/" + img.id + "_off.gif";
}

function rotateImages()
{
	var randomNumber = Math.floor( Math.random() * rotatingImages.length );
	tI = xGetElementById("rotatingImage");
	tC = xGetElementById("rotatingImageCaption");
	tI.href = rotatingImages[randomNumber][0];
	tC.href = rotatingImages[randomNumber][0];
	xInnerHtml( tI, '<img src="../../appctr/scripts/' + rotatingImages[randomNumber][1] + '" alt="' + rotatingImages[randomNumber][2] + '" title="' + rotatingImages[randomNumber][2] + '" />' );
	xInnerHtml( tC, rotatingImages[randomNumber][2] );
	setTimeout( rotateImages, 7000 );
}

