var div1;

function largeur_fenetre()

{

  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
   return window.innerWidth;
  } else if( document.documentElement && document.documentElement.clientWidth) {
    //IE 6+ in 'standards compliant mode'
     return  document.documentElement.clientWidth;
   
  } else if( document.body && document.body.clientWidth  ) {
    //IE 4 compatible
     return document.body.clientWidth;
   
  }
   else return 0;

}



function hauteur_fenetre()

{


  if( typeof( window.innerHeight ) == 'number' ) {
    //Non-IE
       return window.innerHeight;
  } else if( document.documentElement &&  document.documentElement.clientHeight ) {
    //IE 6+ in 'standards compliant mode'
   return document.documentElement.clientHeight
   
  } else if( document.body &&  document.body.clientHeight  ) {
    //IE 4 compatible
    return document.body.clientHeight;
  
  }
 else return 0;


}


function reconstruction2()

{


var marge =0;

var rapport = 0;

var rapport2 = 0;

largeur = largeur_fenetre();


hauteur = hauteur_fenetre();

          document.getElementById(div1).style.width = largeur +'px';
          document.getElementById(div1).style.height = hauteur +'px';
         /* document.body.style.backgroundColor = "black";     */

}


function reconstruction(div0)

{

div1=div0;

  var tm=setTimeout("reconstruction2()",150);
window.onresize = reconstruction2;
   

 }

/*initialiser la surveillance de Netscape*/
if(!window.largeur && window.innerWidth)
  {
   window.onresize = reconstruction;
   largeur = largeur_fenetre();
   hauteur = hauteur_fenetre();
  }