// JavaScript Document
function RunFoo(swf, hauteur, largeur, couleur, nom, mavariable) {
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=\"wmode\" value=\"transparent\" /><param name=\"bgcolor\" value=\""+couleur+"\" /><param name=\"FlashVars\" value=\""+mavariable+"\" /><embed src=\""+swf+"\" FlashVars=\""+mavariable+"\" quality=\"high\" wmode=\"transparent\" 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");
}
function visi(thingId)
{
var targetElement;
targetElement = document.getElementById(thingId) ;
if (targetElement.style.display == "none")
{
targetElement.style.display = "" ;
targetElement.style.top = document.body.scrollTop+20; 
} else {
targetElement.style.display = "none" ;
}
}
//-->
<!--
function montre(id) {
if (document.getElementById) {
document.getElementById(id).style.visibility="";
} else if (document.all) {
document.all[id].style.visibility="";
} else if (document.layers) {
document.layers[id].visibility="";
}
}

function cache(id) {
if (document.getElementById) {
document.getElementById(id).style.visibility="hidden";
} else if (document.all) {
document.all[id].style.visibility="hidden";
} else if (document.layers) {
document.layers[id].visibility="hidden";
}
}
function rzip(fichier,format,pays) {
mag=open('lirezip.php?fc='+fichier+'&ft='+format+'&py='+pays,'prmess','width=400,height=400,status=no,scrollbars=YES,menubar=no,toolbar=no,location=no');
}


function Cmapp(carte, langue, zone)
{
var layout = "#E7E2C2"; // Couleur de fond de calque
var targetElement;
targetElement = document.getElementById('Viewer') ;
if (targetElement.style.display == "none")
{
targetElement.style.display = "" ;
 
	var content ='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="950" height="600" id="c_gal" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="allowFullScreen" value="true" />';
	content +='<param name="movie" value="chargeur.swf" /><param name="menu" value="false" /><param name="flashvars" value="mapName='+carte+'&zone='+zone+'"><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="bgcolor" value="'+layout+'" />';
	content +='<embed src="chargeur.swf" width="950" height="600" align="middle" menu="false" flashvars="mapName='+carte+'&zone='+zone+'" quality="high" wmode="transparent" bgcolor="'+layout+'" name="c_gal" allowScriptAccess="sameDomain" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object>';

	 document.getElementById('Viewer').innerHTML=content;
	 targetElement.style.top = document.body.scrollTop; 
	
} else {
targetElement.style.display = "none" ;
}
}


<!--  Zip Content   --> 
function Zipped(ido){
var xhr=null;
if(window.XMLHttpRequest){
	var xhr = new XMLHttpRequest();} 
else if(window.ActiveXObject){
	var xhr = new ActiveXObject("Microsoft.XMLHTTP");}
else {alert("Votre navigateur n'est pas compatible avec AJAX");}

xhr.onreadystatechange = function(){
	visi('Rzip');
	var divAlert = document.getElementById("Rzip");  
<!-- je recupere le contenue de updChat.php et l'affiche dans ma div pour verifier le resultat-->
		divAlert.innerHTML = xhr.responseText;
}
xhr.open("POST", "lirezip.php", true); 
xhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
xhr.send('f='+ido);
}


