// PUT ALL GLOBAL FUNCTIONS HERE!



// Pop ups
function helpPop() {
	return window.open('help.html','HelpDesk','width=350,height=200,status=no,scrollbars=no,toolbar=no,location=no,menubar=no,resizable=no');
}



// this can be used for simple name based browser detection.
var browObj;

if (navigator.appName == "Microsoft Internet Explorer")
	browObj = "ie";
if (navigator.appName == "Netscape")
	browObj = "ns";
	
	

/********************************************************
*
*******************FLASH DETECTER************************
*
* Name: 	isFlash()
* Purpose: 	Establishes whether the browser is capable of
*			viewing flash movies, and returns a value for 
*			the page to use
* Inputs: 	Takes no arguments
* Outputs: 	variable "flash" as either true or false
********************************************************/

bName = navigator.appName;
bVersion = navigator.appVersion;
var flash = "false"; // set the initial state of the flash variable to false

function isFlash() {
	// check if its Macintosh + IE4, or Win 3.1
	if (bVersion.indexOf("3.") != -1) {

			flash = false;

	} else if (navigator.mimeTypes && 
			navigator.mimeTypes["application/x-shockwave-flash"] && 
			navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin || 
			navigator.plugins || 
			navigator.plugins["Shockwave Flash"] || 
			navigator.appName == "Microsoft Internet Explorer") { 

				flash = true;
	}else {
		flash = false;
	}// end if
return flash;
} // end isFlash
