jQuery.tools.tabs.addEffect("crossfade", function(tabIndex, done) { 

if (!isliveview) 
{
    jQuery('div.pane').css('display','').css('position','relative');
    return;
}
 
// hide all panes and show the one that is clicked 
this.getPanes().fadeOut("slow").eq(tabIndex).fadeIn("slow"); 
 
// the supplied callback must be called after the effect has finished its job 
done.call(); 
});
 
// perform JavaScript after the document is scriptable.
jQuery(function() {
 // setup ul.tabs to work as tabs for each div directly under div.panes
 jQuery("ul.tabs").tabs("div.panes > div", {effect:"crossfade"});
});

