/*
  Mainpage TabMenu
*/
//<![CDATA[		   
var $J = jQuery.noConflict();
//]]>

// J.Query TABMENU
$J(document).ready(function() {	


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

    //Add and remove class, Personally I dont think this is the right way to do it, anyone please suggest    
    $J(this).addClass('mouseover');
    $J(this).removeClass('mouseout');   
    
  }).mouseout(function() {
    
    //Add and remove class
    $J(this).addClass('mouseout');
    $J(this).removeClass('mouseover');    
    
  });
	
});


