// Setup initial state
$(document).ready(function(){
    $('#contents').hide();
	$('#contents').css("position","absolute");
	$('#contents').css("margin-left","-390px");
    $('#news').hide();
	$('#news').css("position","absolute");
	$('#news').css("margin-left","-390px");
	$('#blog').hide();
	$('#blog').css("position","absolute");
	$('#blog').css("margin-left","-390px");
	return true;
});

// Turn all divs off 
$(function(){
	$('.clicker-home').click(function(){								  
		$('#contents:visible').fadeOut()
		$('#news:visible').fadeOut()
		$('#blog:visible').fadeOut()
		$('#home').fadeIn()
		return false;
	});
	$('.clicker-home').click(function(){							  
		$('#spacer-shell').animate( {height: "650px"}, 1500 );
		return false;
	});	
});



// Turn contents div on
$(function(){
	$('.clicker-contents').click(function(){								  
		$('#contents').fadeIn()
		$('#news:visible').fadeOut()
		$('#blog:visible').fadeOut()
		$('#home:visible').fadeOut()
		return false;
	});
	$('.clicker-contents').click(function(){
		var contentsHeight = $('#contents').height();							  
		$('#spacer-shell').animate( {height: contentsHeight}, 1500 );
		return false;
	});	
});



// Turn news div on		
$(function(){
	$('.clicker-news').click(function(){
		$('#contents:visible').fadeOut()
		$('#news').fadeIn()
		$('#blog:visible').fadeOut()
		$('#home:visible').fadeOut()
		return false;
	});
	$('.clicker-news').click(function(){
		var newsHeight = $('#news').height();							  
		$('#spacer-shell').animate( {height: newsHeight}, 1500 );
		return false;
	});	
});




// Turn blog div on		
$(function(){
	$('.clicker-blog').click(function(){
		$('#contents:visible').fadeOut()
		$('#news:visible').fadeOut()
		$('#blog').fadeIn()
		$('#home:visible').fadeOut()
		return false;
	});
	$('.clicker-blog').click(function(){
		var blogHeight = $('#blog').height();							  
		$('#spacer-shell').animate( {height: blogHeight}, 1500 );
		return false;
	});	
});