//preloads my menu images
var arr1 = new Array ('menu_home.gif','menu_home_over.gif','menu_about.gif','menu_about_over.gif','menu_video.gif','menu_video_over.gif','menu_testimonials.gif','menu_testimonials_over.gif','menu_weather.gif','menu_weather_over.gif','menu_contact.gif','menu_contact_over.gif');
for(i=0;i<arr1.length;i++){
	this["var"+i] = new Image();
	this["var"+i].src = "images/" + arr1[i];
}
//assigns a class to all the li's in the submenu
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);