function toggleAnchor(){
	$('#stages').toggleClass('active');
}

$('#race_nav_stages').ready(function(){
$('#race_nav_stages').hover(function(){ toggleAnchor() }, function(){ toggleAnchor()})
})

// gets raceStyle class name and adds it to a class on the document body 
$('#race_nav_container').ready(function(){
	var race_style = $('#race_nav_container').attr('class');	
	$('body').addClass(race_style);
})

/******
* Functionality removed as part of CYN-1045

$('.results').ready(function(){
	$('.show_link').show();
	
	// stuff to toggle span.hidden_body content
	var button = '<a class="show_more">Show more</a>';

	$('span.hidden_body').after(button);
	
	$('span.show_more').live('click',function(){
		$('span.hidden_body').slideDown();
		$(this).removeClass('show_more').addClass('hide_more').text('Hide');
	})
	
	$('span.hide_more').live('click',function(){
		$('span.hidden_body').slideUp();
		$(this).removeClass('hide_more').addClass('show_more').text('Show more');
	})
	
	
	$('table').each(function(){
		var id = $(this).attr('id');
		
		var rowCount = $(this).attr('rel');
		
		if(rowCount > 10) $(this).after('<span class="show_more_link" rel="'+id+'">Show more</span>');
		
		});	
		
		$('.show_more_link').live('click',function(){
			var thisId = $(this).attr('rel');					
			$('#'+thisId).find('tr.temp_hide').show();
			$(this).text('Hide').addClass('hide_more_link').removeClass('show_more_link');
			
		})
		
		$('.hide_more_link').live('click',function(){
			var thisId = $(this).attr('rel');					
			$('#'+thisId).find('tr.temp_hide').hide();
			$(this).text('Show more').addClass('show_more_link').removeClass('hide_more_link');
		})
		

})
*/