jQuery(window).ready(function () { 

  var heightHeader = jQuery("#header_container").height(); 
  var heightMenu = jQuery("#header_category_container").height(); 
  var heightFooter = jQuery("#footer").height(); 
  var heightInbox = jQuery("#content").height(); 
  var heightBody = jQuery(window).height(); 
 
  
  var heightLess = heightHeader + heightMenu + heightFooter;
  var heightPost = heightBody - heightLess;
  
  
  jQuery('#menu-container div.featured_box').last().css('border-bottom', 'none');
  jQuery('.event-table td.d2').last().css('border-bottom', 'none');
  jQuery('body.category-catering .featured_box').hide();
  jQuery('body.category-catering .featured_box').first().show();
  
  
  jQuery('.tag a').click(function(e) {
    e.preventDefault();
  });

  jQuery('body.category-22 span.replace').text("MICHELANGELO'S |");
  jQuery('body.category-23 span.replace,body.category-24 span.replace,body.category-25 span.replace').text("Catering |");

  
   jQuery('#header_category_container ul li a').hover(
	function(){
		jQuery(this).stop().animate({color:"#eeb758"},300);
	},
	function(){
		jQuery(this).stop().animate({color:"#fff"});
	});
	
	jQuery("#header_category_container ul li ul").css({ display: 'none' });
	jQuery("#header_category_container ul li").hover(function() {
		jQuery(this).find('ul.sub-menu')
			.stop(true, true).delay(50).animate({ "height": "show", "opacity": "show" }, 200 );
	}, function(){
		jQuery(this).find('ul.sub-menu')
			.stop(true, true).delay(50).animate({ "height": "hide", "opacity": "hide" }, 200 );
	});
	
	jQuery("#main_container").delegate("a img", "mouseover mouseout", function(e) {
		if (e.type == 'mouseover') {
		jQuery("#main_container a img").not(this).dequeue().animate({opacity: "0.5"}, 300);
    	} else {
		jQuery("#main_container a img").not(this).dequeue().animate({opacity: "1"}, 300);
   		}
	});
	
   jQuery('body.category-4 .featured_box .menu-list').hide();
   
   jQuery("body.category-4 .featured_box").hover(function() {
		jQuery(this).find('div.menu-list')
			.stop(true, true).delay(50).animate({ "height": "show", "opacity": "show" }, 200 );
	}, function(){
		jQuery(this).find('div.menu-list')
			.stop(true, true).delay(50).animate({ "height": "hide", "opacity": "hide" }, 200 );
	});
	
	jQuery('body.category-11 .featured_box .menu-list').hide();
   
    jQuery("body.category-11 .featured_box").hover(function() {
		jQuery(this).find('div.menu-list')
			.stop(true, true).delay(50).animate({ "height": "show", "opacity": "show" }, 200 );
	}, function(){
		jQuery(this).find('div.menu-list')
			.stop(true, true).delay(50).animate({ "height": "hide", "opacity": "hide" }, 200 );
	});
	
	jQuery('body.category-13 .featured_box .menu-list').hide();
   
    jQuery("body.category-13 .featured_box").hover(function() {
		jQuery(this).find('div.menu-list')
			.stop(true, true).delay(50).animate({ "height": "show", "opacity": "show" }, 200 );
	}, function(){
		jQuery(this).find('div.menu-list')
			.stop(true, true).delay(50).animate({ "height": "hide", "opacity": "hide" }, 200 );
	});
	
	jQuery('body.category-8 .featured_box .menu-list').hide();
   
    jQuery("body.category-8 .featured_box").hover(function() {
		jQuery(this).find('div.menu-list')
			.stop(true, true).delay(50).animate({ "height": "show", "opacity": "show" }, 200 );
	}, function(){
		jQuery(this).find('div.menu-list')
			.stop(true, true).delay(50).animate({ "height": "hide", "opacity": "hide" }, 200 );
	});
	
	jQuery('body.category-7 .featured_box .menu-list').hide();
   
    jQuery("body.category-7 .featured_box").hover(function() {
		jQuery(this).find('div.menu-list')
			.stop(true, true).delay(50).animate({ "height": "show", "opacity": "show" }, 200 );
	}, function(){
		jQuery(this).find('div.menu-list')
			.stop(true, true).delay(50).animate({ "height": "hide", "opacity": "hide" }, 200 );
	});
	
	jQuery('body.category-15 .featured_box .menu-list').hide();
   
    jQuery("body.category-15 .featured_box").hover(function() {
		jQuery(this).find('div.menu-list')
			.stop(true, true).delay(50).animate({ "height": "show", "opacity": "show" }, 200 );
	}, function(){
		jQuery(this).find('div.menu-list')
			.stop(true, true).delay(50).animate({ "height": "hide", "opacity": "hide" }, 200 );
	});
	
	jQuery('body.category-10 .featured_box .menu-list').hide();
   
    jQuery("body.category-10 .featured_box").hover(function() {
		jQuery(this).find('div.menu-list')
			.stop(true, true).delay(50).animate({ "height": "show", "opacity": "show" }, 200 );
	}, function(){
		jQuery(this).find('div.menu-list')
			.stop(true, true).delay(50).animate({ "height": "hide", "opacity": "hide" }, 200 );
	});
	
	jQuery('body.category-34 .featured_box .menu-list').hide();
   
    jQuery("body.category-34 .featured_box").hover(function() {
		jQuery(this).find('div.menu-list')
			.stop(true, true).delay(50).animate({ "height": "show", "opacity": "show" }, 200 );
	}, function(){
		jQuery(this).find('div.menu-list')
			.stop(true, true).delay(50).animate({ "height": "hide", "opacity": "hide" }, 200 );
	});
    
	jQuery('body.category #dc_jqaccordion_widget-3-item').hide();
	jQuery('body.category-6 #dc_jqaccordion_widget-2-item').hide();
	jQuery('body.category-9 #dc_jqaccordion_widget-2-item').hide();
	jQuery('body.category-12 #dc_jqaccordion_widget-2-item').hide();
	jQuery('body.category-16 #dc_jqaccordion_widget-2-item').hide();
	jQuery('body.category-6 #dc_jqaccordion_widget-3-item').show();
	jQuery('body.category-9 #dc_jqaccordion_widget-3-item').show();
	jQuery('body.category-12 #dc_jqaccordion_widget-3-item').show();
	jQuery('body.category-16 #dc_jqaccordion_widget-3-item').show();
	
	
});



