function output(data)
{
for (var i = 0; i<data.feed.entry.length; i++)
//for (var i = 0; i <150; i++) // as my picasa web album has more than 24 photos!
{
var item = data.feed.entry[i];
var title = item.title.$t;// the filename
var imgsrc = item.content.src;//useful for downloading image

var height = parseInt(item.gphoto$height.$t);
var width = parseInt(item.gphoto$width.$t);

var orientation =(height>width ? "vert" : "hor");
var description = item.media$group.media$description.$t;// Picasa Web photo caption

document.writeln("<li><a href='" + imgsrc + "?imgmax=512' title='"+description+"' class='"+orientation+"' rel='thumbnail'><img src='" + imgsrc + "?imgmax=144' alt='"+description+"' title='"+description+"'/>"+description+"</a></li>");
}
}

function enlarge(obj)
{
obj.src = obj.src.replace('=512', '=512');
}



