function displayPopup(selector) {
	var popup = jQuery(selector);
	if(popup.length) {
		var top = 25;
		var width = popup.innerWidth()-36;
		var height = popup.innerHeight()-36;
		popup
			.append('<div class="popup-corner popup-corner-lo"></div>')
			.append('<div class="popup-corner popup-corner-lu"></div>')
			.append('<div class="popup-corner popup-corner-ro"></div>')
			.append('<div class="popup-corner popup-corner-ru"></div>')
			.append('<div class="popup-horiz popup-horiz-top" style="width:'+width+'px;"></div>')
			.append('<div class="popup-horiz popup-horiz-bottom" style="width:'+width+'px;"></div>')
			.append('<div class="popup-vert popup-vert-left" style="height:'+height+'px;"></div>')
			.append('<div class="popup-vert popup-vert-right" style="height:'+height+'px;"></div>');
		if(!jQuery.browser.msie) {
			popup.find('.popup-close').click(function(){
				popup.animate({
					top: -1*top,
					opacity: 0
				},1000, function(){$(this).hide();});
			});
			popup.css('opacity',0).css('top',-1*top).animate({
				top: top,
				opacity: 1
			},1000);
		} else {
			popup.find('.popup-close').click(function(){
				popup.animate({
					top: -1*top
				},1000, function(){jQuery(this).hide();});
			});
			popup.css('top',-1*top).animate({
				top: top
			},1000);
		}
	}
}
