  function alertSize() {
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
  /*
  window.alert( 'Width = ' + myWidth );
  window.alert( 'Height = ' + myHeight );
  */
  return Array(myWidth,myHeight);
}
  function resizeImg(){
    tab=alertSize();
    //alert(tab)
    //calcul de la nouvelle taille de l'image
    tab[0]=(tab[0]<610)?610:tab[0];
    /*
    heightmax=(document.getElementById('blockcentral')==null)?620:1000;
    alert(document.getElementById('content').clientHeight);
    */
    heightmax=document.getElementById('contenaire_global_home').clientHeight+40;
    if(tab[1]<heightmax){
      tab[1]=heightmax;
      coeff=tab[1]/hauteurimg;
    }else{
      coeff=tab[0]/largeurimg;
    }
    /*tab[0]=(tab[0]<902)?902:tab[0];*/
    coeff=tab[0]/largeurimg;
    if(hauteurimg*coeff>tab[1]){
      document.getElementById('imgfond').width=tab[0];
      document.getElementById('imgfond').height=(hauteurimg*coeff);
    }else{
      document.getElementById('imgfond').width=(largeurimg*coeff);
      document.getElementById('imgfond').height=tab[1];
    }
    document.getElementById('fond').style.width=tab[0]+"px";
    document.getElementById('fond').style.height=tab[1]+"px";
  }
  function startimg(){
    resizeImg();
    document.getElementById('fond').style.display="block";
  }
  onload=startimg
  onresize=resizeImg
  
  /*function precharge(uri){
    tmpimg=new Image();
    tmpimg.src=uri;
    return tmpimg;
  }
  pack_on=precharge('img/pack_on.gif');
  pack_off=precharge('img/pack.gif');
  sac_on=precharge('img/sac_on.gif');
  sac_off=precharge('img/sac.gif');
  voile_on=precharge('img/voile_on.gif');
  voile_off=precharge('img/voile.gif');
  wingsuit_on=precharge('img/wingsuit_on.gif');
  wingsuit_off=precharge('img/wingsuit.gif');
  accessoires_on=precharge('img/accessoires_on.gif');
  accessoires_off=precharge('img/accessoires.gif');
  base_on=precharge('img/base_on.gif');
  base_off=precharge('img/base.gif');
  function roll(img,type){
    document.getElementById(img).src=eval(img+"_"+type).src
  }
  var lastindice=null;
  function openclosemenu(indice){
    document.getElementById('lien'+indice).className="open";
    document.getElementById('menu'+indice).style.display="block";
    if(lastindice!=null){
      document.getElementById('lien'+lastindice).className="";
      document.getElementById('menu'+lastindice).style.display="none";
    }
    lastindice=indice;
  }*/
  
  img3=new Image();
  img3.src='images/rubrique/rub_contenu_menu.png';
  img4=new Image();
  img4.src='images/rubrique/rub_etudes_menu.png';
  
function show_on(objet1,objet2){
	//alert("show_on");
	document.getElementById(objet1).style.display = "block";
	document.getElementById(objet2).style.display = "none";
}

function show_off(objet1,objet2){
	//alert("coucou");
	document.getElementById(objet2).style.display = "block";
	document.getElementById(objet1).style.display = "none";
}

function affiche_secu(){
	document.getElementById("restriction").style.display = "block";
	document.getElementById("acces").style.display = "block";
	document.getElementById('restriction').style.visibility="visible";
	document.getElementById('acces').style.visibility="visible";
	if(document.all){
    document.iframe_player.location="http://www.ids-sante.com/player_en/player.html";
  }else{
    document.getElementById('iframe_player').contentWindow.location="http://www.ids-sante.com/player_en/player.html";
  }
}


function cache_secu(){
  if(document.all){
    document.iframe_player.location="rien.html";
  }else{
    document.getElementById('iframe_player').contentWindow.location="rien.html";
  }
  document.getElementById('restriction').style.display="none";
  document.getElementById('acces').style.display="none";
  document.getElementById('restriction').style.visibility="hidden";
  document.getElementById('acces').style.visibility="hidden";
}

function player(){
    affiche_secu();
    startimg();
}

