// JavaScript Document

$(function(){
		   
		   $('div#end-slideshow').stop().fadeOut(0);
		   

			$('#start-slideshow a').click(function() {
			$('div#text-holder').stop().slideUp(500);
			$('div#end-slideshow').stop().fadeIn(1000);
			$('#slideshow').cycle({
		      fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
			});
										});
			
			
			$('#end-slideshow a').click(function() {
			$('div#end-slideshow').stop().fadeOut(100)									 
			$('div#text-holder').stop().slideDown(500)
			$('#slideshow').cycle('stop');
			});
			
			//Childrens page menu show/hide
			$('body#children-page #childrens-menu').stop().animate({width: 'hide'}, 0);
			$('body#children-page #text-holder').stop().animate({width: 'show'},0);
			
			
			$('#show-menu a').click(function() {
			$('body#children-page #text-holder').stop().animate({width: 'hide'}, 500);							
			$('body#children-page #childrens-menu').stop().animate({width: 'show'}, 500);
			});
			
			$('#close a').click(function() {
			$('body#children-page #text-holder').stop().animate({width: 'show'}, 500);							
			$('body#children-page #childrens-menu').stop().animate({width: 'hide'}, 500);
			});
			
			//pizza page menu show/hide
			$('body#pizza-page #pizza-menu').stop().animate({width: 'hide'}, 0);
			$('body#pizza-page #text-holder').stop().animate({width: 'show'},0);
			
			
			$('#show-menu a').click(function() {
			$('body#pizza-page #text-holder').stop().animate({width: 'hide'}, 500);							
			$('body#pizza-page #pizza-menu').stop().animate({width: 'show'}, 500);
			});
			
			$('#close a').click(function() {
			$('body#pizza-page #text-holder').stop().animate({width: 'show'}, 500);							
			$('body#pizza-page #pizza-menu').stop().animate({width: 'hide'}, 500);
			});

});