var sBasePath = "";

function rollover(imgname,state,type)
{
document.images[imgname].src = sBasePath + "images/" + imgname + "_" + state + "." + type;
}

function rolloverNav(imgname,sDown)
{
document.images[imgname].src = sBasePath + "images/reddot" + sDown + ".gif";
}

function onLoad()
{

var winWidth = 0;
var winHeight = 0;

if (document.layers)
{    
	winWidth = window.innerWidth;
	winHeight = window.innerHeight;

}
else
{
	winWidth = document.body.offsetWidth;
	winHeight = document.body.offsetHeight;
}

var  iSubtract ;


	if (document.layers){
      //Netscape 4 specific code
      pre = 'document.layers.';
      post = '';
	  iSubtract = 918;
	  
   }
   if (document.getElementById){
      //Netscape 6 specific code
      pre = 'document.getElementById("';
      post = '").style';
	   iSubtract = 918;
	 
   }
   if (document.all){
      //IE4+ specific code
      pre = 'document.all.';
      post = '.style';
	   iSubtract = 918;
   }
   
   sLayerName = "mainsite";

	var myLayer = eval(pre + sLayerName + post);
	var iLeft = (winWidth - iSubtract) / 2;
	if (iLeft < 0)
	{ iLeft = 0; }
	myLayer.left = iLeft + "px"; 

}