//<![CDATA[
 
jQuery(function(){

		jQuery.noConflict();
	
		jQuery('ul.sf-menu').superfish({
			delay:       200,                            // one second delay on mouseout 
			animation:   {'marginLeft':'0px',opacity:'show',height:'show'},  // fade-in and slide-down animation 
			speed:       'fast',                          // faster animation speed 
			autoArrows:  true,                           // disable generation of arrow mark-up 
			onBeforeShow:      function(){ this.css('marginLeft','20px'); },
			dropShadows: false                            // disable drop shadows 
		});
		
		jQuery('ul.sf-menu ul > li').addClass('noLava');
		jQuery('ul.sf-menu > li').addClass('top-level');
		
		jQuery('ul.sf-menu > li > a.sf-with-ul').parent('li').addClass('sf-ul');
		
				
		if (!(jQuery("#footer_widgets .block_b").length == 0)) {
			jQuery("#footer_widgets .block_b").each(function (index, domEle) {
				// domEle == this
				if ((index+1)%3 == 0) jQuery(domEle).after("<div class='clear'></div>");
			});
		};

		var active_subpage = jQuery('ul.sf-menu ul li.current-cat, ul.sf-menu ul li.current_page_item').parents('li.top-level').prevAll().length;
		
		if (active_subpage) jQuery('ul.sf-menu').lavaLamp({ startItem: active_subpage });
		else jQuery('ul.sf-menu').lavaLamp();
			
		
		});
//]]>
