// Netscape bug fix...

function MM_reloadPage(init) {  //Updated by PVII. Reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) history.go(0);
}

//Browswer Sniffer
var BROWSER_NAME = navigator.appName;
var plat = navigator.appVersion;

if (BROWSER_NAME && navigator.appName.indexOf("Netscape")>=0 && navigator.appVersion.indexOf("4.7")>=0 && plat.indexOf("Win") != -1) {
document.write('<LINK rel="stylesheet" href="style_N47_win.css" type="text/css">');
} else

if (BROWSER_NAME && navigator.appName.indexOf("Netscape")>=0 && navigator.appVersion.indexOf("4.7")>=0 && plat.indexOf("Mac") != -1)  {
document.write('<LINK rel="stylesheet" href="compliant.css" type="text/css">');
} else

if (BROWSER_NAME && navigator.appName.indexOf("Netscape")>=0 && navigator.appVersion.indexOf("5.")>=0 && plat.indexOf("Win") != -1) {
document.write('<LINK rel="stylesheet" href="compliant.css" type="text/css">');
} else

if (BROWSER_NAME && navigator.appName.indexOf("Netscape")>=0 && navigator.appVersion.indexOf("5.")>=0 && plat.indexOf("Mac") != -1)  {
document.write('<LINK rel="stylesheet" href="compliant.css" type="text/css">');
} else

if (BROWSER_NAME == "Netscape" && plat.indexOf("Win") != -1) {
document.write('<LINK rel="stylesheet" href="style_N47_win.css" type="text/css">');
} else

if (BROWSER_NAME == "Microsoft Internet Explorer" && plat.indexOf("Win") != -1){
document.write('<LINK rel="stylesheet" href="compliant.css" type="text/css">');
} else

if (BROWSER_NAME == "Netscape" && plat.indexOf("Mac") != -1) {
document.write('<LINK rel="stylesheet" href="compliant.css" type="text/css">');
} else


if (plat.indexOf("Mac") != -1 && plat.indexOf("MSIE") != -1) {
	if (plat.indexOf("MSIE 5") != -1) {
		document.write('<LINK rel="stylesheet" href="compliant.css" type="text/css">');
	}
	else {
		document.write('<LINK rel="stylesheet" href="compliant.css" type="text/css">');
	}
}

// default style sheet loaded if no browsers match
else {
document.write('<LINK rel="stylesheet" href="compliant.css" type="text/css">');
}

