 $(document).ready(function(){
	//fixer dimensions des blocs selon les contenus et la hauteur de l'ecran.
	/**var screenH = window.height;**/
	var dim = getSize();
	//console.log(dim);
	var dimTexte = dim[1]-400;
	var dimPage = dim[1];
	if(dimTexte < 520) {dimTexte = 520;}
	if(dimPage < 840) {dimPage = 840;}
	//console.log(dimTexte);
   $("#pageInterieur").css("min-height", dimPage+"px");
   //$(".texte").css("min-height", dimTexte+"px");
   //console.log(dim[1]);
   if (dim[1] >900)
   {
		var h = dim[1] - 350;
	   $(".texte").css("height", h+"px");
	   $(".texte").css("padding", "0 30px 0 30px");
	   $(".texte").css("overflow", "auto");
	   
   }
   else
   {
		$(".texte").css("min-height", dimTexte+"px");
   }
 });
 
 
 function getSize() {
  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;
  }
  var dim = new Array(myWidth, myHeight);
  return dim;
}
