//function to allow more than one window.onload event
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      oldonload();
      func();
    }
  }
}



function showpic(whichpic) {
	var fullimage	= document.getElementById("fullimage");
	if(whichpic){
		var full_source = whichpic;
		fullimage.setAttribute("src",full_source);
	}
	//fullimage.setAttribute("title",tmp_title);
	
	//var description = document.getElementById("description");
	//description.firstChild.nodeValue = imagelist[image_curr]["title"];
}

addLoadEvent(showpic);