function pop_it(id,bg) {
	centerPopup(id,bg);
	$("#"+bg).css({"opacity": "0.8"});
	$("#"+bg).fadeIn("slow");
	$("#"+id).fadeIn("fast");
	dd = new YAHOO.util.DDProxy(id);  
	return false;
}

//centering popup
function centerPopup(id,bg){
	//request data for centering
	var windowWidth = document.documentElement.clientWidth;
	var windowHeight = document.documentElement.clientHeight;
	var popupHeight = $("#"+id).height();
	var popupWidth = $("#"+id).width();
	//centering  
	$("#"+id).css({
		"position": "fixed",
		"top": windowHeight/2-popupHeight/2,
		"left": windowWidth/2-popupWidth/2
	});
	//only need force for IE6
	$("#"+bg).css({
		"height": windowHeight
	});
}

function pop_close(id,bg) {
	$("#"+id).fadeOut("fast");
	$("#"+bg).fadeOut("normal");
	return false;
}




