
function next_image(id, titel, h)
{
	if (titel == undefined) {
		sh(id, 'o');
	} else {
		if(!(h == "o")){
		sh(id, 'o');
	}
	
		document.title = titel+' - DennisvandenBroek.nl';
		document.getElementById("galerij").innerHTML = titel;
	}
	sh('load_overlay','o');
	objImage = new Image();
	objImage.source = 'showcase/large/'+ id + '.jpg';
	
	
	
if (window.XMLHttpRequest){
  xmlhttp=new XMLHttpRequest();
  }else{
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200){
	  
	  function imagesLoaded()
		{
 		document.getElementById('img').innerHTML=xmlhttp.responseText;

 		sh('load_overlay','c');
 		if (document.getElementById("s_s") != null){
 		sis(id);
		}
 		}
    objImage.onLoad=imagesLoaded();
    }
  }
xmlhttp.open("GET","/next_image.php?id="+id+"&gt="+titel,true);
xmlhttp.send();
}

var then,now=new Date();
	function tijd(){
		then=new Date();
		sh('load_overlay','c');
		}
		window.onload=function(){
			 tijd();
			 }
