function SetFlash(type)
{
	if (zXmlHttp.isSupported())
    {
		var oXmlHttp = zXmlHttp.createRequest();
	    
	    oXmlHttp.open("get", "/tools/flash.aspx?type=" + type + "&rd=" + aleatoire(10000), true);
		oXmlHttp.onreadystatechange = function () {
			if (oXmlHttp.readyState == 4) {
				if (oXmlHttp.status == 200) {
					if (type == 1)
					{
						var divFlash = document.getElementById("divFlashHome");
						divFlash.innerHTML = oXmlHttp.responseText;
					}
					else
					{
						var divAnnonce = document.getElementById("divAnnonce");
						divAnnonce.innerHTML = oXmlHttp.responseText;
					}
				}
			}             
		};
		oXmlHttp.send(null);
    }
    
}


function aleatoire(N) {
      return (Math.floor((N)*Math.random()+1));
}