// JavaScript Customizations for a NetCommunity Web Site

/* add hover functionality to menu - needed for IE6 */
$('ul.menu li').hover(function(){$(this).addClass('hover')},function(){$(this).removeClass('hover')});

/* replace year in footer copyright with current year */
$("#currentYear").text((new Date).getFullYear());

/* variable top margin for right column based on height of page headline */
var h1Height = $('#contentPrimary h1:first').height();
$('#contentSecondary').css('margin-top',h1Height);
$('.homePage #contentSecondary').css('margin-top','0');

/* fix positioning of popups in page/template editor */
function fixPositioning()
{
	$('div[id *= "_panelPopup"]').appendTo('body');
}
Sys.WebForms.PageRequestManager.getInstance().add_pageLoaded(fixPositioning);
