// ------------------------------------------------------------
// 
// ------------------------------------------------------------
var g_fixPNGs = (jQuery.browser.msie && jQuery.browser.version < 7);
var g_disableAnimations = (jQuery.browser.msie && jQuery.browser.version != 7);

// ------------------------------------------------------------
// 
// ------------------------------------------------------------

var resizeTimer = null;


$(document).ready(
	function ()
	{
		$("#nav-sections li a.main").click(function () { return false; });

		$("#nav-sections li a.main").focus(function () { this.blur(); });
		
		// $("#nav-main li a").hover(handleNavMainMouseover, function () {});
	
	/*doVerticalCenter();
	
	$(window).bind('resize', function() {
		if (resizeTimer) clearTimeout(resizeTimer);
		resizeTimer = setTimeout("doVerticalCenter()", 100);
	});
	*/

	}
);




function doVerticalCenter () {
	var mainHeight=576;
	
		if ($(window).height()>mainHeight) {
			pageTopMargin = Math.floor(($(window).height()-mainHeight)/2);
		}
		else {
			pageTopMargin = 0;
		}
		$("#container").css({top: pageTopMargin});

}




// ------------------------------------------------------------
// 
// ------------------------------------------------------------
/*
function handleNavMainMouseover ()
{
	if (!$("span", $(this)).length)
	{
		$(this).append("<span></span>");
	};
	
	var hoverEl = $("span", $(this));
	
	hoverEl.stop();
	
	hoverEl.css("width", "0").show().animate({
		width: 78
	}, {
		duration: 200,
		complete: function ()
		{
			hoverEl.animate({
				width: 0
			}, {
				duration: 200,
				complete: function ()
				{
					hoverEl.hide();
				}
			});
		}
	});
};
*/
