//===================================
// BROWSER CHECK
//===================================
// IE
var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;

// WINDOWS		
var isWin = (navigator.appVersion.indexOf("Windows") != -1) ? true : false; 

// BROWSER 4+
var isgoodBrowser = (parseInt(navigator.appVersion)>=4) ? true : false;

// IE 4+ 
var isgoodIE = ((navigator.appName.indexOf("Microsoft") >= 0) && (isgoodBrowser));

// NETSCAPE 4+
var isgoodNS = ((navigator.appName.indexOf("Netscape") >= 0) && (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


//===================================
// CHANGE COLORS	
// 		changes the style of objects
//===================================	
function changeColors(state) {
	//interior pages
	if ((document.layers || document.all) && (state=="purple")){
		eval('leftLine').className="whiteBG";
		eval('rightLine').className="whiteBG";		
		eval('bg').className="purpleBG1";
		eval('bars').background="images/bars.gif";
	//home and bio			
	} else if ((document.layers || document.all) && (state=="white")){
		eval('leftLine').className="purpleBG2";
		eval('rightLine').className="purpleBG2";		
		eval('bg').className="whiteBG";
		eval('bars').background="images/spacer.gif";
	//intro				
	} else if ((document.layers || document.all) && (state=="intro")){
		eval('leftLine').className="whiteBG";
		eval('rightLine').className="purpleBG2";		
		eval('bg').className="whiteBG";
		eval('bars').background="images/spacer.gif";			
	}
	
}//end highlightInput


//===================================
// POP UP
//===================================
function popUp(currentUrl) {
		width=800;
		height=600;
		
		attributes=', status=yes, resizable=yes, titlebar=yes, scrollbars=yes, location=yes, directories=yes, menubar=yes, toolbar=yes';
		
		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();
}