// In this section we set up the content to be placed dynamically on the page.
// Customize movie tags and alternate html content below.

//___________________________________________________________________________________________________________
			/*
			*	usage
			*
			*	embedFlash(URLToSwf, altText, modeSrc, width, height, windowmode);
			*	
			*	URLToSwf	[url]					the URL to the SWF-file, relative to *this* document
																				
			*	mode		redirect|altimage		action to perform if no flash or too old flash is installed
													->	'redirect'		direct redirect to [modeSrc].
													->	'altimage'		show altimage and use [modeSrc] as click url, 
																		the imagefile name is the same as [URLToSwf, but .jpg]
					
			*	modeSrc		[url]					where to go, if no flashplugin or to low version found... fully qualified URL
			
			*	width		[pixels] 				width of the flashmovie in pixels 
			
			*	height		[pixels] 				height of the flashmovie in pixels
			
			*	windowmode	transparent|opaque		rendering mode of the movie
													->	'transparent'	for, ehh, transparent background
													->	'opaque'		normal display (including bg)
			*/
//___________________________________________________________________________________________________________
			
function embedFlash(swfUrl, altText, modeSrc, w, h,wmode) {	
	mode='altimage';
wmode='opaque';
useRedirect=false;
	if (!useRedirect) {    // if dynamic embedding is turned on
		if(hasRightVersion) {  // if we've detected an acceptable version
		
			
			var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
			+ 'width="'+w+'" height="'+h+'"'
			+ 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
			+ '<param name="MOVIE" value="'+swfUrl+'">'
			+ '<param name="PLAY" value="true">'
			+ '<param name="LOOP" value="false">'
			+ '<param name="QUALITY" value="high">'
			+ '<param name="MENU" value="false">'
			+ '<param name="WMODE" value="'+wmode+'">'
			+ '<embed src="'+swfUrl+'"'
			+ 'width="'+w+'" height="'+h+'"'
			+ 'play="true"'
			+ 'loop="false"'
			+ 'quality="high"'
			+ 'menu="false"'
			+ 'wmode="'+wmode+'"'
			+ 'type="application/x-shockwave-flash"'
			+ 'pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">'
			+ '<\/embed>'
			+ '<\/object>';

			document.write(oeTags);
//alert(oeTags);
		} else { 
			if(mode == 'redirect') {
				document.location.href = modeSrc;
			}
			else if(mode == 'altimage') {
					var oeTags = altText;
document.write(oeTags);

			}
		}
	}
}
