var currentTab = 0; 

function openTab(clickedTab) {
	var thisTab = jQuery("#editor .tabs a").index(clickedTab);
	jQuery("#editor .tabs li a").removeClass("active");
	jQuery("#editor .tabs li a:eq("+thisTab+")").addClass("active");
	jQuery("#editor .tabbed-content").hide();
	jQuery("#editor .tabbed-content:eq("+thisTab+")").show();
	currentTab = thisTab;
}
jQuery(document).ready(function() {
   jQuery(".tabs li:eq(0) a").css("border-left", "none");
   
   jQuery("#editor .tabs li a").click(function() { 
      openTab(jQuery(this)); return false; 
   });
   
   jQuery("#editor .tabs li a:eq("+currentTab+")").click()
});
