$(document).ready(function() {	


  //Get all the LI from the #tabMenu UL
  $('#tab-menu > li').click(function(){
  	
  	//remove the selected class from all LI    
    $('#tab-menu > li').removeClass('selected');
    
    //Reassign the LI
    $(this).addClass('selected');
    
    //Hide all the DIV in .boxBody
    $('#tab-content div').slideUp('1500');
    
    //Look for the right DIV in boxBody according to the Navigation UL index, therefore, the arrangement is very important.
    $('#tab-content div:eq(' + $('#tab-menu > li').index(this) + ')').slideDown('1500'); 
    
  });

  //Mouseover with animate Effect for Category menu list
  $('.side-cat ul li, #side-widget ul li, #linkcat-2 ul li').mouseover(function() {

    //Change background color and animate the padding
    $(this).children().animate({paddingLeft:"10px"}, {queue:false, duration:300});
  }).mouseout(function() {
    
    //Change background color and animate the padding

    $(this).children().animate({paddingLeft:"0"}, {queue:false, duration:300});
  });  
  
  //Mouseover with animate Effect for Category menu list
  $('.read-more').mouseover(function() {

    //Change background color and animate the padding
    $(this).children().animate({paddingLeft:"30px"}, {queue:false, duration:300});
  }).mouseout(function() {
    
    //Change background color and animate the padding

    $(this).children().animate({paddingLeft:"15px"}, {queue:false, duration:300});
  });  
	
 
});


