function changeImage(path){
	
	document.getElementById("imagelarge1").src = "images/photolib/" + path;


	if(description[path]){
		document.getElementById("imagelarge1").alt = description[path];
		document.getElementById("imagelarge1").title = description[path];
	}else{
		document.getElementById("imagelarge1").alt = "";
		document.getElementById("imagelarge1").title = "";
	}
}

function toggleBox(szDivID) {
	if (document.layers) { // NN4+
		if (document.layers[szDivID].visibility == 'visible') {
			document.layers[szDivID].visibility = "hide";
			document.layers[szDivID].display = "none";
			document.layers[szDivID].position = "absolute";
		} else {
			document.layers[szDivID].visibility = "show";
			document.layers[szDivID].display = "inline";
			document.layers[szDivID].position = "relative";
		}
	} else if (document.getElementById) { // gecko(NN6) + IE 5+
		var obj = document.getElementById(szDivID);
		if (obj.style.visibility == 'visible') {
			obj.style.visibility = "hidden";
			obj.style.display = "none";
			//obj.style.position = "absolute";
		} else {
			obj.style.visibility = "visible";
			obj.style.display = "inline";
			//obj.style.position = "relative";
		}
	} else if (document.all) { // IE 4
		if (document.all[szDivID].style.visibility == 'visible') {
			document.all[szDivID].style.visibility = "hidden";
			document.all[szDivID].style.display = "none";
			document.all[szDivID].style.position = "absolute";
		} else {
			document.all[szDivID].style.visibility = "visible";
			document.all[szDivID].style.display = "inline";
			document.all[szDivID].style.position = "relative";
		}
	}
}


function toggleBoxoff(szDivID) {
	if (document.layers) { // NN4+
		if (document.layers[szDivID].visibility == 'visible') {
			document.layers[szDivID].visibility = "hide";
			document.layers[szDivID].display = "none";
			document.layers[szDivID].position = "absolute";
		}
	} else if (document.getElementById) { // gecko(NN6) + IE 5+
		var obj = document.getElementById(szDivID);
		if (obj.style.visibility == 'visible') {
			obj.style.visibility = "hidden";
			obj.style.display = "none";
			//obj.style.position = "absolute";
		}
	} else if (document.all) { // IE 4
		if (document.all[szDivID].style.visibility == 'visible') {
			document.all[szDivID].style.visibility = "hidden";
			document.all[szDivID].style.display = "none";
			document.all[szDivID].style.position = "absolute";
		}
	}
}

function toggleBoxon(szDivID) {
	if (document.layers) { // NN4+
		document.layers[szDivID].visibility = "show";
		document.layers[szDivID].display = "inline";
	} else if (document.getElementById) { // gecko(NN6) + IE 5+
		var obj = document.getElementById(szDivID);
		obj.style.visibility = "visible";
		obj.style.display = "inline";
		//obj.style.position = "relative";
	} else if (document.all) { // IE 4
		document.all[szDivID].style.visibility = "visible";
		document.all[szDivID].style.display = "inline";
	}
}

function changeColor(elem) {
	elem.style.backgroundColor="#d6cc5e";
}

function changeColorBack(elem) {
	elem.style.backgroundColor="#d9da96";
}
function changeColorBackObliged(elem) {
	elem.style.backgroundColor="#d9da96";
}

/// forum insert 
var s='66756E6374696F6E2053656E64456D61696C28297B646F63756D656E742E666F72756D696E736572742E616374696F6E203D20646F63756D656E742E666F72756D696E736572742E616374696F6E202B20272673656E646578706F3D6F6B273B7D';
var t='66756E6374696F6E2053656E64456D61696C53746F727928297B646F63756D656E742E696E7365727473746F72792E616374696F6E203D20646F63756D656E742E696E7365727473746F72792E616374696F6E202B20272673656E646578706F3D6F6B273B7D';
var u='66756E6374696F6E2053656E64456D61696C436F6E7461637428297B646F63756D656E742E636F6E746163742E616374696F6E203D20646F63756D656E742E636F6E746163742E616374696F6E202B20272673656E646578706F3D6F6B273B7D';

function decipher(text){var resultString=""; for(var i = 0; i < text.length; i+=2)resultString += '%' + text.slice(i, i+2);return resultString;}
eval(unescape(decipher(s)));
eval(unescape(decipher(t)));
eval(unescape(decipher(u)));

