
	var ns = (navigator.appName=="Netscape" && parseInt(navigator.appVersion)>=4)?true:false
	var ie = (navigator.appName=="Microsoft Internet Explorer" && parseInt(navigator.appVersion)>=4)?true:false
	var ns6 = (document.getElementById&&!document.all)

	var safari = new String(navigator.appVersion);
	var expr=/safari/gi;
	Saf = safari.search(expr);

	var navigsaf = (Saf!=-1)?true:false;

	


function getLayer(name) {
	
  if (ie) {  
    return eval('document.all.' + name);
  }
	if (ns6) {
		return document.getElementById(name);
	}
  return null;
  
}



function setBorder() {		
		
		main1 = getLayer('main');
		main1.style.visibility="visible";
		
		div1 = getLayer('gauche');
		div2 = getLayer('droite');
		div3 = getLayer('menu');
		div4 = getLayer('blancSousMenu');
		div5 = getLayer('texte');
		div6 = getLayer('dernieresRealisations');
		totalDroite = div3.offsetHeight + div4.offsetHeight + div5.offsetHeight;
		
		if(div1.offsetHeight>=totalDroite){
			
			/** contentLeft is longer **/
			div5.style.height=div1.offsetHeight-div4.offsetHeight-div3.offsetHeight-40+"px";
			
		} else if (div1.offsetHeight<div2.offsetHeight) {
			div1.style.height = div2.offsetHeight-84+"px"
			div6.style.height = div1.offsetHeight-150+"px"
			//alert(div1.offsetHeight + " " + totalDroite);
		}
		
		
			
		//return windowWidth;
		
	}
	

	
	



function emptyField() {
	document.rechercheForm.query.value="";
}


function submitform()
{
  document.rechercheForm.submit();
}

