var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;

// Handle all the the FSCommand messages in a Flash movie
function menuRST_DoFSCommand(command, args) {
 	if(command == "status"){
		self.status = location.hostname+args
	}
}
// Hook for Internet Explorer 
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && 
	navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
	document.write('<SCRIPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('Sub menuRST_FSCommand(ByVal command, ByVal args)\n');
	document.write('  call menuRST_DoFSCommand(command, args)\n');
	document.write('end sub\n');
	document.write('</SCRIPT\> \n');
}

function afficheMenuSWF(swfSource, xmlSource, currentItem){
   	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="740" height="45" id="menuRST" align="">');
	document.write('<param name=movie value='+swfSource+'>');
	document.write('<param name=quality value=high>');
	document.write('<param name=bgcolor value=#ffffff>');
	document.write('<PARAM NAME=wmode VALUE=transparent> ');
	document.write('<param name=FlashVars value="currentItem='+currentItem+'&xmlPath='+ xmlSource +'">');
	document.write('<embed src="'+swfSource+'" quality=high bgcolor=#ffffff  width="740" height="45" name="menuRST" align="" flashvars="currentItem='+currentItem+'&xmlPath='+xmlSource+'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="transparent"></EMBED>');
    document.write('</object>');
}
