<!--
//=================================
// General Browser Detection Script


isNav=0;
isW3C=0;
isExp=0; isExp6=0;
isOpera=0;
isNOT=0;
isMac=0;


// Detect browser and define pre/suf-fixes
browser=navigator.appName;
version=navigator.appVersion;
agent = navigator.userAgent.toLowerCase();
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';
	} 	
	if (isExp && (agent.indexOf("msie 6.0")!=-1) ) {
		isExp6 = 1;
	}

	else isNOT=1;
}
else if (browser=="Opera") {
	if (Vmajor==4) isOpera=1;
	else isNOT=1;
}


if (version.indexOf('Mac') != -1) isMac=1;

 

//old crappy browser
if (isNav){document.location = "upgrade.htm"}



//-->