function closep() {
	$('.popup').hide();
/*	if ($.browser.msie) {
		$('.iframe').remove();
	}
*/
	$('.popupBack').remove();
}

function showp(item) {
	item = $('#'+item);
//	iframe = $('<iframe class="iframe" frameborder="0"></iframe>');
	popupBack = $('<div class="popupBack"></div>')
	windowHeight = document.documentElement.clientHeight;
	fullHeight = $('body').height();
	currentOffset = document.documentElement.scrollTop || document.documentElement.scrollTop;
	currentOffset = currentOffset + parseInt((windowHeight - item.height()) / 2);
	pLeft = (document.body.clientWidth - item.width()) / 2;
	item.css({top:currentOffset,left:pLeft}).show();
/*	if ($.browser.msie) {
		iframe.css({
			top:currentOffset+10,
			left:pLeft+10,
			width:item.width()-20,
			height:item.height()-20
		}).appendTo('body');
	}*/

	popupBack.css({
			height:fullHeight+20
		}).appendTo('body').click(function(){
			closep();
		});
	return false;
}
$(document).ready(function(){
	$('.popup .closep').click(function(){
		closep();
	});
})

