// JavaScript Document
sfHover = function() {
	var sfEls = document.getElementById("menu").getElementsByTagName("a");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+="sfhover";
			//alert(this.className);
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp("sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

function rappelerContexte() { 

	for (i=0; i<=window.document.links.length-1;i++)
		{
		if (window.document.links[i].href==window.document.location.href || window.document.location.href.indexOf(window.document.links[i].href)!=-1)
			{
			window.document.links[i].className+='Actif';
			}
		}
	}
function afficher(calque){
        cacherCalque();
        var article=document.getElementById('articles').getElementsByTagName('a');
        for (i=0;i<article.length;i++)
        {
               if(article[i].getAttribute('name')==calque)
               {
				 article[i].parentNode.style.display="block";
                 document.location=document.URL.substring(0,document.URL.indexOf('#')==-1?document.URL.length:document.URL.indexOf('#'))+"#"+calque;
                }
        }

}
function cacherCalque (){
      var article=document.getElementById('articles').getElementsByTagName('div');
      for (i=0;i<article.length;i++)
      {
       if(article[i].className=="article")
       {
        article[i].style.display="none";
       }
      }
}