function MM_reloadPage(init) {  //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) location.reload();
}
MM_reloadPage(true);

function setStylesheet() {
    var plattform;
    var bversion;
    var pc = (navigator.appVersion.indexOf('Win') != -1);
    var iexp = (navigator.appName.indexOf('Microsoft') != -1);
    var ns = (navigator.appName.indexOf('Netscape') != -1);
    var linkText;
    var bVersion = navigator.appVersion.substring(0,3);
	if (pc && ns){
	linkText="<LINK REL='stylesheet' TYPE='text/css' HREF='/BadNet/css/ns.css'>";
	document.write(linkText);
	}
	if (pc && iexp && bVersion >= 4 ){
	linkText="<LINK REL='stylesheet' TYPE='text/css' HREF='/BadNet/css/ie.css'>";
	document.write(linkText);
	}
	if (!pc){
	linkText="<LINK REL='stylesheet' TYPE='text/css' HREF='/BadNet/css/mac.css'>";
	document.write(linkText);
	}
}
setStylesheet();
