<!--
function OpenRecensie(img_path,title,width,height){
other_arguments="width=";other_arguments+=width+20
other_arguments+=",height=";other_arguments+=height+20
other_arguments+=",location=no,menubar=no,resizable=auto,status=no,toolbar=no"
window.open(img_path,title,other_arguments)}

function displayThumb(myimage,width,height) {
 html = "<html><head><title>Photo</title><link rel=\"stylesheet\" href=\"/styles/orikadabra_new.css\" type=\"text/css\" />" +
  "</head><body style=\"margin:0;padding:0;\">" +
  "<div class=\"center\" style=\"width:100%;\"><a  href=\"javascript:window.close();\"><img src='" + myimage + "' border=\"0\" name=\"image\" " +
  "onload='window.resizeTo(document.image.width+30,document.image.height+30)'></a></div>" +
  "</body></html>";
 popup=window.open('','image','toolbar=0,location=0,directories=0,menuBar=0,scrollbars=1,resizable=1');
 popup.document.open();
 popup.document.write(html);
 //popup.document.focus();
 popup.document.close()
}

function showPhoto(photo,width,height,thetitle) {
	
	var arrayPageSize = getPageSize();
	var pageHeight = arrayPageSize[1];
	var windowHeight = arrayPageSize[3];
	var ClientWidth;
	var ClientHeight
	
	if (self.innerHeight) { // all except Explorer
		ClientWidth = self.innerWidth;
		ClientHeight = self.innerHeight;
	}
	else if (document.documentElement && document.documentElement.clientHeight) {
		ClientWidth = document.documentElement.clientWidth; 
		ClientHeight = document.documentElement.clientHeight;
	}
	else if (document.body) { // other Explorers
		ClientWidth = document.body.clientWidth;
		ClientHeight = document.body.clientHeight;
	}
	document.getElementById("photo").style.left = ClientWidth/2 - width/2 + "px";
	var scroll = 0;
	if(navigator.appName == "Microsoft Internet Explorer") { scroll = document.body.scrollTop; }
	document.getElementById("photo").style.top = scroll + ClientHeight/2 - height/2 + "px";
	document.getElementById("photo").style.width = width + "px";
	document.getElementById("photo").style.height = height + "px";
	document.getElementById("photo").style.background = "#D6D6CE url(../images/"+photo+")";
	//document.getElementById("photo").title = thetitle;
	document.getElementById("photobackground").style.height = pageHeight + "px";
	document.getElementById("photobackground").style.display = "block";
}
function displayPhoto(photo,width,height,thephotographer,hr) {
	
	//alert(photo.title);
	
	var arrayPageSize = getPageSize();
	var pageHeight = arrayPageSize[1];
	var windowHeight = arrayPageSize[3];
	var ClientWidth;
	var ClientHeight;
	
	var thetitle = photo.title;
	var src = photo.href;
	//var titleEdit = src.replace(/-/,"&nbsp;");
	
	/*photo = "\""+photo+"\"";
	photo = (photo.replace("_hr",""));*/
	
	if (self.innerHeight) { // all except Explorer
		ClientWidth = self.innerWidth;
		ClientHeight = self.innerHeight;
	}
	else if (document.documentElement && document.documentElement.clientHeight) {
		ClientWidth = document.documentElement.clientWidth; 
		ClientHeight = document.documentElement.clientHeight;
	}
	else if (document.body) { // other Explorers
		ClientWidth = document.body.clientWidth;
		ClientHeight = document.body.clientHeight;
	}
	document.getElementById("photo").style.left = ClientWidth/2 - width/2 + "px";
	var scroll = 0;
	if(navigator.appName == "Microsoft Internet Explorer") { scroll = document.body.scrollTop; }
	document.getElementById("photo").style.top = scroll + ClientHeight/2 - height/2 + "px";
	document.getElementById("photo").style.width = width + "px";
	document.getElementById("photo").style.height = height + "px";
//	document.getElementById("photo").style.background = "#d6d6ce url("+photo+")";
	document.getElementById("photosource").src = photo;
	document.getElementById("photosource").width = width;
	document.getElementById("photosource").height = height;
	document.getElementById("photobackground").style.height = pageHeight + "px";
	document.getElementById("photobackground").style.display = "block";
	document.getElementById("photographer").style.top = scroll + ClientHeight/2 + height/2 + 20 + "px";
	document.getElementById("photographer").style.left = ClientWidth/2 - width/2 + 2 + "px";
	document.getElementById("photographer").style.width = width - 20 + "px";
	if(thetitle) { 
		if(thephotographer) {
			document.getElementById("photographer").innerHTML = "<span>" + thetitle + "</span> &nbsp; " + thephotographer;
		} else {
			document.getElementById("photographer").innerHTML = "<span>" + thetitle + "</span>";
		}
	} else if(thephotographer) {
		document.getElementById("photographer").innerHTML = thephotographer;
	}

	if(hr) {
		try {
			var kb = hr;
			kb = kb.split("?");
			if(kb[1]) {
				hr = kb[0];
				kb = " "+kb[1]+" ";
				kb = kb.replace("KB"," KB");
				kb = kb.replace("MB"," MB");
			} else { kb=""; }
			document.getElementById("hr").style.top = scroll + ClientHeight/2 + height/2 + 20 + "px";
			document.getElementById("hr").style.left = ClientWidth/2 + width/2 + 4 + "px";
			document.getElementById("hr").innerHTML = "<a href=\""+hr+"\" onclick=\"window.open(this.href);return false\" title=\""+kb+"\">HR</a>"; 
		} catch(err) { }
		try { document.getElementById("hr").style.display = "block"; } catch(err) { }
	}
}
function hidePhoto() {
	try { 
		document.getElementById("hr").style.display = "none"; 
	 	document.getElementById("hr").innerHTML = "" 
		document.getElementById("photographer").innerHTML = ""; 
		document.getElementById("photobackground").style.display = "none"; 
		document.getElementById("photosource").src = ""; 
	} catch(err) { }
}

