function montrer(idDiv) {
	var div = document.getElementById(idDiv);
	if(div)
	{
			div.style.display = 'block';		
	}
}
function cacher(idDiv) {
	var div = document.getElementById(idDiv);
	if(div)
	{
			div.style.display = 'none';		
	}
}
function RunFoo(swf, hauteur, largeur, couleur, nom) {
	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=\""+hauteur+"\" height=\""+largeur+"\" id=\""+nom+"\" align=\"middle\">\n");
	document.write("<param name=\"allowScriptAccess\" value=\"sameDomain\" />\n");
	document.write("<param name=\"movie\" value=\""+swf+"\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\""+couleur+"\" /><embed src=\""+swf+"\" quality=\"high\" bgcolor=\""+couleur+"\" width=\""+hauteur+"\" height=\""+largeur+"\" name=\""+nom+"\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />\n");
	document.write("</object>\n");
}



// pour un flash en background
function RunFooBack(swf,largeur, hauteur, couleur, nom) {
	document.write('<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
	document.write('WIDTH="'+largeur+'" HEIGHT="'+hauteur+'"');
	document.write('CODEBASE="http://active.macromedia.com/flash5/cabs/swflash.cab#version=5,0,0,0">');
	document.write('<PARAM NAME="MOVIE" VALUE="'+swf+'">');
	document.write('<PARAM NAME="PLAY" VALUE="true">');
	document.write('<PARAM NAME="LOOP" VALUE="true">');
	document.write('<PARAM NAME="WMODE" VALUE="Transparent">');
	document.write('<PARAM NAME="QUALITY" VALUE="high">');
	document.write('<EMBED SRC="'+swf+'" WIDTH="'+largeur+'" HEIGHT="'+hauteur+'" PLAY="true" LOOP="true" WMODE="opaque" QUALITY="high"');
	document.write('PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
	document.write('</EMBED>');
	document.write('</OBJECT>');
}

function RunFooBackTrans(swf,largeur, hauteur ) {
	document.write('<OBJECT codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0 height='+hauteur+' width='+largeur+' classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000>');
	document.write(' <PARAM NAME="_cx" VALUE="11218">');
	document.write('<PARAM NAME="_cy" VALUE="17568">');
	document.write('<PARAM NAME="FlashVars" VALUE="">');
	document.write('<PARAM NAME="Movie" VALUE="'+swf+'">');
	document.write('<PARAM NAME="Src" VALUE="'+swf+'">');
	document.write('<PARAM NAME="WMode" VALUE="Transparent">');
	document.write('<PARAM NAME="Play" VALUE="0">');
	document.write('<PARAM NAME="Loop" VALUE="-1">');
	document.write('<PARAM NAME="Quality" VALUE="High">');
	document.write('<PARAM NAME="SAlign" VALUE="">');
	document.write('<PARAM NAME="Menu" VALUE="-1">');
	document.write('<PARAM NAME="Base" VALUE="">');
	document.write('<PARAM NAME="AllowScriptAccess" VALUE="">');
	document.write('<PARAM NAME="Scale" VALUE="ShowAll">');
	document.write('<PARAM NAME="DeviceFont" VALUE="0">');
	document.write('<PARAM NAME="EmbedMovie" VALUE="0">');
	document.write('<PARAM NAME="BGColor" VALUE="">');
	document.write('<PARAM NAME="SWRemote" VALUE="">');
	document.write('<PARAM NAME="MovieData" VALUE="">');
	document.write('<PARAM NAME="SeamlessTabbing" VALUE="1">');
	document.write('<PARAM NAME="Profile" VALUE="0">');
	document.write('<PARAM NAME="ProfileAddress" VALUE="">');
	document.write('<PARAM NAME="ProfilePort" VALUE="0">');
	document.write('<PARAM NAME="AllowNetworking" VALUE="all">');
	document.write('<PARAM NAME="AllowFullScreen" VALUE="false">');
	document.write('<embed src="'+swf+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+largeur+'" height="'+hauteur+'" wmode="transparent"></embed></OBJECT>');
}
