/* Declare a namespace for the site */
var Site = window.Site || {};

/* Create a closure to maintain scope of the '$'
   and remain compatible with other frameworks.  */
(function($) {
	
	//same as $(document).ready();
	$(function() {
		
		
		// navigation hovers
		//   subnav animation
$("#mainNav li a").not('.section').hover(function () {
		$(this).stop().animate( { marginTop:"-4px"} , 100, "easeOutQuad" );
		//$(this).css({color:'red'});
		//alert("here");
		//$(this).parent('li').addClass('subhover');
	},function () {
		$(this).stop().animate( { marginTop:"0px"} , 100, "easeOutQuad" );
		//$(this).parent('li').removeClass('subhover');
	}); 
		

$(".honeypot").CreateBubblePopup({
									position : 'top',
									align	 : 'center',
									innerHtmlStyle: {color:'#444','text-align':'center'},
									themeName: 	'all-yellow',
									themePath: 	'bubblepopup/jquerybubblepopup-theme'
	});

$.each($('.honeypot'), function() { 
  $(this).SetBubblePopupInnerHtml($(this).html());	
});
		
$(".quicklink").CreateBubblePopup({
									position : 'top',
									align	 : 'center',
									innerHtmlStyle: {color:'#ccc','text-align':'center'},
									themeName: 	'all-black',
									themePath: 	'bubblepopup/jquerybubblepopup-theme',
									width: '180px'
	});	

$('.quicklink').SetBubblePopupInnerHtml($('.quicklink').html());	


$.each($('.quicklink'), function() { 
  $(this).SetBubblePopupInnerHtml($(this).attr('alt'));	
});


$(".winebottle").CreateBubblePopup({
									position : 'top',
									align	 : 'center',
									innerHtmlStyle: {color:'#ccc','text-align':'center'},
									themeName: 	'all-black',
									themePath: 	'bubblepopup/jquerybubblepopup-theme',
									width: '180px'
	});	


$.each($('.winebottle'), function() { 
  $(this).SetBubblePopupInnerHtml($(this).attr('alt'));	
});


$.each($(".foodInfo td p"), function() {
 
	$(this).replaceWith($(this).contents());

});

$(".foodInfo table tr:even").css("background-color", "#f1f1f1");
		

	});


	$(window).bind("load", function() {
		
		
	
	});
	
	$("a[rel^='prettyPhoto']").prettyPhoto();
	
})(jQuery);
