<!--
//=================================
// General Browser Detection Script

isNav=0;
isW3C=0;
isExp=0;
isOpera=0;
isNOT=0;
isMac=0;
var root = '/';

// Detect browser and define pre/suf-fixes
browser=navigator.appName;
version=navigator.appVersion;
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 (browser=="Opera") {
	if (Vmajor==4) isOpera=1;
	else isNOT=1;
}
else if (browser=="Konqueror") {
	if (Vmajor>=5) isW3C=1;
	else isNOT=1;
}


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
if (isExp){
	document.write("<link REL='stylesheet' href='" + root + "css/StyleIE.css' type='text/css'>");
	document.write("<link REL='stylesheet' href='" + root + "css/print.css' media='print' type='text/css'>");
	}
else if (isW3C){
	document.write("<link REL='stylesheet' href='" + root + "css/StyleWC3.css' type='text/css'>");
	document.write("<link REL='stylesheet' href='" + root + "css/print.css' media='print' type='text/css'>");
	}
else {
	document.location = root + "upgrade.htm"
	}

//-->
