/*
	chris bovard
	www.chrisbovard.com
	May 21, 2011
*/
//slideshow fun
$(document).ready(function() {		
	$('#slideshow').cycle({
		fx:     'fade',
		speed:  'fast',
		timeout: 0,
		pager:  '#pager'
	});
});
	  
//menu blind
$(document).ready(function() {
  //hide the menu and show the show link using a callback
  $("#hide").click(function(){
	//$("#menu").hide("blind", { direction: "horizontal" }, 1000);
	$("#menu").hide("blind", { direction: "horizontal" }, 2000, function () {
		$("#show-menu").show();
	});
  });
	//show the menu and hide the appr link
  $("#show").click(function(){
	$("#show-menu").hide();
	$("#menu").show("blind", { direction: "horizontal" }, 2000);
  });
});

//slideshow - image animation
$(document).ready(function() {
  //shrink the slideshow height
  $("#hide-image").click(function(){
	$("#slideshow").animate({"height": "-=312px"}, "slow", 
	  function(){
		  $("#hide-image").hide();
		  $("#show-image").show();

	  }
	);		  
  });

  //increase the slideshow height
  $("#show-image").click(function(){						
	$("#slideshow").animate({"height": "+=312px"}, "slow", 
	  function(){
		  $("#show-image").hide();
		  $("#hide-image").show();
	  }
	);
  });
});	


