// Scripts by Jeremy Keith, impostered by Brent and Wai
// any anchor with the class of "Popup" will be a popup

window.onload = function() {
  if (!document.getElementsByTagName) return false;
  var lnks = document.getElementsByTagName("a");
  for (var i=0; i<lnks.length; i++) {
    if (lnks[i].getAttribute("class") == "Popup") {
      lnks[i].onclick = function() {
        popUp(this.getAttribute("href"));
        return false;
      }
    }
  }
}
// add your attributes here for the popup
function popUp(winURL) {
  window.open(winURL,"Popup","width=800,height=600,scrollbars,resizable");
}

function showPic(whichpic) {
	var source = whichpic.getAttribute ("href");
	var viewer = document.getElementById("Viewer");	
	viewer.setAttribute("src", source);	
	var text = whichpic.getAttribute ("title");
	var description = document.getElementById("Description");
	description.firstChild.nodeValue = text;
}
