function enlarge(obj)
{
var bgimg = obj.src.split("?imgmax=72")[0];
var titletext = obj.title;
document.getElementById('picframe').style.background = "#CCCC99 url(" + bgimg + "?imgmax=512) center"; 
document.getElementById('picframe').style.backgroundRepeat = "no-repeat";  
document.getElementById('captiontext').innerHTML = titletext; 
}
function skeleton() {};

if (!gdata) {
        var gdata = new skeleton();
        gdata.io = new skeleton();
        gdata.io.handleScriptLoaded = function(data)   
        {        
        outputone(data);
        }
}

function outputone(data)
{
for (var e = 0; e < data.feed.entry.length; e++)
{
var item1 = data.feed.entry[e];
var title1 = item1.title.$t;// the filename
var imgsrc1 = item1.content.src;//useful for downloading image

var height1 = parseInt(item1.gphoto$height.$t);
var width1 = parseInt(item1.gphoto$width.$t);

var orientation1 =(height1>width1 ? "vert" : "hor");
var description1 = item1.media$group.media$description.$t;// Picasa Web photo caption

document.write("<li><img  id='one"+e+"' class='gallery "+orientation1+" slideone"+e+"' src='" + imgsrc1 + "?imgmax=72' title='"+description1+"' onClick='enlarge(this);'></img></li>");
}
}

function outputtwo(datatwo)
{
for (var f = 0; f < datatwo.feed.entry.length; f++)
{
var item2 = datatwo.feed.entry[f];
var title2 = item2.title.$t;// the filename
var imgsrc2 = item2.content.src;//useful for downloading image

var height2 = parseInt(item2.gphoto$height.$t);
var width2 = parseInt(item2.gphoto$width.$t);

var orientation2 =(height2>width2 ? "vert" : "hor");
var description2 = item2.media$group.media$description.$t;// Picasa Web photo caption

document.write("<li><img id='two"+f+"' class='gallery "+orientation2+" slideone"+f+"' src='" + imgsrc2 + "?imgmax=72' title='"+description2+"' onClick='enlarge(this);'></img></li>");
}
}

function outputthree(datathree)
{
for (var g = 0; g < datathree.feed.entry.length; g++)
{
var item3 = datathree.feed.entry[g];
var title3 = item3.title.$t;// the filename
var imgsrc3 = item3.content.src;//useful for downloading image

var height3 = parseInt(item3.gphoto$height.$t);
var width3 = parseInt(item3.gphoto$width.$t);

var orientation3 =(height3>width3 ? "vert" : "hor");
var description3 = item3.media$group.media$description.$t;// Picasa Web photo caption

document.write("<li><img id='three"+g+"' class='gallery "+orientation3+" slideone"+g+"' src='" + imgsrc3 + "?imgmax=72' title='"+description3+"' onClick='enlarge(this);'></img></li>");
}
}

function outputfour(datafour)
{
for (var h = 0; h < datafour.feed.entry.length; h++)
{
var item4 = datafour.feed.entry[h];
var title4 = item4.title.$t;// the filename
var imgsrc4 = item4.content.src;//useful for downloading image

var height4 = parseInt(item4.gphoto$height.$t);
var width4 = parseInt(item4.gphoto$width.$t);

var orientation4 =(height4>width4 ? "vert" : "hor");
var description4 = item4.media$group.media$description.$t;// Picasa Web photo caption

document.write("<li><img id='four"+h+"' class='gallery "+orientation4+" slideone"+h+"' src='" + imgsrc4 + "?imgmax=72' title='"+description4+"' onClick='enlarge(this);'></img></li>");
}
}

function outputfive(datafive)
{
for (var i = 0; i < datafive.feed.entry.length; i++)
{
var item5 = datafive.feed.entry[i];
var title5 = item5.title.$t;// the filename
var imgsrc5 = item5.content.src;//useful for downloading image

var height5 = parseInt(item5.gphoto$height.$t);
var width5 = parseInt(item5.gphoto$width.$t);

var orientation5 =(height5>width5 ? "vert" : "hor");
var description5 = item5.media$group.media$description.$t;// Picasa Web photo caption

document.write("<li><img id='five"+i+"' class='gallery "+orientation5+" slideone"+i+"' src='" + imgsrc5 + "?imgmax=72' title='"+description5+"' onClick='enlarge(this);'></img></li>");}
}

function outputsix(datasix)
{
for (var j = 0; j < datasix.feed.entry.length; j++)
{
var item6 = datasix.feed.entry[j];
var title6 = item6.title.$t;// the filename
var imgsrc6 = item6.content.src;//useful for downloading image

var height6 = parseInt(item6.gphoto$height.$t);
var width6 = parseInt(item6.gphoto$width.$t);

var orientation6 =(height6>width6 ? "vert" : "hor");
var description6 = item6.media$group.media$description.$t;// Picasa Web photo caption

document.write("<li><img id='six"+j+"' class='gallery "+orientation6+" slideone"+j+"' src='" + imgsrc6 + "?imgmax=72' title='"+description6+"' onClick='enlarge(this);'></img></li>");}
}

