/*  Flash Presentation JavaScript
	by Kenny Heaton
	vs 1.0
	06/02/04
	Note: Place this file in the javascript folder, place all other flash related files in the flash folder
*/

//window.alert('Testing');
// Flash Open Window Function
function openFlashWindow(flash) {
	var screenX = (screen.width /2) - 260;
  	var screenY = (screen.height /2) - 190;
	features ="width=570, height=380, screenX=" + screenX + ", screenY=" + screenY + ", top=" + screenY + ", left=" + screenX + "status=no";
	//alert(flash);
	window.open("/flash/presentation.asp?flash=" + flash,"flashPresentation",features);
}

// Status Window Functions
function displayStatus(txt) {
	window.status=txt;
	document.returnValue = true;
}
function restoreStatus() {
	window.status="";
	document.returnValue = true;
}

/** Event Calls, Place this code in the href of the a tag on the links you want to open aa flash presentation, and fill in the appropreate information
 onMouseOver="displayStatus('Put Text Here'); return document.returnValue;" onMouseOut="restoreStatus(); return document.returnValue;" onClick="openFlashWindow('Flash Name');"
 
 ** Place this in the head of the document to want to open flash presentations
 <script type="text/JavaScript" src="/javascript/flashRelatedJS.js"></script>
 **/