//Setup a PlanetTagger namespace
var PT = PT || {};

//Setup a PlanetTagger namespace
PT.home = {};

PT.home.bind = function(){
	
	var $welcome = $j('#welcome-tabs');
	
	$welcome.find('>ul li a')
		.click(
			function(e){
				e.preventDefault();
				var $this = $j(this);
				
				if( !$this.parent().hasClass('current') ){
				
					$j(this).parent().addClass('current').siblings().removeClass('current');
					
					//hide other tabs
					$welcome.find('.welcome_content').not(this.hash).hide();
					$welcome.find(this.hash).hide().fadeIn('slow');
					
				}
				
			}
		);
	
}

PT.home.bind();