$(document).ready(function(){
						   		
	$('.review-select').click(function() {
		$('.top li').removeClass('tab-on');
		$('.top span').removeClass('tab-on');
		$('.bottom-content').hide();	
		
		$('#tab-reviews').addClass("tab-on");
		$("#tab-reviews-span").addClass("tab-on");	
		$('#tab-reviews-content').show();
   });
	
	$('.top li').click(function() {	
	
		// remove styles from all tabs and hide all bottom containers
		$('.top li').removeClass('tab-on');
		$('.top span').removeClass('tab-on');
		$('.bottom-content').hide();
		
		// add style to selected tab and display selected bottom container
		$(this).addClass("tab-on");
		$("#"+this.id+" span").addClass("tab-on");	
		$('#'+this.id+'-content').show();
	});
    
    $('.top2 li').click(function() {   
    
        // remove styles from all tabs and hide all bottom containers
        $('.top2 li').removeClass('tab-on');
        $('.top2 span').removeClass('tab-on');
        $('.bottom-content2').hide();
        
        // add style to selected tab and display selected bottom container
        $(this).addClass("tab-on");
        $("#"+this.id+" span").addClass("tab-on");    
        $('#'+this.id+'-content').show();
    });

    
    $('.top3 li').click(function() {   
    
        // remove styles from all tabs and hide all bottom containers
        $('.top3 li').removeClass('tab-on');
        $('.top3 span').removeClass('tab-on');
        $('.bottom-content3').hide();
        
        // add style to selected tab and display selected bottom container
        $(this).addClass("tab-on");
        $("#"+this.id+" span").addClass("tab-on");    
        $('#'+this.id+'-content').show();
    });


});
