(function($){$(function(){$(".curves").wrapInner("<span><span><span><span></span></span></span></span>").find("input").css("border","0");$("#tabmenu > ul").find("li > div > ul").firstLastClass().end().find("li > div > ul a").wrapInner("<span class=\"inner\"/>").prepend("<span class=\"bottom\"/>").end().find("li > div > ul > li").hoverClass().end().timedMenu();$(".teaser.teaser-home").equalHeights();$(".col:has(.teaser-content)").pairedEqualHeights(".teaser");$(".toggle").faqToggler();$("#header button").hoverClass();$("table .round, table .roundrect").prev().filter(":not(.roundrect)").filter(":not(.round)").css("padding-right","15px").end().end().end().find("span").css({position:"relative",left:"-10px"});(function(){var a=$(".text-file input[type=file]").stylableUpload({button:"<button class=\"button button-engaging\" type=\"button\"><span>Bladeren</span></button>"});if($.msieVersion()===0||$.msieVersion()>6){a.hover(function(){$(this).next(".fakefile").find("button").addClass("hover")},function(){$(this).next(".fakefile").find("button").removeClass("hover")})}}());$(".text.text-date .datepicker").telfortDatePicker();$(".text:has(.bubble) > input").telfortHelpBubble({borderWidth:2,extraoffset:{left:10,top:-4},event:"focus"});$(".tooltip[title]").telfortHelpBubble({borderWidth:2,extraoffset:{left:22,top:-7},event:"hover"});$(".text input, .text textarea").live("focus",function(){$(this).addClass("focus")}).live("blur",function(){$(this).removeClass("focus")});$(".steps").telfortFormSteps();$("fieldset.section > div:has(.suboptions)").suboptionsSlider();if($.webkitVersion()>0){$(".teaser-home h1").css("border","solid 1px "+$(".teaser-home h1:first").getstyle("background-color"))}$.extend($.telfortPopup.popupTypes,{aanmelden:{width:700,height:800},specs:{width:600,height:800},internetchat:{width:643,height:565},productinfo:{width:650,height:480},voorwaarden:{width:650,height:480}});$("a.popup,a[rel~=popup]").telfortPopup();$(".tabs").telfortTabs();$("a[rel~=tab]").click(function(){$(this).telfortTabs($(this).attr("href"));return false});$("a[rel~=lightbox]").telfortLightbox();$("#sidebar > .container").firstLastClass({selector:"h2"});$(".flash").telfortFlash();$("a.print,button.print,input[type=button].print").click(function(){window.print();return false});$(".glass:not(.glass-trans) > .container").modernBox({contentWrapper:"<div class=\"innercontainer\"/>"});$(".button-engaging").modernBox({applyPngFix:false});$.belatedPNG(".button-login, .arrowlink, .colored-balls, .sidebar-stock div, #tabmenu div > ul > li, .steps, .heading .callmeback, .heading .chatwithtelfort, .text-date .datepicker, .label.tooltip, .contact-phone");if(window.DD_belatedPNG){$(".button-engaging > span, .button-previous").filter(function(){return $(this).parents(".with-fallback").length===0}).belatedPNG()}$("html").removeClass("delay-colored-balls")});$(window).load(function(){if(!Modernizr.borderradius){var b="transparent";$("<div class=\"teaser-link-background\"/>").each(function(){b=$(this).appendTo("body").getstyle("background-color");$(this).remove()});$(".list-links li").each(function(){var w=$(this).children("a").width(),h=$(this).height();$(this).append($("<div class=\"teaser-link-background\"/>").height(h).css("background","transparent").append($("<div/>").height(h).width(w+15+23))).find(".teaser-link-background div").liquidCanvas("fill{color:$COLOR$} => roundedRect{radius:10}".replace("$COLOR$",b))}).hoverClass();$(".contentheader #split, .list-top li span").each(function(){$(this).liquidCanvas("fill{color:$COLOR$} => roundedRect{radius:10}".replace("$COLOR$",$(this).getstyle("background-color")))});$(".contentwrapper").each(function(){var a=$(this).getstyle("border-color");$(this).css("border","0").liquidCanvas("[shadow{color:'rgba(0,0,0,.15)';width:2;shift:2} movesize{w:'2';x:'-1'} border{color:$COLOR$;width:1} fill{color:#fff}] => roundedRect{radius:10}".replace("$COLOR$",a))});$(".curves").each(function(){var a=$(this).getstyle("border-color");$(this).css("border","0").liquidCanvas("[border{color:$COLOR$;width:1} fill{color:#fff}] => roundedRect{radius:4}".replace("$COLOR$",a))});$(".round span").each(function(){var a=$(this).getstyle("background-color");$(this).css("background","none").liquidCanvas("fill{color:$COLOR$} => roundedRect{radius:10}".replace("$COLOR$",a))});$(".steps li .nr").each(function(){var a=$(this).getstyle("background-color");$(this).css("background","none").liquidCanvas("fill{color:$COLOR$} => ellipse".replace("$COLOR$",a))});$("div.errormessage").each(function(){var a=$(this).getstyle("border-color");$(this).css("border","0").liquidCanvas("[border{color:$COLOR$;width:1} fill{color:#fff}] => roundedRect{radius:10}".replace("$COLOR$",a))});$(".teaser-home h1").each(function(){var a=$(this).getstyle("background-color");$(this).css("background","none").liquidCanvas("fill{color:$COLOR$} => effectRect{radius:'0 10 10 0'}".replace("$COLOR$",a))})}if(!Modernizr.boxshadow||!Modernizr.cssgradients){$(".glass-trans > .container").css({border:0,background:"none"}).liquidCanvas("[gradient{from:'rgba(255,255,255,.53)';to:'rgba(255,255,255,.75)'} border{color:'rgba(0,0,0,.15)';width:1}] => roundedRect{radius:9}")}$(".roundrect span").liquidCanvas("fill{color:#e3e3e3} => effectRect{radius:10;effect:'round,straight,straight,round'}");var c,bg2;$("#menu li.active").each(function(){c=$(this).getstyle("background-color")}).find("a").each(function(){bg2=$(this).getstyle("background-color")}).andSelf().css("background","none").end().end().liquidCanvas("[movesize{w:'-4';h:'-4';x:2;y:2} dualcolor{from:$FROM$;to:$TO$} border{color:$TO$;width:1}] => effectRect{radius:'10,48%,48%,10';effect:'round,straight,straight,round'}".replace(/\$FROM\$/g,c).replace(/\$TO\$/g,bg2))});$.telfortPopup={popupTypes:{external:{}}};$.fn.telfortPopup=function(){this.unbind("click.telfortpopup").bind("click.telfortpopup",function(){var b,popupName,win;$.each(($(this).attr("rel")||"").split(" "),function(i,a){if(a!="popup"&&$.telfortPopup.popupTypes[a]){b=$.telfortPopup.popupTypes[a];popupName=a;return false}});if(b){$(this).addClass("popup");if(b.width&&b.height){win=window.open($(this).attr("href"),popupName,"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width="+b.width+",height="+b.height)}else{win=window.open($(this).attr("href"))}if(win){win.focus();return false}}})};$.fn.telfortFlash=function(){var d=function(a,b){throw String(a)+" (at position "+b+")";};var e=function(c){var a=/\'|\:|\s+|[^\'\s\:]+/g,streamer,isquote=false,isvalue=false,curname="",curvalue="",params={};c=String(c||"")+" ";while((streamer=a.exec(c))!==null){if(streamer[0]=="'"){if(isvalue){isquote=!isquote}else{d("Quote in param name is not allowed",streamer.index);return null}continue}if(/^\s+$/.test(streamer[0])){if(isquote&&isvalue){curvalue+=streamer[0]}else{if(curname!==""&&curvalue!==""){params[curname]=curvalue}curname=curvalue="";isquote=isvalue=false}continue}if(streamer[0]==":"){if(isvalue||isquote){curvalue+=":"}else{isvalue=true}continue}if(isvalue){curvalue+=streamer[0]}else{curname+=streamer[0]}}return params};if(!$.isFunction($.fn.flash)){return}return this.each(function(){var t=$(this);if($.flash.available){var a=e(t.attr("class")),file=a.file;if(String(file||"").length>0){delete a.file;t.empty().flash({swf:file,flashvars:a})}}})};$.telfortLightbox=$.extend({types:{normal:{width:480},wide:{width:710}},options:{debug:false,minHeight:100,windowResize:false,titleFromIframe:false,bgColor:"transparent",showBackground:function(a,b,c){a.content.addClass("lightbox-content").show();a.contentWrapper.addClass("lightbox-content-wrapper");a.full.addClass("lightbox-full");a.loading.addClass("lightbox-loading");a.bg.addClass("lightbox-background").css({height:10000,backgroundColor:"black",opacity:0}).fadeTo(500,0.35,c)},showContent:function(f,g,h){if(isNaN(g.width)){g.width=f.contentWrapper.css({visibility:"hidden",display:"block"}).width();f.contentWrapper.css({visibility:"visible",display:"none"})}f.contentWrapper.css({marginTop:(-g.height/2+g.marginScrollTop)-40+"px",marginLeft:(-g.width/2+g.marginScrollLeft)+"px"}).show();$("a.popup,a[rel~=popup]",f.wrapper).telfortPopup();f.content.find("iframe").bind("load",function(){var b,body=$(this).find("body");if(body.length===0){try{b=this.contentDocument||(this.contentWindow?this.contentWindow.document:null)||this.document;body=$(b.body)}catch(e1){body=$()}}var c=function(){if(body.length===0){try{body=$(b.body)}catch(e){body=$()}}if(body.length>0){var a=body.height(),h2=body.get(0).scrollHeight;$.nyroModalSettings({width:480,height:Math.min(a,h2)/0.99+4,windowResizing:true})}else{$.nyroModalSettings({width:480,height:500,windowResizing:true})}if(!Modernizr.borderradius&&!Modernizr.boxshadow){f.wrapper.modernBox({applyPngFix:false})}};var d=false;try{d=!!b.body}catch(e2){d=false}if(body.length===0&&!d){$.waitForIt({condition:function(){try{return!!b.body}catch(e){return true}},success:c,timeout:2000})}else{c()}});h()},endShowContent:function(a,b){var c=a.content.find("iframe");if($.msieVersion()>0&&$.msieVersion()<=6){c.height(c.parent().height())}if(!Modernizr.borderradius&&!Modernizr.boxshadow){a.wrapper.modernBox({applyPngFix:false})}},resize:function(a,b,c){a.contentWrapper.css({width:b.width+"px",height:b.height+"px",marginLeft:b.marginLeft+"px",marginTop:b.marginTop+"px"});c()},hideContent:function(a,b,c){a.contentWrapper.hide();c()},wrap:{div:"<div class=\"lightbox-wrapper\"></div>",ajax:"<div class=\"lightbox-wrapper lightbox-wrapper-ajax\"></div>",form:"<div class=\"lightbox-wrapper\"></div>",formData:"<div class=\"lightbox-wrapper\"></div>",image:"<div class=\"lightbox-wrapper lightbox-wrapper-image\"></div>",swf:"<div class=\"lightbox-wrapper lightbox-wrapper-flash\"></div>",iframe:"<div class=\"lightbox-wrapper lightbox-wrapper-iframe\"></div>",iframeForm:"<div class=\"lightbox-wrapper lightbox-wrapper-iframe\"></div>",manual:"<div class=\"lightbox-wrapper\"></div>"},closeButton:"<a href=\"#\" class=\"lightbox-button-close\">Sluiten</a>",closeSelector:".lightbox-button-close"}},$.telfortLightbox);$.fn.telfortLightbox=function(e){if(this.length===0){return this}var f=function(t){var a=$(t).attr("href");return(/^#/).test(a)?$(a):$()};var g=function(d){this.each(function(){f(this).hide().children(":last-child").addClass("last-in-lightbox")});this.click(function(){var t=$(this),rel=t.attr("rel").split(" "),type=$.telfortLightbox.types.normal;for(var s in $.telfortLightbox.types){if($.inArray(s,rel)>=0){type=$.telfortLightbox.types[s];break}}d=$.extend(type,d,$.telfortLightbox.options);var b=function(a){if($.inArray("iframe",rel)>=0){a.type="iframe";a.forceType="iframe"}else{a.type="";a.forceType=""}a.gallery=null};d.processHandler=b;var c=f(t);if(c.length==1){c.width(d.width).height(d.height);d.width=c.width()}t.nyroModalManual(d);return false})};if(!$.isFunction($.fn.nyroModal)){$.loadScripts("jquery.nyromodal.js",(function(t,a){return function(){g.apply(t,a)}})(this,arguments))}else{g.apply(this,arguments)}};$.extend($.expr[":"],{"idhash":function(a,b,c,d){return(/^#[a-z0-9_\-]+/i).test($(a).attr("href")||"")}});$.fn.telfortTabs=function(d){var f=function(a){return $(a.map(function(){try{return document.getElementById($(this).attr("href").replace(/^#/,""))||null}catch(e){return null}}))};var g=function(b){if(typeof b=="string"){b=$("li > a[href=#"+b.replace(/^#/,"")+"]").parent().filter(function(){return!!$(this).data("tabs")}).first()}else if(typeof b=="object"&&!b.jquery){b=$(b)}if(b.is("a")){b=b.parents("li:first")}b.removeClass("prev-active next-active").addClass("active").siblings().removeClass("active prev-active next-active active-first active-last").end().prev().addClass("next-active").end().next().addClass("prev-active").end();if(b.is(":first-child")){b.addClass("active-first")}if(b.is(":last-child")){b.addClass("active-last")}var c=b.data("tabs");if(b.length===0||!c){return null}var a=b.children("a:first");c.not(a.attr("href")).hide().end().filter(a.attr("href")).show().end();return b};var i=function(b){b.first().addClass("first").end().last().addClass("last").end().prepend("<span class=\"filler filler-1\"/>").prepend("<span class=\"filler filler-2\"/>").children("a").bind("focus",function(){this.blur()}).end();if($.msieVersion()<=6){b.hover(function(){var a=$(this).addClass("hover");if(a.is(":first-child")){a.addClass("hover-first")}if(a.is(":last-child")){a.addClass("hover-last")}},function(){$(this).removeClass("hover-first hover-last hover")})}};if(!!d&&!$.isPlainObject(d)){return g(d)}return $(this).each(function(){var t=$(this),links=$("li > a:idhash",t),litabs=t.find("li"),activetab=t.find("li.active").removeClass("active");var a=0,maxh=0;litabs.each(function(){var t=$(this),h=t.height();a+=t.width()+2;maxh=maxh<h?h:maxh}).each(function(){var t=$(this),delta=maxh-t.height();t.find("> a > span").css({"padding-top":3+delta/2,"padding-bottom":3+delta/2})}).parents("ul:first").width(a);g(activetab);if(links.length===0){i(litabs);return}var b=f(links);if(t.find("li.active").length===0){t.find("li:first").addClass("active")}litabs.data("tabs",b).bind("click.tabactivate",function(){g(this);return false}).bind("click.tabhash",function(){document.location.href="#open-"+($("a",this).attr("href")||"").replace(/^#/,"");return false}).filter(".active").each(function(){$(this).triggerHandler("click.tabactivate")}).end();var c=(document.location.hash||"").replace(/^#/,"");if(c.length>5&&c.substr(0,5).toLowerCase()=="open-"){g(c.substr(5))}i(litabs)})};$.fn.suboptionsSlider=function(f){f=$.extend({triggerelement:null,triggerevents:null,selectsuboptions:null},f);return this.each(function(){if($(this).is(".radio")){$(this).find("> .radio-field > .radio-wrapper > input:radio").bind("change click",function(e,a){var b=typeof a=="object"&&a.initial===true;var c=$(this).parents(".radio:first").find("> .radio-field > .radio-wrapper > input:radio");c.filter(":not(:checked)").each(function(){$(this).parents(".radio-field:first").children(".suboptions").showHideSlider(b,"hide")});c.filter(":checked").each(function(){$(this).parents(".radio-field:first").children(".suboptions").showHideSlider(b,"show")})}).trigger("change",{initial:true})}else if($(this).is(".checkbox")){$(this).find("> .checkbox-field > .checkbox-wrapper > input:checkbox").bind("change click",function(e,a){var b=typeof a=="object"&&a.initial===true;var c=$(this).parents(".checkbox-field:first").children(".suboptions");if($(this).is(":checked")){c.showHideSlider(b,"show")}else{c.showHideSlider(b,"hide")}}).trigger("change",{initial:true})}else if(f.triggerelement&&f.selectsuboptions){var d=$(this);$(f.triggerelement).bind(f.triggerevents||"change",function(e,a){var t=$(this),called=false,initial=typeof a=="object"&&a.initial===true,suboptions=d.children(".suboptions"),showsuboptions=f.selectsuboptions.call(suboptions,f.triggerelement),hidesuboptions=suboptions.filter(function(){return jQuery.inArray(this,showsuboptions)!==0});var b=function(){if(called){return}if($.isFunction(f.aftershowhide)){f.aftershowhide.call(t,initial)}called=true};showsuboptions.showHideSlider(initial,"show",b);hidesuboptions.showHideSlider(initial,"hide",b)}).trigger("change",{initial:true})}})};$.fn.showHideSlider=function(a,b,c){if(a){if(b=="show"){this.show()}else{this.hide()}if($.isFunction(c)){c()}}else{var d=function(){$(this).children().css("position","");if($.isFunction(c)){c()}};this.children().css("position","static");if(b=="show"){this.slideDown(800,d)}else{this.slideUp(400,d)}}return this};$.fn.hoverClass=function(a){a=$.extend({checkBrowserSupport:true,className:"hover"},a);if(!a.checkBrowserSupport||(!!(document.body.applyElement)&&$.msieVersion()<=6)){this.hover(function(){$(this).addClass("hover")},function(){$(this).removeClass("hover")})}return this};$.fn.equalHeights=function(){var a=0;this.each(function(){a=Math.max($(this).height(),a)});return this.height(a)};$.fn.pairedEqualHeights=function(b){var d={columns:2,selector:"*"};if(typeof b=="string"){b={selector:b}}b=$.extend(d,b);var e=function(a){return function(i,c){a.smallest=Math.min(c.length,a.smallest)}};var f=function(i){return function(c){return c.get(i)}};var i,col,ref,columns=[];for(col=0;col+b.columns-1<this.length;col+=b.columns){for(i=col;i<col+b.columns;i++){columns.push($(this.get(i)).children(b.selector))}ref={smallest:10000};$.each(columns,e(ref));for(i=0;i<ref.smallest;i++){$($.map(columns,f(i))).equalHeights()}}return this};$.fn.hoverfocus=function(a,b){return this.bind("mouseover focus",a).bind("mouseout blur",b)};$.fn.timedMenu=function(f){f=$.extend({delayhide:500,delayshow:500,showspeed:200,hidespeed:200},f);var t=this;if(t.filter("ul").length>0){t=t.children("li")}else if(t.filter("li").length===0){t=t.children("ul").children("li")}t.find("ul").removeClass("closed");t.children("div").each(function(){$(this).css("visibility","hidden").show().data("timedMenu.height",$(this).height()).hide().css("visibility","").height(0).children("ul").addClass("slidable")});var g=0,hidetimer=0;var h=function(){if(hidetimer!==0){window.clearTimeout(hidetimer);hidetimer=0}if(g!==0){window.clearTimeout(g);g=0}};var i=function(b){var t=$(this);h();var c=function(){var a=t.children("div");a.prevAll("a").parent("li").andSelf().addClass("hover");a.children("ul").removeClass("closed");if(!a.data("timedMenu.showing")){a.stop().show().data("timedMenu.hiding",false).data("timedMenu.showing",true).animate({height:a.data("timedMenu.height")},f.showspeed,"swing",function(){t.data("timedMenu.showing",false)})}};if(b===true||f.delayshow===0){c()}else{g=window.setTimeout(c,f.delayshow)}};var j=function(c){var t=$(this);h();var d=function(){var b=t.children("div");b.each(function(){var a=$(this);if(!a.data("timedMenu.hiding")){a.stop().data("timedMenu.showing",false).data("timedMenu.hiding",true).animate({height:0},f.hidespeed,"swing",function(){$(this).data("timedMenu.hiding",false).height(0).hide().prevAll("a").removeClass("hover")})}});hidetimer=0};if(c===true||f.delayhide===0){d()}else{hidetimer=window.setTimeout(d,f.delayhide)}};t.hoverfocus(function(e){var a=this,ul=$(this).children("div");var b=t.filter(function(){return $(this).children("a.hover").length>0}).filter(function(){return this!=a});j.call(b,true);if(ul.data("timedMenu.hiding")||!ul.is(":visible")){i.call(this,b.length>0)}},function(e){j.call(t.filter(function(){return $(this).children("a.hover").length>0}))});if($.msieVersion()>0&&$.msieVersion()<=7){var z=11;$($.makeArray(t).reverse()).each(function(){$(this).css("z-index",z++)})}return this};$.fn.randomClass=function(a){if($.isArray(a)){var b=Math.round(Math.random()*a.length+0.5)-1;if($.readCookie&&$.createCookie){var c=parseInt($.readCookie("random-class-index"),10);if(b===c){b+=b==a.length-1?-a.length+1:1}$.createCookie("random-class-index",b)}this.addClass(a[b])}return this};$.fn.firstLastClass=function(a){a=$.extend({firstClass:"first",lastClass:"last",selector:"*"},a);return this.each(function(){$(this).children(a.selector).first().addClass(a.firstClass).end().last().addClass(a.lastClass).end()})};$.fn.oddClass=function(a){a=$.extend({className:"odd",startIndex:0,endIndex:0},a);var t=this.children(),odd=true;if(typeof a.startIndex=="number"&&typeof a.endIndex=="number"&&(a.startIndex!==0||a.endIndex!==0)){t=t.filter(function(i){return(a.startIndex===0||i>=Math.abs(a.startIndex))&&(a.endIndex===0||i<=(a.endIndex>0?a.endIndex:t.length-1+a.endIndex))})}t.each(function(){if(odd){$(this).addClass(a.className)}odd=!odd});return this};$.getstyle={fn:(function(){if($("*:first").get(0).currentStyle){return function(a,b){return a.currentStyle[b]}}if(window.getComputedStyle){return function(a,b){return document.defaultView.getComputedStyle(a,null).getPropertyValue(b)}}return function(){return""}})()};$.fn.getstyle=function(d){if(typeof d!="string"){return}var e=function(c){var x=$.getstyle.fn(c,d);if(typeof x=="undefined"||x===""||x===null){d=d.replace(/-(\w)/g,function(a,b,i){return i===0?b.toLowerCase():b.toUpperCase()});x=$.getstyle.fn(c,d)}return x};if(this.length==1){return e(this.get(0))}return this.map(function(){return e(this)})};$.fn.faqToggler=function(){var a={height:"hide",marginTop:"hide",marginBottom:"hide",paddingTop:"hide",paddingBottom:"hide",opacity:0.5},options_slidedown={height:"show",marginTop:"show",marginBottom:"show",paddingTop:"show",paddingBottom:"show",opacity:1.0},hash=$.trim(String(document.location.hash||"").replace(/^#/,""));if(!Modernizr.opacity){delete a.opacity;delete options_slidedown.opacity}this.children("h3").click(function(){var t=$(this),next=t.nextAll();if(next.is(":visible")){next.animate(a,250,"swing",function(){t.parent().addClass("toggle-closed")})}else{if(Modernizr.opacity){next.css({opacity:0.5})}next.hide();t.parent().removeClass("toggle-closed");next.animate(options_slidedown,500,"swing")}});this.filter(function(){return hash.length===0||$(this).attr("id")!=hash}).filter(":not(.toggle-default-open)").addClass("toggle-closed");return this};$.fn.stylableUpload=function(c){c=$.extend({hideclass:"hidden",fakeclass:"fakefile",button:"<button type=\"button\">Browse</button>"},c);if(this.length>0&&(Modernizr.opacity||$.msieVersion()>=6)){this.each(function(){var b=null,t=this;$(this).after($("<div/>").addClass(c.fakeclass).css("left",this.offsetLeft).css("top",this.offsetTop).append(b=$("<input/>")).append($(c.button).click(function(){t.click()}))).addClass(c.hideclass).css("opacity",0).bind("change mouseout",function(){if(b!==null){var a=$(this).val(),refile=(/[\/\\]([^\/\\]+)$/).exec(a);if(refile&&refile[1]){a=refile[1]}b.val(a)}})});if(this.val()){this.change()}}return this};$.fn.telfortHelpBubble=function(c){c=$.extend({bubbles:".bubble",borderColor:"auto",borderWidth:"auto",extraoffset:{left:0,top:0},event:"focus"},c);var d=[];var e=$(this.map(function(){var t=$(this),bubble=t.nextAll(c.bubbles);if(t.attr("title").length>0){if(bubble.length===0){bubble=$("<div/>").addClass("bubble bubble-active").append($("<div/>").addClass("bubble-text").text(t.attr("title")));t.removeAttr("title");return t.data("bubble",bubble.get(0)).after(bubble).get(0)}else{return t.removeAttr("title").data("bubble",bubble.get(0)).get(0)}}else{if(bubble.length>0){return t.data("bubble",bubble.get(0)).get(0)}}return null}));var f=function(){var t=$(this),bubble=t.data("bubble"),initialized=t.data("bubble-initialized");if(typeof bubble!="object"||bubble.length===0){return}bubble=$(bubble).data("input",t);if(initialized===true){bubble.show()}else{var a=c.borderColor,borderWidth=c.borderWidth,o=$.extend({left:0,top:0},c.extraoffset);if(typeof $.fn.getstyle=="function"){a=a=="auto"?bubble.getstyle("border-left-color"):a;borderWidth=borderWidth=="auto"?bubble.getstyle("border-left-width"):borderWidth}bubble.appendTo("body").css({border:0,position:"absolute","z-index":1001,left:t.offset().left+t.width()+o.left,top:t.offset().top+o.top}).show().children("div").liquidCanvas("[fill{color:#fff} border{color:$COLOR$;width:$WIDTH$}] => effectRect{radius:0;arrow:'left end 11 18 6'}".replace("$COLOR$",a).replace("$WIDTH$",borderWidth));t.data("bubble-initialized",true)}d.push(bubble.get(0))};var g=function(){var a=$($(this).data("bubble"));if(typeof a!="object"||a.length===0){return}$(a).hide();var i=$.inArray(a.get(0),d);if(i>=0){d.splice(i,1)}};var h=function(){var t=$(this),input=t.data("input"),o=$.extend({left:0,top:0},c.extraoffset);t.css({left:input.offset().left+input.width()+o.left,top:input.offset().top+o.top})};var j=function(t,a){var b=t.data(a);if(b>0){window.clearTimeout(b);t.removeData(a)}};var k={show:"bubble-showtimer",hide:"bubble-hidetimer"};switch($.trim(c.event).toLowerCase()){case"focus":e.focus(f).blur(g);break;case"hover":e.css("position","relative").each(function(){var a=Number($(this).getstyle("padding-right").replace(/px$/i,""));if(isNaN(a)){a=0}$(this).append($("<span/>").addClass("grow").width($(this).width()+a+10).height($(this).height()+10)).hover(function(){var t=$(this);j(t,k.hide);t.data(k.show,window.setTimeout(function(){f.call(t)},500))},function(){var t=$(this);j(t,k.show);t.data(k.hide,window.setTimeout(function(){g.call(t)},500))}).click(function(){var t=$(this);j(t,k.hide);f.call(t)})});break}$(window).resize(function(){$.each(d,h)});return this};$.fn.telfortDatePicker=function(){var t=this;if(t.length===0){return this}if(typeof $.fn.bgiframe!="function"||typeof $.fn.datePicker!="function"){$.loadScripts("jquery.bgiframe.js","jquery.datepicker.js",function(){if(typeof $.dpText=="undefined"){throw"jQuery.dpText is undefined. Common cause: jQuery may have been loaded more than once.";}$.dpText.TEXT_PREV_YEAR="Jaar terug";$.dpText.TEXT_PREV_MONTH="Maand terug";$.dpText.TEXT_NEXT_YEAR="Jaar vooruit";$.dpText.TEXT_NEXT_MONTH="Maand vooruit";$.dpText.TEXT_CLOSE="Sluiten";$.dpText.TEXT_CHOOSE_DATE="Kies datum";$.dpConst.SHOW_HEADER_SHORT=false;Date.dayNames=["ma","di","wo","do","vr","zo","za"];var k=function(f,g){g=$.trim(String(g)).toLowerCase();if(g!="ddmmyyyy"&&g!="mmddyyyy"&&g!="yyyymmdd"){g="ddmmyyyy"}var h=/^(\d{1,2})[\s\.\/\-](\d{1,2})[\s\.\/\-](\d{4})$/,yyyymmdd=/^(\d{4})[\s\.\/\-](\d{2})[\s\.\/\-](\d{2})$/;f=$.trim(String(f));var i=function(d,a,b,c){var e=a.exec(d),temp;if($.isArray(e)){e=e.slice(1);if(typeof b=="number"&&typeof c=="number"&&b!==c){temp=e[b];e[b]=e[c];e[c]=temp}return e}return null};var j,resultDate=null;switch(g){case"ddmmyyyy":j=i(f,h)||i(f,yyyymmdd,0,2);break;case"mmddyyyy":j=i(f,h,0,1)||i(f,yyyymmdd,0,2);break;case"yyyymmdd":j=i(f,yyyymmdd,0,2);break}if(j!==null){try{resultDate=new Date(Number(j[2]),Number(j[1])-1,Number(j[0]))}catch(e){resultDate=null}}return resultDate};var l=function(a,b){return a.getDate()==b.getDate()&&a.getMonth()==b.getMonth()&&a.getFullYear()==b.getFullYear()};var m=function(a,b){for(var i=0;i<b.length;i++){if(l(b[i],a)){return true}}return false};t.each(function(){var f=$(this).parents(".text-date:first").find(".datepicker-settings").hide(),format=f.find(".datepicker-format").text().replace(/[^dmyj]/gi,"").replace(/j/gi,"y"),currentpicker=$(this),parentDiv=currentpicker.parents(".text-date:first"),inputDay=parentDiv.children(".text-day").find("input, select"),inputMonth=parentDiv.children(".text-month").find("input, select"),inputYear=parentDiv.children(".text-year").find("input, select");currentpicker.data("datepicker.settings",{startdate:k(f.find(".datepicker-startdate").text(),format),enddate:k(f.find(".datepicker-enddate").text(),format),weekends:f.find(".datepicker-weekends-disabled").length===0,notselectable:f.find(".datepicker-dates-disabled").children().map(function(){return k($(this).text(),format)})}).datePicker({createButton:false,verticalOffset:22,startDate:currentpicker.data("datepicker.settings").startdate.asString(),endDate:currentpicker.data("datepicker.settings").enddate.asString(),renderCallback:function(a,b){var c=currentpicker.data("datepicker.settings");if((!c.weekends&&b.isWeekend())||m(b,c.notselectable)){a.addClass("disabled")}}}).bind("click",function(){$(this).dpDisplay();if(!Modernizr.borderradius){$(".dp-popup").each(function(){if($(this).data("datepicker.hascanvas")){return}var a=$(this).getstyle("border-color");$(this).css({border:0,padding:0}).wrapInner("<div class=\"dp-popup-inner\"/>").children(".dp-popup-inner").css("position","static").liquidCanvas("[shadow{color:'rgba(0,0,0,.15)';width:2;shift:2} movesize{w:'2';x:'-1'} border{color:$COLOR$;width:1} fill{color:#fff}] => roundedRect{radius:10}".replace("$COLOR$",a));if($.msieVersion()==6){$(this).find(".dp-nav-prev").css("left",0)}var b=$(this).find(".dp-calendar"),oldwidth=b.width();b.width($(this).find("table").width());$(this).width($(this).width()+b.width()-oldwidth).data("datepicker.hascanvas",true)})}this.blur();return false}).bind("dateSelected",function(e,a){inputDay.val((a.getDate()<9?"0":"")+a.getDate());inputMonth.val((a.getMonth()<9?"0":"")+(a.getMonth()+1));inputYear.val(a.getFullYear())});var g=$(inputDay.get().concat(inputMonth.get(),inputYear.get()));g.bind("change keyup",function(){var d=new Date(inputYear.val(),inputMonth.val()-1,inputDay.val());currentpicker.dpSetSelected(d.asString())}).bind("focus",function(){g.addClass("focus")}).bind("blur",function(){g.removeClass("focus")}).bind("keydown",function(e){if((e.keyCode>=48&&e.keyCode<=57)||(e.keyCode>=96&&e.keyCode<=105)){var a=$(this).val();if(a.length==$(this).attr("maxlength")){$(this).parent().next("div").find("input,select").focus()}}else if(e.keyCode==8&&$(this).val().length===0){$(this).parent().prev("div").find("input,select").focus()}})})})}return this};$.fn.telfortFormSteps=function(){this.each(function(){var a=$(this).children("li"),w=$(this).width()/a.length;if(w!=Math.round(w)){w=Math.round(w-0.5)}a.width(w).each(function(i){$(this).addClass("nr"+(i+1))});if($.webkitVersion()>0){var b=$(this).find(".nr");if(b.length>0){var c=document.defaultView.getComputedStyle(b.get(0),null).getPropertyValue("-webkit-border-top-left-radius");if(c===0||c===""||c===null||c=="0px"||typeof c=="undefined"){b.css("-webkit-border-radius",b.width())}}}})};$.loadScripts=function(b,c){b=$.grep(arguments,function(a){return typeof a=="string"&&a.length>0});c=$.grep(arguments,function(a){return $.isFunction(a)});var d=0;var e=function(){if(++d==b.length){c[0].apply(this,arguments)}};var f=$("script[src*=default.js],script[src*=default.src.js]").attr("src").replace(/default(\.src)?\.js$/i,"");$.each(b,function(i,s){$.ajax({type:"GET",url:f+s,success:c.length>0?e:null,dataType:"script",cache:true})})};$.createCookie=function(a,b,c){var d="";if(c){var e=new Date();e.setTime(e.getTime()+c*24*60*60*1000);d="; expires="+e.toGMTString()}document.cookie=a+"="+b+d+"; path=/"};$.readCookie=function(a){var b=a+"=",ca=document.cookie.split(";"),i,c;for(i=0;i<ca.length;i++){c=ca[i];while(c.charAt(0)===" "){c=c.substring(1,c.length)}if(c.indexOf(b)===0){return c.substring(b.length,c.length)}}return null};$.msieVersion=function(){if(typeof $.msieVersion.detected!="number"){if(navigator.appName.toLowerCase()!=="microsoft internet explorer"){return 0}var a=/MSIE ([0-9]{1,})[\.0-9]{0,}/i.exec(navigator.userAgent);if(a===null||typeof a[1]=="undefined"){return 0}$.msieVersion.detected=parseInt(a[1],10)}return $.msieVersion.detected};$.webkitVersion=function(){if(typeof $.webkitVersion.detected!="number"){var a=/ AppleWebKit\/([0-9]{1,})[\.0-9]{0,}/.exec(navigator.userAgent);if(a===null||typeof a[1]=="undefined"){return 0}$.webkitVersion.detected=parseInt(a[1],10)}return $.webkitVersion.detected};$.userAgentName=function(){var a=[],v=$.msieVersion(),i;if(v>0){a.push("msie");for(i=4;i<=9;i++){if(v==i){a.push("msie-"+i)}if(v>=i){a.push("msie-"+i+"-up")}if(v<=i){a.push("msie-"+i+"-down")}}if(document.compatMode=="BackCompat"){a.push("msie-quirks")}if(document.documentMode==7&&navigator.userAgent.indexOf("Trident/4.0")>=0){a.push("msie-8-compat")}}else if($.webkitVersion()>0){a.push("webkit")}else if(navigator.appCodeName=="Mozilla"&&navigator.product=="Gecko"){a.push("gecko")}else if(typeof window.opera!="undefined"){a.push("presto")}return a.join(" ")};$.loadStylesheets=function(){$.each(arguments,function(i,a){var b=function(){$("<link rel=\"stylesheet\" type=\"text/css\"/>").attr("href",a).appendTo("head")};if(!!document.createStyleSheet){try{document.createStyleSheet(a)}catch(e){b()}}else{b()}})};$.waitForIt=function(a){a=$.extend({condition:function(){return true},success:function(){},timeout:-1},a);if(!$.isFunction(a.condition)||!$.isFunction(a.success)){return}var b=new Date().getTime();var c=function(){if(a.condition()){a.success()}else if(a.timeout<=0||new Date().getTime()-b<a.timeout){window.setTimeout(c,50)}};window.setTimeout(c,50)};$("html").randomClass(["color-1","color-2","color-3","color-4","color-5","color-6"]).addClass("delay-colored-balls script-loaded").addClass($.userAgentName())})(jQuery.noConflict());try{document.execCommand("BackgroundImageCache",false,true)}catch(e){}
