jQuery(document).ready(function() {    
  
  //Get all the LI from the #tabMenu UL  
  jQuery('#tabMenu > li').click(function(){  
          
    //perform the actions when it's not selected  
    if (!jQuery(this).hasClass('selected')) {      
  
    //remove the selected class from all LI      
    jQuery('#tabMenu > li').removeClass('selected');  
      
    //After cleared all the LI, reassign the class to the selected tab  
    jQuery(this).addClass('selected');  
      
    //Hide all the DIV in .boxBody  
    jQuery('.boxBody div').slideUp('1500');  
      
    //Look for the right DIV index based on the Navigation UL index  
    jQuery('.boxBody div:eq(' + jQuery('#tabMenu > li').index(this) + ')').slideDown('1500');  
      
   }  
  
  }).mouseover(function() {  
  
    //Add and remove class, Personally I dont think this is the right way to do it,   
    //if you have better ideas to toggle it, please comment      
    jQuery(this).addClass('mouseover');  
    jQuery(this).removeClass('mouseout');     
      
  }).mouseout(function() {   
      
    //Add and remove class  
    jQuery(this).addClass('mouseout');  
    jQuery(this).removeClass('mouseover');      
      
  });  
  
    
  //Mouseover with animate Effect for Category menu list  :)  
  jQuery('.boxBody #category li').mouseover(function() {  
  
    //Change background color and animate the padding  
    jQuery(this).css('backgroundColor','#888');  
    jQuery(this).children().animate({paddingLeft:"20px"}, {queue:false, duration:300});  
  }).mouseout(function() {  
      
    //Change background color and animate the padding  
    jQuery(this).css('backgroundColor','');  
    jQuery(this).children().animate({paddingLeft:"0"}, {queue:false, duration:300});  
  });    
      
  //Mouseover effect for Posts, Comments, Famous Posts and Random Posts menu list.  
  jQuery('.boxBody li').click(function(){  
    window.location = jQuery(this).find("a").attr("href");  
  }).mouseover(function() {  
    jQuery(this).css('backgroundColor','#888');  
  }).mouseout(function() {  
    jQuery(this).css('backgroundColor','');  
  });     
      
});
jQuery(document).ready(function() {    
  
  //Get all the LI from the #tabMenu UL  
  jQuery('#tabMenu2 > li').click(function(){  
          
    //perform the actions when it's not selected  
    if (!jQuery(this).hasClass('selected')) {      
  
    //remove the selected class from all LI      
    jQuery('#tabMenu2 > li').removeClass('selected');  
      
    //After cleared all the LI, reassign the class to the selected tab  
    jQuery(this).addClass('selected');  
      
    //Hide all the DIV in .boxBody  
    jQuery('.boxBody2 div').slideUp('1500');  
      
    //Look for the right DIV index based on the Navigation UL index  
    jQuery('.boxBody2 div:eq(' + jQuery('#tabMenu2 > li').index(this) + ')').slideDown('1500');  
      
   }  
  
  }).mouseover(function() {  
  
    //Add and remove class, Personally I dont think this is the right way to do it,   
    //if you have better ideas to toggle it, please comment      
    jQuery(this).addClass('mouseover');  
    jQuery(this).removeClass('mouseout');     
      
  }).mouseout(function() {   
      
    //Add and remove class  
    jQuery(this).addClass('mouseout');  
    jQuery(this).removeClass('mouseover');      
      
  });  
  
    
  //Mouseover with animate Effect for Category menu list  :)  
  jQuery('.boxBody2 #category li').mouseover(function() {  
  
    //Change background color and animate the padding  
    jQuery(this).css('backgroundColor','#888');  
    jQuery(this).children().animate({paddingLeft:"20px"}, {queue:false, duration:300});  
  }).mouseout(function() {  
      
    //Change background color and animate the padding  
    jQuery(this).css('backgroundColor','');  
    jQuery(this).children().animate({paddingLeft:"0"}, {queue:false, duration:300});  
  });    
      
  //Mouseover effect for Posts, Comments, Famous Posts and Random Posts menu list.  
  jQuery('.boxBody2 li').click(function(){  
    window.location = jQuery(this).find("a").attr("href");  
  }).mouseover(function() {  
    jQuery(this).css('backgroundColor','#888');  
  }).mouseout(function() {  
    jQuery(this).css('backgroundColor','');  
  });     
      
});
