function verifyCompatibleBrowser(){ 
    this.ver=navigator.appVersion 
    this.dom=document.getElementById?1:0 
    this.ie8=(this.ver.indexOf("MSIE 8")>-1 && this.dom)?1:0; 
    this.ie7=(this.ver.indexOf("MSIE 7")>-1 && this.dom)?1:0; 
    this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0; 
    this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0; 
    this.ie4=(document.all && !this.dom)?1:0; 
    this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
 
    this.ns4=(document.layers && !this.dom)?1:0; 
    this.bw=(this.ie8 || this.ie7 || this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns5) 
    return this 
} 

bw=new verifyCompatibleBrowser() 
 

//Constructing the ChangeText object
function EA_makeChangeTextObj(obj){
var tempObj = bw.dom ? document.getElementById(obj) : bw.ie4 ? document.all[obj] : bw.ns4 ? document.layers[obj] : 0;
if (tempObj){
this.css=bw.dom ? tempObj.style : bw.ie4 ? tempObj.style : bw.ns4 ? tempObj : 0;
}
else{
this.css=0;
}
}

 //------------------------------------------------------------------
// Variables  inits:
//------------------------------------------------------------------
var currentLayerNum = "1";
//------------------------------------------------------------------


//switch curlayer to A or B
function EA_showLayer()
{
		if (objContainer.css.visibility == 'visible')
		{
		  eval("objContainer.css.visibility='hidden'");
		}
		else
		{
		  eval("objContainer.css.visibility='visible'");
		}
}

function ConstructObject(obj,nest){ 
    nest=(!nest) ? '':'document.'+nest+'.' 
    this.el=bw.dom?document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?eval(nest+'document.'+obj):0; 
    this.css=bw.dom?document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+'document.'+obj):0; 
    this.scrollHeight=bw.ns4?this.css.document.height:this.el.offsetHeight 
    this.clipHeight=bw.ns4?this.css.clip.height:this.el.offsetHeight 
    this.obj = obj + "Object" 
    eval(this.obj + "=this") 
    return this
}

function InitialiseMenu(){ 
    objContainer = new EA_makeChangeTextObj('divMenu'); 

    objContainer.css.visibility='hidden';
} 
// end absolutely positioned scrollable area object scripts 
