

var clean=1;
var pageName;
var imageName;

if (document.images) {

  newsovr 			= new Image(113,24); newsovr.src = "images/menu/news-header-on.gif";
  newsoff 			= new Image(113,24); newsoff.src = "images/menu/news-header.gif";

  infoovr 		= new Image(113,24); infoovr.src = "images/menu/info-header-on.gif";
  infooff 		= new Image(113,24); infooff.src = "images/menu/info-header.gif";
 
  forumsovr 		= new Image(113,24); forumsovr.src = "images/menu/forums-header-on.gif";
  forumsoff 		= new Image(113,24); forumsoff.src = "images/menu/forums-header.gif";
  
  linksovr 	= new Image(113,24); linksovr.src = "images/menu/links-header-on.gif";
  linksoff 	= new Image(113,24); linksoff.src = "images/menu/links-header.gif";
  
  supportovr 		= new Image(113,24); supportovr.src = "images/menu/support-header-on.gif";
  supportoff 		= new Image(113,24); supportoff.src = "images/menu/support-header.gif";
  
  
  news_iconovr 			= new Image(41,24); news_iconovr.src = "images/menu/news-icon-on.gif";
  news_iconoff 			= new Image(41,24); news_iconoff.src = "images/menu/news-icon-off.gif";

  info_iconovr 			= new Image(41,24); info_iconovr.src = "images/menu/info-icon-on.gif";
  info_iconoff 			= new Image(41,24); info_iconoff.src = "images/menu/info-icon-off.gif";
 
  forums_iconovr 		= new Image(41,24); forums_iconovr.src = "images/menu/forums-icon-on.gif";
  forums_iconoff 		= new Image(41,24); forums_iconoff.src = "images/menu/forums-icon-off.gif";
  
  links_iconovr 	= new Image(41,24); links_iconovr.src = "images/menu/links-icon-on.gif";
  links_iconoff 	= new Image(41,24); links_iconoff.src = "images/menu/links-icon-off.gif";
  
  support_iconovr 		= new Image(41,24); support_iconovr.src = "images/menu/support-icon-on.gif";
  support_iconoff 		= new Image(41,24); support_iconoff.src = "images/menu/support-icon-off.gif";
  
}



function ovrImg( imageName ) {
  if ( document.images ) {
    document[ imageName ].src = eval(imageName + "ovr.src");
  }
}

function offImg( imageName ) {
  if ( document.images ) {
    document[ imageName ].src = eval(imageName + "off.src");
  }
}




window.name= "mainPage";


//Show layer//
function showLayer(layerName){
	
	obj = document.getElementById(layerName);
	obj.style.visibility="visible";

}

//Hide layer//
function hideLayer(layerName){

	obj = document.getElementById(layerName);
	obj.style.visibility="hidden";

}

function popUp (url, width, height, name) {

		
		widthHeight = "width=" + width + ",height=" + height;
		
		winFeatures = "width=" + width + ",height=" + height + ",menubar=no,resizable=no,scrollbars=yes,status=no,toolbar=no,location=no"
		

			spawn = window.open(url,name,winFeatures);
			
	
}

	var styleSheet;
	
	var agt    = navigator.userAgent.toLowerCase();
	var appVer = navigator.appVersion.toLowerCase();
	
	var verInt = parseInt(appVer);
	
	var ie     = (appVer.indexOf('msie') != -1);

	var opera  = (agt.indexOf('opera') != -1);
	
    var mozilla = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('opera')==-1) 
					&& (agt.indexOf('spoofer')==-1) && (agt.indexOf('compatible') == -1) 
	                && (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1));	

	var ns4     = (mozilla && (verInt == 4));
	
	if (ie && !opera) {
	
		styleSheet = document.styleSheets["pageStyle"];
		
		
		
		styleSheet.addRule ("span", "font-size: x-small");
		styleSheet.addRule (".postBody", "font-size: x-small");
		
	} else if ( mozilla && !ns4 ) {
		styleSheet = document.styleSheets[0];

		styleSheet.insertRule('span { font-size: small; }',styleSheet.cssRules.length);
		styleSheet.insertRule('.postBody { font-size: small; }',styleSheet.cssRules.length);
	
	} 
	

