   function clock()
      {
        $('.submeniu div').slideUp(0);
        $('.submeniu div:last').slideDown(0);
        vizibil = 0;
        $('#submittedadjustments li').removeClass("selected");
       //s  $('#submittedadjustments li').css({backgroundColor: "#eeeeee", color: "#323232"});
      }
   vizibil = 0;
$(document).ready(function() {
    interval = self.setTimeout("clock()",2000);
  //Get all the LI from the #tabMenu UL
  $('#submittedadjustments li').mouseover(function() {
    $(this).addClass("selected");
      var index = $('#submittedadjustments li').index(this);
   //s $(this).css({backgroundColor: "#222222", color:"#decdab"});
   
 //##################
        if ($(this).hasClass("selected")) {
            //remove the selected class from all LI           
            //s $('#submittedadjustments li').removeClass('selected').css({backgroundColor: "#eeeeee", color: "#323232"});

            //After cleared all the LI, reassign the class to the selected tab
            $(this).addClass("selected"); //s .css({backgroundColor: "#222222", color:"#decdab"});
            
            //Hide all the DIV in .boxBody
            $('.submeniu div').slideUp(0);

            //Look for the right DIV index based on the Navigation UL index
            $('.submeniu div:eq(' + index + ')').slideDown(0, function(){                
                vizibil = 1;
            });
       }
    clearTimeout(interval);
 //################
  }).mouseout(function() {
      interval = self.setTimeout("clock()",2000);
      if(!$(this).hasClass('selected')){   
      }
    //s $(this).removeClass('selected');
  });

 //Mouseover effect for Posts, Comments, Famous Posts and Random Posts menu list.
  $('.submeniu div').mouseover(function() {
   clearTimeout(interval);
  }).mouseout(function() {
    if(vizibil == 1){ interval = self.setTimeout("clock()",2000);}
  });
});
