// ********************
// DETECTION NAVIGATEUR
// ********************

var GEN_navnam = "";
var GEN_navver = "";

var nv_detect = navigator.userAgent.toLowerCase();

var nav_opera = (nv_detect.indexOf("opera") != -1);
var nav_ie = (!nav_opera && nv_detect.indexOf("msie") !=-1);
var nav_webtv = (nv_detect.indexOf("webtv") !=-1);
var nav_icab = (nv_detect.indexOf("icab") != -1);
var nav_netscape = (!nav_opera && nv_detect.indexOf("compatible") ==-1);

GEN_navver = navigator.appVersion.charAt(0);
if (nav_opera) { GEN_navver = nv_detect.charAt(nv_detect.indexOf('opera ') + 6) };
if (nav_ie && (nv_detect.indexOf("5.") != -1)){ GEN_navver = 5; }
if (nav_ie && GEN_navver < 3){ GEN_navver = 3; }

if (nav_opera) { GEN_navnam = "opera" };
if (nav_icab) { GEN_navnam = "icab" };
if (nav_ie) { GEN_navnam = "explorer" };
if (nav_webtv) { GEN_navnam = "webtv" };
if (nav_netscape) { GEN_navnam = "netscape" };


// ****
// MENU
// ****

function checkMenuLink(mode,langue,url){

	if(mode==0){

		parent.glm_bas.document.location = url;

	}

	if(mode==1){

		parent.glm_haut.document.location =	"menu_s_" + langue + ".html";
		parent.glm_bas.document.location = url;

	}

}

// ******
// SCROLL
// ******

function setScroll(mode){

	if(mode){

		document.body.scroll = 'auto';

	}
	else{

		document.body.scroll = 'no';

	}

}

// ******
// OBJETS
// ******

function getObjectId(objectID){

	if(GEN_navnam == "explorer"){return document.all[objectID]}
	else{return document.getElementById(objectID)}
}

