
/*******************************************************************************
	POPMENU_SETTINGS.JS contains the variables to set effecting the placement and
	the look and feel of the menu. This should be the only file that needs to be 
	altered.
*******************************************************************************/
function lib_bwcheck(){
	this.ver=navigator.appVersion; this.agent=navigator.userAgent
	this.dom=document.getElementById?1:0
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.ie=this.ie4||this.ie5||this.ie6
	this.mac=this.agent.indexOf("Mac")>-1
	this.opera5=this.agent.indexOf("Opera 5")>-1
	this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5 || this.dom)
	return this
}
var bw=new lib_bwcheck()

function gwh() {
	var BV=navigator.appVersion;
	BV=parseFloat(BV.indexOf('MSIE')>0?BV.split(';')[1].split(' ')[2]:BV.split(' ')[0]);
	var BN=window.navigator.appName;
	var IsWin=(navigator.userAgent.indexOf('Windows')!=-1)?true:false;
	var OP=(navigator.userAgent.indexOf('Opera')!=-1&&BV>=4)?true:false;
	var SM=(BN.indexOf('Netscape')!=-1&&(BV>=5)||OP)?true:false;
	var NS=(BN.indexOf('Netscape')!=-1&&!SM)?true:false;
	var IE=(BN.indexOf('Explorer')!=-1&&(BV>=4)||SM)?true:false;
	if(IE&&!SM)return [document.body.clientWidth,document.body.clientHeight];
	if(NS||SM)return [innerWidth,innerHeight];
}

function getPlacement(resize) {
	if(bw.ns4 || bw.ns6){var x=gwh()[0]/2;
	if(x>=368){var x=gwh()[0]/2;x=x-364;x=10}else{x=26}return x}
	if(bw.ie){var x=gwh()[0]/2;
	if(x>=368){var x=gwh()[0]/2;x=x-356;x=10}else{x=26}return x}
}

var mDebugging=0

GL=new makeCoolMenu("GL")
GL.useframes=0
GL.frame="frmMain"

GL.pagecheck=0
GL.checkscroll=0
GL.resizecheck=1
GL.wait=1000

GL.usebar=0
GL.barcolor="#2F3935"
GL.barwidth="menu"
GL.barheight="menu"
GL.barx="menu"
GL.bary="menu"
GL.barinheritborder=0

GL.rows=0
GL.fromleft=getPlacement(1);
GL.fromtop=250
GL.pxbetween=0

GL.menuplacement=0

GL.level[0]=new Array()
GL.level[0].width=149
GL.level[0].height=18
/*
GL.level[0].bgcoloroff="#2F3935"
GL.level[0].bgcoloron="#6B745D"
GL.level[0].textcolor="white"
GL.level[0].hovercolor="#F5D60B"
*/
GL.level[0].bgcoloroff="#ffD700"
GL.level[0].bgcoloron="#7D87FB"
GL.level[0].textcolor="blue"
GL.level[0].hovercolor="#FFFFFF"
GL.level[0].style="padding:2px; font-family:arial,helvetica; font-size:13px; "
GL.level[0].border=0
GL.level[0].bordercolor="white"
GL.level[0].offsetX=0
GL.level[0].offsetY=0
GL.level[0].NS4font="arial,helvetica"
GL.level[0].NS4fontSize="2"
GL.level[0].NS4fontColor="white"

GL.level[0].align="right"

GL.level[1]=new Array()
GL.level[1].width=245
GL.level[1].height=18
GL.level[1].textcolor="black"
GL.level[1].hovercolor="#f7d708"
GL.level[1].bgcoloroff="#E6E6FA"
GL.level[1].bgcoloron="#AFB6FA"
GL.level[1].style="padding:2px; font-family:arial,helvetica; font-size:11px; font-weight:bold"
GL.level[1].align="right" 
GL.level[1].offsetX=0
GL.level[1].offsetY=0
GL.level[1].border=1
GL.level[1].bordercolor="#6B755a"