<!--
//=================================
// General Browser Detection Script


isNav=0;
isW3C=0;
isExp=0;
isOpera=0;
isNOT=0;
isMac=0;

// Detect browser and define pre/suf-fixes
browser=navigator.appName;
version=navigator.appVersion;
useragent=navigator.userAgent;
Vmajor=parseInt(navigator.appVersion);
Vminor=parseFloat(navigator.appVersion);

if (browser=="Netscape") {
	if (Vmajor==4)
	{
		isNav=1; pre='layers.'; suf='';
		
	}
	else if (Vmajor>=5)	isW3C=1;
	else isNOT=1;
}
else if (browser=="Microsoft Internet Explorer") {
	
	if ( version.indexOf('MSIE 5.0; Macintosh;') != -1 )  {
		isExp=1;
		pre='all.';
		suf='.style';
	}
	// IE 4 to 5.5 return 4 as the version
		else if ( (Vmajor>=4) ) {
		isExp=1;
		pre='all.';
		suf='.style';
	}
	else isNOT=1;
}
else if (useragent.indexOf('Opera') != -1) {
	isOpera=true;
	pre='all';
	suff='.style';
}


if (version.indexOf('Mac') != -1) isMac=1;

//Netscape Resize

if(!window.saveInnerWidth) {
  window.onresize = resizeIt;
  window.saveInnerWidth = window.innerWidth;
  window.saveInnerHeight = window.innerHeight;
}

function resizeIt() {
    if (saveInnerWidth < window.innerWidth || 
        saveInnerWidth > window.innerWidth || 
        saveInnerHeight > window.innerHeight || 
        saveInnerHeight < window.innerHeight ) 
    {
        window.history.go(0);
    }
}

//Write Stylesheets
//document.write("<link REL='stylesheet' href='../css/global.css' type='text/css'>")
//document.write("<link REL='stylesheet' href='../ClientData/template.css' type='text/css'>");

document.write("<link REL='stylesheet' href='../Common/Themes/global.css' type='text/css'>");
document.write("<link REL='stylesheet' href='../Common/Themes/template.css' type='text/css'>");

//if (isW3C) {document.write("<link REL='stylesheet' href='../css/styleW3C.css' type='text/css'>")}
if (isW3C) {document.write("<link REL='stylesheet' href='../Common/Themes/styleW3C.css' type='text/css'>")}
if (isNav) {document.location = "../upgrade.asp"}


//-->

