function RunFoo(swf, hauteur, largeur, couleur, transparent, variable, nom, version) {
	
	document.write("<object width=\""+hauteur+"\" height=\""+largeur+"\" id=\""+nom+"\">\n");
	if(transparent=="transparent") {
		document.write("<param name=\"WMode\" value=\"Transparent\" />");
		wmode =  "wmode=\"Transparent\"";
		
	}
	else {
		 wmode="";
	}
	
	if(variable!="") {
		document.write("<param name=\"FlashVars\" value=\""+variable+"\" />");
		thevariable = "?"+variable;
		
	}
	else {
		thevariable="";
	}
	
	
	document.write("<param name=\"movie\" value=\""+swf+"\" />");
	document.write("<param name=\"allowFullScreen\" value=\"true\" />");
	document.write("<param name=\"allowscriptaccess\" value=\"always\" />");
	document.write("<param name=\"bgcolor\" value=\""+couleur+"\" />");
	document.write("<embed "+wmode+" src=\""+swf+thevariable+"\" allowscriptaccess=\"always\" allowfullscreen=\"true\"  bgcolor=\""+couleur+"\" width=\""+hauteur+"\" height=\""+largeur+"\" type=\"application/x-shockwave-flash\" />\n");
	document.write("</object>\n");
	
}