var NomNav, Hauteur, Largeur;
NomNav=navigator.appName;
Hauteur=screen.height;
Largeur=screen.width;

if (top.frames.length!=0) top.location=self.document.location;

/*
function VersionNavigateur(Netscape, Explorer){
	if ((navigator.appVersion.substring(0,3) >= Netscape && navigator.appName == 'Netscape') || (navigator.appVersion.substring(0,3) >= Explorer && navigator.appName.substring(0,9) == 'Microsoft')) 
	return true;
		else return false;
} // VersionNavigateur
*/

function popUp(strURL,strType,strWidth,strHeight,nomPop){
	var strOptions="";
	if (strType=="console") strOptions="scrollbars,resizable,resizable,height="+strHeight+",width="+strWidth;
	if (strType=="fixed") strOptions="status,height="+strHeight+",width="+strWidth;
	if (strType=="elastic") strOptions="toolbar,menubar,scrollbars,resizable,location,height="+strHeight+",width="+strWidth;
	window.open(strURL, nomPop, strOptions);
} // popUp


// Categories (hover)
window.onload=montre;
function montre(id){
	var MaxCat=40;
	var d = document.getElementById(id);
	for(var i = 1; i<=MaxCat; i++){
		if (document.getElementById('smenu'+i)){document.getElementById('smenu'+i).style.display='none';}
	}
	if (d){d.style.display='block';}
}

// Nettoie le champ de recherche
function clean(){
	if(document.getElementById('q').value == 'rechercher'){
		document.getElementById('q').value = '';
	} // if
} // clean
