// JavaScript Document
// TROUVE OBJ DANS LA PAGE SELON NAVIGATEUR
function trouvestyle(idf) {
	if (document.getElementById) { return document.getElementById(idf).style; }
	else if (document.all) { return document.all[idf].style; }
	else if (document.layers) { return document.layers[idf]; }
	else { return null; }
}
// MODIFIER LA COULEUR DU STYLE DU LIEN
function setColor(objName,bg) {
	var sty=trouvestyle(objName);
	if (sty) { sty.color = bg; }
}

function MM_openBrWindow(theURL,winName) { 
  window.open(theURL,winName,'scrollbars=no,resizable=yes,width=620,height=550');
}

function langue(lng) {
	var pos=-1;
	var tab=new Array("_gb","_fr","_de");
	var URL=new String(document.location);        
	for (var i=0;i<tab.length;i++) {
		tmp=URL.indexOf(tab[i]);
		if (tmp !=-1) { pos=tmp; } 
	}
	if (pos !=-1) {
		var MonUrl=URL.substr(0,pos);
        MonUrl+=lng+URL.substr(pos+tab[0].length,URL.length);
        document.location=MonUrl;
	}
}

