jQuery(document).ready(function(){
  /*Scroll Function*/
  jQuery('a[href=#]').click(function(){
    jQuery.scrollTo(0,'slow');
    return false;
  });
  
  $('.firstHide').hide();
	
	$('.hideButton').click(function() {
		$('#packagesWrapper p').hide();
	});
	$('#basicButton').click(function() {
		$('#textarea1').toggle('slow');
	});
	$('#firstDayButton').click(function() {
		$('#textarea2').toggle('slow');
	});
	$('#secondDayButton').click(function() {
		$('#textarea3').toggle('slow');
	});
	$('#fullButton').click(function() {
		$('#textarea4').toggle('slow');
	});
  
  
  /*Yearbook/Tour Swap Function*/
  jQuery('.yearbook').show();
  jQuery('.tour').hide();
  jQuery('a[href=yearbook]').click(function(){
  	jQuery('.tour').hide();
  	jQuery('.yearbook').show();
    return false;
  });
  jQuery('a[href=tour]').click(function(){
    jQuery('.yearbook').hide();
  	jQuery('.tour').show();
    return false;
  });
  /*roger thing*/
  slideShow();
  slideShow2();
});
function slideShow() {
		var current = $('.roger .show');
		var next = current.next().length ? current.next() :
		current.parent().children(':first');
		
		current.hide().removeClass('show');
		next.fadeIn().addClass('show');
		
		setTimeout(slideShow, 3000);
}

function slideShow2() {
		var current2 = $('#store .show');
		var next2 = current2.next().length ? current2.next() :
		current2.parent().children(':first');
		
		current2.hide().removeClass('show');
		next2.fadeIn().addClass('show');
		
		setTimeout(slideShow2, 3000);
}