function outputseven(dataseven)
{
for (var k = 0; k < dataseven.feed.entry.length; k++)
{
var item7 = dataseven.feed.entry[k];
var title7 = item7.title.$t;// the filename
var imgsrc7 = item7.content.src;//useful for downloading image

var height7 = parseInt(item7.gphoto$height.$t);
var width7 = parseInt(item7.gphoto$width.$t);

var orientation7 =(height7>width7 ? "vert" : "hor");
var description7 = item7.media$group.media$description.$t;// Picasa Web photo caption

document.write("<li><img id='seven"+k+"' class='gallery "+orientation7+" slideone"+k+"' src='" + imgsrc7 + "?imgmax=72' title='"+description7+"' onClick='enlarge(this);'></img></li>");}
}

function outputeight(dataeight)
{
for (var l = 0; l < dataeight.feed.entry.length; l++)
{
var item8 = dataeight.feed.entry[l];
var title8 = item8.title.$t;// the filename
var imgsrc8 = item8.content.src;//useful for downloading image

var height8 = parseInt(item8.gphoto$height.$t);
var width8 = parseInt(item8.gphoto$width.$t);

var orientation8 =(height8>width8 ? "vert" : "hor");
var description8 = item8.media$group.media$description.$t;// Picasa Web photo caption

document.write("<li><img id='eight"+l+"' class='gallery "+orientation8+" slideone"+l+"' src='" + imgsrc8 + "?imgmax=72' title='"+description8+"' onClick='enlarge(this);'></img></li>");
}
}

function outputnine(datanine)
{
for (var m = 0; m < datanine.feed.entry.length; m++)
{
var item9 = datanine.feed.entry[m];
var title9 = item9.title.$t;// the filename
var imgsrc9 = item9.content.src;//useful for downloading image

var height9 = parseInt(item9.gphoto$height.$t);
var width9 = parseInt(item9.gphoto$width.$t);

var orientation9 =(height9>width9 ? "vert" : "hor");
var description9 = item9.media$group.media$description.$t;// Picasa Web photo caption

document.write("<li><img id='nine"+m+"' class='gallery "+orientation9+" slideone"+m+"' src='" + imgsrc9 + "?imgmax=72' title='"+description9+"' onClick='enlarge(this);'></img></li>");}
}

function outputten(dataten)
{
for (var n = 0; n < dataten.feed.entry.length; n++)
{
var item10 = dataten.feed.entry[n];
var title10 = item10.title.$t;// the filename
var imgsrc10 = item10.content.src;//useful for downloading image

var height10 = parseInt(item10.gphoto$height.$t);
var width10 = parseInt(item10.gphoto$width.$t);

var orientation10 =(height10>width10 ? "vert" : "hor");
var description10 = item10.media$group.media$description.$t;// Picasa Web photo caption

document.write("<li><img id='ten"+n+"' class='gallery "+orientation10+" slideone"+n+"' src='" + imgsrc10 + "?imgmax=72' title='"+description10+"' onClick='enlarge(this);'></img></li>");}
}

function outputeleven(dataeleven)
{
for (var o = 0; o < dataeleven.feed.entry.length; o++)
{
var item11 = dataeleven.feed.entry[o];
var title11 = item11.title.$t;// the filename
var imgsrc11 = item11.content.src;//useful for downloading image

var height11 = parseInt(item11.gphoto$height.$t);
var width11 = parseInt(item11.gphoto$width.$t);

var orientation11 =(height11>width11 ? "vert" : "hor");
var description11 = item11.media$group.media$description.$t;// Picasa Web photo caption

document.write("<li><img id='eleven"+o+"' class='gallery "+orientation11+" slideone"+o+"' src='" + imgsrc11 + "?imgmax=72' title='"+description11+"' onClick='enlarge(this);'></img></li>");}
}

function kickOff() 
{
	var aAll;
	aAll = document.getElementsByTagName("a"); // disable and change color of active page's link
	for (var i=0; i<aAll.length; i++) 
	{
		if (window.location.href.split("#")[0] == aAll[i].href) 
			{
				aAll[i].onclick = function() {if (this.blur) {this.blur();} return false;}
				aAll[i].style.cursor = "text";
				aAll[i].style.borderBottom = "none";
				aAll[i].style.textDecoration = "none";
				aAll[i].style.color = "#656453";
				aAll[i].style.fontSize = "12px";
				aAll[i].style.fontWeight = "700";
				aAll[i].style.paddingRight = "5px";
			}
 		// fixes in-page link bug for Internet Explorer
		if (navigator.appName == "Microsoft Internet Explorer") 
		{
			getElementsByClass("target");
		}
	}
}
