$(document).ready(function(){
    
  // Makes odd and even rows in tables have different colors.
  $('.featured-table tr:even').addClass('table-even');   
  $('.featured-table tr:odd').addClass('table-odd');
  $('.featured-table tr:first-child').removeClass('table-even table-odd');
  
   // Makes odd and even rows in tables have different colors. VIT
  $('.featured-table-vit tr:even').addClass('table-even-vit');   
  $('.featured-table-vit tr:odd').addClass('table-odd-vit');
  $('.featured-table-vit tr:first-child').removeClass('table-even-vit table-odd-vit');
  
  // Makes odd and even rows in tables have different colors. Small VIT
  $('.featured-table-vit-small tr:even').addClass('table-even-vit-small');   
  $('.featured-table-vit-small tr:odd').addClass('table-odd-vit-small');
  $('.featured-table-vit-small tr:first-child').removeClass('table-even-vit-small table-odd-vit-small');
  
  // Makes odd and even rows in tables have different colors. Small
  $('.featured-table-small tr:even').addClass('table-even-small');   
  $('.featured-table-small tr:odd').addClass('table-odd-small');
  $('.featured-table-small tr:first-child').removeClass('table-even-small table-odd-small');
   
  // Adds background to a menu item that has a dropdown.  
    $("ul#main-nav li.current-menu-item:has(ul)").addClass("has-dropdown");    
  
  /* The network-changer found next to the logo, that let's you navigate
     through the different sites RBCOM, RBNET and ServerPlatsen. */ 
     
     $("#network-switcher").toggle(
       function () {
         $('#the-networks-popup').slideDown('fast');
         $(this).addClass('network-switcher_down');
       },
       function () { 
         $('#the-networks-popup').slideUp('fast');
         $(this).removeClass('network-switcher_down'); 
       }
     ); 
      
     

     
     


 
 });
