var url = window.location.href;
var str = navigator.userAgent;

if(str.indexOf("MSIE") == -1) {
	// tout sauf IE
	var wmode1 = '<param name="wmode" value="transparent" />';
	var wmode2 = ' wmode="transparent" ';	
	
	if(str.indexOf("Firefox/1.") != -1) {
		//Firefox/1. seulement
		wmode1 = '';
		wmode2 = '';
	}
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="992" height="140" id="menu_bottom" align="middle">');
	document.write('	<param name="allowScriptAccess" value="sameDomain" />');
	document.write('	<param name="movie" value="swf/menu_bottom.swf?mon_url='+url+'" />'+wmode1+'<param name="quality" value="high" /><param name="wmode" value="transparent" /><embed src="swf/menu_bottom.swf?mon_url='+url+'" quality="high" width="992" height="140" '+wmode2+' name="menu_bottom"  align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
}else{
	//IE seuiement
	document.write('<div id="flashcontent2">');
	document.write('		<strong>You need to upgrade your Flash Player</strong>This is replaced by the Flash content. Place your alternate content here and users without the Flash plugin or with Javascript turned off will see this. Content here allows you to leave out <code>noscript</code> tags. Include a link to <a href="swfobject.html?detectflash=false">bypass the detection</a> if you wish.');
	document.write('</div>');		
	 var so2 = new SWFObject("swf/menu_bottom.swf?mon_url="+url, "menu", "992", "140", "7", "#f0ce24");
	 so2.addParam("quality", "high");
	 so2.addParam("wmode", "transparent");
	 so2.write("flashcontent2");
}
