// browserdetect for style sheets
var yourBrowser, yourPlatform;
var name = navigator.appName;
var vers = navigator.appVersion;
vers = vers.substring(0,4); // or 0,4  could return 4.5 instead of just 4

if (name == "Microsoft Internet Explorer") 
  yourBrowser="IE";
else 
  yourBrowser="NS";

if (vers.indexOf("Mac")>0)
  yourPlatform = "Mac";
if (yourBrowser == "NS"){
  document.write('<link rel="stylesheet" href="css/styles_ns.css">');
}
else{
  document.write('<link rel="stylesheet" href="css/styles.css">');
}
// popup windows
var popupWindow=null;
function legal(mypage,myname,w,h,pos,infocus){
{LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/3:100;}
settings='width='+ w + ',height='+ h + ',top=' + TopPosition + ',left=' + LeftPosition + ',scrollbars=yes,location=no,directories=no,status=yes,menubar=no,toolbar=no,resizable=no';popupWindow=window.open('',myname,settings);
if(infocus=='front'){popupWindow.focus();popupWindow.location='legal.html';}
}

var popupWindow=null;
function privacy(mypage,myname,w,h,pos,infocus){
{LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/3:100;}
settings='width='+ w + ',height='+ h + ',top=' + TopPosition + ',left=' + LeftPosition + ',scrollbars=yes,location=no,directories=no,status=yes,menubar=no,toolbar=no,resizable=no';popupWindow=window.open('',myname,settings);
if(infocus=='front'){popupWindow.focus();popupWindow.location='privacy.html';}
}

function MM_reloadPage(init) {
	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);