var blnShowInvestorCenter = true;
var imgOut, imgOver, imgArray;

function initRollImages(pth, boolUserLoggedIn)
{
	imgOut = new Array();
	imgOver = new Array();
	imgArray = new Array('home', 'about', 'products', 'investor', 'library', 'tools', 'faq', (boolUserLoggedIn ? 'logout' : 'login'), 'sitemap', 'contact', 'search');

	for(var i = 0; i < imgArray.length; i++)
	{
		imgOut[i] = new Image;
		imgOut[i].src = pth + imgArray[i] + (blnShowInvestorCenter ? "_off.gif" : "2_off.gif");
		imgOver[i] = new Image;
		imgOver[i].src = pth + imgArray[i] + (blnShowInvestorCenter ? "_on.gif" : "2_on.gif");
	}
}

function rollOut(obj, i)
{
	obj.src = imgOut[i].src;
}

function rollOver(obj, i)
{
	obj.src = imgOver[i].src;
}
