// JavaScript Document

$(document).ready(function(){

	$(".btn-slide").click(function(){
		$("#panel").slideToggle("slow");
		$(this).toggleClass("active"); return false;
	});
	
	$(".btn-slide2").click(function(){
		$("#panel2").slideToggle("slow");
		$(this).toggleClass("active");
		if ($(this).is('.active')){
            showForm();
		}
		return false;
	});
	
	$(".btn-slide3").click(function(){
		$("#panel2").slideToggle("slow");
		$(this).toggleClass("active"); 
		if ($(this).is('.active')){
            showForm();
		}
		return false;
	});
	
	$(".btn-slide4").click(function(){
		$("#panelvictoria").slideToggle("slow");
		$(this).toggleClass("active"); return false;
	});
	
	$(".btn-slide5").click(function(){
		$("#panelvictoria").slideToggle("slow");
		$(this).toggleClass("active"); return false;
	});
	
	$(".btn-slide6").click(function(){
		$("#panelholly").slideToggle("slow");
		$(this).toggleClass("active"); return false;
	});
	
	$(".btn-slide7").click(function(){
		$("#panelholly").slideToggle("slow");
		$(this).toggleClass("active"); return false;
	});
	
	$(".btn-slide8").click(function(){
		$("#panelnancy").slideToggle("slow");
		$(this).toggleClass("active"); return false;
	});
	
	$(".btn-slide9").click(function(){
		$("#panelnancy").slideToggle("slow");
		$(this).toggleClass("active"); return false;
	});
	
	$(".btn-slide10").click(function(){
		$("#panelmatthew").slideToggle("slow");
		$(this).toggleClass("active"); return false;
	});
	
	$(".btn-slide11").click(function(){
		$("#panelmatthew").slideToggle("slow");
		$(this).toggleClass("active"); return false;
	});
	
	$(".btn-slide12").click(function(){
		$("#panelmaria").slideToggle("slow");
		$(this).toggleClass("active"); return false;
	});
	
	$(".btn-slide13").click(function(){
		$("#panelmaria").slideToggle("slow");
		$(this).toggleClass("active"); return false;
	});
	
});



<!--
// jQuery.noConflict();

// RUN

$(document).ready(function(){	
	
		/* Set the slider to cycle targeting the next button in each banner */
	jQuery('#bannerSlide').cycle({ 
		fx: 'scrollHorz',  
		next:   jQuery('a.next'),
		after:   onAfter,
		timeout: 0
	});


});


function onAfter(curr, next, opts) {
    var index = $(this).parent().children().index(this);
	//var elm = "#" + jQuery('#bannerSlide .parallax').get(index).id;

	//jQuery(elm).jparallax({triggerExposesEdges: true});

	/* May cause a memory leak as these parallaxes are never been destroyed */
}

//-->
