if (window.attachEvent) { window.attachEvent("onload", sfHover); }

function sfHover() {
	var sfEls = document.getElementById("nav").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"), ""); }
	}
	var sfEls = document.getElementById("nav-sub").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"), ""); }
	}
}

function focusLogin(x) {
	if (x.value == "Login") { x.value = ""; }
	return;
}
function blurLogin(x) {
	if (x.value == "") { x.value = "Login"; }
	return;
}
function focusPassword(x) {
	if (x.value == "Password") {
		document.getElementById("lameie").innerHTML = '<input type="password" name="password" id="password" value="" onfocus="focusPassword(this)" onblur="blurPassword(this)" />';
		document.getElementById("password").focus();
	}
	return;
}
function blurPassword(x) {
	if (x.value == "") {
		document.getElementById("lameie").innerHTML = '<input type="text" name="password" id="password" value="Password" onfocus="focusPassword(this)" onblur="blurPassword(this)" />';
		
	}
	return;
}