// TerGroup.net Menu javascript code
var		tm = null; var		mName = null; var		mPop = false; var		isTerMenu = false;
function SwitchMenu( pName ){ if ( mName != pName ) { ShowMenu( pName ); mPop = true; } else { HideMenu( pName ); mPop = false; }; };
function ShowMenu( pName ){ StopHide(); if ( mName != pName ) { if ( mName != null ) HideMenu( mName ); showLayer(pName,true); mName = pName; }; };
function HideMenu(){ if ( mName == null ) return; showLayer(mName,false); mName = null; };
function StartShow( pName ){ if ( ! mPop ) ShowMenu( pName ); }; 
function StartHide(){ if ( ! mPop ) tm = setTimeout( "HideMenu()", 500 ); };
function StopHide(){ if( tm != null ) clearTimeout( tm ); };
function showLayer( pLayer, pVisible ){ document.getElementById(pLayer).style.visibility=(pVisible)?"visible":"hidden"; };
function checkTerMenu(){
	this.agent=navigator.userAgent.toLowerCase();
	this.versionHi=parseInt(navigator.appVersion);
	this.version=parseFloat(navigator.appVersion);
	this.Netscape=((this.agent.indexOf('mozilla')!=-1)&&(this.agent.indexOf('spoofer')==-1)&&(this.agent.indexOf('compatible')==-1)&&(this.agent.indexOf('opera')==-1)&&(this.agent.indexOf('webtv')==-1));
	this.Netscape6up=(this.Netscape&&(this.versionHi>=6));
	this.IE=(this.agent.indexOf("msie") != -1);
	this.IE4up=(this.IE&&(this.versionHi>=4));
	this.Opera=(this.agent.indexOf("opera")!=-1);
	this.Opera7up=(this.Opera&&(this.versionHi>=7));
	return (this.Netscape6up || this.IE4up || this.Opera7up);
};
isTerMenu = checkTerMenu();
	
