var UpdateImage={
	show:function(){
		var isExist=$("#Loading");
		if(isExist.length>0)
			return;
		
		$("body").append("<div id=\"UpdateImageOverlay\" style=\"position: absolute;top: 0;left: 0;z-index: 1179;width: 100%;height: 800px;background-color: #000; filter:alpha(opacity=50);-moz-opacity: 0.5;opacity: 0.5;\"></div><div id=\"UpdateImage\" class=\"clue\" style=\"left:0px; top:0px;z-index: 1200; width:360px; display:none;\"><div><iframe src=\"/Pilgrimage/uploadFile.aspx?id="+Showid+"\" width=\"100%\" height=\"36px\" scrolling=\"no\" frameborder=\"0\"></iframe></div></div>");
		var pa = getPageSize();
		var psl = getPageScroll();
		$("#UpdateImageOverlay").css("height",pa[1]+"px");
		$("#UpdateImage").css("top",(psl[1]+pa[3]/2 - 22) + "px");
		$("#UpdateImage").css("left",(pa[0]/2 - 180) + "px");
		$("#UpdateImage").show();
	},
	close:function(type){
		if(!type){
			$("#UpdateImage").fadeOut("slow",function(){
				try{UpdateImage.close(true);}catch(e){}
				try{$("#UpdateImage").remove();}catch(e){}
			});
		}else{
			$("#UpdateImageOverlay").fadeOut("slow",function(){
				try{$("#UpdateImageOverlay").remove();}catch(e){}
			});
		}
	}
}
