if (document.body) {  		
    var larg_site = (document.body.clientWidth)
    var haut_site = (document.body.clientHeight)
  }
  else {
    var larg_site = (window.innerWidth)
    var haut_site = (window.innerHeight)
  } 
  if ( haut_site < 940)
    haut_site = 940; 
  if ( larg_site < 983)
    larg_site = 983;
    
  
  $('footer').style.top=(haut_site-106)+"px";
  $('bloc').style.height=(haut_site-106-194)+"px";
  $('imgbloc').style.height=(haut_site-106-194)+"px";
  $('srcbloc1').style.width=larg_site+"px";
  $('srcbloc1').style.height=(haut_site-106-194)+"px";
  if ( $('srcbloc2') ) {
    $('srcbloc2').style.width=larg_site+"px";
    $('srcbloc2').style.height=(haut_site-106-194)+"px";
  }
  
  if ( $('background') ) {
    $('background').style.width=larg_site+"px";
    $('background').style.height=(haut_site-106-194)+"px";
  }
  
  
  $('inbloc').style.height=(haut_site-106-194)+"px";
  
  if ( $('box_listing') ) {
    $('box_listing').style.height=(haut_site-106-194)+"px";
  }
  
  if ( $('bloc_redac') ) {
    var topdiv = parseInt(document.getElementById('bloc_redac').offsetTop);
    $('bmenu').style.top = ((topdiv+194+194)/2)-194-22+"px";
    $('menu1').style.top = ((topdiv+194+194)/2)-194-22+"px";
  }
  
  if ( $('bloc_estimation') ) {
    var topdiv = parseInt(document.getElementById('bloc_estimation').offsetTop);
    $('bmenu').style.top = ((topdiv+194+194)/2)-194-22+"px";
    $('menu1').style.top = ((topdiv+194+194)/2)-194-22+"px";
  }
  
  if ( $('bloc_contact') ) {
    var topdiv = parseInt(document.getElementById('bloc_contact').offsetTop);
    $('bmenu').style.top = ((topdiv+194+194)/2)-194-22+"px";
    $('menu1').style.top = ((topdiv+194+194)/2)-194-22+"px";
  }
  
  if ( $('bloc_selection') ) {
    var topdiv = parseInt(document.getElementById('bloc_selection').offsetTop);
    $('bmenu').style.top = ((topdiv+194+194)/2)-194-22+"px";
    $('menu1').style.top = ((topdiv+194+194)/2)-194-22+"px";
  }
  
  if ( $('canadaprovinces') ) {
    var topdiv = parseInt(document.getElementById('canadaprovinces').offsetTop);
    $('bmenu').style.top = ((topdiv+194+194)/2)-194-22+"px";
    $('menu1').style.top = ((topdiv+194+194)/2)-194-22+"px";
  }
  
  if ( $('bloc_detail') ) {
    var topdiv = parseInt(document.getElementById('bloc_detail').offsetTop);
    $('bmenu').style.top = ((topdiv+194+194)/2)-194-22+"px";
    $('menu1').style.top = ((topdiv+194+194)/2)-194-22+"px";
  } 
  
  //version 2 animation
  if ( $('imgbloc2') ) {
    $('imgbloc2').style.height=(haut_site-106-194)+"px"; 
  }
  if ( $('imgbloc3') ) {
    $('imgbloc3').style.height=(haut_site-106-194)+"px"; 
  }
  if ( $('imgbloc4') ) {
    $('imgbloc4').style.height=(haut_site-106-194)+"px"; 
  }
  if ( $('imgbloc5') ) {
    $('imgbloc5').style.height=(haut_site-106-194)+"px"; 
  }
  if ( $('imgbloc6') ) {
    $('imgbloc6').style.height=(haut_site-106-194)+"px"; 
  }
