
$(document).ready(function(){
    $('.map_select_li').click(function(){
      $('#map_select_ul .map_select_li').removeClass('selected');
      $('.noborder').removeClass('noborder');
      if($(this).attr("id") == 'europe_races_li'){ $('#country_races_li').addClass('noborder');}
      if($(this).attr("id") == 'nonasics_races_li'){ $('#europe_races_li').addClass('noborder');}
      $(this).addClass('selected');
    });
    $('.map_select_li').hover(function(){$(this).css('cursor', 'pointer');}, 
      function(){$(this).css('cursor', 'normal');});
    $('.season_other_item').click(function(){
      if($(this).find('dd').eq(0).css('display') == 'none') {
        $(this).find('dd').eq(0).slideDown(100).show();
        $(this).find('dt').eq(0).addClass('open');
      } else {
        $(this).find('dd').eq(0).slideUp(100).hide();
        $(this).find('dt').eq(0).removeClass('open');
      }
    });
    $('#world_races_link').fancybox({'overlayShow': true, 'frameHeight' : 610, 'frameWidth' : 900})
});
