// JavaScript Document

navHover = function() {
	var lis = document.getElementById("body-header-navigation").getElementsByTagName("LI");
	for (var i=0; i<lis.length; i++) {
		lis[i].onmouseover=function() {
			this.className+=" over";
		}
		lis[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" over\\b"), "");
		}
	}
	var lis2 = document.getElementById("body-header-dashboard-locales").getElementsByTagName("UL");
	var thisLis3 = document.getElementById("login");
	for (var i=0; i<lis2.length; i++) {
		lis2[i].onmouseover=function() {
			this.className+=" over";
			thisLis3.style.display = 'none';
		}
		lis2[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" over\\b"), "");
			thisLis3.style.display = 'block';
		}
	}
	var lis3 = document.getElementById("login");
	for (var i=0; i<lis3.length; i++) {
		lis3[i].onmouseover=function() {
			this.className+=" over";
		}
		lis3[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" over\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", navHover);

