function ajaxPopup ( url )
{
	function BackgroundOverlay ( )
	{
		$('<div id="background-overlay"></div>').css({
			width:  $(document).width(),
			height:  $(document).height(),
			opacity: 0.25
		}).click(Close).appendTo(document.body).fadeIn();
	}
	
	function Close ( )
	{
		$('#background-overlay').remove();
		$('#ajax-popup').remove();
	}
	
	function Load ( container, url )
	{
		$(container).load(url,{},function(responseText, textStatus, XMLHttpRequest)
		{
			$(this).find('#ajax-popup-close').click(Close);
			
			$(this).appendTo(document.body).css({
				left: ( $(document).width() - $(this).width() ) / 2,
				top: 75
			}).fadeIn();
		});
	}

	if ( $('#ajax-popup').length == 0 )
	{
		BackgroundOverlay ( );	
		Load ( '<div id="ajax-popup"></div>', url );
	}
	else
	{
		Load ( '#ajax-popup', url );
	}
}