sfHover = function() {
	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);

try{
	document.execCommand('BackgroundImageCache', false, true); 
}
catch(e) {}

function scIsEmail(str) {
	return (str.match(/[\w\S]+\@[\w\S]+\.([\w]+){2}/));
}
function checkContactForm(form){
var name = form['Name'],
email = form['Email'],
comments = form['Comments'];
	if(name){
		if(name.value == ''){
			alert('Your name is a required field.');
			name.focus();
			return false;
		}
	}
	if(email){
		if(!scIsEmail(email.value)){
			alert('Your email is a required field.');
			email.focus();
			return false;
		}
	}
	if(comments){
		if(comments.value == ''){
			alert('Comments is a required field.');
			comments.focus();
			return false;
		}
	}
	return true;
}
