$(document).ready(function () {
	
	
	// default view
	$('.Tab3').addClass('Selected');
	$('.Content').hide();
	$('.Tab3Content').show();
	
	
	// When a tab is cliked, show it's coresponding content and hide
	// all other tabs' content.
	$('.Tab').click(function() {
		// When a tab is clicked, remove the .Selected class then, 
		// add it to the clicked tab.
		$('.Selected').removeClass('Selected');
		$(this).addClass('Selected')
		
		// Store the tab name from the title attribute
		var SelectedTab = $(this).attr('id');
		
		// Hide All content then show the selected content
		$('.Content').hide();
		$('.'+SelectedTab+'Content').fadeIn('normal');
		
	});
	
	
	

     // Loop over Stats Tab
     $( ".dhtmlgoodies_aTab" ).each(
      
     // For each hottie, run this code. The "indIndex" is the
     // loop iteration index on the current element.
     function( intIndex ){
        
	 if (intIndex > 0) {
    $( this ).hide();
  }      
     }
      
     );
	
	


});