// JavaScript Document

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() { //v9.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  with (document) if (getElementById && ((obj=getElementById(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 loadsource() { 
  var defaultPage = "wbp.asp";
  var query = window.location.search.substring(1);
  var pos = query.indexOf('=');
  if (pos > 0) {
    var frameSource = query.substring(pos+1);
    window.frames["ifrMain"].location = frameSource; }
  else {
	window.frames["ifrMain"].location = defaultPage; }
}

function MM_validateForm() { //v4.0
  if (document.getElementById){
    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=document.getElementById(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+='- Het veld '+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+' is een verplicht veld.\n'; }
    } if (errors) alert('Het formulier is niet compleet ingevuld:   \n\n'+errors);
    document.MM_returnValue = (errors == '');
} }

function flvFTLS9(){//v1.2
var v1=arguments,v2=v1[0],v3=MM_findObj(v2),v4,v5,v6;v4=Math.floor(Math.random()*(v3.TLS6.length));v5=v3.TLS6[v4];v6=v3.TLS6.splice(v4,1);if (v3.TLS6.length<1){flvFTLS7(v2);}return v5;}

function flvFTLS8(){//v1.2
if (!Array.prototype.push){Array.prototype.push=function(){var v1=arguments;for(var v2=v1.length-1;v2>=0;v2--){this[this.length]=v1[v2];}return this.length;}}if (!Array.prototype.splice){Array.prototype.splice=function(){var v1=arguments,v3=new Array(),v4=new Array(),v5=0,v6=v1[0],v7=v1[1];for (v5=0;v5<v6;v5++){v3[v3.length]=this[v5];}for (v5=v6+v7;v5<this.length;v5++){v3[v3.length]=this[v5];}for (v5=0;v5<v7;v5++){v4[v4.length]=this[v6+v5];}this.length=0;for (v5=0;v5<v3.length;v5++){this[this.length]=v3[v5];}return v4;}}}

function flvFTLS7(){//v1.2
var v1=arguments,v2=v1[0],v3=MM_findObj(v2),v4;v3.TLS6=new Array();for (v4=0;v4<v3.TLS4.length;v4++){v3.TLS6.push(v4);}}

function flvFTLS5(){//v1.2
var v1=arguments,v2=v1[0],v3=MM_findObj(v2),v4=v1[1];if (v3&&v3.TLS4){flvFTLS4(v2);if (v4>v3.TLS4.length-1){v4=v3.TLS4.length-1;}else if (v4<0){v4=0;}v3.TLS11=v4;if (!v3.TLS9){v3.TLS5=new Image();}v3.TLS5.src=v3.TLS4[v4][0];flvFTLS3(v2,v4);}}

function flvFTLS6(){//v1.2
this.style.filter="";}

function flvFTLS4(){//v1.2
var v1=MM_findObj(arguments[0]);if (v1&&v1.TLS4&&v1.TLS2!=null){clearTimeout(v1.TLS2);}}

function flvFTLS3(){//v1.2
var v1=arguments,v2=v1[0],v3=MM_findObj(v2),v4=v1[1],v5='<div class="slideImage">',v6,v7,v8;if (!v3.TLS5.complete){v6="flvFTLS3('"+v2+"',"+v4+")";setTimeout(v6,50);return;}if (v3.TLS4[v4][1]!=""){v5+='<a href="'+v3.TLS4[v4][1]+'"';if (v3.TLS3!=""){v5+=' target="'+v3.TLS3+'"';}v5+='>';}v5+='<img src="'+v3.TLS5.src+'" border="0" alt="">';if (v3.TLS4[v4][1]!=""){v5+='</a>';}v5+='</div>';if (v3.TLS4[v4][2]!=""){v5+='<div class="slideDesc">'+unescape(v3.TLS4[v4][2])+'</div>';}v7=v3.TLS4[v4][3];if (!v3.TLS1||v7==25){if (document.layers){v3.document.open();v3.document.write(v5);v3.document.close();}else {v3.innerHTML=v5;}}else {try {v3.contentEditable=true;if (v3.filters[0]&&v3.filters[0].status==2){v3.filters[0].Stop();}if (v7==0){v8="blendTrans(Duration="+v3.TLS10+")";}else {v8="revealTrans(Duration="+v3.TLS10+",Transition="+(v7-1)+")";}v3.onfilterchange=flvFTLS6;v3.style.filter=v8;v3.filters[0].Apply();v3.innerHTML=v5;v3.filters[0].Play();v3.contentEditable=false;}catch (e){v3.TLS1=false;flvFTLS3(v2,v4);}}}

function flvFTLS2(){//v1.2
var v1=arguments,v2=v1[0],v3=MM_findObj(v2),v4=v1[1],v5=v1[2],v6,v7,v8,v9;if (v3&&v3.TLS4){flvFTLS4(v2);if (v5==0||v3.TLS7==0){if (v4==1){v6=v3.TLS11+1;if (v6>v3.TLS4.length-1){v6=0;if (v3.TLS12==0){return;}}}else {v6=v3.TLS11-1;if (v6<0){v6=v3.TLS4.length-1;if (v3.TLS12==0){return;}}}}else {v6=v3.TLS11;while (v6==v3.TLS11){v6=flvFTLS9(v2);}}v3.TLS11=v6;if (!v3.TLS9){v3.TLS5=new Image();}v3.TLS5.src=v3.TLS4[v6][0];flvFTLS3(v2,v6);if (v5==1){v7="flvFTLS2('"+v2+"',"+v4+","+v5+")";v3.TLS2=setTimeout(v7,v3.TLS8);}}}

function flvFTLS1(){//v1.2
// Copyright 2004, FlevOOware (www.flevooware.nl/dreamweaver/)
var v1=arguments,v2=v1[0],v3=MM_findObj(v2),v4,v5,v6,v7=navigator.userAgent.toLowerCase(),v8,v9;if (v3){flvFTLS8();v3.TLS8=v1[1];v5=v1[2];v3.TLS12=v1[3];v3.TLS3=v1[4];v3.TLS10=v1[5]/1000;v3.TLS7=v1[6];v3.TLS4=new Array();for (v6=7;v6<v1.length;v6+=4){v3.TLS4[v3.TLS4.length]=new Array(v1[v6],v1[v6+1],unescape(v1[v6+2]),parseInt(v1[v6+3]));}v9=0;if (v3.TLS7==1){flvFTLS7(v2);v9=flvFTLS9(v2);}v3.TLS11=v9;v3.TLS9=(v7.indexOf("netscape6")!=-1);v3.TLS5=new Image();v3.TLS5.src=v3.TLS4[v9][0];v3.TLS1=v3.filters&&(v7.indexOf("mac")<0);flvFTLS3(v2,v9);if (v5){v4="flvFTLS2('"+v2+"',1,"+v5+")";v3.TLS2=setTimeout(v4,v3.TLS8);}}}

