/********************************
jQuery Do when dom is ready!
*********************************/

$(document).ready(function()
{
	// toggle the add task box
	$('a#showAddTask').click(function() {
		$('div#layer_Task').slideDown();
		return false;
	});

	// toggle the add task box
	$('a#hideAddTask').click(function() {
		$('div#layer_Task').slideUp();
		return false;
	});
	
	// toggle the add testimonial box
	$('a#showAddTest').click(function() {
		$('div#layer_Test').slideDown();
		return false;
	});

	// toggle the add testimonial box
	$('a#hideAddTest').click(function() {
		$('div#layer_Test').slideUp();
		return false;
	});	

	// toggle the add testimonial box
	$('a#showAddBooking').click(function() {
		$('div#layer_Booking').slideDown();
		return false;
	});

	// toggle the add testimonial box
	$('a#hideAddBooking').click(function() {
		$('div#layer_Booking').slideUp();
		return false;
	});
	
	
	// new clc project page javascript only
	$('#btnLeaders').click(function() {
		$('div#layer_members').fadeOut("fast");
		$('div#layer_orgs').fadeOut("fast");
		$('div#layer_leaders').fadeIn("slow");
		$(this).parent().addClass("active");
		$('#btnMembers').parent().removeClass("active");
		$('#btnOrgs').parent().removeClass("active");
		return false;
	});
	
	$('#btnMembers').click(function() {
		$('div#layer_leaders').fadeOut("fast");
		$('div#layer_orgs').fadeOut("fast");
		$('div#layer_members').fadeIn("slow");
		$(this).parent().addClass("active");
		$('#btnLeaders').parent().removeClass("active");
		$('#btnOrgs').parent().removeClass("active");
		return false;
	});
	
	$('#btnOrgs').click(function() {
		$('div#layer_leaders').fadeOut("fast");
		$('div#layer_members').fadeOut("fast");
		$('div#layer_orgs').fadeIn("slow");
		$(this).parent().addClass("active");
		$('#btnLeaders').parent().removeClass("active");
		$('#btnMembers').parent().removeClass("active");
		return false;
	});
});

