jQuery.fn.center = function () {
	this.css("position","absolute");
	this.css("top", ( $(window).height() - this.height() ) / 2+$(window).scrollTop() + "px");
	this.css("left", ( $(window).width() - this.width() ) / 2+$(window).scrollLeft() + "px");
	return this;
}

function ProductDetailPageOpenOverlay(contents) {
	OpenOverlay('<div id="contentWrap">'+contents+'</div>', 600, 360, 'aOverlay');
	$('#aOverlay').addClass("overlayBox").center();
}

function ProductDetailPageCloseOverlay() {
	CloseOverlay('aOverlay');
}

