		
		
		
		window.onresize = redim;
		window.onload = init;
		
		function init(){
			effacerMessage();
			redim();
		}
		
		//document.oncontextmenu = redim;
		
		

		function effacerMessage(){
			if(document.getElementById('message'))
				window.setTimeout("effaceMessage()",3000);
		}
		
		
		var opacite = 100;
		
		function effaceMessage(){
			var i = opacite;
			var j = i/100;
			var elem = document.getElementById('message');
			if(opacite >= -5){
				opacite = opacite - 5;
				
				if(document.getElementById){
					if(document.all)
						//elem.style.display = 'none';
						elem.filters.alpha.opacity=i;
					else{
						elem.style.setProperty("-moz-opacity", j, "");
						
					}
					window.setTimeout("effaceMessage()",40);
				}
				
				
			}
			else
				elem.style.display = 'none';
		}
		
		
		function redim(){
			redimElement('menuContent', 122);
			redimElement('panneauCentral', 122);
			redimElement('cadreImageAccueil', 122);
			redimElement('imageAccueil', 200);
		}
		
		function redimElement(element, h){
			document.getElementById(element).style.maxHeight = (window.innerHeight-h);
			document.getElementById(element).style.minHeight = (window.innerHeight-h);
		}
		
		function redimElementWidth(element, w){
			document.getElementById(element).style.width = (window.innerWidth-w);
		}
		
	
		
		
		function changeSize(image, nom, path){
			img = document.getElementById(image);
			
			if(img.style.width != "479px"){
				img.style.width = 479;
				img.src = path+nom;
				img.style.marginBottom = 15;
				img.style.marginLeft = 1;
			}
			else{
				img.style.width = 150;
				img.src = path+""+nom;
				img.style.marginBottom = 2;
				img.style.marginLeft = 2;
			}
		}
	
		function afficherPhoto(nom, path, lar, lon){
			var f = window.open('./'+path+nom, '', 'toolbar=no,status=no,resizable=yes,height='+lon+', width='+lar);
			f.focus();
		}

		function submitForm(){
			document.ident.submit();
		}
