function fun_photos(name_photo, id_photo, id_album)
{  
		if (typeof name_photo != 'undefined'){//DELETE ALBUM
			$( "#dialog_photo" ).dialog({
					resizable: false,
					height:140,
					modal: true,
					buttons: {
						"Ok": function() {
						var data = "&name_photo=" + name_photo + "&id_album=" + id_album;
						$.ajax({
						  type: "POST",
						  url: "php/db_photos_gallery_view.php",
						  data: data,
						    error: function(html){ // Sull'errore invoco una funzione
							alert("Si è verificato un errore. Riprovare più tardi, se il problema persiste contattare il webmaster alla seguente email marco17669@inwind.it");
						    },
						  success: function(html){
							var photo = "#" + id_photo;
							$(photo).fadeOut('slow');
							//alert(html); 

		
						  }
						});
						$( this ).dialog( "close" );
					},
					Cancel: function() {
						$( this ).dialog( "close" );
					}
				}
			});
		};

//alert(id_alb);
};

function fun_photos2(id_photo)
{  
		var data = "&id_photo=" + id_photo;


	$("#ajax_photo").slideUp("slow", function() {
	$(this).load("php/photos_gallery_view_edit.php", data, function() {
	  $(this).slideDown("slow");
	});});
};

function show_image()
{  
	alert('asd');
};


