function LoginFormJS(d) {
	if(d.length < 1) { return; }
	if(document.getElementById(d).style.display == "none") { 
		document.getElementById(d).style.display = "block";
		document.getElementById('sub_loginbutton').style.background = "#ccc";
	}
	else { document.getElementById(d).style.display = "none";
				document.getElementById('sub_loginbutton').style.background = "#47aa42"; }
}	
		
sfHover = function() {
    if (document.getElementById("nav")) {
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"), "");
	}
}
}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

function LoginFormJS(d) {
	if(d.length < 1) { return; }
	if(document.getElementById(d).style.display == "none") { 
		document.getElementById(d).style.display = "block";
		document.getElementById('sub_loginbutton').style.background = "#ccc";
	}
	else { document.getElementById(d).style.display = "none";
		document.getElementById('sub_loginbutton').style.background = "#47aa42"; }			
}

try {
  document.execCommand('BackgroundImageCache', false, true);
} 

catch(e) {}

