function preload()
{
        if (document.getElementById)
        {
                document.getElementById('preloadIMG').style.visibility='hidden';
				document.getElementById('preloader').style.visibility='hidden';
        }
       
        else
        {
                if (document.layers)
                {       
                        document.preloadIMG.visibility = 'hidden';
						document.getElementById('preloader').style.visibility='hidden';
				}
                else
                {
                        document.all.preloadIMG.style.visibility = 'hidden';
						document.getElementById('preloader').style.visibility='hidden';
                }
        }
}

// GÉNÉRER LE CSS POUR LE PRELOADER
var myCSS;
myCSS = "<style type=\"text/css\">";

myCSS += "html, body { height:auto; margin:0px; padding:0px;}";

myCSS += "div#preloader {";
myCSS += "display:block;";
myCSS += "}";

myCSS += "</style>";

// ÉCRITURE DES CSS
window.document.write(myCSS);

// ÉXÉCUTION
window.onload = function() { preload(); }