/******* browserObj script *******/
// To compensate for the major font size differences between PC and Macs, this script determines which platform a user is browsing on, and assigns the corresponding stylesheet 
function browserObjClass(){
	this.IE=(navigator.appName.toLowerCase().indexOf("microsoft")!=-1)? true:false;
	this.NS=(navigator.appName.toLowerCase().indexOf("netscape")!=-1)? true:false;
	if(this.IE) this.VERSION=parseFloat(navigator.userAgent.substring(navigator.userAgent.toUpperCase().indexOf("MSIE")+4));
	else if(this.NS){
		if(navigator.userAgent.toLowerCase().indexOf("netscape")!=-1)
			this.VERSION=parseFloat(navigator.userAgent.substring(navigator.userAgent.toLowerCase().indexOf("netscape")+8));
		else this.VERSION=parseFloat(navigator.userAgent.substring(navigator.userAgent.toLowerCase().indexOf("mozilla")+8));
	}
	this.IE4=(this.IE && document.all && this.VERSION>=4)? true:false;
	this.NS4=(this.NS && document.layers && this.VERSION>=4)? true:false;
	this.IE5=(this.IE && this.VERSION>=5)? true:false;
	this.NS6=(this.NS && !document.layers & this.VERSION>=6)? true:false;
	this.useGetID=(this.IE5 || this.NS6)? true:false;
	this.MAC=(navigator.appVersion.toLowerCase().indexOf("mac")!=-1)? true:false;
}

browserObj=new browserObjClass();

var _href="style/pc_ie.css";	//default will be Win platform
if(browserObj.MAC && browserObj.IE) _href="style/pc_ie.css";	//IE Mac
else if(browserObj.MAC && browswerObj.NS) _href="style/mac_ns.css"; //NS Mac
else if(browserObj.NS) _href="style/pc_ns.css"; 	           //NS PC

document.write('<LINK REL=stylesheet HREF="' + pathtoroot + _href + '" TYPE="text/css">');

/////////// Begin popUp script
	
	
function popUp(URL,WT,HT,id,scroll) {
	if(!scroll) scroll="no";
	eval("page" + id + " = window.open('"+URL+"', '" + id + "', 'toolbar=0,scrollbars=" + scroll + ",location=0,statusbar=1,menubar=0,resizable=0,width=" + WT + ",height=" + HT + "');");
}
	
////////////Status Bar Function //////This will hide the popup window javascrip in the status bar while mouse is over the link
	
function statusIn(text){
	window.status = text;
}

function statusOut(){
	self.status='';
}

function windowClose(){
	self.window.close();
}	


// Netscape Resize Fix
if (document.layers) {
	widthCheck = window.innerWidth
	heightCheck = window.innerHeight
	window.onResize = resizeFix
}
function resizeFix() {
	if (widthCheck != window.innerWidth || heightCheck != window.innerHeight)
	document.location.href = document.location.href
}	

