	// Easing equation, borrowed from jQuery easing plugin
	// http://gsgd.co.uk/sandbox/jquery/easing/
	jQuery.easing.easeOutQuart = function (x, t, b, c, d) {
	return -c * ((t=t/d-1)*t*t*t - 1) + b;
	};	
		jQuery(function( $ ){
 		$('#wrapper').serialScroll({
		target:'#featured',
		items:'li', // Selector to the items ( relative to the matched elements, '#sections' in this case )
		prev:'div.prev',// Selector to the 'prev' button (absolute!, meaning it's relative to the document)
		next:'div.next',// Selector to the 'next' button (absolute too)
		axis:'xy',// The default is 'y' scroll on both ways
		//navigation:'#navigation li a',
		cycle:true,
		interval:6000,
		constant:true,
		step: 1,
		start: 0,
		duration:2000,// Length of the animation (if you scroll 2 axes and use queue, then each axis take half this time)
		force:true, // Force a scroll to the element specified by 'start' (some browsers don't reset on refreshes)
		onBefore:function( e, elem, $pane, $items, pos ){
			e.preventDefault();
			if( this.blur )
				this.blur();
		},
		onAfter:function( elem ){
		}
		});
	});
	
jQuery(function(){
	
	jQuery("img.locations_wall")
		.css( {opacity:0} )
	jQuery("img.contact_wall")
		.css( {opacity:0} )
	jQuery("img.history_wall")
		.css( {opacity:0} )
	jQuery("img.catering_wall")
		.css( {opacity:0} )	
	
	jQuery("li.page-item-6 a").hover(function(){
		jQuery("img.locations_wall").animate({
			opacity: "1"
				}, 1000);
				}, function(){
		jQuery("img.locations_wall").animate({
			opacity: "0"
			}, 250);
		});
	jQuery("li.page-item-10 a").hover(function(){
		jQuery("img.contact_wall").animate({
			opacity: "1"
				}, 1000);
				}, function(){
		jQuery("img.contact_wall").animate({
			opacity: "0"
			}, 250);
		});
	jQuery("li.page-item-4 a").hover(function(){
		jQuery("img.history_wall").animate({
			opacity: "1"
				}, 1000);
				}, function(){
		jQuery("img.history_wall").animate({
			opacity: "0"
			}, 250);
		});
	jQuery("li.page-item-8 a").hover(function(){
		jQuery("img.catering_wall").animate({
			opacity: "1"
				}, 1000);
				}, function(){
		jQuery("img.catering_wall").animate({
			opacity: "0"
			}, 250);
		});	
});