// JavaScript Document
$(document).ready(function(){
	$("#block_content").smartCenter(); 
	//$("#block_content ol.submenu").hide();
	
	//trying this instead
	$("#block_content li").hover(
        function(){ $("ol", this).fadeIn("fast"); }, 
        function() { $("ol", this).fadeOut("fast"); } 
    );
    if (document.all) {
        $("#block_content li").hoverClass ("sfHover");
    }
	
	jQuery('ul#sub_nav').superfish();
	
	//$('img.sectionImg').wrap("<div class='wrap1'><div class='wrap2'><div class='wrap3'></div></div></div>");
	//$("img.sectionImg").dropShadow({left: 2, top: 2, blur: 1, color: "#03f", swap: true});
	
	$("#block_content li li").click(function () { 
      window.location = ($(this).find("a").attr("href"));
    });
	
	$(window).resize(function(){
		//alert("resized");
		$("#block_content").smartCenter(); 
	  /*$("#block_content").smartCenter({
		  easeIn: "true",
		  wOffsetWidth: 10
		});  */
	});


});	

$.fn.hoverClass = function(c) {
    return this.each(function(){
        $(this).hover( 
            function() { $(this).addClass(c);  },
            function() { $(this).removeClass(c); }
        );
    });
};    