
function MM_findObj(n, d) { //v4.01
  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=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function ZoomImage(strSrc, strTitle) {
    window.open( 'zoom.htm?image='+strSrc+'&title='+strTitle, 'winZoom', 'width=600,height=500' );
  }
	
function MM_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' is geen geldig e-mail adres.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+'.\n'; }
  } if (errors) alert('De volgende velden zijn niet correct ingevuld:\n'+errors);
  document.MM_returnValue = (errors == '');
}


function calcLocation(saddr,address,city,country) {
  var uri  = 'http://maps.google.nl/maps?';
      uri += 'daddr='+saddr;
      uri += '&saddr='+address+', '+city+', '+country;
      uri += '&f=li&hl=nl&ie=UTF8&z=&om=1';
  window.open(uri,'winGoogleMaps','');
}

function calcLocationDE(saddr,address,city,country) {
  var uri  = 'http://maps.google.de/maps?';
      uri += 'daddr='+saddr;
      uri += '&saddr='+address+', '+city+', '+country;
      uri += '&f=li&hl=de&ie=UTF8&z=&om=1';
  window.open(uri,'winGoogleMaps','');
}

// Seagull animation by Holiday Media
function WriteSeagullanimation() {
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="100%" height="100%">')
document.write('<param name="movie" value="/flash/fla_kokkie_animatie.swf">')
document.write('<param name="quality" value="high">')
document.write('<param name="wmode" value="transparent">')
document.write('<embed src="/flash/fla_kokkie_animatie.swf" wmode="transparent" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="1280px" height="1280px"></embed>')
document.write('</object>')
}


// Background soundfile
function WriteSound() {
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="73" height="15">')
document.write('<param name="movie" value="/flash/fla_sounds.swf">')
document.write('<param name="loop" value="false">')
document.write('<param name="quality" value="high">')
document.write('<embed src="/flash/fla_sounds.swf" loop="false" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="73" height="15"></embed>')
document.write('</object>')
}

function WriteSoundDE() {
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="73" height="15">')
document.write('<param name="movie" value="/flash/fla_sounds_du.swf">')
document.write('<param name="loop" value="false">')
document.write('<param name="quality" value="high">')
document.write('<embed src="/flash/fla_sounds_du.swf" loop="false" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="73" height="15"></embed>')
document.write('</object>')
}