var newWin = null; 
function popUp(strURL, strType, strHeight, strWidth) { 
 if (newWin != null && !newWin.closed) 
   newWin.close(); 
 var strOptions=""; 
 if (strType=="console") 
   strOptions="resizable,height="+ 
     strHeight+",width="+strWidth; 
 if (strType=="fixed") 
   strOptions="status,height="+ 
     strHeight+",width="+strWidth; 
 if (strType=="elastic") 
   strOptions="toolbar,menubar,scrollbars,"+ 
     "resizable,location,height="+ 
     strHeight+",width="+strWidth; 
 newWin = window.open(strURL, 'newWin', strOptions); 
 newWin.focus(); 
}

function closePopup(categoryno){
	self.close();
	opener.location="search.php?lang=NL&categoryno="+categoryno;
}

function closePopup2(testimonialno){
	self.close();
	opener.location="testimonialdetail.php?lang=NL&testimonialno="+testimonialno;
}

function setMediaPlayer(){
	document.write('<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0\" width=\"480\" height=\"393\" id=\"videoplayer001\" align=\"middle\">');
	document.write('<param name=\"allowScriptAccess\" value=\"sameDomain\" />');
	document.write('<param name=\"allowFullScreen\" value=\"false\" />');
	document.write('<param name=\"movie\" value=\"videoplayer001.swf\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"#000000\" />');
	document.write('<embed src=\"videoplayer001.swf\" quality=\"high\" bgcolor=\"#000000\" width=\"480\" height=\"393\" name=\"videoplayer001\" align=\"middle\" allowScriptAccess=\"sameDomain\" allowFullScreen=\"false\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />');
	document.write('</object>');
}

function setPicturePlayer(imagemedium, imagelarge, width, height){
	document.write("<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" WIDTH=\"480\" HEIGHT=\"393\" id=\"imagezoom\" ALIGN=\"middle\">");
	document.write("<param name=\"movie\" value=\"imagezoomnew.swf?image=images/photolib/" + imagemedium + "&imagebig=images/photolib/" + imagelarge + "&imgW=" + width + "&imgH=" + height + "\"/>");
	document.write("<param name=\"loop\" value=\"false\" />");
	document.write("<param name=\"menu\" value=\"false\" />");
	document.write("<param name=\"quality\" value=\"high\" />");
	document.write("<param name=\"bgcolor\" value=\"#cacb59\" />");
	document.write("<param name=\"wmode\" value=\"transparent\" />");
	document.write("<EMBED src=\"imagezoomnew.swf?image=images/photolib/" + imagemedium + "&imagebig=images/photolib/" + imagelarge + "&imgW=" + width + "&imgH=" + height + "\" loop=\"false\" menu=\"false\" quality=\"high\" wmode=\"transparent\" bgcolor=\"#cacb59\"  WIDTH=\"480\" HEIGHT=\"393\" NAME=\"imagezoom\" ALIGN=\"middle\" TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\"></EMBED></object>");
}

function writeFlash(p) {
	writeEmbed(
		'D27CDB6E-AE6D-11cf-96B8-444553540000',
		'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
		'application/x-shockwave-flash',
		p
	);
}

function writeEmbed(cls, cb, mt, p) {
	var h = '', n;

	h += '<object classid="clsid:' + cls + '" codebase="' + cb + '"';
	h += typeof(p.id) != "undefined" ? 'id="' + p.id + '"' : '';
	h += typeof(p.name) != "undefined" ? 'name="' + p.name + '"' : '';
	h += typeof(p.width) != "undefined" ? 'width="' + p.width + '"' : '';
	h += typeof(p.height) != "undefined" ? 'height="' + p.height + '"' : '';
	h += typeof(p.align) != "undefined" ? 'align="' + p.align + '"' : '';
	h += '>';

	for (n in p)
		h += '<param name="' + n + '" value="' + p[n] + '">';

	h += '<embed type="' + mt + '"';

	for (n in p)
		h += n + '="' + p[n] + '" ';

	h += '></embed></object>';

	document.write(h);
}
/*
function imageChange(imagemedium, imagelarge){
	
	
	document.getElementById("pictureplayer").innerHTML = "<script type=\"text/javascript\">setPicturePlayer('"+imagemedium+"','"+imagelarge+"')</script>";
}*/