// Jquery implementation of suckerfish for IE6
$(document).ready( function() {
	if (($.browser.version != "8.0") && ($.browser.msie))
	{
		$("#navMenu li, #loginlogout li").hover( function () {
			$(this).addClass("hover");
		},
		function () {
			$(this).removeClass("hover");
		});
	}
});

// Use the bgiframe plugin for Jquery to shim menus and tooltips
$(document).ready( function () {
	$("#navMenu ul ul, #loginlogout ul ul, .tooltip").bgiframe();
}); 

// Helps resolve return urls for static links.
function gotoWithReturn(page)
{
	window.location = page + "?ReturnUrl=" + encodeURIComponent(window.location.pathname);
}