<!--
ns4 = (document.layers)? true:false
ie4 = (document.all)? true:false
function layerStyle (layerNaam , opacityWaarde, doen) {
	if (ie4) {
		if (layerNaam != 'menu5') {
			if (doen == 'ja') {
				document.all [ layerNaam+'_rechts' ].style.backgroundImage = "url('images/menu_item_rechts.gif')";
				// document.all [ layerNaam+'_links' ].style.backgroundPosition = '2px top';
				// document.all [ layerNaam+'_links' ].style.backgroundImage = "url('images/menu_item_rechts.gif')";
				document.all [ layerNaam+'_links' ].style.backgroundImage = "none";
			}
			if (doen == 'nee') {
				document.all [ layerNaam+'_rechts' ].style.backgroundImage = "url('')";
				// document.all [ layerNaam+'_links' ].style.backgroundPosition = '0px top';
				document.all [ layerNaam+'_links' ].style.backgroundImage = "url('images/menu_item_links.gif')";
			}
		}
		document.all [ layerNaam ].style.filter = 'Alpha(Opacity = '+opacityWaarde+')' ;
	}
}

function EvalSound(soundobj) {
  var thissound= eval("document."+soundobj);
  thissound.Play();
}

var win=null;

function IMAGE(mypage,w,h) {
	var myname = "Foto"
	var de_pagina = "show_image.asp?image="+mypage
	pos = "center"
	infocus = "front"
	if(pos=="center"){myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;}
	settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no";win=window.open(de_pagina,myname,settings);
	win.focus();
}

function verwijder(link) {
	var zekerweten = confirm('U staat op het punt deze entry te verwijderen. Weet u dit zeker?');
	if(zekerweten) {
		document.location = link;
	}
}

function GaNaarBleh() {
	var naam = prompt('Vul hier je naam in:', '');
	if(naam)
	window.open("http://"+naam+".bleh.nl");
	//window.location='http://'+naam+'.bleh.nl';	
}

function SetEmoticon(Which) {
	 	if (document.guestform.reactie.createTextRange) {
  		document.guestform.reactie.focus();
  		document.selection.createRange().duplicate().text = Which;
   	} else {
  		document.guestform.reactie.value += Which;
   	}
}

basehref='';

var resized_images = new Array();
var maxImageWidth = 400;
	function fullsize(){
		var oSource = window.event.srcElement.src;
		var w = window.event.srcElement.width;
		var h = window.event.srcElement.height;
		var myleft = (screen.width)?(screen.width-w)/2:100;
		var mytop = (screen.height)?(screen.height-h)/2:100;
		myleft = 0;
		mytop = 0;
		tempvar = resized_images[oSource];
		showpopupwindow = window.open('', "_blank","toolbar=no,location=no,menubar=no,scrollbars=no,status=no,left="+myleft+",top="+mytop+""+tempvar);
		showpopupwindow.document.writeln("<html><head><title>" + unescape(oSource) +  "</title>");
		showpopupwindow.document.writeln("</head><body topmargin=\"0\" leftmargin=\"0\" marginheight=\"0\" marginwidth=\"0\">");
		showpopupwindow.document.writeln("<img src=\"" + oSource + "\" onclick=\"window.close()\" title=\"Klik om dit venster te sluiten\">");
		showpopupwindow.document.writeln("</body></html>");
		showpopupwindow.document.close();
	}

	function resize(image){
		if(!image){
			var image = window.event.srcElement;
		}

		width = image.width;
		height = image.height;
		var url = image.src;

		if(width>maxImageWidth){
			resized_images[url] = ",width="+width+",height="+height;
			image.width = maxImageWidth;
			image.title = 'Originele grootte: '+width+'x'+height;
			image.style.border = "solid 1px black";
			image.style.cursor = "hand";
			image.onclick = fullsize;
			image.height = Math.floor(height/(width/(maxImageWidth)));
		}
	}

	function check_images(){
		count = document.images.length;
		i = 0;

		while(count>i){
			imgurl = document.images[i].src;
			if(imgurl.match(basehref)){
				if(document.images[i].complete){
					resize(document.images[i]);
				}else{
					document.images[i].onload = resize;
				}
			}
			i++;
		}
	}
-->