$(document).ready(function() {
    $("ul.tabs").tabs("div.panes > div.newtab",{rotate:true}).slideshow({clickable:false});

    $("ul.tabs2").tabs(".panes2 .newtab2", {tabs: 'li'}).slideshow({
        next: "a.next", // key solution!!!
        prev: "a.prev",
        rotate:true,
        clickable:false});
    
    $("img[rel]").overlay({top:40});

});

