/**
 *	portesdor - frontend js functions
 *
 *
 */

/**
 *	gestion des sous-menus déroulants pour ie<8
 *	src : http://www.siteduzero.com/tutoriel-3-37795-creer-un-menu-horizontal-deroulant-en-css.html
 */
sfHover = function() {
        var sfEls = document.getElementById("menu").getElementsByTagName("LI");
        for (var i=0; i<sfEls.length; i++) {
                sfEls[i].onmouseover=function() {
                        this.className+=" sfhover";
                }
                sfEls[i].onmouseout=function() {
                        this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
                }
        }
}
if (window.attachEvent) window.attachEvent("onload", sfHover);


/*
 *	afficher/masquer les blocs d'informations des profils
 */
function dropdownup(divId) {
	if (document.getElementById(divId).className=='dropup') {
		document.getElementById(divId).className = 'dropdown';
		document.getElementById(divId+'_DDULabel').innerHTML = "";
	} else {
		document.getElementById(divId).className = 'dropup';
		document.getElementById(divId+'_DDULabel').innerHTML = "[ replier le texte ]";
	}
}



