var	siteRoot = '/';

//	Plugin Check Result Code
	function flashChkResultCode(stageWidth,stageHeight,movieFilename,movieBGColor,allowScriptAccess,altOption,altHREF) {
		if (hasReqestedVersion) {							// if we've detected an acceptable version
			if (!stageWidth)				alert('jsError: *stageWidth* is a required argument.');
			if (!stageHeight)				alert('jsError: *stageHeight* is a required argument.');
			if (!movieFilename)				alert('jsError: *movieFilename* is a required argument.');
			if (referringURL.length > 0)
				if (movieFilename.indexOf('?') == -1) {
											var movieFilename		= movieFilename + '?rURL=' + referringURL;
				} else {
											var movieFilename		= movieFilename + '&rURL=' + referringURL;
				}
			if (!movieBGColor)				var movieBGColor		= "#ffffff";
			if (!allowScriptAccess)			var allowScriptAccess	= "sameDomain";
			if (!altOption)					var altOption			= 0;
			var oeTags	= '<div align="center">'
				+ '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
				+ 'width="' + stageWidth + '" height="' + stageHeight + '"'
				+ 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,16,0">'
				+ '<param name="movie" value="' + movieFilename + '" /><param name="quality" value="high" /><param name="bgcolor" value="' + movieBGColor + '" />'
				+ '<embed src="' + movieFilename + '" quality="high" bgcolor="' + movieBGColor + '"'
				+ 'width="' + stageWidth + '" height="' + stageHeight + '" name="name" align="middle"'
				+ 'play="true" loop="false" quality="high"'
				+ 'allowScriptAccess="' + allowScriptAccess + '"'
				+ 'type="application/x-shockwave-flash"'
				+ 'pluginspage="http://www.adobe.com/go/getflashplayer">'
				+ '<\/embed>'
				+ '<\/object>'
				+ '<\/div>';
			document.write(oeTags);							// embed the Flash Content SWF when all tests are passed
		} else {											// flash is too old or we can't detect the plugin
			if (!altHREF)					var altHREF				= "";
			if (altHREF.length == 0) 		var altHREF				= "html";
			if (referringURL.length > 0)	var altHREF				= altHREF + '?rURL=' + referringURL;
			var acTop	= '<div id="plugInError">'
				+ '<h1 class="header">Plug-In Error<\/h1>'
				+ '<div>'
				+ '<div style="float:right; padding-left:15px;">'
				+ '<a href="' + siteRoot + 'xLink/xLink.cfm?xLink=www.adobe.com/go/getflash/"><img src="' + siteRoot + 'images/download_flashPlayer.gif" alt="Get Adobe Flash Player" width="88" height="31" border="0"><\/a>'
				+ '<\/div>'
				+ '<div>';
			var acTextA	= '<p>Certain features on this site use Flash<sup>&reg;<\/sup>, a browser plug-in.&nbsp;'
				+ 'These features are not working because Flash needs to be either updated or installed on your computer.<\/p>'
				+ '<p>Click on the icon at right to get the latest version of the free Flash player from <a href="' + siteRoot + 'xLink/xLink.cfm?xLink=www.adobe.com/go/getflash/"><strong>Adobe<\/strong><\/a>.<\/p>';
			var acTextB	= '<p>To enjoy the page without using Flash, click for <a href="' + altHREF + '">another version.<\/a><\/p>';
			var acBot	= '<\/div><\/div><\/div><br clear="all">';
			switch (altOption) {							// prescribed alternate actions (case-based)
				case 1:		/*	Immediate re-direct to alternate content.
								No error message presented to the user. */
					window.location			= altHREF;
					break;

				case 2:		/*	Error message is presented to the user.
								A link to alternate content is made available to the user. */
					var alternateContent	= acTop + acTextA + acTextB + acBot;
					document.write(alternateContent);		// insert non-flash content
					break;
				
				default:	/*	default case where an error message is presented to the user */
					var alternateContent	= acTop + acTextA + acBot;
					document.write(alternateContent);		// insert non-flash content
			}
		}
	}
