function addFavoris(link,title) {
	if ( navigator.appName != 'Microsoft Internet Explorer' ) { 
		window.sidebar.addPanel(title,link,""); 
	}
	else { 
		window.external.AddFavorite(link,title); 
	} 
}

function popup(page,titre,largeur,hauteur,options) {
	var top=(screen.height-hauteur)/2;
	var left=(screen.width-largeur)/2;
	window.open(page,titre,'top='+top+',left='+left+',width='+largeur+',height='+hauteur+','+options);
}

var contenu;
function showBulle(bulle,contenu)
{
	document.getElementById(bulle).innerHTML = "<table cellpadding='6' cellspacing='0' class='info_bulle'><tr><td>"+contenu+"</td></tr></table>";
}
function removeBulle(bulle)
{
	document.getElementById(bulle).innerHTML = '';
}

function pleinEcran(nURL) {
  	var ie4 = ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 ))
	var ns4 = ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 4 ))
	if (ie4) {
		fenetre=window.open(nURL,"","resizable,scrollbars")
		fenetre.moveTo(0,0)
		fenetre.resizeTo(screen.width,(screen.height-25))
	}
	else
		plecran=window.open(nURL, "plecran", "height="+window.screen.availHeight+", width="+(window.screen.availWidth-10)+", top=0, left=0, toolbar=no, status=no, scrollbars=no, location=no, menubar=no, directories=no, resizable=yes");
}

function getNavigatorLang() {
	var ie4 = ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 ))
	var ns4 = ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 4 ))
	if (ie4)
		lang = navigator.userLanguage;
	else
		lang = navigator.language;
	var t_lang = lang.split('-');
	return t_lang[0];
}
