function previewSetup()	{
	var projects, projectAttr
	var fullsizeImage = new Array();

	// get all LIs in imagelist, loop over them 
	projects = document.getElementById('projectnav').getElementsByTagName('a');
	for(i=0;i<projects.length;i++) {

		// Get the attributes for any referanced elementNode
		projectAttr = projects[i].attributes;
		projectHrefAttr = projectAttr.getNamedItem("href").value;
		
		projectSrcAttr = projectHrefAttr.replace(/.php/i, "/fullsize_01.jpg");
		projectSrcAttr = projectSrcAttr.replace(/practiceareas/i, "resources/images/content");
		
		// alert(projectSrcAttr);
		// thumbLinkAttr = projects[i].getElementsByTagName('a')[0].attributes;
		// thumbImgAttr = projects[i].getElementsByTagName('img')[0].attributes;

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

		// 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(projectAttr.getNamedItem("id").value).style.backgroundImage = "url(" + thumbImgAttr.getNamedItem("src").value + ")";

		// load the first image into the fullsize div		
		if(i==0) {
		 	document.getElementById("fullsize").style.backgroundImage = "url(" + projectSrcAttr + ")";
		 	document.getElementById("fullsize").style.display = "block";
			// thumbs[i].style.opacity = "0.5";
		} else {

			// Run a script to preload the additional full size images
			fullsizeImage[i] = new Image();
			fullsizeImage[i].src = projectSrcAttr;			
			
		}

		// Remove the anchor tag so the preview loads within the page if the broswer supports Javascript.
		// projects[i].removeChild(projects[i].getElementsByTagName('a')[0]);		

	}
}

function fnCallback(e, fullImage) { 

	// alert(fullImage);
	// var fullImage = resourcePath + practiceArea + projectName + "/fullsize_" + String(this.id) + ".jpg";

	// this.style.opacity = "0.5";
	document.getElementById("fullsize").style.backgroundImage = "url("+fullImage+")";
}