function listSetup()	{
	var links, linksAttr;
	var fullsizeImage = new Array();

	// get all LIs in imagelist, loop over them 
	links = document.getElementById('panel').getElementsByTagName('li');

	for(i=0;i<links.length;i++) {

		// Get the attributes for any referanced elementNode
		linksAttr = links[i].attributes;
		linksHrefAttr = links[i].getElementsByTagName('a')[0].attributes;
		// thumbImgAttr = links[i].getElementsByTagName('img')[0].attributes;

		// Assign an event listener to the preview div
		// alert(linksHrefAttr.getNamedItem("href").value);
		YAHOO.util.Event.addListener(linksHrefAttr.getNamedItem("id").value, "mouseover", fnCallback);

		// Assign the source of the contained IMG tag as the background image for the div.
		// This may seem an odd thing to do, but later we will remove the image from the div.
		// document.getElementById(thumbDivAttr.getNamedItem("id").value).style.backgroundImage = "url(" + thumbImgAttr.getNamedItem("src").value + ")";
		

		// load the first image into the fullsize div		
		if(i==0) {
			// alert("ping");
			document.getElementById("fullsize").style.backgroundImage = "url(" + linksHrefAttr.getNamedItem("href").value + ")";
			document.getElementById("fullsize").style.display = "block";
		} else {
			// alert("pong");
			// alert("Preloading : " + thumbLinkAttr.getNamedItem("href").value);
			// Run a script to preload the additional full size images
			fullsizeImage[i] = new Image(60,45);
			fullsizeImage[i].src = linksHrefAttr.getNamedItem("href").value;			
			
		}

		// Remove the anchor tag so the preview loads within the page if the broswer supports Javascript.
		// Doing so removes the image itself, which prevents the images from printing so I've comented out
		// the deletion for now. This means clicking on an image will open it in the browsser window.
		// thumbs[i].removeChild(thumbs[i].getElementsByTagName('a')[0]);		

	}
}

function fnCallback(e) { 
	// alert(this.href);
	// var fullImage = resourcePath + projectName + "/fullsize_" + String(this.id.substring(6)) + ".jpg";

	document.getElementById("fullsize").style.backgroundImage = "url("+this.href+")";
}