var timeout; //ne pas toucher, c'est pour d飬arer la variable
var delai = 650; // en milliseconde

function style()
{
//ajustement du style du menu et disparition de la scrollbar en fontion du navigateur
if(navigator.appName=='Microsoft Internet Explorer') {
	document.write('<link rel="stylesheet" href="../../css/ielanguestyle.css" type="text/css">');
   if (document.body.offsetWidth > 990 && document.body.offsetHeight > 630) {
	document.write('<body onResize="location.reload()" leftmargin="0" marginwidth="0" marginheight="0" topmargin="0" scroll="no">');
 }
} else {
	document.write('<link rel="stylesheet" href="../../css/netlanguestyle.css" type="text/css">');
}
}

//Pour ajouter aux favoris
function favoris() 
{ 
if (document.all) 
{ 
window.external.AddFavorite(location.href, document.title); 
} 
else 
{ 
alert(signets) 
} 
} 

function MontrerMenu(strMenu) {
		AnnulerCacher();
		CacherMenus(strMenu);
		if (document.getElementById(strMenu))//undefined
			with (document.getElementById(strMenu).style) {
				visibility="visible";
				display="block";
			}
}
function CacherDelai(nomMenu) {
		timeout = setTimeout('CacherMenus("'+nomMenu+'")',delai);
}
function AnnulerCacher() {
		clearTimeout(timeout);
}
function CacherMenus(nomMenu) {
		with(document.getElementById(nomMenu).style) {
			visibility="hidden";	
			display="none";
		}
}
function trimespaces(nomMenu) {
	//Contourne un bug d'IE5/win... il ne capte pas bien les css pour les <li>, donc on les vire !
		with(document.getElementById(nomMenu))
		innerHTML = innerHTML.replace(/<LI>|<\/LI>/g,"");
}

function openWin(URL,w,h,resize,scroll)
{
lAttributes = '';
lAttributes += 'toolbar=1,';
lAttributes += 'Location=1,';
lAttributes += 'directory=0,';
lAttributes += 'status=1,';
lAttributes += 'menubar=0,';
lAttributes += 'scrollbars='+scroll+',';
lAttributes += 'resizable='+resize+',';
lAttributes += 'width='+w+',';
lAttributes += 'height='+h+'';
winId = window.open(URL,"",lAttributes);
}

function closeWin()
{
	this.window.close();

}

function fctTailleZoneContenu(typePage) {
	if(typePage==0) {
		document.getElementById('contenu2').style.height=screen.height-327;
		document.getElementById('zone_contenu').style.height=screen.height-327;
	}
	
	if(typePage==1)  {
		document.getElementById('zone_menu').style.height=screen.height-360;
		document.getElementById('calque_menu').style.height=screen.height-360;
		document.getElementById('zone_inter').style.height=screen.height-360;
		document.getElementById('zone_contenu_menu').style.height=screen.height-360;
		document.getElementById('calque_contenu').style.height=screen.height-360;
		document.getElementById('zone_image').style.height=screen.height-360;
	}

	if(typePage==2) {
		document.getElementById('zone_contenu_menu').style.height=screen.height-360;
		document.getElementById('calque_contenu_sans_menu').style.height=screen.height-360;
		document.getElementById('zone_image').style.height=screen.height-360;	
	}

}