//===================================
// BROWSER CHECK
//===================================
// BROWSER 4+ browser can handle DHTML
//var isgoodBrowser = (parseInt(navigator.appVersion)>=4) ? true : false;
agt = navigator.userAgent.toLowerCase();
app = navigator.appName.toLowerCase(); 
var isIE = app.indexOf("microsoft")!=-1;
var isNetscape = app.indexOf("netscape") !=-1;
var isPC = agt.indexOf('win') !=-1;
var isMac = agt.indexOf("mac")!=-1;
var isgoodBrowser = (document.getElementById || document.all || document.layers) ? true : false;

// IE 4+ 
var isgoodIE = isIE && isgoodBrowser;

// NETSCAPE 4+
var isgoodNS = isNetscape && isgoodBrowser;

// alert("IE:" + isIE + "," + isgoodIE);
// alert("Netscape:" + isNetscape + "," + isgoodNS);
// alert("PC:" + isPC);
// alert("Mac:" + isMac);
// alert("Good Browser:" + isgoodBrowser);
// end BROWSER CHECK					


//===================================
// WRITE STYLE SHEET
//===================================
if(isgoodIE){
	document.write("<link rel='stylesheet' type='text/css' href='scripts/main_ie.css'>");
} else if(isgoodNS){
	document.write("<link rel='stylesheet' type='text/css' href='scripts/main_ns.css'>");
}
// end WRITE STYLE SHEET


//===================================
// GET FLASH
// after 1x1 pixel flash movie detects
// flash version
//===================================
function getFlash(){
	window.location.replace("getFlash.html");
}	
// end getFlash


//===================================
// POP UP
//===================================
function popUp(currentUrl) {
	if(currentUrl.indexOf('Big')>-1){
		popupPic(currentUrl);
	} else {
		width=600;
		height=800;
		attributes=',status, resizable, scrollbars';
		var winname="bio";
		var xPos = 100;
		var yPos = 100;	
		if (document.layers || document.all) {
			xPos = (screen.width - 600) / 2;
			yPos = (screen.height - 800) / 2;		
		}
		var currentWin = window.open(currentUrl, winname,' width='+width+', height='+height+', left='+xPos+', screenX='+xPos + ', top='+yPos+', screenY='+yPos + attributes);
		currentWin.focus();
	}
}

function popupPic(picUrl) { 
	currentUrl="image.html";
	winname="image";
    var currentWin= window.open(currentUrl, winname, "resizable=0, width=0, height=0, top=0, left=0, titlebar=no, scrollbars=no, location=no, directories=no, status=no, menubar=no, toolbar=no, WIDTH=480,HEIGHT=618");
	currentWin.picUrl=picUrl;
} 

