var cssNode = document.createElement('link');
cssNode.setAttribute('rel', 'stylesheet');
cssNode.setAttribute('type', 'text/css');
cssNode.setAttribute('href', 'photogal01.css');
document.getElementsByTagName('head')[0].appendChild(cssNode);

function output(data)
{
//for (var i = 0; i < data.feed.entry.length; i++)
for (var i = 0; i <90; 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=800' rel='ibox' class='group' title='"+description+"'><img src='" + imgsrc + "?imgmax=72' alt='' title='"+description+"'/><b>"+description+"</b></a></li>");

}
}

function enlarge(obj)
{
obj.src = obj.src.replace('?imgmax=72', '?imgmax=800');
}


