// ABAS MALUCASJavaScript Document

var tabInterval;
var tabId = 1;
var tabOver;
var rotation = function() {
   // $abas.tabs("enable");
   	clearInterval(tabInterval);
    tabInterval = setInterval(function () {
   if ($("#tabs li").length !== tabId) {
       $(".tabHover")
           .parent()
               .next()
                   .children()
                       .toggleClass("tabHover")
                       .end()
                   .end()
               .end()
           .toggleClass("tabHover");
        $("#tabs-" + tabId).fadeOut("slow").next().fadeIn("slow");
   }
   else {
       $(".tabHover")
           .parent()
               .siblings(":first")
                   .children()
                       .toggleClass("tabHover")
                       .end()
                   .end()
               .end()
           .toggleClass("tabHover");
       $("#tabs-" + tabId).fadeOut("slow");
       $("#tabs-1").fadeIn("slow");  
       tabId = 0;
   }
   tabId++;
}, 8000);
  }
 
$(document).ready(function(){
  
rotation();

/*hover para pausar a rotação das tabs     .tabs( 'rotate' , ms , true )*/

$("#header").hover(function() {
    clearInterval(tabInterval);  
    $abas.data("disabled.tabs", [0, 1, 2, 3, 4, 5, 6]);
}, function() {rotation();});

});
