
	function coverBodyPhoto(strPhoto, strText) 
	{
		$("body").append(
			$('<div/>')
				.attr('id','divCoverBody')
				.width($("body").outerWidth())
				.height($("body").outerHeight())
		);

		var imgLoading = new Image();
		$(imgLoading).attr('id','imgCoverBodyLoading');
		$(imgLoading).attr('src','library/images/ajax-loader.gif');
		
		$("body").append(
			$('<div/>')
				.attr('id','divCoverBodyContent')
				.append(imgLoading)
				.width('300px')
				.height('200px')
				.css('left',Math.round(($(window).width() - 300)/2))
				.css('top',Math.round(($(window).height() - 200)/2))
		);
		
		var imgImage = new Image();
		$(imgImage)
			.css('visibility','hidden')
			.attr('id','imgCoverBody')
			.attr('src',strPhoto)
			.load(function() {
				$('#imgCoverBodyLoading').remove();
				$('#imgCoverBody').width()
				$(this).parent().width($('#imgCoverBody').width());
				$(this).parent().height($('#imgCoverBody').height());
				$(this).parent().css('left',Math.round(($(window).width() - $('#imgCoverBody').width())/2))
				$(this).parent().css('top',Math.round(($(window).height() - $('#imgCoverBody').height())/2))
				$(this).attr('title','Clique para fechar');
				$(this).css('cursor','pointer');
				$(this).css('visibility','visible');
			});
		$('#divCoverBodyContent').append(imgImage);
		if(strText)
		{
			$('#divCoverBodyContent').append(
				$('<span/>')
					.text(strText)
					.css('display','block')
					.css('position','relative')
					.css('font-size','10px')
					.css('background-color','white')
					.css('color','#666666')
					.css('margin','0px -7px')
					.css('overflow','hidden')
					.css('padding','5px 7px')
			);
		}
		$('#imgCoverBody').load();
		$('#divCoverBodyContent').click(function(){ 
			$('#imgCoverBody').empty().remove();
			$('#divCoverBodyContent').empty().remove();
			$('#divCoverBody').remove();
		});
		
	}

