function checkBrowser()
{	
	this.ver=navigator.appVersion;
	this.dom=document.getElementById?1:0;
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;
	this.ie55=((this.ver.indexOf("MSIE 5.5")>-1 || this.ie6) && this.dom)?1:0;
	this.ie5=((this.ver.indexOf("MSIE 5")>-1 || this.ie5 || this.ie6) && this.dom)?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
	this.ns4=(document.layers && !this.dom)?1:0;
	this.ie4plus=(this.ie6 || this.ie5 || this.ie4);
	this.ie5plus=(this.ie6 || this.ie5)
	this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns5);
	return this;
}
		
		
function envoyer_article(idArticle) { 
  window.open('envoyer_article.php3?url='+idArticle,'fotransenvoyerarticle','width=400,height=250');
}

	
bw = new checkBrowser();
			
if (!document.getElementById){
document.getElementById = getObjectById;
}
			
function getObjectById(ID){
	var obj;
	if (bw.dom)
		return document.getElementById(ID);
	else if (bw.ie4)
		return document.all(ID);
	else if (bw.ns4)
		return eval('document.' + ID);
}

function showhide(id){
	var elm = document.getElementById(id);
	if(elm.style.display=='block') {
		elm.style.display='none';
	}else{
		elm.style.display='block';
	}
}
function showhidePub(id){
	var elm = document.getElementById('liste_publication_'+id);
	var elm2 = document.getElementById('liste_publi_'+id);
	if(elm.style.display=='block') {
		elm.style.display='none';
	}else{
		elm.style.display='block';
	}
	if(elm2.className=='liste_publi_collapse') {
		elm2.className='liste_publi_expand';
	}else{
		elm2.className='liste_publi_collapse';
	}
}

function openBrWindow(theURL,winName,features) { 
  window.open(theURL,winName,features);
}

function MM_jumpMenu(targ,selObj,restore){ 
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

