$(document).ready(function(){
	$('#selected_tab div').css('margin-top', '0');
	$('#selected_tab div').css('border-bottom', 'none');

	$("ul.tabs").tabs( "div.panes > div", { 
        effect: 'fade'
    });
    
    $(".store_item a[rel]").overlay({ 
	    
	     onBeforeLoad: function() {  
  
            // grab wrapper element inside content  
            var wrap = this.getOverlay().find(".contentWrap");  
            var self = this;  
  
            // load the page specified in the trigger 
            // + init events in its callback 
            wrap.load(this.getTrigger().attr("href"), function(){ 
                $('.close', this).click(function(){self.close()}); 
            }); // end wrap.load 
        },
        
        onClose : function() {
        	$(".contentWrap").html("");
        }
	     
	});

});
