﻿function showArticle(e, id)
{
	// call the web service to get the article
	GLHOMES.Website.WebUI.NewsService.GetArticle(id, function(result)
	{
		// load the document into the container
		$get('news_article').innerHTML = result;

		// force the map to recalc its position
		fixNavMapPosition();
	}, null, null);
	
	// cancel the link navigation and link selection (if any)
	if (!e) e = window.event;
	if (!e) e = event;			
	e.returnValue = false;
	e.cancelBubble = true;
	$("body").focus();

	// scroll the article into view
	scrollPageTo("#news_contents", -30);
}

$(window).ready(function()
{
	$("#news_links_table tr").mouseenter(function()
	{
		$(this).addClass("hovered");
	}).mouseleave(function()
	{
		$(this).removeClass("hovered");
	});
});

