		i = 0;
		shotList = new Array();
		for(i=0; i<502; i++)
		{
			addNum = (i<10) ? "00" : ((i<100) ? "0" : "");
			shotList[i] = "images/screens/ss"+addNum+(i+1)+".jpg";
		}
		

if (window.XMLHttpRequest) { var xmldata = new XMLHttpRequest(); }
else { var xmldata = new ActiveXObject("MSXML2.XMLHTTP.3.0"); }

xmldata.onreadystatechange = function() { 
	if(xmldata.readyState == 4)
	{ 
		if(xmldata.responseXML != null) addEntries(xmldata.responseXML);
  	else { /* alert("Data Failure"); */ }
	}
}

xmldata.open("GET", "Web.xml", true);
xmldata.send(null);

function addEntries(dataref)
{
  shotListData = new Array();
  shotList = new Array();
  data = dataref.getElementsByTagName('add');
  for(xi=9; xi<=data.length; xi++)
  {
		if(data[xi])
		{
			pval = data[xi].getAttribute("value")
			shotListData.push(pval); 
			shotList[xi-8] = data[xi].getAttribute("key").replace(/\\/g,"/");
	  	}
  }
	shotList.shift();
	currentPage = 0;
	shotsPerPage = 16;

	if(galpg){ shotsPerPage = shts;  size = (shotsPerPage==16)?"sixteen":(shotsPerPage==9)?"nine":"four";
	document.getElementById("galleryPictures").className = "pictureGallery " + size; 
	currentPage = entergal - 1;
	addEvent(window,"load",function(){omegaLightBox(galpg)}); 
	}
	printPages();

}
