var tabOpened = "tab1";

$(document).ready( function() {
   
    
    $("#tabs ul li label").click(function(){

        if ($(this).attr('data-id') != tabOpened) $("#tabs ul li div").hide(250);
        
        
        var newDiv = $(this).attr('data-id');
        $("#"+newDiv).show(250); 
        
        tabOpened = newDiv;
        
        $('#tabs ul li label').removeClass('active');
        $(this).addClass('active');
    });
       
       
       // Pretty foto
    $("a[rel^='prettyPhoto']").livequery(function() {
        $("a[rel^='prettyPhoto']").prettyPhoto({
            theme:'dark_rounded',
            opacity: 0.60,
            default_width: 400
        });
    });
});    
