/***************************************
file Name: tab.js
URI: http://blog.lunatic-code.net/
Description: 
Version: 1.0
Author: mick
Author URI: http://blog.lunatic-code.net/
***************************************/

  $(function() {	

    $('#tabMenu > li').click(function(){    
      if (!$(this).hasClass('selected')) { 
        $('#tabMenu > li').removeClass('selected');    
        $(this).addClass('selected');    
        $('.boxBody div').slideUp('1500');    
        $('.boxBody div:eq(' + $('#tabMenu > li').index(this) + ')').slideDown('1500');    
    }
  
    }).mouseover(function() { 
      $(this).addClass('mouseover');
      $(this).removeClass('mouseout');       
    }).mouseout(function() {    
      $(this).addClass('mouseout');
      $(this).removeClass('mouseover');        
    });

   /* $('.boxBody #category li').click(function(){
      window.location = $(this).children().attr('');
    }).mouseover(function() {
      $(this).css('backgroundColor','#888');
      $(this).children().animate({paddingLeft:"20px"}, {queue:false, duration:300});
    }).mouseout(function() {    
      $(this).css('backgroundColor','');
      $(this).children().animate({paddingLeft:"0"}, {queue:false, duration:300});
    });  

    $('#.boxBody li').click(function(){
      window.location = $(this).children().attr('');
    }).mouseover(function() {
      $(this).css('backgroundColor','');
    }).mouseout(function() {
      $(this).css('backgroundColor','');
    }); */ 	

  });

  $(function() {	

    $('#tabMenu-r > li').click(function(){    
      if (!$(this).hasClass('selected')) { 
        $('#tabMenu-r > li').removeClass('selected');    
        $(this).addClass('selected');    
        $('.boxBody-r div').slideUp('1500');    
        $('.boxBody-r div:eq(' + $('#tabMenu-r > li').index(this) + ')').slideDown('1500');    
    }
  
    }).mouseover(function() { 
      $(this).addClass('mouseover');
      $(this).removeClass('mouseout');       
    }).mouseout(function() {    
      $(this).addClass('mouseout');
      $(this).removeClass('mouseover');        
    });

 /* $('.boxBody-r #category-r li').click(function(){
      window.location = $(this).children().attr('');
    }).mouseover(function() {
      $(this).css('backgroundColor','#888');
      $(this).children().animate({paddingLeft:"20px"}, {queue:false, duration:300});
    }).mouseout(function() {    
      $(this).css('backgroundColor','');
      $(this).children().animate({paddingLeft:"0"}, {queue:false, duration:300});
    });  

    $('#.boxBody-r li').click(function(){
      window.location = $(this).children().attr('');
    }).mouseover(function() {
      $(this).css('backgroundColor','');
    }).mouseout(function() {
      $(this).css('backgroundColor','');
    });  */	

  });