//ANIMATIONS FLASH
function CreateFlash(id, chemin, width, height, vars){	
	document.observe('dom:loaded', function() {  
    //id : id de l'element dans lequel on va ecrire le flash    
    var d = document.getElementById(id);
    var flash = '<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="' + width + '" height="' + height + '">' +
    '<param name="movie" value="' + chemin + '" />' +
    '<param name="quality" value="high" />' +
    '<param name="wmode" value="transparent" />' +
    '<param name="flashvars" value="' + vars + '">' +
    '<embed src="' + chemin + '" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" flashvars="' + vars + '" width="' + width + '" height="' + height + '"></embed></object>'
    d.innerHTML = flash
    });
}

//<![CDATA[
//Tirette
var isUsed = false;
function slideDownUp(tableau, bt) {
    isUsed = true;
    var el = $(tableau);
    if (el.style.display == 'none') {
        bt.className = "tiretteInt up";
        Effect.BlindDown(el, { duration: 0.6 }); return false;
    } else {
        bt.className = "tiretteInt";
        Effect.BlindUp(el, { duration: 0.6 }); return false;
    }
    setTimeOut('isUsed=false', 1000);
}

//]]>
