function changeImage(src){
	if (!document.getElementById) return true;
	var placeholder = document.getElementById("bigimage");
	placeholder.setAttribute("src", src);
}

/*
function addLoadEvent(func){
	var oldonload = window.onload;
	if(typeof window.onload != 'function') {
		window.onload = func;
	} else {
		window.onload = function() {
			oldonload();
			func();
		}
	}
}

function prepareGallery(){
	
	if (!document.getElementsByTagName) return false;
	if (!document.getElementById) return false;
	//alert('hoi');
	
	//if(!document.getElementById("thumbnaillist")) return false;
	alert('hoi');
	
	var gallery = document.getElementById("thumbnaillist");
	var links = gallery.getElementsByTagName("a");
	
	alert(links.length);
	
	for( var i = 0; i < links.length; i++){
		links[i].onclick = function() {
			return showPic(this);
			//return false;
		}
	}
}


function showPic(whichpic){
	if (!document.getElementById("bigimage")) return true;
	
	var source = whichpic.getAttribute("href");
	var placeholder = document.getElementById("bigimage");
	placeholder.setAttribute("src", source);

	if (!document.getElementById("omschrijving")) return false;
	
	var text = whichpic.getAttribute("title");	
	
	var description = document.getElementById("omschrijving");
	description.firstChild.nodeValue = text;
	//alert(description.nodeName);
	//alert(description.firstChild.nodeValue);
	
	return false;
}

//addLoadEvent( prepareGallery );

window.onload = prepareGallery();
*/