/*
	Setup.  Called when the document completes, any code
	that needs to run after the document loads should be placed here.
/**/
$(document).ready(function() {
/*
	$("body > #Wrapper > header").click(function() {
		window.location.href='/';
	});
	
	$("body > #Wrapper > header").css({cursor: "pointer"});
/**/
	//$("body > #Wrapper > header").wrap("<a href='/'></a>");


	SetupNavigationHover();
	HidePreviousArticles();
});


/*
	Sets up which news articles are less-than-current
/**/
function HidePreviousArticles()
{
	$(".News:not(:first)").addClass("Previous");
}

/*
	Adds mouseover and mouseout handlers to our navigation elements,
	to animate the background/border.
/**/
function SetupNavigationHover()
{
	$("#Navigation > li > a").mouseover(function() {
		$(this).animate({
							"backgroundColor": "rgba(255,255,255,0.25)",
							"borderLeftColor": "rgba(255,255,255,0.5)",
							"borderRightColor": "rgba(255,255,255,0.5)",
						}, 250);
	});
				
	$("#Navigation > li > a").mouseout(function() {
		$(this).animate({
							"backgroundColor": "rgba(0,0,0,0)",
							"borderLeftColor": "rgba(0,0,0,0)",
							"borderRightColor": "rgba(0,0,0,0)",
						}, 250);
	});
}
