$(function() {
    // setup ul.tabs to work as tabs for each div directly under div.panes
    var $tabs = $("ul.tabs");
    $tabs.tabs("div.panes > div", {rotate: true}).slideshow({autoplay: true, interval: 6000, clickable: false});
    var api = $tabs.data("slideshow");
    var to = setTimeout( function() {api.play();},500);
    $tabs.click(function() {if (to) clearTimeout(to);api.stop();});
});


