//Utilisé pour IE car il ne gère pas les :hover sur autre chose que des <a>

startNav = function() {
	if (isIE5 || isIE55 || isIE6) {
		navRoot = document.getElementById("DivNavigationPrincipale");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName.toLowerCase()=="li") {
				node.onmouseover=function() {
					this.className+=" lihoverIE";
				}
				node.onmouseout=function() {
				  	this.className=this.className.replace(" lihoverIE", "");
				}
			}
		}
	 }
	 applyTargetToExtLinks();
}

function applyTargetToExtLinks() {
	var o = document.getElementsByTagName("A");
	for ( var i in o ) {
		if ( o[i].href ) {
			href = o[i].href;
			if ( ( o[i].href.indexOf ( window.location.hostname ) == -1 ) && ( o[i].href.indexOf ( "javascript" ) == -1 ) ){
				o[i].target = "_blank";
			}
		}
	}
}

window.onload=startNav;


