//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
    });
}

function slideDownUp(element) {
  isUsed = true;
  var el = $(element);
  if (el.style.display == 'none') {
    Effect.BlindDown(el,{duration:0.3}); return false;
  } else {
    Effect.BlindUp(el,{duration:0.3}); return false;
  }
  setTimeOut('isUsed=false', 1000);
}

///// Effet d'apparition / disparition
function bascule(c) {
	Effect.toggle('detail'+c,'blind',{duration:0.3});return false;
}
