Animator=function(B,A,F,D,E){this.step=5;
this.rate=5;
this.power=2;
this.type=this.EASEINOUT;
this.duration=0;
this.min=B;
this.max=A;
this.isReversing=false;
this.animateFunction=F;
this.terminateFunction=D;
this.reversalFunction=E;
this.precalc=new Array(100);
for(var C=0;
C<=100;
C++){this.precalc[C]=this.calculate(C)
}};
Animator.prototype.NONE=0;
Animator.prototype.EASEIN=1;
Animator.prototype.EASEOUT=2;
Animator.prototype.EASEINOUT=3;
Animator.prototype.setDuration=function(A){this.duration=A
};
Animator.prototype.setStep=function(A){this.step=A
};
Animator.prototype.setRate=function(A){this.rate=A
};
Animator.prototype.setPower=function(B){this.power=B;
for(var A=0;
A<=100;
A++){this.precalc[A]=this.calculate(A)
}};
Animator.prototype.setType=function(B){this.type=B;
for(var A=0;
A<=100;
A++){this.precalc[A]=this.calculate(A)
}};
Animator.prototype.setAnimateFunction=function(A){this.animateFunction=A
};
Animator.prototype.start=function(){if(this.interval){return 
}this.time=0;
this.startTime=new Date();
this.isReversing=false;
this.interval=setInterval(this.method(this.animate),this.rate)
};
Animator.prototype.reverse=function(){this.isReversing=(this.isReversing)?false:true
};
Animator.prototype.stop=function(){if(this.interval){clearInterval(this.interval)
}this.timeLeft=0;
this.interval=null
};
Animator.prototype.pause=function(){if(this.interval){clearInterval(this.interval)
}this.interval=null;
if(this.duration){var A=new Date()-this.startTime;
this.timeElapsed=A
}};
Animator.prototype.resume=function(){if(this.duration){var A=new Date().getTime();
this.startTime=new Date(A-this.timeElapsed)
}this.interval=setInterval(this.method(this.animate),this.rate)
};
Animator.prototype.isAnimating=function(){return Boolean(this.interval)
};
Animator.prototype.animate=function(){var B=false;
if(this.duration){var A=new Date()-this.startTime;
if(A<this.duration){this.animateFunction(this.calculate(A/this.duration))
}else{B=true
}}else{if(this.time>=0&&this.time<=100){this.animateFunction(this.precalc[this.time]);
this.time=(this.isReversing)?this.time-this.step:this.time+this.step
}else{B=true
}}if(B){clearInterval(this.interval);
this.animateFunction(this.max);
this.interval=null;
if(!this.isReversing&&this.terminateFunction){this.terminateFunction()
}if(this.isReversing&&this.reversalFunction){this.reversalFunction()
}}};
Animator.prototype.calculate=function(B){if(!this.duration){B=B/100
}var A;
switch(this.type){case this.NONE:A=this.easeNone(B);
break;
case this.EASEIN:A=this.easeIn(B);
break;
case this.EASEOUT:A=this.easeOut(B);
break;
case this.EASEINOUT:A=this.easeInOut(B);
break
}return parseInt(this.min+A*(this.max-this.min))
};
Animator.prototype.easeNone=function(A){return A
};
Animator.prototype.easeIn=function(A){return Math.pow(A,this.power)
};
Animator.prototype.easeOut=function(A){return 1-this.easeIn(1-A)
};
Animator.prototype.easeInOut=function(A){if(A<0.5){return this.easeIn(A*2)/2
}return 0.5+this.easeOut((A-0.5)*2)/2
};
Animator.prototype.method=function(B){var A=this;
return function(){return B.apply(A,arguments)
}
};
EventListener.addEvent(window,"load",function(B){var A=new AutoSubmit();
A.setField(document.getElementById("changeBillingAccountNumber"));
A.setSubmit(document.getElementById("address-submit"));
A.init()
});
EventListener.addEvent(window,"load",function(B){var A=new AutoSubmit();
A.setField(document.getElementById("address"));
A.setSubmit(document.getElementById("address-submit"));
A.init()
});
EventListener.addEvent(window,"load",function(B){var A=new AutoSubmit();
A.setField(document.getElementById("filter-woningtype"));
A.setSubmit(document.getElementById("filter-submit"));
A.init()
});
EventListener.addEvent(window,"load",function(B){var A=new AutoSubmit();
A.setField(document.getElementById("filter-vermogenverwarming"));
A.setSubmit(document.getElementById("filter-submit"));
A.init()
});
EventListener.addEvent(window,"load",function(B){var A=new AutoSubmit();
A.setField(document.getElementById("filter-opbrengstwarmwater"));
A.setSubmit(document.getElementById("filter-submit"));
A.init()
});
EventListener.addEvent(window,"load",function(B){var A=new AutoSubmit();
A.setField(document.getElementById("filter-opstelling"));
A.setSubmit(document.getElementById("filter-submit"));
A.init()
});
EventListener.addEvent(window,"load",function(B){var A=new AutoSubmit();
A.setField(document.getElementById("filter-ruimte"));
A.setSubmit(document.getElementById("filter-submit"));
A.init()
});
EventListener.addEvent(window,"load",function(B){var A=new AutoSubmit();
A.setField(document.getElementById("question.mainCategory"));
A.setSubmit(document.getElementById("filter-submit"));
A.init()
});
EventListener.addEvent(window,"load",function(A){var B=new AutoSubmit();
B.setField(document.getElementById("invoice"));
B.setSubmit(document.getElementById("invoice-submit"));
B.init()
});
EventListener.addEvent(window,"load",function(A){if(document.getElementById("question.mainCategory")!=null){document.getElementById("question.mainCategory").onselect=function(B){submitForm("formquestion",0)
}
}});
function AutoSubmit(){var B;
var A
}AutoSubmit.prototype={setField:function(A){this.field=A
},setSubmit:function(A){this.submit=A
},init:function(){if(this.field==null){return 
}this.field.onchange=this.scope(this.handleChange)
},handleChange:function(A){if(this.submit==null){return 
}this.submit.click()
},scope:function(B){var A=this;
return function(){return B.apply(A,arguments)
}
}};
function Navigation(A){if(!A){return 
}this.container=A;
this.currentBranch=null;
this.currentMenu=null;
this.createBackdrop();
EventListener.addEvent(A,"mouseover",this.scope(this.handleMouseover));
EventListener.addEvent(document,"mouseover",this.scope(this.handleMouseout))
}Navigation.prototype={REG_ITEM:/^lijQuery/i,OPEN_DELAY:500,CLOSE_DELAY:1000,ANIMATION_TIME:250,createBackdrop:function(){this.backdrop=this.container.appendChild(document.createElement("div"));
this.backdrop.className="backdrop";
this.backdrop.appendChild(document.createElement("div"));
this.backdropHeight=0
},handleMouseover:function(C){var B=EventListener.getTarget(C,"li");
if(B){var A=this.getBranch(B);
clearTimeout(this.pendingClose);
if(!this.currentBranch||A!=this.currentBranch){this.delayedOpen(A)
}}},handleMouseout:function(B){if(!this.openState&&!this.pendingOpen){return 
}var A=EventListener.getTarget(B);
while(A){if(A==this.container){return 
}A=A.parentNode
}clearTimeout(this.pendingOpen);
if(!this.pendingClose){var C=this.scope(function(){this.toggle(false)
});
this.pendingClose=setTimeout(C,this.CLOSE_DELAY)
}},delayedOpen:function(B){var A=this.scope(function(){this.toggle(B)
});
if(!this.openState){clearTimeout(this.pendingOpen);
this.pendingOpen=setTimeout(A,this.OPEN_DELAY)
}else{A()
}},toggle:function(B){this.openState=B?true:false;
var A=B?B.getElementsByTagName("ul")[0]:null;
if(this.animator){this.animator.stop();
this.animateEnd()
}if(this.currentBranch){this.closingBranch=this.currentBranch;
this.closingMenu=this.currentMenu;
this.closingHeight=this.targetHeight;
ClassName.remove(this.currentBranch,"open")
}this.currentBranch=B;
this.currentMenu=A;
if(A){var C=this.getLastChild(A);
this.targetHeight=(C.offsetTop+C.offsetHeight);
this.backdrop.style.display="block"
}else{this.targetHeight=0
}ClassName.add(B,"open");
this.animator=new Animator(0,100,this.scope(this.animate),this.scope(this.animateEnd));
this.animator.setDuration(this.ANIMATION_TIME);
this.animator.start()
},animate:function(C){var B=parseInt(C/100*this.targetHeight);
var A=this.backdropHeight+parseInt(C*(this.targetHeight-this.backdropHeight)/100);
if(this.currentMenu){this.currentMenu.style.height=B+"px"
}this.backdrop.style.height=A+"px";
if(this.closingHeight&&this.closingMenu){var D=parseInt((100-C)/100*this.closingHeight);
this.closingMenu.style.height=D+"px"
}},animateEnd:function(){this.animate(100);
this.backdropHeight=this.targetHeight;
this.animator=null;
this.pendingOpen=null;
this.pendingClose=null;
if(!this.openState){this.closingMenu=null;
this.backdrop.style.display="none"
}},getBranch:function(C){var A=C;
var B=C.parentNode;
while(B&&B!=this.container){if(this.REG_ITEM.test(B.nodeName)){A=B
}B=B.parentNode
}return A
},getLastChild:function(A){var B=A.lastChild;
while(B.nodeType!=1){B=B.previousSibling
}return B
},scope:function(B){var A=this;
return function(){B.apply(A,arguments)
}
}};
EventListener.addEvent(window,"load",function(){new Navigation(document.getElementById("subnavigation"))
});
var form;
function LoginMenu(C){if(!C){return 
}this.container=C;
form=C.getElementsByTagName("form")[0];
ClassName.add(this.container,"hide-login");
EventListener.addEvent(C,"mouseover",this.scope(this.handleOpen));
EventListener.addEvent(document,"mouseover",this.scope(this.handleClose));
EventListener.addEvent(document,"click",this.scope(this.handleClose));
var A=form;
for(var B=0;
B<A.length;
B++){if(A[B].type=="text"||A[B].type=="password"){if(/Gecko/.test(navigator.userAgent)){EventListener.addEvent(A[B],"focus",this.scope(this.handleClose))
}if(/MSIE/.test(navigator.userAgent)){EventListener.addEvent(A[B],"keyup",this.scope(this.attemptSubmit))
}}}}LoginMenu.prototype={OPEN_DELAY:500,CLOSE_DELAY:1000,handleOpen:function(B){var A=this.scope(function(){this.openMenu()
});
if(!this.openState){if(B.type=="click"&&EventListener.getTarget(B)==this.container.getElementsByTagName("A")[0]){clearTimeout(this.pendingOpen);
this.openMenu();
EventListener.cancelEvent(B)
}else{clearTimeout(this.pendingOpen);
this.pendingOpen=setTimeout(A,this.OPEN_DELAY)
}}},handleClose:function(B){if((!this.openState&&!this.pendingOpen)||(B.type=="mouseover"&&this.hasFocus)){return 
}var A=EventListener.getTarget(B);
while(A){if(A==this.container){switch(B.type){case"mouseover":if(this.pendingClose){clearTimeout(this.pendingClose);
this.pendingClose=null
}break;
case"click":this.hasFocus=true;
if(!this.openState){clearTimeout(this.pendingOpen);
this.openMenu();
EventListener.cancelEvent(B)
}break;
case"focus":this.hasFocus=true;
break
}return 
}A=A.parentNode
}clearTimeout(this.pendingOpen);
if(!this.pendingClose){var C=this.scope(function(){this.closeMenu()
});
this.pendingClose=setTimeout(C,this.CLOSE_DELAY)
}},attemptSubmit:function(B){if(B&&B.keyCode){if(B.keyCode==13){try{form.submit()
}catch(A){}}}},openMenu:function(){ClassName.add(this.container,"show-login");
this.openState=true
},closeMenu:function(){ClassName.remove(this.container,"show-login");
this.openState=null;
this.pendingClose=null;
this.hasFocus=null
},scope:function(B){var A=this;
return function(){B.apply(A,arguments)
}
}};
EventListener.addEvent(window,"load",function(){if(/MSIE 5/.test(navigator.userAgent)){return 
}new Navigation(document.getElementById("subnavigation"));
new LoginMenu(document.getElementById("form-login"))
});
var NavClientgroup={init:function(A){NavClientgroup.node=document.getElementById(A);
if(!NavClientgroup.node){return 
}EventListener.addEvent(NavClientgroup.node,"click",function(B){NavClientgroup.clickHandler(B)
})
},clickHandler:function(B){var A=EventListener.getTarget(B);
while(!A.nodeName||A.nodeType==3){A=A.parentNode
}if(/^ajQuery/i.test(A.nodeName)&&A.parentNode.parentNode==NavClientgroup.node){NavClientgroup.setSelected(A.parentNode);
return EventListener.preventDefault(B)
}},setSelected:function(B){if(ClassName.contains(B,"selected")){return 
}for(var A=0;
A<NavClientgroup.node.childNodes.length;
A++){ClassName.remove(NavClientgroup.node.childNodes[A],"selected")
}ClassName.add(B,"selected")
}};
EventListener.addEvent(window,"load",function(){NavClientgroup.init("nav-clientgroup")
});
var strDefaultString="Stel hier uw vraag";
function ValidateSearchInput(strPhrase){with(document){var objInput=getElementById(strPhrase);
if((objInput.value!="")&&(objInput.value!=strDefaultString)){return true
}else{return false
}}}function EnterSearchInput(B){var A=B;
if(A.value==strDefaultString){A.value=""
}}function ExitSearchInput(B){var A=B;
if(A.value==""){A.value=strDefaultString
}}function initZoekForm(){document.getElementById("ask-a-question").value=strDefaultString
};
function Calendar(D){this.table=D.getElementsByTagName("table")[0];
this.body=D.getElementsByTagName("tbody")[0];
var B=D.getElementsByTagName("select");
this.selectMonth=B[0];
this.selectYear=B[1];
this.currentCell=null;
this.mode="future";
EventListener.addEvent(this.table,"click",this.scope(this.getDate));
EventListener.addEvent(this.table,"mousemove",this.scope(this.hoverDate));
B[0].onchange=B[1].onchange=this.scope(this.chooseDate);
var A=new Date();
this.now=new Date(A.getFullYear(),A.getMonth(),A.getDate());
var C=new Date(parseInt(this.selectYear.value,10),(parseInt(this.selectMonth.value,10)-1),1);
this.setDate(C)
}Calendar.prototype={chooseDate:function(D){var B=parseInt(this.selectYear.value);
var C=parseInt(this.selectMonth.value)-1;
var A=1;
this.setDate(new Date(B,C,A))
},setDate:function(A,B){this.currentDate=A;
this.currentMonth=A.getMonth();
this.currentYear=A.getFullYear();
if(B){this.mode=B
}Utils.setSelectValue(this.selectMonth,this.currentMonth+1);
Utils.setSelectValue(this.selectYear,this.currentYear);
this.createTable()
},cloneSelects:function(B,D){var A=B.options;
var E=D.options;
this.selectYear.options.length=this.selectMonth.options.length=0;
for(var C=0;
(C<A.length||C<E.length);
C++){if(B[C]){this.selectYear.options[C]=new Option(A[C].text,A[C].value)
}if(D[C]){this.selectMonth.options[C]=new Option(D[C].text,D[C].value)
}}this.selectMonth.DC.updateOptions();
this.selectYear.DC.updateOptions()
},setAction:function(A){this.action=A
},hoverDate:function(C){var B=EventListener.getTarget(C);
var A=B.innerHTML;
if(this.currentCell&&(!B||B!=this.currentCell)){ClassName.remove(this.currentCell,"current")
}if(/td/i.test(B.nodeName)&&/^[0-9]+jQuery/.test(A)&&!/past/.test(B.className)){this.currentCell=B;
ClassName.add(B,"current")
}},getDate:function(D){var C=EventListener.getTarget(D);
var A=C.innerHTML;
if(/td/i.test(C.nodeName)&&/^[0-9]+jQuery/.test(A)&&!/past/.test(C.className)){try{this.action(new Date(this.currentYear,this.currentMonth,A));
EventListener.cancelEvent(D)
}catch(B){}}},createTable:function(){var B=this.currentDate;
B.setDate(1);
var I,L,J,E=false;
var H=B.getMonth();
var F=B.getDay();
var K=F+42;
var G=document.createElement("tbody");
this.currentCell=null;
this.table.removeChild(this.body);
this.body=this.table.appendChild(G);
var D=/future/i;
var A=/past/i;
for(var C=0;
C<K;
C++){I=C+1-F;
B.setMonth(H);
if(I<1){I=" "
}else{B.setDate(I);
if(B.getMonth()!=H){I=" ",E=true
}}if(C%7==0){if(E){break
}L=this.body.insertRow(C/7)
}J=L.insertCell(C%7);
J.innerHTML=I;
if((B<this.now&&D.test(this.mode))||(B>=this.now&&A.test(this.mode))){J.className="past"
}if(C%7==0||C%7==6){J.className+=" weekend"
}}},shiftDate:function(A,B){var C=this.currentMonth+=B;
var D=this.currentYear+=A;
if(C%12<0||C>12){D+=C%12;
C=(12+C)%12
}this.currentDate=new Date(D,C,1);
this.currentMonth=C;
this.currentYear=D;
this.createTable()
},scope:function(B){var A=this;
return function(){return B.apply(A,arguments)
}
}};
EventListener.addEvent(window,"load",function(){EventListener.addEvent(window,"resize",resizeHandler);
resizeHandler()
});
function resizeHandler(){var A=document.body;
var C="page-1024";
var B=ClassName.contains(A,C);
if(A.offsetWidth>984&&!B){ClassName.add(A,C);
contentSwapper("holder-1024")
}else{if(A.offsetWidth<=984&&B){ClassName.remove(A,C);
contentSwapper("holder-800")
}}}function contentSwapper(B){var D=document.getElementById("news-home");
if(!D){return 
}var A=D.parentNode;
var C=document.getElementById(B);
if(A==C){return 
}else{C.appendChild(A.removeChild(D))
}};
EventListener.addEvent(window,"load",function(){new DesignControls()
});
function DesignControls(){var B=document.getElementsByTagName("input");
var A="";
for(var D=0;
D<B.length;
D++){if(ClassName.contains(B[D],"noreplace")){continue
}switch(B[D].type){case"checkbox":new DesignCheckBox(B[D]);
break;
case"radio":if(A.indexOf("*"+B[D].name+"*")==-1){new DesignRadioGroup(document.getElementsByName(B[D].name));
A=A+"*"+B[D].name+"*"
}break;
case"submit":new DesignSubmit(B[D]);
break
}}var C=document.getElementsByTagName("select1");
for(var D=0;
D<C.length;
D++){if(!C[D].multiple&&!ClassName.contains(C[D],"noreplace")){new DesignSelect(C[D])
}}}function DesignControl(){var A=/safari/i;
this.safari=A.test(navigator.userAgent)
}DesignControl.prototype.transform=function(B){var A=this.create(B);
if(!B.disabled){EventListener.addEvent(B,"focus",this.focus,this);
EventListener.addEvent(B,"blur",this.blur,this);
if(B.tagName=="SELECT"){EventListener.addEvent(B,"keyup",this.updateGUI,this)
}if(document.all&&(B.type=="radio"||B.type=="checkbox")){EventListener.addEvent(B,"click",this.updateGUI,this)
}else{EventListener.addEvent(B,"change",this.updateGUI,this)
}}else{ClassName.add(A,"disabled");
if(B.checked){if(B.type=="radio"){ClassName.add(A,"DCradiodisabledchecked")
}if(B.type=="checkbox"){ClassName.add(A,"DCcheckboxdisabledchecked")
}}else{if(B.type=="radio"){ClassName.add(A,"DCradiodisabled")
}if(B.type=="checkbox"){ClassName.add(A,"DCcheckboxdisabled")
}}}if(B.className!=""){ClassName.add(A,B.className)
}ClassName.add(A,"DCblur");
B.DC=this;
B.parentNode.insertBefore(A,B);
ClassName.add(B,"replaced");
if(this.safari){ClassName.add(B,"safari")
}return A
};
DesignControl.prototype.focus=function(){ClassName.swap(this.GUI,"DCblur","DCfocus")
};
DesignControl.prototype.blur=function(){ClassName.swap(this.GUI,"DCfocus","DCblur")
};
DesignControl.prototype.setDisabledState=function(B,A){if(!B||!A){return 
}this.disabled=B.disabled;
if(this.disabled){ClassName.add(A,"disabled");
switch(B.type){case"radio":ClassName.add(A,B.checked?"DCradiodisabledchecked":"DCradiodisabled");
break;
case"checkbox":ClassName.add(A,B.checked?"DCcheckboxdisabledchecked":"DCcheckboxdisabled");
break
}}else{ClassName.remove(A,"disabled");
A.className=A.className.replace(/(^|\s)DC(checkbox|radio)disabled(checked)?(\s|jQuery)/," ")
}this.updateGUI()
};
DesignControl.prototype.method=function(B){var A=this;
return function(){return B.apply(A,arguments)
}
};
DesignControl.prototype.forwardClick=function(B){if(document.all){var A=document.createEventObject();
if(!(/radio/i.test(this.input.type)&&this.input.checked)){this.input.checked=!this.input.checked
}B.fireEvent("onclick",A)
}else{var A=document.createEvent("MouseEvents");
A.initEvent("click",true,true);
if(this.safari){this.input.checked=!this.input.checked
}this.input.dispatchEvent(A)
}};
DesignControl.prototype.reset=function(){inputElement.DC=this;
EventListener.removeEvents(inputElement,"focus");
EventListener.removeEvents(inputElement,"blur");
EventListener.removeEvents(inputElement,"click");
EventListener.removeEvents(this.GUI,"click");
EventListener.addEvent(inputElement,"focus",this.focus,this);
EventListener.addEvent(inputElement,"blur",this.blur,this);
EventListener.addEvent(inputElement,"click",this.updateGUI,this);
EventListener.addEvent(this.DC.GUI,"click",this.onclick,this);
this.updateGUI()
};
DesignCheckBox.prototype=new DesignControl;
DesignCheckBox.prototype.constructor=DesignCheckBox;
DesignCheckBox.superclass=DesignControl.prototype;
function DesignCheckBox(){if(arguments.length>0){this._constructor.apply(this,arguments)
}}DesignCheckBox.prototype._constructor=function(A){this.input=A;
this.GUI=this.transform(A);
if(A.parentNode.tagName.toUpperCase()!="LABEL"||document.all||this.safari){if(!A.disabled){EventListener.addEvent(this.GUI,"click",this.onclick,this)
}}};
DesignCheckBox.prototype.onclick=function(A){this.input.focus();
this.forwardClick(this.input);
this.updateGUI()
};
DesignCheckBox.prototype.updateGUI=function(){ClassName.remove(this.GUI,"DCcheckboxdisabledchecked");
ClassName.remove(this.GUI,"DCcheckboxchecked");
ClassName.remove(this.GUI,"DCcheckboxdisabled");
if(this.input.checked){if(this.input.disabled){ClassName.add(this.GUI,"DCcheckboxdisabledchecked")
}else{ClassName.add(this.GUI,"DCcheckboxchecked")
}}else{if(this.input.disabled){ClassName.add(this.GUI,"DCcheckboxdisabled")
}}};
DesignCheckBox.prototype.create=function(A){var B=document.createElement("span");
B.className="DCcheckbox";
if(this.input.checked){ClassName.add(B,"DCcheckboxchecked")
}return(B)
};
function DesignRadioGroup(B){this.designRadios=new Array();
for(var A=0;
A<B.length;
A++){if(B[A].type=="radio"){this.designRadios[this.designRadios.length]=new DesignRadio(B[A],this,A)
}}}DesignRadioGroup.prototype.updateGUI=function(){for(var A=0;
A<this.designRadios.length;
A++){if(this.designRadios[A].input.checked){ClassName.add(this.designRadios[A].GUI,"DCradiochecked")
}else{ClassName.remove(this.designRadios[A].GUI,"DCradiochecked")
}}};
DesignRadio.prototype=new DesignControl;
DesignRadio.prototype.constructor=DesignRadio;
DesignRadio.superclass=DesignControl.prototype;
function DesignRadio(){if(arguments.length>0){this._constructor.apply(this,arguments)
}}DesignRadio.prototype._constructor=function(C,B,A){this.input=C;
this.group=B;
this.index=A;
this.GUI=this.transform(C);
if(C.parentNode.tagName.toUpperCase()!="LABEL"||document.all||this.safari){if(!C.disabled){EventListener.addEvent(this.GUI,"click",this.onclick,this)
}}};
DesignRadio.prototype.onclick=function(A){this.input.focus();
this.forwardClick(this.input);
this.updateGUI()
};
DesignRadio.prototype.updateGUI=function(){this.group.updateGUI()
};
DesignRadio.prototype.create=function(A){var B=document.createElement("span");
B.className="DCradio";
if(this.input.checked){ClassName.add(B,"DCradiochecked")
}return(B)
};
function DesignSelect(){}DesignSelect.prototype=new DesignControl;
DesignSelect.prototype.constructor=DesignSelect;
DesignSelect.superclass=DesignControl.prototype;
function DesignSelect(){if(arguments.length>0){this._constructor.apply(this,arguments)
}}DesignSelect.prototype._constructor=function(A){this.input=A;
this.GUI=this.transform(A);
this.setDimensions();
if(!A.disabled){EventListener.addEvent(this.GUI,"click",this.onclick,this)
}};
DesignSelect.prototype.onclick=function(F){if(window.event){var C=window.event.srcElement.className
}else{var C=F.target.className
}if(C!="options"){this.input.focus();
var A=this.options.style;
A.display=(this.options.style.display=="block")?"none":"block";
A.marginTop=this.status.parentNode.offsetHeight+"px";
if(!this.safari){if(window.document.onclick){window.document.onclick()
}if(this.options.style.display=="block"){this.setDimensions();
this.options.style.display="block";
var E=(window.innerHeight||document.documentElement.clientHeight)+(window.pageYOffset||document.documentElement.scrollTop);
var D=Utils.calculateTop(this.options);
var B=this.options.offsetHeight;
if(E-D-B<0){A.marginTop=-(B+1)+"px"
}else{A.marginTop=this.status.parentNode.offsetHeight+"px"
}var G=this.options;
var H=this.GUI;
this.GUI.style.zIndex=100;
window.document.onclick=function(){G.style.display="none";
H.style.zIndex=0;
window.document.onclick=null
}
}}}EventListener.cancelEvent(F)
};
DesignSelect.prototype.onselect=function(B){var A=(B)?B.target:window.event.srcElement;
if(A.nodeType!=1){A=A.parentNode
}if(this.input.selectedIndex!=A.index){this.input.selectedIndex=A.index;
if(this.input.onchange){this.input.onchange.call(this.input,B)
}if(this.input.onselect){this.input.onselect.call(this.input,B)
}}this.updateGUI()
};
DesignSelect.prototype.updateGUI=function(){this.status.innerHTML=this.input.options[this.input.selectedIndex].innerHTML;
for(var A=0;
A<this.scroller.childNodes.length;
A++){this.scroller.childNodes[A].className=""
}this.scroller.childNodes[this.input.selectedIndex].className="selected"
};
DesignSelect.prototype.create=function(A){var B=document.createElement("span");
B.className="DCselect";
this.status=document.createElement("span");
this.status.className="status";
this.options=document.createElement("span");
this.options.className="options";
this.scroller=document.createElement("div");
this.scroller.className="DCscroller";
this.options.appendChild(this.scroller);
this.updateOptions();
B.appendChild(this.status);
B.appendChild(this.options);
return(B)
};
DesignSelect.prototype.updateOptions=function(){this.scroller.innerHTML="";
var D=this.input.getElementsByTagName("option");
var A=0;
for(var B=0;
B<D.length;
B++){var C=document.createElement("span");
C.innerHTML=D[B].innerHTML;
C.index=B;
C.onclick=this.method(this.onselect);
C.onmouseover=function(){this.className="hover"
};
C.onmouseout=function(){if(this.className!="selected"){this.className=""
}};
this.scroller.appendChild(C);
if(D[B].selected){A=B
}}this.status.innerHTML=this.scroller.childNodes[A].innerHTML;
this.scroller.childNodes[A].className="selected"
};
DesignSelect.prototype.setDimensions=function(){this.options.style.display="block";
this.options.style.overflow="visible";
this.options.style.height="auto";
this.options.style.width="auto";
if(document.all){var A=this.scroller.offsetWidth-1;
if(this.status.offsetWidth>280){this.status.style.width="280px"
}}else{var A=Math.max(this.scroller.offsetWidth,this.status.offsetWidth)-1
}var B=this.scroller.childNodes[0].offsetHeight;
this.options.style.display="none";
this.options.style.overflow="";
if(this.scroller.childNodes.length>10){this.options.style.height=(10*B)+"px";
this.options.style.width=(A+17)+"px";
this.options.style.overflow="auto"
}else{if(A>0){this.options.style.width=A+"px"
}}};
function DesignSubmit(){if(arguments.length>0){this._constructor.apply(this,arguments)
}}DesignSubmit.prototype._constructor=function(A){this.input=A;
this.GUI=this.transform(A);
if(!A.disabled){EventListener.addEvent(this.GUI,"click",this.onclick,this)
}};
DesignSubmit.prototype.transform=function(B){var A=this.create(B);
A.id=B.id;
B.id="";
EventListener.addEvent(B,"focus",this.focus,this);
EventListener.addEvent(B,"blur",this.blur,this);
ClassName.add(A,"DCblur");
ClassName.add(A,B.className);
B.parentNode.insertBefore(A,B);
ClassName.add(B,"replaced");
A.onfocus=function(){B.focus()
};
return A
};
DesignSubmit.prototype.create=function(D){var E=document.createElement("a");
E.className="DCsubmit";
E.href="#";
var C=document.createElement("span");
E.appendChild(C);
var B=document.createElement("span");
C.appendChild(B);
var A=document.createElement("span");
B.appendChild(A);
A.innerHTML=D.value;
return(E)
};
DesignSubmit.prototype.onclick=function(A){this.input.focus();
if(this.input.onclick){this.input.onclick.call(this.input,A)
}this.input.click();
EventListener.cancelEvent(A)
};
DesignSubmit.prototype.focus=function(){ClassName.swap(this.GUI,"DCblur","DCfocus")
};
DesignSubmit.prototype.blur=function(){ClassName.swap(this.GUI,"DCfocus","DCblur")
};
SplittedLists=function(A){var C=getElementsByAttributeValue("class","splitted",A);
for(var B=0;
B<C.length;
B++){if(C[B].tagName.toLowerCase()=="ul"||C[B].tagName.toLowerCase()=="ol"){this.splitList(C[B])
}}};
SplittedLists.prototype.splitList=function(F){var D=document.createElement(F.tagName.toLowerCase());
var C=document.createElement(F.tagName.toLowerCase());
ClassName.remove(F,"splitted");
D.className=C.className=F.className;
F.parentNode.replaceChild(C,F);
C.parentNode.insertBefore(D,C);
var A=F.getElementsByTagName("li");
var E=Math.round(A.length/2);
if(F.tagName.toLowerCase()=="ol"){C.start=E+1
}if(A.length==1){C.parentNode.removeChild(C)
}for(var B=A.length-1;
B>E-1;
B--){C.insertBefore(A[B],C.firstChild)
}for(var B=E-1;
B>=0;
B--){D.insertBefore(A[B],D.firstChild)
}};
EventListener.addEvent(window,"load",function(){window.splittedLists=new SplittedLists()
});
EventListener.addEvent(window,"load",function(A){Toggler.addItem(document.getElementById("tagcloud"));
Toggler.addItem(document.getElementById("sidebar-faq"));
Toggler.addItem(document.getElementById("sidebar-testimonial-toggle"));
Toggler.addItem(document.getElementById("sidebar-calendar"))
});
var Toggler={init:function(){this.toggleItems=[];
EventListener.addEvent(document,"click",this.scope(this.handleClicks))
},addItem:function(A){if(!A){return 
}if(!this.toggleItems){this.init()
}this.toggleItems.push(A)
},handleClicks:function(C){if(C.shiftKey||C.ctrlKey||C.altKey||this.toggleItems.length<=0){return 
}var B=EventListener.getTarget(C);
while(B!=null&&!ClassName.contains(B,"toggle")){B=B.parentNode
}if(B==null||!ClassName.contains(B,"toggle")){return 
}var A=this.getToggleItem(B);
if(A){if(ClassName.contains(A,"closed-item")){ClassName.swap(A,"closed-item","open-item")
}else{if(ClassName.contains(A,"open-item")){ClassName.swap(A,"open-item","closed-item")
}else{ClassName.add(A,"closed-item")
}}EventListener.cancelEvent(C)
}},getToggleItem:function(C){var D=C;
for(var B,A=0;
A<this.toggleItems.length;
A++){B=this.toggleItems[A];
while(D){if(D==B){return B
}D=D.parentNode
}D=C
}return null
},scope:function(B){var A=this;
return function(){return B.apply(A,arguments)
}
}};
EventListener.addEvent(window,"load",function(A){InvoiceTableToggler.init()
});
var InvoiceTableToggler={init:function(){var B=document.getElementsByTagName("table");
for(var A=0;
A<B.length;
A++){if(ClassName.contains(B[A],"table-invoices")){EventListener.addEvent(B[A],"click",this.handleClick,this)
}}},handleClick:function(B){if(B.shiftKey||B.ctrlKey||B.altKey){return 
}var A=EventListener.getTarget(B);
while(A!=null&&!ClassName.contains(A,"head")){A=A.parentNode
}if(A==null||!ClassName.contains(A,"head")){return 
}this.toggle(A);
EventListener.cancelEvent(B)
},toggle:function(A){if(ClassName.contains(A.parentNode,"open")){ClassName.remove(A.parentNode,"open")
}else{ClassName.add(A.parentNode,"open")
}}};
EventListener.addEvent(window,"load",function(A){ListToggler.init()
});
var ListToggler={init:function(){var A=document.getElementsByTagName("ul");
for(var B=0;
B<A.length;
B++){if(ClassName.contains(A[B],"toggle-list")){EventListener.addEvent(A[B],"click",this.handleClick,this)
}}},handleClick:function(B){if(B.shiftKey||B.ctrlKey||B.altKey){return 
}var A=EventListener.getTarget(B);
while(A!=null&&!ClassName.contains(A,"description")){A=A.parentNode
}if(A==null||!ClassName.contains(A,"description")){return 
}this.toggle(A);
EventListener.cancelEvent(B)
},toggle:function(A){if(ClassName.contains(A.parentNode,"open")){ClassName.remove(A.parentNode,"open")
}else{ClassName.add(A.parentNode,"open")
}}};
EventListener.addEvent(window,"load",function(A){BundelToggler.init()
});
var BundelToggler={init:function(){var A=document.getElementsByTagName("fieldset");
var B=/foldout4/;
for(var C=0;
C<A.length;
C++){if(B.test(A[C].className)){EventListener.addEvent(A[C],"click",this.handleClick,this)
}}},handleClick:function(B){if(B.shiftKey||B.ctrlKey||B.altKey){return 
}var A=EventListener.getTarget(B,"h3");
if(A){this.toggle(Utils.getParentByNodeName(A,"fieldset"))
}EventListener.cancelEvent(B)
},toggle:function(A){ClassName.toggle(A,"open")
}};
EventListener.addEvent(window,"load",function(A){ENotatableToggler.init()
});
var ENotatableToggler={init:function(){var B=document.getElementsByTagName("table");
for(var A=0;
A<B.length;
A++){if(ClassName.contains(B[A],"table-enota")){EventListener.addEvent(B[A],"click",this.handleClick,this)
}}},handleClick:function(B){if(B.shiftKey||B.ctrlKey||B.altKey){return 
}var A=EventListener.getTarget(B);
while(A!=null&&!ClassName.contains(A,"caption")){A=A.parentNode
}if(A==null||!ClassName.contains(A,"caption")){return 
}this.toggle(A);
EventListener.cancelEvent(B)
},toggle:function(B){if(ClassName.contains(B,"open")){ClassName.remove(B,"open")
}else{ClassName.add(B,"open")
}var A=B.parentNode.getElementsByTagName("tr");
if(ClassName.contains(A[0].parentNode,"open")){ClassName.remove(A[0].parentNode,"open")
}else{ClassName.add(A[0].parentNode,"open")
}}};
EventListener.addEvent(window,"load",function(A){ENotaConsumptiontableToggler.init()
});
var ENotaConsumptiontableToggler={init:function(){var B=document.getElementsByTagName("table");
for(var A=0;
A<B.length;
A++){if(ClassName.contains(B[A],"table-consumption")){EventListener.addEvent(B[A],"click",this.handleClick,this)
}}},handleClick:function(B){if(B.shiftKey||B.ctrlKey||B.altKey){return 
}var A=EventListener.getTarget(B);
while(A!=null&&!ClassName.contains(A,"head")){A=A.parentNode
}if(A==null||!ClassName.contains(A,"head")){return 
}this.toggle(A);
EventListener.cancelEvent(B)
},toggle:function(A){this.toggleTable(A)
},toggleTable:function(A){if(ClassName.contains(A.parentNode,"open")){ClassName.remove(A.parentNode,"open");
this.possibleCloseTHead(A)
}else{this.openTHead(A);
ClassName.add(A.parentNode,"open")
}},openTHead:function(B){while(B!=null&&!ClassName.contains(B,"table-consumption")){B=B.parentNode
}if(B==null||!ClassName.contains(B,"table-consumption")){return 
}for(var A=0;
A<B.childNodes.length;
A++){if(B.childNodes[A].tagName=="TBODY"&&ClassName.contains(B.childNodes[A],"open")){return 
}}for(var A=0;
A<B.childNodes.length;
A++){if(B.childNodes[A].tagName=="THEAD"){for(var D=0;
D<B.childNodes[A].childNodes.length;
D++){if(B.childNodes[A].childNodes[D].tagName=="TR"){for(var C=0;
C<B.childNodes[A].childNodes[D].childNodes.length;
C++){if(ClassName.contains(B.childNodes[A].childNodes[D].childNodes[C],"rowconsumption")){ClassName.swap(B.childNodes[A].childNodes[D].childNodes[C],"rowconsumption","rowconsumptionopen")
}else{if(ClassName.contains(B.childNodes[A].childNodes[D].childNodes[C],"costsconsumption")){ClassName.swap(B.childNodes[A].childNodes[D].childNodes[C],"costsconsumption","costsconsumptionopen")
}else{if(ClassName.contains(B.childNodes[A].childNodes[D].childNodes[C],"product-description")){ClassName.swap(B.childNodes[A].childNodes[D].childNodes[C],"product-description","product-descriptionopen")
}}}}}}}}},possibleCloseTHead:function(B){while(B!=null&&!ClassName.contains(B,"table-consumption")){B=B.parentNode
}if(B==null||!ClassName.contains(B,"table-consumption")){return 
}for(var A=0;
A<B.childNodes.length;
A++){if(B.childNodes[A].tagName=="TBODY"&&ClassName.contains(B.childNodes[A],"open")){return 
}}for(var A=0;
A<B.childNodes.length;
A++){if(B.childNodes[A].tagName=="THEAD"){for(var D=0;
D<B.childNodes[A].childNodes.length;
D++){if(B.childNodes[A].childNodes[D].tagName=="TR"){for(var C=0;
C<B.childNodes[A].childNodes[D].childNodes.length;
C++){if(ClassName.contains(B.childNodes[A].childNodes[D].childNodes[C],"rowconsumptionopen")){ClassName.swap(B.childNodes[A].childNodes[D].childNodes[C],"rowconsumptionopen","rowconsumption")
}else{if(ClassName.contains(B.childNodes[A].childNodes[D].childNodes[C],"costsconsumptionopen")){ClassName.swap(B.childNodes[A].childNodes[D].childNodes[C],"costsconsumptionopen","costsconsumption")
}else{if(ClassName.contains(B.childNodes[A].childNodes[D].childNodes[C],"product-descriptionopen")){ClassName.swap(B.childNodes[A].childNodes[D].childNodes[C],"product-descriptionopen","product-description")
}}}}}}}}}};
EventListener.addEvent(window,"load",function(C){var A=document.getElementById("select-all-calendaritems");
if(!A){return 
}var B=function(){var G=this.checked;
var E=this.parentNode.parentNode.getElementsByTagName("input");
var D=/check/i;
for(var F=0;
F<E.length;
F++){if(D.test(E[F].type)){E[F].checked=G;
E[F].DC.updateGUI()
}}};
EventListener.addEvent(A,"click",B)
});
EventListener.addEvent(window,"load",function(B){var A=new ZipFiller(document.getElementById("postalcode"),document.getElementById("number1"),document.getElementById("street"),document.getElementById("city"),document.getElementById("lookup"),null,null)
});
EventListener.addEvent(window,"load",function(B){var A=new ZipFiller(document.getElementById("contactAddressPostcode"),document.getElementById("contactAddressHouseNumber"),document.getElementById("contactAddressStreet"),document.getElementById("contactAddressCity"),document.getElementById("contactAddressLookup"),document.getElementById("_notNetherland_J"),document.getElementById("_notNetherland_N"))
});
EventListener.addEvent(window,"load",function(B){var A=new ZipFiller(document.getElementById("newContactAddressPostcode"),document.getElementById("newContactAddressHouseNumber"),document.getElementById("newContactAddressStreet"),document.getElementById("newContactAddressCity"),document.getElementById("newContactAddressLookup"),document.getElementById("_newNotNetherland_J"),document.getElementById("_newNotNetherland_N"))
});
EventListener.addEvent(window,"load",function(B){var A=new ZipFiller(document.getElementById("addressPostcode"),document.getElementById("addressHouseNumber"),document.getElementById("addressStreet"),document.getElementById("addressCity"),document.getElementById("addressLookup"),null,null)
});
EventListener.addEvent(window,"load",function(B){var A=new ZipFiller(document.getElementById("newAddressPostcode"),document.getElementById("newAddressHouseNumber"),document.getElementById("newAddressStreet"),document.getElementById("newAddressCity"),document.getElementById("newAddressLookup"),null,null)
});
EventListener.addEvent(window,"load",function(B){var A=new ZipFiller(document.getElementById("dutchContactAddressPostcode"),document.getElementById("dutchContactAddressHouseNumber"),document.getElementById("dutchContactAddressStreet"),document.getElementById("dutchContactAddressCity"),document.getElementById("dutchContactAddressLookup"),null,null)
});
ZipFiller=function(A,D,H,B,F,G,C){if(!A||!D||!H||!B){return 
}this.foreignYes=G;
this.foreignNo=C;
this.zip=A;
this.num=D;
this.street=H;
this.city=B;
this.storedNum=this.num.value;
this.storedZip=this.zip.value;
if(F){F.parentNode.removeChild(F)
}if(this.foreignYes&&this.foreignNo){EventListener.addEvent(this.foreignYes,"change",this.scope(this.foreignChange));
EventListener.addEvent(this.foreignNo,"change",this.scope(this.foreignChange))
}if(this.foreignYes&&this.foreignNo){if(this.foreignYes.checked==true){this.street.disabled=false;
this.city.disabled=false
}else{this.street.disabled=true;
this.city.disabled=true
}}else{this.street.disabled=true;
this.city.disabled=true
}EventListener.addEvent(this.zip,"change",this.scope(this.getAddress));
EventListener.addEvent(this.num,"change",this.scope(this.getAddress));
if(window.XMLHttpRequest){this.xmlhttp=new XMLHttpRequest()
}else{if(window.ActiveXObject){try{this.xmlhttp=new ActiveXObject("Msxml2.XMLHTTP")
}catch(E){this.xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
}}}if(this.zip.value!=""&&this.num.value!=""){this.getAddress()
}};
ZipFiller.prototype.foreignChange=function(){if(this.foreignYes&&this.foreignNo){if(this.foreignYes.checked==true){this.street.disabled=false;
this.city.disabled=false
}else{this.street.disabled=true;
this.city.disabled=true;
this.resetAddress();
this.num.value=this.storedNum;
this.zip.value=this.storedZip;
this.getAddress()
}}};
ZipFiller.prototype.getAddress=function(){this.storedNum=this.num.value;
this.storedZip=this.zip.value;
if(this.zip.value!=""&&this.num.value!=""){this.resetAddress();
try{this.removeErrorMessage();
this.message("Straatnaam en woonplaats worden opgezocht");
this.xmlhttp.open("GET","https://"+window.location.host+"/system/postcoderesponder.jsp?postcode="+this.zip.value+"&houseNumber="+this.num.value+"&rnd="+Math.random(),true);
var B=this;
this.xmlhttp.onreadystatechange=function(){if(B.xmlhttp.readyState==4&&B.xmlhttp.status==200){B.removeErrorMessage();
B.fillAddress(B.xmlhttp.responseXML)
}};
this.xmlhttp.send(null)
}catch(A){alert(A)
}}};
ZipFiller.prototype.fillAddress=function(C){if(C!=null){var F=C.getElementsByTagName("straatnaam");
var E=C.getElementsByTagName("woonplaats");
if((F!=null)&&(E!=null)&&(F.length>0)&&(E.length>0)){var B=F[0];
var A=E[0];
if((B!=null)&&(A!=null)){this.street.value=this.getValue(B);
this.city.value=this.getValue(A);
this.removeErrorMessage()
}else{this.errorMessage("Algemene foutmelding: geen geldige XML gevonden.");
this.resetAddress()
}}else{var D=C.getElementsByTagName("errormessage");
if(D!=null&D.length>0){var G=D[0];
if(G!=null){this.errorMessage(this.getValue(G))
}else{this.errorMessage("Algemene foutmelding: geen geldige XML gevonden.")
}}this.resetAddress()
}}else{this.errorMessage("Algemene foutmelding: geen geldige XML gevonden. Geen response");
this.resetAddress()
}};
ZipFiller.prototype.resetAddress=function(){this.street.value="";
this.city.value=""
};
ZipFiller.prototype.removeErrorMessage=function(){if(this.error){this.num.parentNode.parentNode.removeChild(this.error);
this.error=null
}this.num.parentNode.parentNode.className=this.num.parentNode.parentNode.className.replace(/error/g,"");
this.num.parentNode.className=this.num.parentNode.className.replace(/error/g,"");
this.zip.parentNode.className=this.zip.parentNode.className.replace(/error/g,"");
this.removeErrorMessageByParentNode(this.num.parentNode.parentNode);
this.removeErrorMessageByParentNode(this.zip.parentNode)
};
ZipFiller.prototype.removeErrorMessageByParentNode=function(A){var C=null;
C=A.getElementsByTagName("span");
for(var B=0;
B<C.length;
B++){if(C[B].className.search(/error/)>-1){A.removeChild(C[B])
}}};
ZipFiller.prototype.errorMessage=function(A){if(!this.error){var B=document.createElement("span");
B.className="errormessage show";
B.appendChild(document.createTextNode(A));
this.error=this.num.parentNode.parentNode.appendChild(B);
this.zip.parentNode.appendChild(B.cloneNode(true));
this.num.parentNode.parentNode.className=this.num.parentNode.parentNode.className+" error";
this.num.parentNode.className=this.num.parentNode.className+" error";
this.zip.parentNode.className=this.zip.parentNode.className+" error"
}};
ZipFiller.prototype.message=function(A){if(!this.error){var B=document.createElement("span");
B.appendChild(document.createTextNode(A));
this.error=this.num.parentNode.parentNode.appendChild(B)
}};
ZipFiller.prototype.getValue=function(A){var B=(A.firstChild)?A.firstChild.nodeValue:A.nodeValue;
B=B.replace(/^\s+/g,"");
B=B.replace(/\s+jQuery/g,"");
return B
};
ZipFiller.prototype.scope=function(B){var A=this;
return function(){return B.apply(A,arguments)
}
};
function checkPhonenumber(A){phonenumber=A.phonenumber.value;
phonenumber.replace(/-| /g,"");
if(phonenumber==""){document.getElementById("messageArea").innerHTML="Geen telefoonnummer ingevuld";
A.phonenumber.focus();
return false
}else{if(phonenumber.length<8||phonenumber.length>12){document.getElementById("messageArea").innerHTML="Ongeldig telefoonnummer ingevuld";
A.phonenumber.focus();
return false
}else{if(phonenumber.charAt(1)==8){document.getElementById("messageArea").innerHTML="Geen servicenummers toegestaan";
A.phonenumber.focus();
return false
}else{if(phonenumber.charAt(1)==9){if(phonenumber.substring(2,4)==91){return true
}else{document.getElementById("messageArea").innerHTML="Geen servicenummers toegestaan";
A.phonenumber.focus();
return false
}}else{if(phonenumber.charAt(0)!="+"&&phonenumber.charAt(0)!=0){document.getElementById("messageArea").innerHTML="Ongeldig telefoonnummer ingevuld";
A.phonenumber.focus();
return false
}else{document.getElementById("messageArea").innerHTML="";
window.open("","foo","width=460,height=330,status=no,resizable=no,scrollbars=no");
return true
}}}}}};
function ActionRotator(A){this.container=A;
this.current=-1;
this.items=[];
this.init()
}ActionRotator.prototype={TIME_DELAY:6000,TIME_RESUME:2000,init:function(){var D=/overview/i;
var A=this.container.getElementsByTagName("li");
for(var C,B=0;
B<A.length;
B++){C=A[B];
if(!D.test(C.className)){this.addItem(C)
}}EventListener.addEvent(this.container,"mouseover",this.scope(this.pause));
EventListener.addEvent(document,"mouseover",this.scope(this.unpause));
this.animate()
},addItem:function(B){var A=this.items.length;
this.items[A]=new ActionRotatorItem(B,this,A)
},next:function(E){var B=++this.current%this.items.length;
for(var A,D,C=0;
C<this.items.length;
C++){D=this.items[C];
A=((B==C&&!E)||(E==D))?true:false;
D.toggle(A)
}if(E){this.current=E.index
}},pause:function(B){var A=EventListener.getTarget(B,"li");
if(A&&A.rotatorItem){this.paused=true;
clearTimeout(this.timeout);
this.next(A.rotatorItem)
}},unpause:function(B){if(!this.paused){return 
}var A=EventListener.getTarget(B);
while(A){if(A==this.container){return 
}A=A.parentNode
}this.resume()
},resume:function(){this.paused=false;
this.timeout=setTimeout(this.scope(this.animate),this.TIME_RESUME)
},animate:function(){if(!this.paused){this.next();
this.timeout=setTimeout(this.scope(this.animate),this.TIME_DELAY)
}},scope:function(B){var A=this;
return function(){return B.apply(A,arguments)
}
}};
function ActionRotatorItem(C,D,A){this.container=C;
this.container.rotatorItem=this;
this.rotator=D;
this.index=A;
var B=C.getElementsByTagName("span");
this.banner=B[B.length-1];
this.display(false);
this.animator=new Animator(1,100,this.scope(this.animate),this.scope(this.animateEnd));
this.animator.setDuration(this.TIME_ANIMATE)
}ActionRotatorItem.prototype={CLASS_ACTIVE:"current",TIME_ANIMATE:750,toggle:function(A){this.direction=A?1:-1;
if(A&&ClassName.contains(this.container,this.CLASS_ACTIVE)){this.display(true);
return 
}if(A){this.setOpacity(0);
ClassName.add(this.container,this.CLASS_ACTIVE);
this.display(true)
}else{ClassName.remove(this.container,this.CLASS_ACTIVE)
}if(this.visible){this.animator.start()
}},animate:function(B){var A=(this.direction>0)?B:(100-B);
this.setOpacity(A)
},animateEnd:function(){this.animate(100);
if(this.direction<0){this.display(false)
}},setOpacity:function(A){var B=this.banner.style;
B.opacity=A/100;
B.mozOpacity=A/100;
B.filter="alpha(opacity="+A+")"
},display:function(A){this.banner.style.display=A?"block":"none";
this.visible=A
},scope:function(B){var A=this;
return function(){return B.apply(A,arguments)
}
}};
EventListener.addEvent(window,"load",function(){var B=document.getElementById("rotator");
if(B){new ActionRotator(B)
}var A=document.getElementById("rotator-subhomepage");
if(A){new ActionRotator(A)
}});
function DialogController(){this.dialogTypes={};
this.dialogs={};
this.register("tooltip",TooltipDialog);
this.register("calendar",CalendarDialog);
this.register("login",CenteredDialog);
this.register("costcalculator",CenteredDialog);
this.register("slidecalculator",CalculatorDialog);
this.register("exactusage",CenteredDialog);
this.register("graph",GraphDialog);
this.register("image",ImageDialog);
this.register("combi",CombiDialog);
this.register("delete",CenteredDialog);
this.register("welcome",CenteredDialog);
this.register("saving-tip-form",CenteredDialog);
EventListener.addEvent(document,"click",this.scope(this.tryClose));
LinkListener.addRelation(/(^|\s)dialog-[^ ]+/i,this.scope(this.displayDialog))
}DialogController.prototype={register:function(B,A){this.dialogTypes[B]=A
},displayDialog:function(F,E){if(this.currentDialog){this.currentDialog.display(false);
this.toggleOverlay(false)
}var B=/dialog-([^ ]+)/i.exec(E);
var A=B[0];
var D=B[1];
switch(D){case"close":break;
default:var C=document.getElementById(A);
return this.createDialog(C,F,D);
break
}this.currentDialog=null;
return true
},createDialog:function(C,E,D){var B=this.dialogs[D];
if(!B){var A=this.dialogTypes[D]||Dialog;
B=new A(C,this,D)
}this.currentDialog=this.dialogs[D]=B;
B.setOrigin(E);
B.toggle(true);
return B
},tryClose:function(B){if(this.currentDialog){var A=EventListener.getTarget(B);
this.currentDialog.tryClose(A)
}},toggleOverlay:function(A){Overlay.toggle(A)
},scope:function(B){var A=this;
return function(){return B.apply(A,arguments)
}
}};
var Overlay={init:function(){var A=document.getElementsByTagName("body")[0];
var B=document.createElement("div");
B.id="overlay";
this.container=A.appendChild(B)
},setHeight:function(){var A=document.body.scrollHeight;
var B=window.innerHeight||document.documentElement.clientHeight;
if(A<B){A=B
}this.container.style.height=A+"px"
},toggle:function(A){if(!this.container){this.init()
}this.setHeight();
this.container.style.display=A?"block":"none"
}};
function Dialog(B,A,C){this.container=B;
this.controller=A;
this.type=C
}Dialog.prototype={OFFSET_LEFT:-5,OFFSET_RIGHT:30,OFFSET_TOP:0,OFFSET_BOTTOM:30,setAction:function(A){this.action=A
},setOrigin:function(A){this.origin=A
},action:function(){},activate:function(){},toggle:function(A){this.controller.toggleOverlay(A);
this.activate(A);
this.display(A)
},display:function(E){var H=this.container;
var K=this.origin;
var J=Utils.calculateLeft(K);
var I=Utils.calculateTop(K);
if(typeof (K)!="undefined"){if(navigator.appName.indexOf("Netscape")!=-1&&K.parentNode.tagName=="CAPTION"){J=J-25;
I=I-K.offsetParent.offsetTop
}}var G=H.style;
G.display=E?"block":"none";
var L=H.offsetWidth;
var D=H.offsetHeight;
var F=window.innerWidth||document.documentElement.clientWidth;
var M=window.innerHeight||document.documentElement.clientHeight;
var A=window.pageYOffset||document.documentElement.scrollTop;
var C=J+this.OFFSET_RIGHT;
var B=I+this.OFFSET_TOP;
if((C+L)>(F)){C=J-L+this.OFFSET_LEFT
}if((B+D)>(M+A)){B=I-D+this.OFFSET_BOTTOM
}this.position(C,B);
H.style.visibility=E?"visible":"hidden"
},position:function(A,C){var B=this.container.style;
B.left=A+"px";
B.top=C+"px"
},tryClose:function(A){while(A){if(A==this.container||A==this.origin){return 
}A=A.parentNode
}this.toggle(false)
},scope:function(B){var A=this;
return function(){return B.apply(A,arguments)
}
}};
TooltipDialog=Class.extend(Dialog,function(){this.title=this.container.getElementsByTagName("h3")[0];
this.body=this.container.getElementsByTagName("p")[0]
},{activate:function(B){var C=this.origin.firstChild;
if((C.parentNode.className=="information-img"||C.nodeValue==null)&&C.alt!="undefined"){for(var A=0;
A<this.origin.childNodes.length;
A++){if(this.origin.childNodes[A].tagName=="IMG"){infhoudTitel=this.origin.childNodes[A].getAttribute("alt");
this.title.innerHTML='<a href="#" rel="dialog-close">X</a>'+infhoudTitel;
this.body.innerHTML=this.origin.childNodes[A].getAttribute("title")
}}}else{infhoudTitel=this.origin.firstChild.nodeValue;
this.title.innerHTML='<a href="#" rel="dialog-close">X</a>'+infhoudTitel;
this.body.innerHTML=this.origin.getAttribute("title")
}}});
CenteredDialog=Class.extend(Dialog,function(){},{position:function(){var A=((window.innerWidth||document.documentElement.clientWidth)-this.container.offsetWidth)/2;
var B=((window.innerHeight||document.documentElement.clientHeight)+(window.pageYOffset||document.documentElement.scrollTop)-this.container.offsetHeight)/2;
Dialog.prototype.position.apply(this,[A,B])
}});
GraphDialog=Class.extend(Dialog,function(){},{position:function(){var C=this.origin;
var B=this.container.offsetWidth;
var A=Utils.calculateLeft(C)-B+30;
var D=Utils.calculateTop(C);
Dialog.prototype.position.apply(this,[A,D])
}});
ImageDialog=Class.extend(CenteredDialog,function(){},{activate:function(){this.container.getElementsByTagName("img")[0].src=this.origin.href
}});
CombiDialog=Class.extend(Dialog,function(){},{position:function(){var C=this.origin;
var B=this.container.offsetWidth;
var A=Utils.calculateLeft(C)-B+30;
var D=Utils.calculateTop(C);
Dialog.prototype.position.apply(this,[A,D])
}});
CalendarDialog=Class.extend(Dialog,function(){this.title=this.container.getElementsByTagName("h3")[0];
try{this.calendar=new Calendar(this.container);
this.calendar.setAction(this.scope(this.handleDate))
}catch(A){throw Error("calendar.js not included")
}},{activate:function(A){this.title.innerHTML='<a href="#" rel="dialog-close">X</a>'+this.origin.getAttribute("title");
if(A){this.setOriginalDate()
}},setOriginalDate:function(){var D=Utils.getParentByNodeName(this.origin,"div");
var B=D.getElementsByTagName("select");
var A=new Date(parseInt(B[1].value),(parseInt(B[0].value)-1),1);
var C=/[^ ]+jQuery/.exec(this.origin.getAttribute("rel"));
this.calendar.cloneSelects(B[1],B[0]);
this.calendar.setDate(A,C)
},handleDate:function(B){var D=Utils.getParentByNodeName(this.origin,"div");
var A=D.getElementsByTagName("input")[0];
var C=D.getElementsByTagName("select");
A.value=B.getDate();
Utils.setSelectValue(C[0],B.getMonth()+1);
Utils.setSelectValue(C[1],B.getFullYear());
this.tryClose()
}});
CalculatorDialog=Class.extend(CenteredDialog,function(){this.sliders=[];
var B=getElementsByAttributeValue("class","slider",this.container);
for(var A=0;
A<B.length;
A++){this.sliders[A]=new Slider(B[A])
}},{display:function(){Dialog.prototype.display.apply(this,arguments);
for(var A=0;
A<this.sliders.length;
A++){this.sliders[A].updateSlider()
}}});
FormDialog=Class.extend(Dialog,function(){EventListener.addEvent(this.container,"click",this.tryClose,this)
},{toggle:function(A){Overlay.toggle(A);
this.activate(A);
this.display(A)
},position:function(){var A=((window.innerWidth||document.documentElement.clientWidth)-this.container.offsetWidth)/2;
var B=(window.pageYOffset||document.documentElement.scrollTop)+((window.innerHeight||document.documentElement.clientHeight)-this.container.offsetHeight)/2;
Dialog.prototype.position.apply(this,[A,B])
},tryClose:function(B){var A=EventListener.getTarget(B,"a");
if(A&&A.rel){switch(A.rel){case"dialog-close":this.toggle(false);
EventListener.cancelEvent(B);
break;
case"dialog-ok":this.toggle(false);
this.controller.confirm(true);
EventListener.cancelEvent(B);
break;
case"dialog-cancel":this.toggle(false);
this.controller.confirm(false);
EventListener.cancelEvent(B);
break;
case"dialog-continue":this.toggle(false);
this.controller.confirm(true);
EventListener.cancelEvent(B);
break;
case"dialog-stop":this.toggle(false);
this.controller.confirm(false);
EventListener.cancelEvent(B);
break;
case"dialog-loginpage":this.toggle(false);
this.controller.confirm();
EventListener.cancelEvent(B);
break
}}}});
EventListener.addEvent(window,"load",function(){new DialogController()
});
function BizActionRotator(A){this.container=A;
this.current=-1;
this.items=[];
this.init()
}BizActionRotator.prototype={TIME_DELAY:6000,TIME_RESUME:2000,init:function(){var A=this.container.getElementsByTagName("ul")[0];
var G=this.container.getElementsByTagName("ol")[0];
var B=G.getElementsByTagName("li");
var F=A.getElementsByTagName("li");
for(var D,E,C=0;
C<B.length;
C++){E=B[C];
D=F[C+1];
this.addItem(E,D)
}EventListener.addEvent(this.container,"mouseover",this.pause,this);
EventListener.addEvent(A,"click",this.click,this);
EventListener.addEvent(document,"mouseover",this.unpause,this);
this.animate()
},addItem:function(C,B){var A=this.items.length;
this.items[A]=new BizActionRotatorItem(C,B,this,A)
},next:function(E){var B=++this.current%this.items.length;
for(var A,D,C=0;
C<this.items.length;
C++){D=this.items[C];
A=(B==C)?true:false;
D.toggle(A)
}if(E){this.current=E.index
}},click:function(D){var C=EventListener.getTarget(D,"a");
var A=/rotate-([a-z0-9]+)/i.exec(C.rel)[1];
switch(A){case"previous":this.current+=this.items.length-2;
this.next();
break;
case"next":this.next();
break;
default:var B=parseInt(A);
if(isNaN(B)){break
}this.current=B-2;
this.next();
break
}EventListener.cancelEvent(D)
},pause:function(A){this.paused=true;
clearTimeout(this.timeout)
},unpause:function(B){if(!this.paused){return 
}var A=EventListener.getTarget(B);
while(A){if(A==this.container){return 
}A=A.parentNode
}this.resume()
},resume:function(){this.paused=false;
this.timeout=setTimeout(this.scope(this.animate),this.TIME_RESUME)
},animate:function(){if(!this.paused){this.next();
this.timeout=setTimeout(this.scope(this.animate),this.TIME_DELAY)
}},scope:function(B){var A=this;
return function(){return B.apply(A,arguments)
}
}};
function BizActionRotatorItem(D,C,E,A){this.container=D;
this.button=C;
this.button.rotatorItem=this;
this.rotator=E;
this.index=A;
var B=D.getElementsByTagName("span");
this.banner=B[B.length-1];
this.display(false);
this.animator=new Animator(1,100,this.scope(this.animate),this.scope(this.animateEnd));
this.animator.setDuration(this.TIME_ANIMATE)
}BizActionRotatorItem.prototype={CLASS_ACTIVE:"current",TIME_ANIMATE:750,toggle:function(A){this.direction=A?1:-1;
if(A&&ClassName.contains(this.container,this.CLASS_ACTIVE)){this.display(true);
return 
}if(A){this.setOpacity(0);
ClassName.add(this.container,this.CLASS_ACTIVE);
ClassName.add(this.button,this.CLASS_ACTIVE);
this.display(true)
}else{ClassName.remove(this.container,this.CLASS_ACTIVE);
ClassName.remove(this.button,this.CLASS_ACTIVE)
}if(this.visible){this.animator.start()
}},animate:function(B){var A=(this.direction>0)?B:(100-B);
this.setOpacity(A)
},animateEnd:function(){this.animate(100);
if(this.direction<0){this.display(false)
}},setOpacity:function(A){var B=this.banner.style;
B.opacity=A/100;
B.mozOpacity=A/100;
B.filter="alpha(opacity="+A+")"
},display:function(A){this.banner.style.display=A?"block":"none";
this.visible=A
},scope:function(B){var A=this;
return function(){return B.apply(A,arguments)
}
}};
EventListener.addEvent(window,"load",function(){var A=document.getElementById("rotator-business");
if(A){new BizActionRotator(A)
}});
(function(B){B.fn.bigTarget=function(D){A(this);
var E=B.extend({},B.fn.bigTarget.defaults,D);
return this.each(function(){var G=B(this);
var F=G.attr("href");
var I=G.attr("title");
var H=B.meta?B.extend({},E,G.data()):E;
G.parents(H.clickZone).hover(function(){jQueryh=B(this);
jQueryh.addClass(H.hoverClass);
if(typeof H.title!="undefined"&&H.title===true&&I!=""){jQueryh.attr("title",I)
}},function(){jQueryh.removeClass(H.hoverClass);
if(typeof H.title!="undefined"&&H.title===true&&I!=""){jQueryh.removeAttr("title")
}}).click(function(){if(C()==""){if(G.is("[rel*=external]")){window.open(F);
return false
}else{window.location=F
}}})
})
};
function A(D){if(window.console&&window.console.log){window.console.log("bigTarget selection count: "+D.size())
}}function C(){if(window.getSelection){return window.getSelection().toString()
}else{if(document.getSelection){return document.getSelection()
}else{if(document.selection){return document.selection.createRange().text
}}}}B.fn.bigTarget.defaults={hoverClass:"hover",clickZone:"li:eq(0)",title:true}
})(jQuery);
(function(A){A.fn.columns=function(B){var C=A.extend(true,{},A.fn.columns.defaults,B);
return this.each(function(D){var O=A(this),L=this.nodeName,R=O.children(),G=1,P=1,N=[],K=C.columnClass;
if(C.columnWrapper){var I=this.className?this.className+" "+C.columnWrapperClass:C.columnWrapperClass;
var Q=A(C.columnWrapper).addClass(I+" "+I+"-"+C.columns).attr("id",this.id).insertBefore(O)
}for(var J=0,F=R.length;
J<F;
J++){N.push(R[J]);
var M=(F/C.columns)*G;
if(J+1>=M||J===F-1){P=Math.ceil(M);
var H=A("<"+L+' class="'+K+" "+K+"-"+G+'"></'+L+">").append(A(N));
if(J===F-1){H.addClass(K+"-last")
}if(C.columnWrapper){H.appendTo(Q)
}else{H.insertBefore(O)
}if(H[0].nodeName=="OL"&&G>1){H.attr("start",E)
}G++;
N=[]
}var E=P+1
}O.remove()
})
}
})(jQuery);
jQuery.fn.columns.defaults={columns:3,columnClass:"column",columnWrapper:"<div></div>",columnWrapperClass:"row"};
jQuery(document).ready(function(){jQuery(".list-faq-toggle div").hide();
jQuery(".list-faq-toggle li strong").click(function(){jQuery(this).parent().toggleClass("open").children("div.answer").toggle();
jQuery(this).parent().siblings().children("div.answer").hide().parent().removeClass("open")
})
});
jQuery(document).ready(function(){jQuery(".page-report div.paragraph").hide();
jQuery(".select-all-pages").click(function(){jQuery(this).toggleClass("closed");
jQuery(this).siblings("ul").toggle()
});
jQuery(".page-report li div.chapter").click(function(){jQuery(this).next("div.paragraph").toggle();
jQuery(this).toggleClass("open")
});
var A=function(E,C){if(C){E.attr("checked","checked")
}else{E.removeAttr("checked")
}for(var D=0;
D<E.length;
D++){E[D].DC.updateGUI()
}};
var B=function(C,D){if(C.length==C.filter(":checked").length){D.attr("checked","checked")
}else{D.removeAttr("checked")
}D[0].DC.updateGUI()
};
jQuery(".select-all-pages input[@type=checkbox]").click(function(E){var C=false;
if(jQuery(this).attr("checked")){C=true
}var D=jQuery(this).parents("fieldset").find("input[@type=checkbox]");
A(D,C)
});
jQuery(".list-report-toggle div.chapter input[@type=checkbox]").click(function(G){var C=false;
if(jQuery(this).attr("checked")){C=true
}var E=jQuery(this).parents(".chapter").next(".paragraph").find("input[@type=checkbox]");
A(E,C);
var D=jQuery(this).parents(".list-report-toggle").find(".chapter input:checkbox");
var F=jQuery(this).parents("fieldset").find(".select-all-pages input:checkbox");
B(D,F)
});
jQuery(".list-report-toggle div.paragraph input[@type=checkbox]").click(function(E){var G=jQuery(this).parents("div.paragraph");
var C=G.find("input:checkbox");
var D=G.prev(".chapter").find("input:checkbox");
var F=G.find("input:checked");
B(C,D);
C=jQuery(this).parents(".list-report-toggle").find(".chapter input:checkbox");
D=jQuery(this).parents("fieldset").find(".select-all-pages input:checkbox");
B(C,D)
});
jQuery('#content p.selection a:not(".deselect")').click(function(){jQuery(".page-report input[@type=checkbox]").attr("checked","checked");
var D=jQuery(".page-report input[@type=checkbox]");
for(var C=0;
C<D.length;
C++){D[C].DC.updateGUI()
}return false
});
jQuery("#content p.selection a.deselect").click(function(){jQuery(".page-report input[@type=checkbox]").removeAttr("checked");
var D=jQuery(".page-report input[@type=checkbox]");
for(var C=0;
C<D.length;
C++){D[C].DC.updateGUI()
}return false
})
});
jQuery(document).ready(function(){jQuery(".list-gri-toggle div.answer").hide();
jQuery(".list-gri-toggle li").addClass("gri-toggle-closed");
jQuery(".list-gri-toggle li div.answer").parent("li").removeClass("gri-toggle-closed").click(function(A){if(!jQuery(A.target).is("a")){jQuery(this).toggleClass("open").children("div.answer").toggle();
jQuery(this).siblings().children("div.answer").hide().parent().removeClass("open");
jQuery(this).find("a").unbind()
}})
});
jQuery(document).ready(function(){jQuery("div#content .tabel tbody tr.collapse-report").parent("tbody").find("tr:not(.collapse-report)").hide().addClass("row-hidden");
jQuery("div#content .tabel tbody tr.collapse-report").addClass("report-closed");
jQuery("div#content .tabel tbody tr.collapse-report td p").toggle(function(){jQuery(this).parent().parent().addClass("report-open").removeClass("report-closed");
jQuery(this).parent().parent().parent().find("tr:hidden").show().removeClass("row-hidden")
},function(){jQuery(this).parent().parent().addClass("report-closed").removeClass("report-open");
jQuery(this).parent().parent().parent().find("tr:visible:not(.collapse-report)").hide().addClass("row-hidden")
})
});
jQuery(document).ready(function(){jQuery(".list-tips > li").hover(function(){jQuery(this).addClass("hover")
},function(){jQuery(this).removeClass("hover")
});
jQuery(".list-tips > li").addClass("closed-tip");
jQuery(".list-tips > li").append('<a href="#" class="more">Open</a>');
jQuery(".list-tips > li").click(function(B){var A=jQuery(this).find("a.more").text();
if(A=="Sluiten"){jQuery(this).removeClass("open-tip").find("a.more").text("Open")
}else{jQuery(this).toggleClass("open-tip").find("a.more").text("Sluiten").parent().siblings().removeClass("open-tip").find("a.more").text("Open").parents(".column").siblings().find("li").removeClass("open-tip").find("a.more").text("Open")
}B.preventDefault()
});
jQuery(".list-tips .tips-information a").click(function(){jQuery(this).parents(".closed-tip").removeClass("closed-tip").addClass("open-tip");
window.location=jQuery(this).attr("href")
});
jQuery("#content .table-tips tbody tr:first").addClass("hover");
jQuery("#content .table-tips tbody tr").hover(function(){jQuery(this).siblings().removeClass();
jQuery(this).addClass("hover")
},function(){jQuery(this).removeClass()
});
jQuery("#content div.bigTarget h3 a").bigTarget({hoverClass:"bigTarget-hover",clickZone:"div:eq(0)"});
jQuery(".list-tips").columns({columns:2})
});
jQuery(window).ready(function(){jQuery(".form-pulldowns fieldset").each(function(){jQueryfs=jQuery(this);
jQueryoptions=jQueryfs.find(".DCscroller span");
jQueryoptions.click(function(){jQuery(this).parents("fieldset").find(".inlinesubmit").click()
});
jQueryfs.find(".DCselect .status").css("width","184px")
})
});
jQuery(document).ready(function(){var A=location.href.split("?")[0];
var B=false;
jQuery("div.tab-container ul.tabnavigation").find("a").each(function(){var C=this.href.split("?")[0];
if(A.indexOf(C)!=-1){jQuery(this).parent().addClass("active");
B=true;
if(A==C){jQuery(this).removeAttr("href")
}else{jQuery(this).css("cursor","pointer")
}}});
if(!B){jQuery("ul.tabnavigation").find("a").eq(0).parent().addClass("active")
}});
var jQuerytheTipForm=null;
jQuery(document).ready(function(){jQuery("a[rel=dialog-saving-tip-form]").click(function(){jQuery("#ajax-form").empty();
jQuery.get("/bespaarpleintipform.inc",function(A){jQuery("#ajax-form").append(A);
new DesignControls();
jQuery("#submit-tip").click(function(){return ajaxSubmitTip()
})
})
})
});
function ajaxSubmitTip(){try{jQuery("#form_error").empty();
jQuery("span.errormessage").remove();
var A=document.tipform.category.value;
var C=document.tipform.tiptitle.value;
var D=document.tipform.tiptekst.value;
var H=document.tipform.naam.value;
var I=document.tipform.woonplaats.value;
var E=document.tipform.email.value;
var B=document.tipform.keepUpToDateNuon.checked;
var J=validateEmail(jQuery("#email"));
J&=validateRequired(jQuery("#naam"));
J&=validateRequired(jQuery("#tiptitle"));
J&=validateRequired(jQuery("#tiptekst"));
J&=validateRequired(jQuery("#category"));
if(!J){jQuery("#form_error").append("<strong>Let op!</strong> Het formulier is niet juist of onvolledig ingevuld. Corrigeer de aangegeven velden om verder te gaan");
return false
}var G=jQuery.ajax({url:"/bespaarpleintipform.inc",data:"_finish=finish&tip.category="+A+"&tip.tiptitel="+C+"&tip.tiptekst="+D+"&gegevens.naam="+H+"&gegevens.woonplaats="+I+"&email.email="+E+"&optIn.keepUpToDateNuon="+B,cache:false,type:"POST",async:false}).responseText;
jQuery("#ajax-form").empty();
jQuery("#ajax-form").append(G)
}catch(F){alert(F)
}return false
}jQuery(document).ready(function(){jQuery("#dialog-tip-of-the-week").appendTo("body")
});
function validateRequired(A){A.parent("div.field").removeClass("error");
var B=A.val();
if(B==null||B==""){A.parent("div.field").addClass("error");
A.after("<span class='errormessage'>Verplicht veld</span>");
return false
}else{return true
}}function validateEmail(C){C.parent("div.field").removeClass("error");
var E=C.val();
var B=/(@.*@)|(\.\.)|(@\.)|(\.@)|(^\.)/;
var A=/^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,3}|[0-9]{1,3})(\]?)jQuery/;
var D=(!B.test(E)&&A.test(E));
if(!D){C.parent("div.field").addClass("error");
C.after("<span class='errormessage'>Dit is geen geldig emailadres</span>");
return false
}else{return true
}};
