sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
         if (document.getElementById("sermonLists")) {
            document.getElementById("sermonLists").style.visibility="hidden";
         }
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
			if (document.getElementById("sermonLists")) {
            document.getElementById("sermonLists").style.visibility="visible";
			}
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

$(document).ready(function() {
   $('#content #resources li').hover(function() {
      $(this).addClass('hover');
   }, function() {
      $(this).removeClass('hover');
   });

   $('.book input').hover(function() {
     $(this).attr('src','/_img/bg_add-to-cart_hover.gif');
   }, function() {
     $(this).attr('src','/_img/bg_add-to-cart.gif');
   });

   // $("#upcoming-events > ul").tabs();
   
   $("#products .event:last").addClass('last');
});

document.write('<div id="traildiv"></div>');
