
function conteudo(id,div){
	$.ajax({
		type: "POST",
		url: "conteudo.php",
		data: ({conteudo:id}),
		dataType: 'html',
		success: function(data) {
			$(div).html(data);			
		},
		error:  function(xhr,status){
			alert('Erro:' + status);

		},
		complete: function(){
			$(div).show();
		},
		beforeSend: function(){
			$(div).html("<center><img src='images/load.gif' width='24' height='24' /></center>");
		}

	});
}


function trocafoto(id){
	var url = $(id).attr('src');
	$('#foto').attr('src',url);	
	$('#fotoDialog').attr('src',url);	
	
}

function fotoDialog(){
	$( "#dialog-modal" ).dialog({
			width: 637,
			modal: true
		});

}

