function high(which2){
	theobject=which2
	highlighting=setInterval("highlightit(theobject)",25)
}
function low(which2){
	clearInterval(highlighting)
	if (which2.style.MozOpacity)
	which2.style.MozOpacity=0.3
	else if (which2.filters)
	which2.filters.alpha.opacity=30
}

function highlightit(cur2){
	if (cur2.style.MozOpacity<1)
	cur2.style.MozOpacity=parseFloat(cur2.style.MozOpacity)+0.1
	else if (cur2.filters&&cur2.filters.alpha.opacity<100)
	cur2.filters.alpha.opacity+=10
	else if (window.highlighting)
	clearInterval(highlighting)
}

function swapImgRestore() {
	var i,x,a=document.sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function findObj(n, d) {
	var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=findObj(n,d.layers[i].document);
	if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function swapImage() {
	var i,j=0,x,a=swapImage.arguments; document.sr=new Array; for(i=0;i<(a.length-2);i+=3)
	if ((x=findObj(a[i]))!=null){document.sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function jumpUrl(targ,selObj,restore) {
	eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	if (restore) selObj.selectedIndex=0;
}

function showImage(documentroot,name,width,Height) {
	OpenWindow = window.open("","","width="+width+",Height="+Height+",top=40,left=40,directories=no,hotkeys=no,location=no,menubar=no,resizable=yes,scrollbars=no,toolbar=no");
	
	OpenWindow.document.write("<!doctype html public \"-//W3C//DTD HTML 4.0 Transitional//EN\">\n");
	OpenWindow.document.write("<html>\n");
	OpenWindow.document.write("<head>\n");
	OpenWindow.document.write("<title>Foto</title>\n");
	OpenWindow.document.write("<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>\n");
	OpenWindow.document.write("<style type='text/css'>\n");
	OpenWindow.document.write("body {\n");
	OpenWindow.document.write("	font-family: verdana, geneva, arial, helvetica, sans-serif;\n");
	OpenWindow.document.write("	font-size: 11px;\n");
	OpenWindow.document.write("	font-style: normal;\n");
	OpenWindow.document.write("	background-color: #E5ECEF;\n");
	OpenWindow.document.write("	margin: 0;\n");
	OpenWindow.document.write("}\n");
	OpenWindow.document.write("a.hover_black_bold {\n");
	OpenWindow.document.write("	color: #000000;\n");
	OpenWindow.document.write("	text-decoration: none;\n");
	OpenWindow.document.write("	font-weight: bold;\n");
	OpenWindow.document.write("}\n");
	OpenWindow.document.write("a:hover.hover_black_bold {\n");
	OpenWindow.document.write("	color: #007091;\n");
	OpenWindow.document.write("	text-decoration: none;\n");
	OpenWindow.document.write("	font-weight: bold;\n");
	OpenWindow.document.write("}\n");
	OpenWindow.document.write(".image {\n");
	OpenWindow.document.write("	border: 1px solid #898989\n");
	OpenWindow.document.write("}\n");
	OpenWindow.document.write("</style>\n");
	OpenWindow.document.write("</head>\n");
	OpenWindow.document.write("<body>\n");
	OpenWindow.document.write("<br /><center><b>[ <a href='javascript:self.close();' class='hover_black_bold' title='Sluit dit venster'>sluit venster</a> ]</b><br /><br /><img src='"+documentroot+"/images/content/"+name+"' class='image' border'0' alt='' /></center>\n");
	OpenWindow.document.write("</body>\n");
	OpenWindow.document.write("</html>\n");
	
	OpenWindow.document.close()
}