// =============================================================================

// =============================================================================
// embebFlash() function:
//
// Use this function to decide whether the browser should display a Flash
// movie or if it should display HTML content.  
//
// ** YOU MUST CALL THE detectFlash() ABOVE BEFORE CALLING THIS FUNCTION. **
//
// INPUTS:
//			flashFile - the full path to the SWF file
//			flashFileWidth - the width of the SWF file
//			flashFileHeight - the height of the SWF file
//
// OUTPUTS:
//			If the user has a Flash Plugin within their browser, they will 
//			see the Flash movie.  If they don't, they will see whatever alternate
//			HTML is provided in the 'alternateContent' parameter.
//
// =============================================================================
function embedFlash(flashFile, flashFileWidth, flashFileHeight)
{
	// if we've detected an acceptable version
		var oeTags = '<OBJECT STYLE="z-index:1;" CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
		+ ' WIDTH="' + flashFileWidth + '" HEIGHT="' + flashFileHeight + '" '
		+ ' CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
		+ '<PARAM NAME="MOVIE" VALUE="' + flashFile + '">'
		+ '<PARAM NAME="PLAY" VALUE="true">'
		+ '<PARAM NAME="LOOP" VALUE="false">'
		+ '<PARAM NAME="QUALITY" VALUE="best">'
		+ '<PARAM NAME="MENU" VALUE="false">'
		+ '<PARAM NAME="BASE" VALUE="flash">'
		+ '<PARAM NAME="WMODE" VALUE="transparent">'
		+ '<EMBED SRC="' + flashFile + '"'
		+ ' WIDTH="' + flashFileWidth + '" HEIGHT="' + flashFileHeight + '" '
		+ ' PLAY="true"'
		+ ' LOOP="false"'
		+ ' QUALITY="best"'
		+ ' MENU="false"'
		+ ' WMODE="transparent"'
		+ ' TYPE="application/x-shockwave-flash"'
		+ ' BASE="flash"'
		+ ' PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">'
		+ '<\/EMBED>'
		+ '<\/OBJECT>';

		document.write(oeTags);   // embed the flash movie
}