function integre_flash_fullscreen(pdiv,url_flash,player,express,largeur,hauteur,flash) {
  

  var flashvars = flash;
    var params = {
      menu: "true",
      scale:"noscale",
      allowscriptaccess:"always",
      allowfullscreen:"true"
    };
    
    var attributs = {
      id: "content",
      name: "content"
    };
    //alert(flashvars.jeu);
    swfobject.embedSWF(url_flash, "content", "100%", "100%", "9.0.0","/js/expressinstall.swf", flashvars, params,attributs);


    var resizeTimer = null;
    $(window).bind('resize', function() {
        if (resizeTimer) clearTimeout(resizeTimer);
        resizeTimer = setTimeout(resizeFlash, 10);
    });
   // resizeFlash();
}


function redirige1() {
  var partie = window.location.hash.split('/')[1];
  window.location = 'fr/'+partie+'.html';
}
function resizeFlash() {
      
      var hauteur=document.body.clientHeight;
      var largeur=document.body.clientWidth;
      hauteur=(hauteur<660)?"660px":"100%";
      largeur=(largeur<1000)?"1000px":"100%";
    //  $("#content").css("height",hauteur);
    //  $("#content").css("width",largeur);
      
}

function changeCouleurFond(coul) {
  //$('body').css('backgroundColor','#'+coul);
  $('#content').css('backgroundColor','#'+coul);
}


function openPage(URL, TITLE){  
  pW = 500;
  pH = 600;
  var pop = window.open( URL, TITLE,'scrollbars=yes,addressbar=no','width='+pW+',height='+pH);
  pop.resizeTo(pW, pH);
}


function doDebug(str) {
    $('body').append("<p>"+str+"</p>");
}
