

// ====================== start browser sniffer ======================

	// convert all characters to lowercase to simplify testing
	var agt=navigator.userAgent.toLowerCase();

	// *** BROWSER VERSION ***
	// Note: On IE5, these return 4, so use is.ie5up to detect IE5.
	var is_major = parseInt(navigator.appVersion);
	var is_minor = parseFloat(navigator.appVersion);

	var is_nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1)
			&& (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1)
			&& (agt.indexOf('webtv')==-1));
	var is_nav2 = (is_nav && (is_major == 2));
	var is_nav3 = (is_nav && (is_major == 3));
	var is_nav4 = (is_nav && (is_major == 4));
	var is_nav4up = (is_nav && (is_major >= 4));
	var is_navonly = (is_nav && ((agt.indexOf(";nav") != -1) || (agt.indexOf("; nav") != -1)) );
	var is_nav5 = (is_nav && (is_major == 5));
	var is_nav5up = (is_nav && (is_major >= 5));

	var is_ie   = (agt.indexOf("msie") != -1);
	var is_ie3  = (is_ie && (is_major < 4));
	var is_ie4  = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")==-1) );
	var is_ie4up  = (is_ie  && (is_major >= 4));
	var is_ie5  = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")!=-1) );
	var is_ie5up  = (is_ie  && !is_ie3 && !is_ie4);

	// *** PLATFORM ***
	var is_win   = ( (agt.indexOf("win")!=-1) || (agt.indexOf("16bit")!=-1) );
	// NOTE: On Opera 3.0, the userAgent string includes "Windows 95/NT4" on all
	//       Win32, so you can't distinguish between Win95 and WinNT.
	var is_mac    = (agt.indexOf("mac")!=-1);

		if (is_ie5up && is_mac) {
		document.write('<link rel=stylesheet type="text/css" href="nf.css" title=master>');
		}
		else if (is_nav4up && is_mac) {
		document.write('<link rel=stylesheet type="text/css" href="nf.css" title=master>');
		}
		else if (is_nav4up && is_win) {
		document.write('<link rel=stylesheet type="text/css" href="nf.css" title=master>');
		}
		else if (is_ie4 && is_mac) {
		document.write('<link rel=stylesheet type="text/css" href="nf.css" title=master>');
		}
		else if (is_ie4up && is_win) {
		document.write('<link rel=stylesheet type="text/css" href="nf.css" title=master>');
		}
		else {
		document.write('<link rel=stylesheet type="text/css" href="nf.css" title=master>');
		}

// ====================== stop browser sniffer ======================


// ====================== start nn css resize bug fix ======================


	function nnCssFix() {
	  if (document.newWinObj.nnCssFix.initWindowWidth != window.innerWidth || document.newWinObj.nnCssFix.initWindowHeight != window.innerHeight) {
	    document.location = document.location;
	  }
	}

	function nnCssFixCheckIn() {
	  if ((navigator.appName == 'Netscape') && (parseInt(navigator.appVersion) == 4)) {
	    if (typeof document.newWinObj == 'undefined'){
	      document.newWinObj = new Object;
	    }
	    if (typeof document.newWinObj.scaleFont == 'undefined') {
	      document.newWinObj.nnCssFix = new Object;
	      document.newWinObj.nnCssFix.initWindowWidth = window.innerWidth;
	      document.newWinObj.nnCssFix.initWindowHeight = window.innerHeight;
	    }
	    window.onresize = nnCssFix;
	  }
	}

	nnCssFixCheckIn()

// ====================== stop nn css resize bug fix ======================


// ====================== start openCenteredPopup ======================

	function openCenteredPopup(theURL,winName) 
	{ 
	var ht = 600;
	var wdth = 800;
	var left = (screen.width - wdth) / 2;
	var top = (screen.height - ht) / 2;
	features = 'scrollbars=1,resizable=1,height='+ht+',width='+wdth+',top='+top+',left='+left
	window.open(theURL,winName,features)
	}
	
// ====================== end openCenteredPopup ======================
