function openOverlay( id )
{
	document.body.style.overflow = 'hidden';
	document.getElementById(id).style.display = 'block';
}

function closeOverlay( id )
{
	document.getElementById(id).style.display = 'none';
	document.body.style.overflow = 'auto';
}

function showImage( image )
{
	document.getElementById( 'overlay_content' ).innerHTML = '';
	openOverlay( 'overlay1' );
//	var objLightbox = document.createElement("div");
	//objLightbox.setAttribute('id', 'lightbox');
	
	var objPara		= document.createElement("p");
	objPara.setAttribute('id', 'lightboxPara');
	//objLightbox.appendChild(objPara);
	
	var objLink		= document.createElement("a");
	objLink.setAttribute('href', '#');
	objLink.setAttribute('title', 'Klik om te sluiten.');
	objLink.onclick = function () {closeOverlay('overlay1'); return false;}
	objPara.appendChild(objLink);
	
	var objImage	= document.createElement("img");
	objImage.setAttribute('id', 'lightboxImage');
	objImage.setAttribute('alt', 'Klik om te sluiten');
	objImage.setAttribute('src', image);
	objLink.appendChild(objImage);
	
	document.getElementById( 'overlay_content' ).appendChild(objPara);
}
