<!---

/**********************************************************************************   
*   Copyright (C) 2001 <a href="/dhtmlcentral/thomas_brattli.asp">Thomas Brattli</a>
*   This script was released at DHTMLCentral.com
*   Visit for more great scripts!
*   This may be used and changed freely as long as this msg is intact!
*   We will also appreciate any links you could give us.
*
*   Made by <a href="/dhtmlcentral/thomas_brattli.asp">Thomas Brattli</a> 
*********************************************************************************/
function lib_bwcheck(){ //Browsercheck (needed)
	this.ver=navigator.appVersion
	this.agent=navigator.userAgent
	this.dom=document.getElementById?1:0
	// this.opera5=this.agent.indexOf("Opera 5")>-1
	this.opera5=(this.agent.indexOf("Opera 5")>-1)||(this.agent.indexOf("Opera 6")>-1) // audrey (opera6) 08.16.02
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0; 
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;
	this.ie4=(document.all && !this.dom && !this.opera5)?1:0;

	this.ie=this.ie4||this.ie5||this.ie6
	this.mac=this.agent.indexOf("Mac")>-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 )
	return this
}
var bw=new lib_bwcheck()



/*
* Resize fixes: executed on page load
* coutsey of: Copyright (C) 2001 <a href="/dhtmlcentral/thomas_brattli.asp">Thomas Brattli</a>
*/
if(document.layers){ //NS4 resize fix...
	scrX= innerWidth; scrY= innerHeight;
	onresize= function(){if(scrX!= innerWidth || scrY!= innerHeight){history.go(0)} }
}
if(navigator.userAgent.indexOf('Opera')>-1 && document.getElementById){ //Opera 5 (+6) resize fix.
	scrX= innerWidth; scrY= innerHeight;
	document.onmousemove= function(){
		if(scrX<innerWidth-10 || scrY<innerHeight-10 || scrX>innerWidth+10 || scrY>innerHeight+10){
			scrX = innerWidth;
			scrY = innerHeight;
			foldInit();
		}
	};
}


// stylesheet file
var cssFilename;
var nav_user_agent = navigator.userAgent.toLowerCase();

// NS4.X browser : load specific NS4 stylesheet file
if ( bw.ns4 ) {	
	// Different stylesheets for MAC & PC (PC is deafult)
	if ( bw.mac  ) {
		cssFilename = "HREF='styles/psE_ns4_mac.css'";
	}
	else {	// pc
		cssFilename = "HREF='styles/psE_ns4.css'";
	}
}
// NS6 or greater (ns7 too) browser : load specific NS6 stylesheet file
else if ( bw.ns6 ) {
	cssFilename = "HREF='styles/psE_ns6.css'";
}
// IE & all others (Otherwise we us the default)
else {
	cssFilename = "HREF='styles/psE.css'";
}

//
// Write out the stylesheet information to the document
//
var stylesheet = "<LINK REL='stylesheet' TYPE='text/css'" + cssFilename + ">";
document.write(stylesheet);

//-->
