// JavaScript Document


// *** menu ***
sfHover = function() {
	var sfEls = document.getElementById("nav_menu").getElementsByTagName("li");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover = function() {
			this.className += " sfhover";
			document.getElementById('menu_bg').className = 'orange';
		}
		sfEls[i].onmouseout = function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
			document.getElementById('menu_bg').className = '';
		}

	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);




window.onload = function () {
	/*
	*/
	var hl = document.getElementById("nav_menu").getElementsByTagName("li");
	for (var i=0; i<hl.length; i++) {
		hl[i].onmouseover = function() {
			document.getElementById('menu_bg').className = 'orange';
		}
		hl[i].onmouseout = function() {
			document.getElementById('menu_bg').className = '';
		}
	}
	if (document.getElementById("change_language")) {
		var hd = document.getElementById("change_language");
		hd.onmouseover = function () { this.className = 'open'; }
		hd.onmouseout = function () { this.className = ''; }
	}

}

