document.write('<style>');
document.write("#shadow{ filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/img/shadow_cote.png', sizingMethod='scale');}");
document.write("#shadow2{filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0);}");
document.write('</style>');

function shadowback(){
	hauteur=getLayer('contenant');
	back1=getLayer('shadow');
	back2=getLayer('shadow2');
	imglogo=getLayer('logo');
	bas=getLayer('footer');
	haut=getHeight();
	
	if(haut>=hauteur.offsetHeight+imglogo.offsetHeight){
		hauteur.style.height=haut-(imglogo.offsetHeight+20)+"px";
	}
	
	back1.style.height=hauteur.offsetHeight+20+"px";
	back2.style.height=hauteur.offsetHeight+20+"px";
	bas.style.visibility="visible";
}

function shadowback2(){
	hauteur=getLayer('contenant');
	back1=getLayer('shadow');
	back2=getLayer('shadow2');
	imglogo=getLayer('logo');
	bas=getLayer('footer');
	menu=getLayer('menucote');
	texte=getLayer('textecote');
	haut=getHeight();
	
	if(haut>=hauteur.offsetHeight+imglogo.offsetHeight){
		hauteur.style.height=haut-(imglogo.offsetHeight+20)+"px";	
		back1.style.height=hauteur.offsetHeight+20+"px";
		back2.style.height=hauteur.offsetHeight+20+"px";
	}
	else{
		hauteur.style.height=hauteur.offsetHeight+20 +"px";
		if(ie){
			back1.style.height=hauteur.offsetHeight+20+"px";
		back2.style.height=hauteur.offsetHeight+20+"px";
		}
		else{
			back1.style.height=hauteur.offsetHeight+31+"px";
			back2.style.height=hauteur.offsetHeight+31+"px";
		}
	}
	
	

	menu.style.height=hauteur.offsetHeight-70+"px";
	bas.style.visibility="visible";
}


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 getHeight(){
	if(ns6) haut=window.innerHeight;
	else if (ie  && navigator.appVersion.indexOf("Macintosh") != -1) haut =document.body.offsetHeight-15;
	else haut = document.documentElement.clientHeight;
	
	return haut;
}