function cacheImages()
{
	var i;
	
	var oImages = new Array(document.images.length);			//array of image objects
	//reset all rollover images to their "off" state
	for (i=0; i<document.images.length; i++)
	{
		if ( document.images[i].src.search(/\_off\.(gif|jpg)/) > 0 )
		{	
			oImages[i] = new Image();
			oImages[i].src = document.images[i].src.replace("_off.", "_on.");
		}
	}
	return;
}

function setImage(oImage)
{
	var i;
	//first reset all rollover images to their "off" state
	for (i=0; i<document.images.length; i++)
	{
		if ( document.images[i].src.search(/\_on\.(gif|jpg)/) )
			document.images[i].src.replace("_on.", "_off.");
	}
	//now set the image to be in the "on" state		
	eval(oImage).src = eval(oImage).src.replace("_off.", "_on.");
	return;
}

function clearImages()
{
	var i;
	
	//reset all rollover images to their "off" state
	for (i=0; i<document.images.length; i++)
	{
		if ( document.images[i].src.search(/\_on\.(gif|jpg)/) > 0 )
			document.images[i].src = document.images[i].src.replace("_on.", "_off.");
	}
	return;
}

function openWindow(url, name, width, height, resize, scroll, center)
{
	var sParams = '';
	name = (name == null) ? '' : name;

	sParams += 'width=' + width;
	sParams += ',height=' + height;
	sParams += (resize || resize == 'true') ? ',resizable=yes' : ',resizable=no';
	sParams += (scroll || scroll == 'true') ? ',scrollbars=yes' : ',scrollbars=no';
	sParams += (center || center == 'true') ? ',left=' + ((screen.width - width) / 2) : '';
	sParams += (center || center == 'true') ? ',top=' + ((screen.height - height) / 2) : '';

	window.name = 'opener';
	var popupWin = window.open(url, name, sParams);
	popupWin.focus();
	return;
}

function openPrivacy()
{
	window.open('/privacy.aspx','privacy','scrollbars=yes,status=no,width=515,height=515')
}

function openTerms()
{
	window.open('/terms.aspx','terms','scrollbars=yes,status=no,width=515,height=515')
}

function openHomeFlash()
{

    document.write ('');
}


function productNav(Tab,Page)
{
document.write ('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="690" height="590" id="BB_nav" align="middle">'); 
document.write ('<param name="allowScriptAccess" value="sameDomain" />'); 
document.write ('<param name="movie" value="/sidenav.swf?tab='+Tab+'&page='+Page+'" />'); 
document.write ('<param name="quality" value="high" />'); 
document.write ('<param name="wmode" value="transparent" />'); 
document.write ('<param name="bgcolor" value="#ffffff" />'); 
document.write ('<param name="menu" value="false" />'); 
document.write ('<embed src="/sidenav.swf?tab='+Tab+'&page='+Page+'" menu="false" quality="high" wmode="transparent" bgcolor="#ffffff" width="690" height="590" name="BB_nav" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'); 
document.write ('</object>');          
}    