/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

function menu(user_id,id_menu,callback){
    var url = "http://picasaweb.google.com/data/feed/api/user/" + user_id +  "?&kind=album&alt=json-in-script&access=public&callback=?"
    jQuery.getJSON(url, function(data) {
			var albums = data.feed.entry;
                             $(albums).each(function(intindex){                                    
                                    $('#' + id_menu).append('<span class="span_mnu" onclick="'+ callback +'(\'' + albums[intindex].gphoto$id.$t + '\')">' + albums[intindex].title.$t + '</span>');
                             }
                        )
		});

}


