var navigateur = '';
 var largMenu = 251;
//FUNCTION Trouve largeur de fenetre
function getWindowWidth() {
   var windowWidth = 0;
   if (typeof(window.innerWidth) == 'number') {
        windowWidth = window.innerWidth;
   }else{
        if (document.body && document.body.clientHeight) {
            windowWidth = document.body.clientWidth;
        } else {
          if (document.documentElement && document.documentElement.clientWidth) {
            windowWidth = document.documentElement.clientWidth;
          }
        }
   }
   return windowWidth;
}

//FUNCTION Trouve largeur de fenetre
function getWindowHeight() {
   var windowHeight = 0;
   if (typeof(window.innerHeight) == 'number') {
        windowHeight = window.innerHeight;
   }else{
        if (document.body && document.body.clientHeight) {
            windowHeight = document.body.clientHeight;
        } else {
          if (document.documentElement && document.documentElement.clientHeight) {
            windowHeight = document.documentElement.clientHeight;
          }
        }
   }
   return windowHeight;
}

$(document).ready(function() {
  
function resizeAll() {
  
	if(navigator.userAgent.indexOf("MSIE 6") != -1){
    
		navigateur = 'IE6';
		
		var nw = getWindowWidth() - largMenu - 3 ;
		var nh = getWindowHeight() - 3;
		
		document.getElementById("main").style.width = nw + 'px' ;
		document.getElementById("header_upper").style.width = nw + 'px' ;
		document.getElementById("header_lower").style.width = nw + 'px' ;
		document.getElementById("main").style.height = nh + 'px' ;
		var posxL = nw - 2;
		document.getElementById("main_content").style.width = posxL + 'px' ;
		var posyL = nh - 96;
		document.getElementById("main_content").style.height = posyL + 'px' ;

	}
  
	if(navigator.userAgent.indexOf("Firefox") != -1){
		navigateur = 'FIREFOX';
	}
	if(document.getElementById("containminiphotos")){
		var corr_w = document.getElementById("main_content").offsetWidth;
		document.getElementById("containminiphotos").style.width = parseInt(parseInt(corr_w) - 380) + 'px' ;
	}
	resizeImg();

}

resizeAll();

window.onresize = resizeAll;

});