function getPageSize(){

	var xScroll, yScroll;

	if (window.innerHeight && window.scrollMaxY) {	
		xScroll = document.body.scrollWidth;
		yScroll = window.innerHeight + window.scrollMaxY;
	} else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
		xScroll = document.body.scrollWidth;
		yScroll = document.body.scrollHeight;
	} else if (document.documentElement && document.documentElement.scrollHeight > document.documentElement.offsetHeight){ // Explorer 6 strict mode
		xScroll = document.documentElement.scrollWidth;
		yScroll = document.documentElement.scrollHeight;
	} else { // Explorer Mac...would also work in Mozilla and Safari
		xScroll = document.body.offsetWidth;
		yScroll = document.body.offsetHeight;
	}

	var windowWidth, windowHeight;
	if (self.innerHeight) {	// all except Explorer
		windowWidth = self.innerWidth;
		windowHeight = self.innerHeight;
	} else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
		windowWidth = document.documentElement.clientWidth;
		windowHeight = document.documentElement.clientHeight;
	} else if (document.body) { // other Explorers
		windowWidth = document.body.clientWidth;
		windowHeight = document.body.clientHeight;
	}	

	// for small pages with total height less then height of the viewport
	var pageHeight;
	if(yScroll < windowHeight){
		pageHeight = windowHeight;
	} else { 
		pageHeight = yScroll;
	}

	// for small pages with total width less then width of the viewport
	var pageWidth;
	if(xScroll < windowWidth){	
		pageWidth = windowWidth;
	} else {
		pageWidth = xScroll;
	}

	var arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight) 
	return arrayPageSize;
}

function sh(id) {try{document.getElementById(id).style.display = "block";} catch(err) {}}
function hd(id) {try{document.getElementById(id).style.display = "none";} catch(err) {}}


//-->
