// JavaScript Document
function xmlGallery(filename)
{
			if (window.XMLHttpRequest)
			{
				xhttp=new XMLHttpRequest
			}
			else
			{
				xhttp=new ActiveXObject("Microsoft.XMLHTTP")
			}
			xhttp.open("GET",filename,false);
			xhttp.send("");
			xmlDoc=xhttp.responseXML;
				
			var ttl,img,thmb,p=xmlDoc.getElementsByTagName("art"),rel=xmlDoc.getElementsByTagName("rel")[0].childNodes[0].nodeValue,artist=xmlDoc.getElementsByTagName("name")[0].childNodes[0].nodeValue;
			document.write("<tr id='ToddFrain'><td><p>Artwork By ");
			document.write(artist);
			document.write("</p><table width='100%' border='0' cellpadding='5' cellspacing='0' id='gallery'><tr><td id='Gallery'>");
			for(i=0 ; i < p.length ; i++)
			{
				ttl=xmlDoc.getElementsByTagName("title")[i].childNodes[0].nodeValue;
				image=xmlDoc.getElementsByTagName("image")[i].childNodes[0].nodeValue;
				thumb=xmlDoc.getElementsByTagName("thumb")[i].childNodes[0].nodeValue;
					
				document.write("<a href='");
				document.write(image);
				document.write("' rel='lightbox[");
				document.write(rel);
				document.write("]' title='");
				document.write(ttl);
				document.write("'><img src='");
				document.write(thumb);
				document.write("' width='90' height='90' /></a> ");
			}
			document.write("</td></tr></table>");
};