<!--
	/*
		General Flash Embedding Function, uses detection functions from Macromedia to show alternative content
		if the player is not installed or is really old. (less than 6.0.79.0 eek!)
		Pete B July 2006
		
		Notes:
		renderFlashObject('/applets/flashObj', 100, 95, '/images/blank.gif', false)
		Assumes alternative content image is same dimensions as flash object.
		
		Pass true as fifth parameter to insert link to download and install FP around alt content image
		
		Dependencies:
			/code_inc/javascript/AC_OETags.js
	*/
	
	function renderFlashObject(sSwfLocation, iWidth, iHeight, sAltImage, bApplyDownloadLink)
	{

		var _requiredMajorVersion = 6;
		// Minor version of Flash required
		var _requiredMinorVersion = 0;
		// Minor version of Flash required
		var _requiredRevision = 79;
		
		// Version check based upon the values entered above in "Globals"
		var hasReqestedVersion = DetectFlashVer(_requiredMajorVersion, _requiredMinorVersion, _requiredRevision);
		
		// Check to see if the version meets the requirements for playback
		if (hasReqestedVersion) {
			// if we've detected an acceptable version
			// embed the Flash Content SWF when all tests are passed
			AC_FL_RunContent('width',iWidth,
							 'height',iHeight,
							 'wmode', 'transparent',
							 'allowScriptAccess','sameDomain',
							 'src', sSwfLocation, 
							 'quality','high',
							 'type', 'application/x-shockwave-flash',
							 'pluginspage','http://www.macromedia.com/go/getflashplayer',
							 'movie',sSwfLocation
			);
			
		} else {  // flash is too old or we can't detect the plugin
			if (sAltImage != undefined)
			{
				if (sAltImage.length > 0)
				{
					var alternateContent = '<img src="' + sAltImage + '" border="0" alt="" width="' + iWidth + '"  />';
					if (bApplyDownloadLink)
					{
						alternateContent = '<a href="http://www.adobe.com/go/getflashplayer" target="_downloadFlash" title="Click here to download and install the Flash Player plugin to use our tool...">' + alternateContent + '</a>';
					}					
					document.write(alternateContent); 
				}
				else
				{
					var alternateContent = '<img src="/images/blank.gif" border="0" alt="" width="' + iWidth + '" />';
					document.write(alternateContent);
				}
			} 
			else 
			{
				var alternateContent = '<img src="/images/blank.gif" border="0" alt="" width="' + iWidth + '" />';
				document.write(alternateContent);
			}
		}
	}

//-->