$(document).ready(function() {

	$('.PopupStandardWrapper').hide();

	$('.PopupStandardLink').click(function() {
		if ($(this).parents('.PopupStandardLinkAndTextWrapper').find('.PopupStandardWrapper').is(':visible'))
		{
			$('.PopupStandardWrapper').removeShadow().hide();
		}
		else
		{
			$('.PopupStandardWrapper').removeShadow().hide();

			$('.PopupStandardWrapper').css('position', 'absolute').css('left', $('#Wrapper').position().left + (($('#Wrapper').width() - $('.PopupStandardWrapper').width()) / 2)).css('top', $(window).scrollTop() + 50);
			$(this).parents('.PopupStandardLinkAndTextWrapper').find('.PopupStandardWrapper').show().dropShadow({left: 2, top: 2});
		}
		return false;
	});

	$('.PopupStandardClose').click(function() {
		$('.PopupStandardWrapper').removeShadow().hide();
		return false;
	});

});
