// JavaScript Document

function embedFlash(filename,height,mapname){

		
	var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
	if(hasRightVersion) {  // if we've detected an acceptable version
		document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="770" height="'+ height +'" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">');
		document.write('<param name="movie" value="../assets_flash/'+ filename +'.swf">');
		document.write('<param name="quality" value="high" />');
		document.write('<embed src="../assets_flash/'+ filename +'.swf" width="770" height="'+ height +'" quality="high" play="true" loop="false" quality="high" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"> </embed>');
		document.write('</object>');
	} else {  // flash is too old or we can't detect the plugin
		document.write('<img src="../assets_flash/'+ filename +'.jpg" width="770" height="'+ height +'" border="0" usemap="#'+ mapname +'" />');
	}


}



		// -->
