$(document).ready(function() {
   // do stuff when DOM is ready
   $(".show").hide();
   $(".show").removeClass('show');
   
   $(".lightbox-overlay").hide();
   
    
	// SHOW 'SUBSCRIBE TO OUR BLOG'
   $("div.nav a.subscribe").click(function(){
   
		// hide all of the elements with a class of 'show'
		$('.show').hide();
		
		// hide all of the elements with a class of 'show'
		$('.show').removeClass('show');
		
		$(".lightbox-overlay").show();
		
		// add 'show' class to this one
		$("#lightbox-subscribe").addClass('show');
   
   		$("#lightbox-subscribe").show();
	});
	
	// SHOW 'SUPPORT OUR WORK'
	$("div.nav a.support").click(function(){
   
		// hide all of the elements with a class of 'show'
		$('.show').hide();
   
		// hide all of the elements with a class of 'show'
		$('.show').removeClass('show');
		
		$(".lightbox-overlay").show();

		// add 'show' class to this one
		$("#lightbox-support").addClass('show');
   
		$("#lightbox-support").show();
		
		return false;
	});
	
	// SHOW 'SUB-BRANDS'
	$("div.nav a.sub").click(function(){
   
		// hide all of the elements with a class of 'show'
		$('.show').hide();
   
		// hide all of the elements with a class of 'show'
		$('.show').removeClass('show');
		
		$(".lightbox-overlay").show();

		// add 'show' class to this one
		$("#lightbox-sub").addClass('show');
   
		$("#lightbox-sub").show();
		
		return false;
		
	});
	
	
	// SHOW 'CONTACT - HEAD OFFICE'
	$("a.contacthead").click(function(){
   
		// hide all of the elements with a class of 'show'
		$('.show').hide();
   
		// hide all of the elements with a class of 'show'
		$('.show').removeClass('show');
		
		$(".lightbox-overlay").show();

		// add 'show' class to this one
		$("#lightbox-contacthead").addClass('show');
   
		$("#lightbox-contacthead").show();
		
		return false;
		
	});
	
	// SHOW 'CONTACT MEDIA'
	$("a.contactmedia").click(function(){
	
		// hide all of the elements with a class of 'show'
		$('.show').hide();
		
		// hide all of the elements with a class of 'show'
		$('.show').removeClass('show');

		$(".lightbox-overlay").show();

		// add 'show' class to this one
		$("#lightbox-contactmedia").addClass('show');
   
		$("#lightbox-contactmedia").show();
		
		return false;
		
	});
	
	// SHOW 'CONTACT EDITORIAL'
	$("a.contacteditorial").click(function(){
	
		// hide all of the elements with a class of 'show'
		$('.show').hide();
		
		// hide all of the elements with a class of 'show'
		$('.show').removeClass('show');

		$(".lightbox-overlay").show();

		// add 'show' class to this one
		$("#lightbox-contacteditorial").addClass('show');
   
		$("#lightbox-contacteditorial").show();
		
		return false;
		
	});
	
	
	// SHOW 'CONTACT CSSP'
	$("a.contactcssp").click(function(){
	
		// hide all of the elements with a class of 'show'
		$('.show').hide();
		
		// hide all of the elements with a class of 'show'
		$('.show').removeClass('show');

		$(".lightbox-overlay").show();

		// add 'show' class to this one
		$("#lightbox-contactcssp").addClass('show');
   
		$("#lightbox-contactcssp").show();
		
		return false;
		
	});
	
	// SHOW 'CONTACT CLASSROOM'
	$("a.contactclass").click(function(){
	
		// hide all of the elements with a class of 'show'
		$('.show').hide();
		
		// hide all of the elements with a class of 'show'
		$('.show').removeClass('show');

		$(".lightbox-overlay").show();

		// add 'show' class to this one
		$("#lightbox-contactclass").addClass('show');
   
		$("#lightbox-contactclass").show();
		
		return false;
		
	});
	
	// SHOW 'CONTACT CLASSROOM'
	$("a.contactwomens").click(function(){
	
		// hide all of the elements with a class of 'show'
		$('.show').hide();
		
		// hide all of the elements with a class of 'show'
		$('.show').removeClass('show');

		$(".lightbox-overlay").show();

		// add 'show' class to this one
		$("#lightbox-contactwomens").addClass('show');
   
		$("#lightbox-contactwomens").show();
		
		return false;
		
		
	});
	
	// SHOW 'ABOUT'
	$("a.about").click(function(){
	
		// hide all of the elements with a class of 'show'
		$('.show').hide();
		
		// hide all of the elements with a class of 'show'
		$('.show').removeClass('show');

		$(".lightbox-overlay").show();

		// add 'show' class to this one
		$("#lightbox-about").addClass('show');
   
		$("#lightbox-about").show();
		
		return false;
		
	});
	
		
	// SHOW 'HOMELESSNESS'
	$("a.homelessness").click(function(){
	
		// hide all of the elements with a class of 'show'
		$('.show').hide();
		
		// hide all of the elements with a class of 'show'
		$('.show').removeClass('show');

		$(".lightbox-overlay").show();

		// add 'show' class to this one
		$("#lightbox-homelessness").addClass('show');
   
		$("#lightbox-homelessness").show();
		
		return false;
		
	});
	
	// SHOW 'ECONOMIC'
	$("a.economic").click(function(){
	
		// hide all of the elements with a class of 'show'
		$('.show').hide();
		
		// hide all of the elements with a class of 'show'
		$('.show').removeClass('show');

		$(".lightbox-overlay").show();

		// add 'show' class to this one
		$("#lightbox-economic").addClass('show');
   
		$("#lightbox-economic").show();
		
		return false;
		
	});
	
   	// SHOW 'SOCIAL'
	$("a.social").click(function(){
	
		// hide all of the elements with a class of 'show'
		$('.show').hide();
		
		// hide all of the elements with a class of 'show'
		$('.show').removeClass('show');

		$(".lightbox-overlay").show();

		// add 'show' class to this one
		$("#lightbox-social").addClass('show');
   
		$("#lightbox-social").show();
		
		return false;
		
	});
	
	// SHOW OUR BOARD'
	$("a.ourboard").click(function(){
	
		// hide all of the elements with a class of 'show'
		$('.show').hide();
		
		// hide all of the elements with a class of 'show'
		$('.show').removeClass('show');

		$(".lightbox-overlay").show();

		// add 'show' class to this one
		$("#lightbox-ourboard").addClass('show');
   
		$("#lightbox-ourboard").show();
		
		return false;
		
	});
   	
	// SHOW 'SYD BOARD'
	$("a.sydboard").click(function(){
	
		// hide all of the elements with a class of 'show'
		$('.show').hide();
		
		// hide all of the elements with a class of 'show'
		$('.show').removeClass('show');

		$(".lightbox-overlay").show();

		// add 'show' class to this one
		$("#lightbox-sydboard").addClass('show');
   
		$("#lightbox-sydboard").show();
		
		return false;
		
	});
	
	// SHOW 'MELB BOARD'
	$("a.melboard").click(function(){
	
		// hide all of the elements with a class of 'show'
		$('.show').hide();
		
		// hide all of the elements with a class of 'show'
		$('.show').removeClass('show');

		$(".lightbox-overlay").show();

		// add 'show' class to this one
		$("#lightbox-melboard").addClass('show');
   
		$("#lightbox-melboard").show();
		
		return false;
		
	});
   
   // 'Close' button clicked - hide its parent Lightbox
   $("a.lightbox-close").click(function(){ 
		//$(this).parent().parent().hide();
		 $(".lightbox-overlay").hide();
		
		return false;
		
   });
   
 });
