function setNavSite(siteName)
{
	$('siteNone').setAttribute('id', siteName);
//	var s = document.getElementById('siteNone');
//	if (s) {
//		s.setAttribute('id', siteName);
//	}
}

$(document).ready(function(){
	/*
		adjust's top position of message box when browser is being scrolled 
		better if default_position is equal to the msgbox style default top position
		anyway you can modify it accordding what your site needs
	*/
	var default_position = 250;
	$(window).scroll(function(){
		$('#msgBoxPopup').animate({top:$(window).scrollTop()+default_position+"px" },{queue: false, duration: 350});
	});

	$("#DimBackground").css("height", $(document).height());

	//When the link that triggers the message is clicked, display DimBackground and fadeIn msgBoxPopup
	$(".popupAlert").click(function(){
		$("#DimBackground").css({'display':'block'});
		$("#msgBoxPopup").fadeIn();
		return false;
	});

	//When the message box is closed, hide DimBackground and fadeOut msgBoxPopup
	$(".popupClose").click(function(){
		$("#DimBackground").css({'display':'none'});
		$("#msgBoxPopup").fadeOut();
		return false;
	});

});

//adjust's height of overlay to fill screen when browser gets resized  
$(window).bind("resize", function(){
	$("#DimBackground").css("height", $(window).height());
});

