function openNewsletter() {
	var width = ($(window).width() / 2) - (630/2);
	var height = (($(window).height() / 2) - (620/2)) + 40;
	window.open('http://www.motoworldracing.com/newsletterWindow.html','Newsletter','fullscreen=no,height=620,width=630,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,left='+width+',top='+height);
	return false;
}
function openRiderSupport() {
	var width = ($(window).width() / 2) - (630/2);
	var height = (($(window).height() / 2) - (700/2)) + 40;
	window.open('http://www.motoworldracing.com/riderSupportProgram.html','','fullscreen=no,height=700,width=630,location=no,menubar=no,scrollbars=yes,status=no,toolbar=no,left='+width+',top='+height);
	return false;
}
$(document).ready( function() {
	$("#topNav li a:contains('View All')").addClass("viewAll");
	$("#topNav li").hover(
		function() {
			$(this).find("ul").css({"display":"block"});
			$(this).addClass("selected");
		},
		function() {
			$(this).find("ul").css({"display":"none"});
			$(this).removeClass("selected");
		}
	);
});