﻿ $(document).ready(function(){
                       
    $("#aspnetForm").validate({
        errorLabelContainer: $("#aspnetForm div.error")
    });
    
    $('a[@rel*=lightbox]').lightBox();
    
	$("#nav li").hover(
	    function(){ $("ul", this).fadeIn("fast"); }, 
	    function() { } 
    );
    
    if (document.all) {
	    $("#nav li").hoverClass ("sfHover");
    }  
     
});
            
$.fn.hoverClass = function(c) {
    return this.each(function(){
	    $(this).hover( 
		    function() { $(this).addClass(c);  },
		    function() { $(this).removeClass(c); }
	    );
    });
};    