// Global variables to sniff browsers/platforms ns5 = Netscape 6
var bV = parseInt(navigator.appVersion);
var ver5 = (document.getElementById) ? true:false;
var ns4 = (navigator.appName == "Netscape") && (bV == 4);
var ns6 = (navigator.appName == "Netscape") && (ver5);
var ie4 = (navigator.appName == "Microsoft Internet Explorer") && (bV == 4) && (! ver5);
var ie5 = (navigator.appName == "Microsoft Internet Explorer") && (ver5);
var isMac = navigator.platform == "MacPPC"

// FUNCTIONS: contentPage(), rightImage()  Pop content in frames dynamically
function contentPage(whichPage) {
	cPage = whichPage
	top.frames[2].location = cPage
}

function rightImage(thisPage) {
	rPage = thisPage
	top.frames[3].location = rPage
}

//  FUNCTION: popWin()  Make a daughter window
function popWin(url,width,height,posx,posy) {
	var myWindow = window.open(url, "mainWindow", 'resizable=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,width='+width+',height='+height+',screenX='+posx+',screenY='+posy+',left='+posx+',top='+posy+'');
	myWindow.focus();
}

//  Platform detect to choose proper style sheet
if (isMac) {
	if (ie5) {
		document.write('<link href="styles/mac_ie5.css" rel="stylesheet" type="text/css">');
	} else {
		document.write('<link href="styles/mac.css" rel="stylesheet" type="text/css">');
	}
} else {
	document.write('<link href="styles/pc.css" rel="stylesheet" type="text/css">');
}
