function pop()
{
var myAs = document.getElementsByTagName('a');
    for (var a = 0; a < myAs.length; ++a) {
	// Si le lien a une classe de type pop
        if (myAs[a].className == 'pop') {
	// on extrait l'id de la popup à partir du href
            var pop = document.getElementById(myAs[a].href.substring(myAs[a].href.lastIndexOf('#') + 1));
	// si la popup existe on l'affiche (visibility hidden)
            if (pop) {       
                pop.style.visibility = 'hidden';
                myAs[a].onmouseover = function() {
                    thisPopup = document.getElementById(this.href.substring(this.href.lastIndexOf('#') + 1))
                    thisPopup.style.visibility = 'visible';
                    return false;
                };                
				myAs[a].onmouseout = function() {
                    thisPopup = document.getElementById(this.href.substring(this.href.lastIndexOf('#') + 1))
                    thisPopup.style.visibility = 'hidden';
                    return false;
                };        
            }
        }
		
    }
}
addToStart(pop);
