$(document).ready(function(){var A=navigator.userAgent.toLowerCase();$.browser.chrome=/chrome/.test(navigator.userAgent.toLowerCase());if($.browser.msie){$("body").addClass("browserIE");$("body").addClass("browserIE"+$.browser.version.substring(0,1))}if($.browser.chrome){$("body").addClass("browserChrome");A=A.substring(A.indexOf("chrome/")+7);A=A.substring(0,1);$("body").addClass("browserChrome"+A);$.browser.safari=false}if($.browser.safari){$("body").addClass("browserSafari");A=A.substring(A.indexOf("version/")+8);A=A.substring(0,1);$("body").addClass("browserSafari"+A)}if($.browser.mozilla){if(navigator.userAgent.toLowerCase().indexOf("firefox")!=-1){$("body").addClass("browserFirefox");A=A.substring(A.indexOf("firefox/")+8);A=A.substring(0,1);$("body").addClass("browserFirefox")}else{$("body").addClass("browserMozilla")}}if($.browser.opera){$("body").addClass("browserOpera")}});$(document).ready(function(){if($("#sideCalcBox").length){if($("#navStepOne").length=="1"||$("#navStepTwo").length=="1"||$("#navStepThree").length=="1"){parseSideCalc()}else{$("div.Box240Calculator").hide()}}$("input[name$='txtCollectiviteitsNummer1']").live("change",function(){console.log($(this).val());if($(this).val().length==4){$("a[id$='lbCheckCollNr1']").hide();$("#collectiviteit img.loader").show();__doPostBack($(this).attr("name"),"")}});$("input[name$='txtCollectiviteitsNummer2']").live("change",function(){console.log($(this).val());if($(this).val().length==4){$("a[id$='lbCheckCollNr1']").hide();$("#collectiviteit img.loader").show();__doPostBack($(this).attr("name"),"")}});$(".addClients a:first-child").click(function(){$(this).hide()});$("#Label_wijzig_CorrecteCollectiviteit").live("click",function(){$("[id$='pnlCollectiviteitStart']").removeClass("displayNone").jqf1();$("[id$='pnlCollectiviteitOk']").addClass("displayNone");return false});Select_Coll_Box();$("input[name$='collectiviteit']").click(function(){Select_Coll_Box();fixRadioBug()});if($("input[name$='txtBedrijfsNaam1']").length>0&&$("input[name$='txtBedrijfsNaam1']").val().length>0){$("#weetNummerNietBox").show()}$("#geenCollectiviteit").change(function(){$("#geenCollectiviteit").jqf1();fixRadioBug()});$("#collectiviteit").change(function(){$("#collectiviteit").jqf1();fixRadioBug()});$("input[name$='txtVoorletters']").blur(function(){var A="";var C=String($(this).val()).replace(".","");var B=0;var D="";$.each(C,function(E,F){if(C.substr(E,1)!="."){A=String(A)+"."+C.substr(E,1)}});A=A+".";$(this).val(String(A).substr(1,parseInt(A.length)))});Select_zelf_loon_Box();$("input[name$='ondernemer']").click(function(){Select_zelf_loon_Box()});$("#weetNummerNiet").click(function(){$("#weetNummerNietBox").slideToggle("slow");$("#weetNummerNietBox").jqf1();return false});$(".helpMeChooseLink").live("click",function(A){$(this).next("div.helpMeChoose").slideToggle();$(this).text($(this).text()=="help mij kiezen"?"sluiten":"help mij kiezen");A.preventDefault()});$("#akkoordCheck input").click(function(){if($(this).is(":checked")==true){$("div.verzekerdeGoToNext").removeClass("disabled")}else{$("div.verzekerdeGoToNext").addClass("disabled")}});$("select.verzekerReden").change(function(){if($(this).val()==2){$(this).next("div.optionalText").children("table").show()}else{$(this).next("div.optionalText").children("table").hide()}});$("li.active .verzekerdeDetails, li.active ul.verzekerdeCalcDetails").slideDown()});function trackGAUrl(A){$(document).ready(function(){if(typeof pageTracker!="undefined"){pageTracker._trackPageview(A)}})}function ValidateCheckbox(B,A){A.IsValid=false;$obj=$("input[id$='akkVoorwaarden']");if($obj){A.IsValid=$obj.attr("checked")}}function GeboortedatumCheck(B,A){A.IsValid=false;$obj1=$("input[id$='txtGeboorteDatumDay']");$obj2=$("input[id$='txtGeboorteDatumMonth']");$obj3=$("input[id$='txtGeboorteDatumYear']");if($obj1&&$obj2&&$obj3){if($obj1.val()!=null&&$obj2.val()!=null&&$obj3.val()!=null){if($obj1.val()<=31&&$obj2.val()<=12&&$obj3.val()>1910&&$obj3.val()<2012){A.IsValid=true}}}}function EndRequestHandler(){if($("input[name$='collectiviteit']:checked").val()=="Y"){$("#collectiviteit").show()}if($("#sideCalcBox").length){if($("div.Box240Calculator").length){parseSideCalc();$("li.active .verzekerdeDetails, li.active ul.verzekerdeCalcDetails").show()}else{$("div.Box240Calculator").hide()}}styleSelect();if($("div.Box680Content input").length){$("div.Box680Content").jqf1()}if($('div[class*="txtIngangsDatum"]').length){$('div[class*="txtIngangsDatum"]').each(function(){$(this).css("margin-right","10px")})}if($('div[class*="txtGeboorteDatum"]').length){$('div[class*="txtGeboorteDatum"]').each(function(){$(this).css("margin-right","10px")})}if($("#weetNummerNiet").length>0){$("#weetNummerNiet").click(function(){$("#weetNummerNietBox").slideToggle("slow");$("#weetNummerNietBox").jqf1();return false})}}function parseSideCalc(){var A="";var D="";var F=0;var K="";var G="";var H="";var C="";var E="";var B="";var J=0;if($("#sideCalcBox").children("li").size()){$("#sideCalcBox").children("li").each(function(){$(this).remove()})}$str=$(".calcBoxData").text().split("|");A=$str[0].split("-");$("#startDate div:last-child").text(A[0]+" "+monthName(A[1])+" "+A[2]);if($str.length>1){D=$str[1].split("}");D.pop();for(var I in D){K=D[I].split("{");G=K[0];H=K[1].split("][");B="";E=0;for(var L in H){C=H[L].split("*");if(C.length>=3){C[0]=C[0].replace("[","");C[2]=C[2].replace("]","");B=B+"<li><div>"+C[0]+"</div><div>";if(C[1]!="gratis"){B=B+"&euro; "}B=B+C[1]+"</div>";if(C[2]){B=B+'<div class="note">(Eigen risico &euro; '+C[2]+",-)</div>"}B=B+'<div class="note"></div></li>';if(C[1]!="gratis"){C[1]=C[1].replace(",",".");E=parseFloat(E)+parseFloat(C[1])}}}if(E!="0"){F=parseFloat(F)+parseFloat(E);E=parseFloat(E).toFixed(2);E=String(E).replace(".",",")}else{if(C.length>=3){E="gratis"}else{E="0"}}if(J==0){$src='<li class="active">'}else{$src="<li>"}$src=$src+'    <div class="verzekerdeTop">        <div class="verzekerdeName">Verzekerde '+(parseInt(G)+1)+'</div>        <div class="verzekerdeTotCosts">';if(E!="gratis"){$src=$src+"&euro; "}$src=$src+E+'</div>    </div>    <div class="clear"></div>    <ul class="verzekerdeCalcDetails" verPer="'+G+'">'+B+"    </ul></li>";$($src).appendTo("#sideCalcBox");J++}F=parseFloat(F).toFixed(2);F=String(F).replace(".",",");$("#verzekerdeOverallPrice div:last-child h2").html("&euro; "+F);$("div.verzekerdeTop, div.verzekerdeGoToNext").click(function(){return sideClick($(this))})}}function sideClick(B){if($("#navStepTwo")){if(ValidateItem($("li.active .verzekerdeDetails, li.active .verzekerdeCalcDetails").attr("verper"))==false){return false}}if($(B).parent().attr("class")!="active"){if($(B).parent().children("div.verzekerdeDetails").attr("verper")){var C=$(B).parent().children("div.verzekerdeDetails").attr("verper")}if(!C){C=$(B).parent().children("ul.verzekerdeCalcDetails").attr("verper")}if(!C){var A=$("ul#verzekerInfo").children("li").size();C=(parseInt($(B).parent().parent().attr("verper"))+1);if(A<C){C=1}}$("li.active div.verzekerdeDetails, li.active ul.verzekerdeCalcDetails").hide();$("li.active").removeClass("active");$('div.verzekerdeDetails[verper|="'+C+'"]').parent().attr("class","active");$('ul.verzekerdeCalcDetails[verper|="'+C+'"]').parent().attr("class","active");$("li.active div.verzekerdeDetails, li.active ul.verzekerdeCalcDetails").slideDown()}}function monthName(A){A=parseInt(A);switch(A){case 1:return"januari";break;case 2:return"februari";break;case 3:return"maart";break;case 4:return"april";break;case 5:return"mei";break;case 6:return"juni";break;case 7:return"juli";break;case 8:return"augustus";break;case 9:return"september";break;case 10:return"oktober";break;case 11:return"november";break;case 12:return"december";break}}function fixRadioBug(){$("div.jqf1InpRadio input").click(function(){$('div[radioref*="'+$(this).parent().parent().attr("radioref")+'"]').each(function(){$(this).find("div.inpRadioOn").addClass("inpRadioOff");$(this).find("div.inpRadioOff").removeClass("inpRadioOn")});$(this).parent().parent().children("div.inpRadioOff").addClass("inpRadioOn");$(this).parent().parent().children("div.inpRadioOn").removeClass("inpRadioOff")})}function Select_Coll_Box(){if($("input[@name$='collectiviteit']:checked").val()=="Y"){$("#collectiviteit").show();if($("[id$='pnlCollectiviteitOk']").length==0&&$("[id$='pnlCollectiviteitNotOk']").length==0){$("[id$='pnlCollectiviteitStart']").removeClass("displayNone")}$("#geenCollectiviteit").hide();$("#collectiviteit").jqf1()}else{if($("input[@name$='collectiviteit']:checked").val()=="N"){$("#geenCollectiviteit").show();$("#collectiviteit").hide();$("[id$='pnlCollectiviteitStart']").addClass("displayNone");$("#geenCollectiviteit").jqf1()}}}function Select_zelf_loon_Box(){if($("input[name$='ondernemer']:checked").val()=="loondienst"){$("#loondienstBox").show();$("#zelfstandigBox").hide();$("#loondienstBox").jqf1()}else{if($("input[name$='ondernemer']:checked").val()=="zelfstandig"){$("#zelfstandigBox").show();$("#loondienstBox").hide();$("#zelfstandigBox").jqf1()}}}$(document).ready(function(){if($("#calculationContainer").length){recalculatePrices();changeSelection($(".ccTableContainerBasis").find("td.selected").first());changeSelection($(".ccTableContainerAanvullend").find("td.selected").first());changeSelection($(".ccTableContainerTandarts").find("td.selected").first())}$("#calculationContainer td.priceCol").hover(function(){var A=GetColumnCells($(this));A.addClass("cchover")},function(){var A=GetColumnCells($(this));A.removeClass("cchover")}).click(function(){$parent=$(this).closest("table");$selected=$parent.find("td.selected").first();$(this).closest("table").find("td.priceCol").removeClass("selected").removeClass("cchover");var A=GetColumnCells($(this));A.addClass("selected");changeSelection($(this));recalculatePrices();return false})});function GetColumnCells(A){var C=A.index();var B=A;var D=A.closest("table");if(D.data("ind"+C)==undefined){D.find("tr").each(function(){B=B.add($(this).find("td").eq(C))});D.data("ind"+C,B)}else{B=D.data("ind"+C)}return B}function changeSelection(A){var C=A.closest("table");var D=C.attr("id");var B=getX(A);if(D=="ccTableBasis"){$next=$("#ccTableAanvullend").find("td.selected").first();$("#arrow1").css("left",parseInt(B)-8);positionArrow($("#arrow2"),B,getX($next));$("#BV").val(A.attr("prodID"))}if(D=="ccTableAanvullend"){$prev=$("#ccTableBasis").find("td.selected").first();$next=$("#ccTableTandarts").find("td.selected").first();positionArrow($("#arrow2"),getX($prev),B);positionArrow($("#arrow3"),B,getX($next));$("#AV").val(A.attr("prodID"))}if(D=="ccTableTandarts"){$prev=$("#ccTableAanvullend").find("td.selected").first();positionArrow($("#arrow3"),getX($prev),B);positionArrow($("#arrow4"),parseInt(B),470);$("#TV").val(A.attr("prodID"))}}function getX(B){if(B.length>0){var A=-3;return B.position().left+Math.round(B.width()/2)+A}}function positionArrow(A,F,D){var E=F;var C=D-F+13;var G=19;if(F>D){A.addClass("rightToLeft");E=D-8;C=F-D+13}else{A.removeClass("rightToLeft")}if(C<G){if(F==D){A.addClass("straightLine")}else{var B=G-C;A.find(".arrowA").css("margin-right",B+1)}C=G}else{A.removeClass("straightLine").find(".arrowA").removeAttr("style")}A.css({"left":E,"width":C})}function recalculatePrices(){var F=$("#ccTableBasis");var D=$("#ccTableAanvullend");var E=$("#ccTableTandarts");var C=convert(F.find("tr.totalRow td.selected .total").html());var G=convert(D.find("tr.totalRow td.selected .total").html());var B=convert(E.find("tr.totalRow td.selected .total").html());var A=parseFloat(C)+parseFloat(G)+parseFloat(B);var A=A.toFixed(2).toString().replace(".",",");$("#ppmPrice1, #ppmPrice2").html(A);$("#BasisPrice").html(C);$("#AanvullendPrice").html(G);$("#TandartsPrice").html(B);$("#tcChosenBasis").html(F.find("tr.firstRow td.selected").html());$("#tcChosenAanvullend").html(D.find("tr.firstRow td.selected").html());$("#tcChosenTandarts").html(E.find("tr.firstRow td.selected").html())}function convert(B){var C=0;if(B!=null){var A=parseFloat(B.replace(",","."));if(!isNaN(A)){C=A}}return C.toFixed(2)}(function(A){A.anythingSlider=function(D,E){var B=this,C;B.el=D;B.$el=A(D).addClass("anythingBase").wrap('<div class="anythingSlider"><div class="anythingWindow" /></div>');B.$el.data("AnythingSlider",B);B.init=function(){B.options=C=A.extend({},A.anythingSlider.defaults,E);B.initialized=false;if(A.isFunction(C.onBeforeInitialize)){B.$el.bind("before_initialize",C.onBeforeInitialize)}B.$el.trigger("before_initialize",B);B.$wrapper=B.$el.parent().closest("div.anythingSlider").addClass("anythingSlider-"+C.theme);B.$window=B.$el.closest("div.anythingWindow");B.win=window;B.$win=A(B.win);B.$controls=A('<div class="anythingControls"></div>').appendTo((C.appendControlsTo!==null&&A(C.appendControlsTo).length)?A(C.appendControlsTo):B.$wrapper);B.$startStop=A('<a href="#" class="start-stop"></a>');if(C.buildStartStop){B.$startStop.appendTo((C.appendStartStopTo!==null&&A(C.appendStartStopTo).length)?A(C.appendStartStopTo):B.$controls)}B.$nav=A('<ul class="thumbNav" />').appendTo((C.appendNavigationTo!==null&&A(C.appendNavigationTo).length)?A(C.appendNavigationTo):B.$controls);B.flag=false;B.playing=C.autoPlay;B.slideshow=false;B.hovered=false;B.panelSize=[];B.currentPage=C.startPanel=parseInt(C.startPanel,10)||1;B.adj=(C.infiniteSlides)?0:1;B.width=B.$el.width();B.height=B.$el.height();B.outerPad=[B.$wrapper.innerWidth()-B.$wrapper.width(),B.$wrapper.innerHeight()-B.$wrapper.height()];if(C.playRtl){B.$wrapper.addClass("rtl")}if(C.expand){B.$outer=B.$wrapper.parent();B.$window.css({width:"100%",height:"100%"});B.checkResize()}if(C.buildStartStop){B.buildAutoPlay()}if(C.buildArrows){B.buildNextBackButtons()}if(!C.autoPlay){C.autoPlayLocked=false}B.updateSlider();B.$lastPage=B.$currentPage;B.runTimes=A("div.anythingSlider").index(B.$wrapper)+1;B.regex=new RegExp("panel"+B.runTimes+"-(\\d+)","i");if(B.runTimes===1){B.makeActive()}if(!A.isFunction(A.easing[C.easing])){C.easing="swing"}if(C.pauseOnHover){B.$wrapper.hover(function(){if(B.playing){B.$el.trigger("slideshow_paused",B);B.clearTimer(true)}},function(){if(B.playing){B.$el.trigger("slideshow_unpaused",B);B.startStop(B.playing,true)}})}B.setCurrentPage(B.gotoHash()||C.startPage,false);B.slideControls(false);B.$wrapper.bind("mouseenter mouseleave",function(G){B.hovered=(G.type==="mouseenter")?true:false;B.slideControls(B.hovered,false)});A(document).keyup(function(G){if(C.enableKeyboard&&B.$wrapper.is(".activeSlider")&&!G.target.tagName.match("TEXTAREA|INPUT|SELECT")){switch(G.which){case 39:B.goForward();break;case 37:B.goBack();break}}});B.$items.delegate("a","focus.AnythingSlider",function(I){var H=A(this).closest(".panel"),G=B.$items.index(H)+B.adj;B.$items.find(".focusedLink").removeClass("focusedLink");A(this).addClass("focusedLink");B.$window.scrollLeft(0);if(!H.is(".activePage")&&B.currentPage+C.showMultiple-1>G){B.gotoPage(G);I.preventDefault()}});var F="slideshow_paused slideshow_unpaused slide_init slide_begin slideshow_stop slideshow_start initialized swf_completed".split(" ");A.each("onShowPause onShowUnpause onSlideInit onSlideBegin onShowStop onShowStart onInitialized onSWFComplete".split(" "),function(G,H){if(A.isFunction(C[H])){B.$el.bind(F[G],C[H])}});if(A.isFunction(C.onSlideComplete)){B.$el.bind("slide_complete",function(){setTimeout(function(){C.onSlideComplete(B)},0)})}B.initialized=true;B.$el.trigger("initialized",B);B.startStop(B.playing)};B.updateSlider=function(){B.$el.children(".cloned").remove();B.$nav.empty();B.currentPage=B.currentPage||1;B.$items=B.$el.children();B.pages=B.$items.length;C.showMultiple=parseInt(C.showMultiple,10)||1;if(C.showMultiple>1){if(C.showMultiple>B.pages){C.showMultiple=B.pages}B.adjustMultiple=(C.infiniteSlides&&B.pages>1)?0:C.showMultiple-1;B.pages=B.$items.length-B.adjustMultiple}B.$controls.add(B.$nav).add(B.$startStop).add(B.$forward).add(B.$back)[(B.pages<=1)?"hide":"show"]();if(B.pages>1){B.buildNavigation()}if(C.infiniteSlides&&B.pages>1){B.$el.prepend(B.$items.filter(":last").clone().removeAttr("id").addClass("cloned"));if(C.showMultiple>1){B.$el.append(B.$items.filter(":lt("+C.showMultiple+")").clone().removeAttr("id").addClass("cloned").addClass("multiple"))}else{B.$el.append(B.$items.filter(":first").clone().removeAttr("id").addClass("cloned"))}B.$el.find(".cloned").each(function(){A(this).find("a,input,textarea,select,button,area").attr("disabled","disabled");A(this).find("[id]").removeAttr("id")})}B.$items=B.$el.children().addClass("panel");B.setDimensions();if(C.resizeContents){B.$items.css("width",B.width);B.$wrapper.css("width",B.getDim(B.currentPage)[0]);B.$wrapper.add(B.$items).css("height",B.height)}else{B.$win.load(function(){B.setDimensions()})}if(B.currentPage>B.pages){B.currentPage=B.pages}B.setCurrentPage(B.currentPage,false);B.$nav.find("a").eq(B.currentPage-1).addClass("cur")};B.buildNavigation=function(){if(C.buildNavigation&&(B.pages>1)){var G,F;B.$items.filter(":not(.cloned)").each(function(H){var I=H+1;G=((I===1)?"first":"")+((I===B.pages)?"last":"");F=A('<a href="#"></a>').addClass("panel"+I).wrap('<li class="'+G+'" />');B.$nav.append(F.parent());if(A.isFunction(C.navigationFormatter)){G=C.navigationFormatter(I,A(this));F.html("<span>"+G+"</span>");if(parseInt(F.find("span").css("text-indent"),10)<0){F.addClass(C.tooltipClass).attr("title",G)}}else{F.html("<span>"+I+"</span>")}F.bind(C.clickControls,function(J){if(!B.flag&&C.enableNavigation){B.flag=true;setTimeout(function(){B.flag=false},100);B.gotoPage(I);if(C.hashTags){B.setHash(I)}}J.preventDefault()})});if(C.navigationSize!==false&&parseInt(C.navigationSize,10)<B.pages){if(!B.$controls.find(".anythingNavWindow").length){B.$nav.before('<ul><li class="prev"><a href="#"><span>'+C.backText+"</span></a></li></ul>").after('<ul><li class="next"><a href="#"><span>'+C.forwardText+"</span></a></li></ul>").wrap('<div class="anythingNavWindow"></div>')}B.navWidths=B.$nav.find("li").map(function(){return A(this).innerWidth()}).get();B.navLeft=1;B.$nav.width(B.navWidth(1,B.pages+1)+5);B.$controls.find(".anythingNavWindow").width(B.navWidth(1,C.navigationSize+1)).end().find(".prev,.next").bind(C.clickControls,function(H){if(!B.flag){B.flag=true;setTimeout(function(){B.flag=false},200);B.navWindow(B.navLeft+C.navigationSize*(A(this).is(".prev")?-1:1))}H.preventDefault()})}}};B.navWidth=function(F,G){var J=Math.min(F,G),I=Math.max(F,G),H=0;for(;J<I;J++){H+=B.navWidths[J-1]||0}return H};B.navWindow=function(F){var G=B.pages-C.navigationSize+1;F=(F<=1)?1:(F>1&&F<G)?F:G;if(F!==B.navLeft){B.$controls.find(".anythingNavWindow").animate({scrollLeft:B.navWidth(1,F),width:B.navWidth(F,F+C.navigationSize)},{queue:false,duration:C.animationTime});B.navLeft=F}};B.buildNextBackButtons=function(){B.$forward=A('<span class="arrow forward"><a href="#"><span>'+C.forwardText+"</span></a></span>");B.$back=A('<span class="arrow back"><a href="#"><span>'+C.backText+"</span></a></span>");B.$back.bind(C.clickBackArrow,function(F){if(C.enableArrows&&!B.flag){B.flag=true;setTimeout(function(){B.flag=false},100);B.goBack()}F.preventDefault()});B.$forward.bind(C.clickForwardArrow,function(F){if(C.enableArrows&&!B.flag){B.flag=true;setTimeout(function(){B.flag=false},100);B.goForward()}F.preventDefault()});B.$back.add(B.$forward).find("a").bind("focusin focusout",function(){A(this).toggleClass("hover")});B.$back.appendTo((C.appendBackTo!==null&&A(C.appendBackTo).length)?A(C.appendBackTo):B.$wrapper);B.$forward.appendTo((C.appendForwardTo!==null&&A(C.appendForwardTo).length)?A(C.appendForwardTo):B.$wrapper);B.$arrowWidth=B.$forward.width()};B.buildAutoPlay=function(){B.$startStop.html("<span>"+(B.playing?C.stopText:C.startText)+"</span>").bind(C.clickSlideshow,function(F){if(C.enableStartStop){B.startStop(!B.playing);B.makeActive();if(B.playing&&!C.autoPlayDelayed){B.goForward(true)}}F.preventDefault()}).bind("focusin focusout",function(){A(this).toggleClass("hover")})};B.checkResize=function(F){clearTimeout(B.resizeTimer);B.resizeTimer=setTimeout(function(){var G=B.$outer.width()-B.outerPad[0],H=(B.$outer[0].tagName==="BODY"?B.$win.height():B.$outer.height())-B.outerPad[1];if(B.width*C.showMultiple!==G||B.height!==H){B.setDimensions();B.gotoPage(B.currentPage,B.playing,null,1)}if(typeof(F)==="undefined"){B.checkResize()}},500)};B.setDimensions=function(){var I,J,G,K=0,F=(C.showMultiple>1)?B.width||B.$window.width()/C.showMultiple:B.$window.width(),H=B.$win.width();if(C.expand){I=B.$outer.width()-B.outerPad[0];B.height=J=B.$outer.height()-B.outerPad[1];B.$wrapper.add(B.$window).add(B.$items).css({width:I,height:J});B.width=F=(C.showMultiple>1)?I/C.showMultiple:I}B.$items.each(function(L){G=A(this).children();if(C.resizeContents){I=B.width;A(this).css({width:I,height:B.height});if(G.length&&G[0].tagName==="EMBED"){G.attr({width:"100%",height:"100%"})}if(G.length===1){G.css({width:"100%",height:"100%"})}}else{I=A(this).width();if(G.length===1&&I>=H){I=(G.width()>=H)?F:G.width();G.css("max-width",I)}A(this).css("width",I);J=A(this).outerHeight();A(this).css("height",J)}B.panelSize[L]=[I,J,K];K+=I});B.$el.css("width",K)};B.getDim=function(F){if(B.pages<1||isNaN(F)){return[B.width,B.height]}F=(C.infiniteSlides&&B.pages>1)?F:F-1;var I,G=B.panelSize[F][0],H=B.panelSize[F][1];if(C.showMultiple>1){for(I=1;I<C.showMultiple;I++){G+=B.panelSize[(F+I)%C.showMultiple][0];H=Math.max(H,B.panelSize[F+I][1])}}return[G,H]};B.goForward=function(F){B.gotoPage(B.currentPage+parseInt(C.changeBy,10)*(C.playRtl?-1:1),F)};B.goBack=function(F){B.gotoPage(B.currentPage+parseInt(C.changeBy,10)*(C.playRtl?1:-1),F)};B.gotoPage=function(F,G,J,I){if(G!==true){G=false;B.startStop(false);B.makeActive()}if(C.changeBy!==1){if(F<0){F+=B.pages}if(F>B.pages){F-=B.pages}}if(B.pages<=1){return}B.$lastPage=B.$currentPage;if(typeof(F)!=="number"){F=C.startPanel;B.setCurrentPage(F)}if(G&&C.isVideoPlaying(B)){return}if(F>B.pages+1-B.adj){F=(!C.infiniteSlides&&!C.stopAtEnd)?1:B.pages}if(F<B.adj){F=(!C.infiniteSlides&&!C.stopAtEnd)?B.pages:1}B.currentPage=(F>B.pages)?B.pages:(F<1)?1:B.currentPage;B.$currentPage=B.$items.eq(B.currentPage-B.adj);B.exactPage=F;B.$targetPage=B.$items.eq((F===0)?B.pages-B.adj:(F>B.pages)?1-B.adj:F-B.adj);I=I||C.animationTime;if(I>1){B.$el.trigger("slide_init",B)}B.slideControls(true,false);if(G!==true){G=false}if(!G||(C.stopAtEnd&&F===B.pages)){B.startStop(false)}if(I>1){B.$el.trigger("slide_begin",B)}if(!C.resizeContents){var H=B.getDim(F);B.$wrapper.filter(":not(:animated)").animate({width:H[0]||B.width,height:H[1]||B.height},{queue:false,duration:I,easing:C.easing})}B.$el.filter(":not(:animated)").animate({left:-B.panelSize[(C.infiniteSlides&&B.pages>1)?F:F-1][2]},{queue:false,duration:I,easing:C.easing,complete:function(){B.endAnimation(F,J,I)}})};B.endAnimation=function(F,H,G){if(F===0){B.$el.css("left",-B.panelSize[B.pages][2]);F=B.pages}else{if(F>B.pages){B.$el.css("left",-B.panelSize[1][2]);F=1}}B.exactPage=F;B.setCurrentPage(F,false);B.$items.removeClass("activePage").eq(F-B.adj).addClass("activePage");if(!B.hovered){B.slideControls(false)}if(G>1){B.$el.trigger("slide_complete",B)}if(typeof H==="function"){H(B)}if(C.autoPlayLocked&&!B.playing){setTimeout(function(){B.startStop(true)},C.resumeDelay-(C.autoPlayDelayed?C.delay:0))}};B.setCurrentPage=function(F,H){F=parseInt(F,10);if(B.pages<1||F===0||isNaN(F)){return}if(F>B.pages+1-B.adj){F=B.pages-B.adj}if(F<B.adj){F=1}if(C.buildNavigation){B.$nav.find(".cur").removeClass("cur").end().find("a").eq(F-1).addClass("cur")}if(!C.infiniteSlides&&C.stopAtEnd){B.$wrapper.find("span.forward")[F===B.pages?"addClass":"removeClass"]("disabled").end().find("span.back")[F===1?"addClass":"removeClass"]("disabled");if(F===B.pages&&B.playing){B.startStop()}}if(!H){var G=B.getDim(F);B.$wrapper.css({width:G[0],height:G[1]}).add(B.$window).scrollLeft(0);B.$el.css("left",-B.panelSize[(C.infiniteSlides&&B.pages>1)?F:F-1][2])}B.currentPage=F;B.$currentPage=B.$items.removeClass("activePage").eq(F-B.adj).addClass("activePage")};B.makeActive=function(){if(!B.$wrapper.is(".activeSlider")){A(".activeSlider").removeClass("activeSlider");B.$wrapper.addClass("activeSlider")}};B.gotoHash=function(){var G=B.win.location.hash,H=G.indexOf("&"),F=G.match(B.regex);if(F===null&&!/^#&/.test(G)){G=G.substring(0,(H>=0?H:G.length));F=(A(G).closest(".anythingBase")[0]===B.el)?A(G).closest(".panel").index():null}else{if(F!==null){F=(C.hashTags)?parseInt(F[1],10):null}}return F};B.setHash=function(F){var H="panel"+B.runTimes+"-",G=B.win.location.hash;if(typeof G!=="undefined"){B.win.location.hash=(G.indexOf(H)>0)?G.replace(B.regex,H+F):G+"&"+H+F}};B.slideControls=function(I){var H=(I)?"slideDown":"slideUp",G=(I)?0:C.animationTime,K=(I)?C.animationTime:0,J=(I)?1:0,F=(I)?0:1;if(C.toggleControls){B.$controls.stop(true,true).delay(G)[H](C.animationTime/2).delay(K)}if(C.buildArrows&&C.toggleArrows){if(!B.hovered&&B.playing){F=1;J=0}B.$forward.stop(true,true).delay(G).animate({right:F*B.$arrowWidth,opacity:J},C.animationTime/2);B.$back.stop(true,true).delay(G).animate({left:F*B.$arrowWidth,opacity:J},C.animationTime/2)}};B.clearTimer=function(F){if(B.timer){B.win.clearInterval(B.timer);if(!F&&B.slideshow){B.$el.trigger("slideshow_stop",B);B.slideshow=false}}};B.startStop=function(G,F){if(G!==true){G=false}B.playing=G;if(G&&!F){B.$el.trigger("slideshow_start",B);B.slideshow=true}if(C.buildStartStop){B.$startStop.toggleClass("playing",G).find("span").html(G?C.stopText:C.startText);if(parseInt(B.$startStop.find("span").css("text-indent"),10)<0){B.$startStop.addClass(C.tooltipClass).attr("title",G?C.stopText:C.startText)}}if(G){B.clearTimer(true);B.timer=B.win.setInterval(function(){if(!C.isVideoPlaying(B)){B.goForward(true)}else{if(!C.resumeOnVideoEnd){B.startStop()}}},C.delay)}else{B.clearTimer()}};B.init();A(".anythingWindow ul li.panel").show()};A.anythingSlider.defaults={theme:"default",expand:false,resizeContents:true,showMultiple:false,easing:"swing",buildArrows:true,buildNavigation:true,buildStartStop:true,appendForwardTo:null,appendBackTo:null,appendControlsTo:null,appendNavigationTo:null,appendStartStopTo:null,toggleArrows:false,toggleControls:false,startText:"Start",stopText:"Stop",forwardText:"&raquo;",backText:"&laquo;",tooltipClass:"tooltip",enableArrows:true,enableNavigation:true,enableStartStop:true,enableKeyboard:true,startPanel:1,changeBy:1,hashTags:true,infiniteSlides:true,navigationFormatter:null,navigationSize:false,autoPlay:false,autoPlayLocked:false,autoPlayDelayed:false,pauseOnHover:true,stopAtEnd:false,playRtl:false,delay:3000,resumeDelay:15000,animationTime:600,clickForwardArrow:"click",clickBackArrow:"click",clickControls:"click focusin",clickSlideshow:"click",resumeOnVideoEnd:true,addWmodeToObject:"opaque",isVideoPlaying:function(B){return false}};A.fn.anythingSlider=function(B,C){return this.each(function(){var D,E=A(this).data("AnythingSlider");if((typeof(B)).match("object|undefined")){if(!E){(new A.anythingSlider(this,B))}else{E.updateSlider()}}else{if(/\d/.test(B)&&!isNaN(B)&&E){D=(typeof(B)==="number")?B:parseInt(A.trim(B),10);if(D>=1&&D<=E.pages){E.gotoPage(D,false,C)}}}})}})(jQuery);(function(A){A.fn.anythingSliderFx=function(G,F){var D=A(this).closest(".anythingSlider"),C=D.width(),E=D.height(),B=function(H){return{"top":[{inFx:{top:0},outFx:{top:"-"+(H||E)}}],"bottom":[{inFx:{bottom:0},outFx:{bottom:(H||E)}}],"left":[{inFx:{left:0},outFx:{left:"-"+(H||C)}}],"right":[{inFx:{right:0},outFx:{right:(H||C)}}],"fade":[{inFx:{opacity:1},outFx:{opacity:0}}],"expand":[{inFx:{width:"100%",top:"0%",left:"0%"},outFx:{width:(H||"10%"),top:"50%",left:"50%"}}],"listLR":[{inFx:{left:0,opacity:1},outFx:[{left:(H||C),opacity:0},{left:"-"+(H||C),opacity:0}],selector:[":odd",":even"]}],"listRL":[{inFx:{left:0,opacity:1},outFx:[{left:(H||C),opacity:0},{left:"-"+(H||C),opacity:0}],selector:[":even",":odd"]}],"caption-Top":[{inFx:{top:0,opacity:0.8},outFx:{top:("-"+H||-50),opacity:0}}],"caption-Right":[{inFx:{right:0,opacity:0.8},outFx:{right:("-"+H||-150),opacity:0}}],"caption-Bottom":[{inFx:{bottom:0,opacity:0.8},outFx:{bottom:("-"+H||-50),opacity:0}}],"caption-Left":[{inFx:{left:0,opacity:0.8},outFx:{left:("-"+H||-150),opacity:0}}]}};return this.each(function(){var H=A.extend({easing:"swing",timeIn:400,timeOut:350},F),J=B(),L=function(O,S,P,Q){if(O.length===0||typeof S==="undefined"){return}var N=S[0]||S,M=N[1]||"",R=Q||parseInt(((M==="")?N.duration:N[0].duration),10);if(P){if(O.css("position")!=="absolute"){O.css({position:"relative"})}O.stop();if(M!==""){O.filter(S[1][0]).animate(N[0],{queue:false,duration:R,easing:N[0].easing});O.filter(S[1][1]).animate(M,{queue:true,duration:R,easing:N[0].easing});return}}O.animate(N,{queue:true,duration:R,easing:N.easing})},K=function(T,O){var N,M,P=(O)?"outFx":"inFx",R={},S=(O)?H.timeOut:H.timeIn,Q=A.trim(T[0].replace(/\s+/g," ")).split(" ");if(O&&Q.length===1&&J.hasOwnProperty(Q)&&typeof(J[Q][0].selector)!=="undefined"){M=J[Q][0].outFx;M[0].duration=T[2]||H.timeOut;M[0].easing=T[3]||H.easing;return[M,J[Q][0].selector||[]]}A.each(Q,function(W,X){if(J.hasOwnProperty(X)){var V=typeof T[1]==="undefined",U=(X==="fade")?1:2;N=(V)?J:B(T[1]);A.extend(true,R,N[X][0][P]);V=T[U]||R.duration||S;R.duration=(O)?V/2:V;R.easing=T[U+1]||H.easing}});return[R]},I=A(this).bind("slide_init",function(Q,R){var N,M,P,O=R.$lastPage.add(R.$items.eq(R.exactPage)).add(R.$targetPage);if(R.exactPage===0){O=O.add(R.$items.eq(R.pages))}if(R.options.animationTime<H.timeOut){P=R.options.animationTime||1}O=O.find("*").andSelf();for(N in G){if(N==="outFx"){for(M in G.outFx){if(O.filter(M).length){L(O.filter(M),G.outFx[M],true)}}}else{if(N!=="inFx"){if(A.isArray(G[N])&&O.filter(N).length){L(O.filter(N),K(G[N],true),true,P)}}}}}).bind("slide_complete",function(O,Q){var N,P,M=Q.$currentPage.add(Q.$items.eq(Q.exactPage));M=M.find("*").andSelf();for(N in G){if(N==="inFx"){for(P in G.inFx){if(M.filter(P).length){L(M.filter(P),G.inFx[P],false)}}}else{if(N!=="outFx"&&A.isArray(G[N])&&M.filter(N).length){L(M.filter(N),K(G[N],false),false)}}}}).data("AnythingSlider");I.gotoPage(I.currentPage,I.playing)})}})(jQuery);(function(A){A.fn.innerfade=function(B){return this.each(function(){A.innerfade(this,B)})};A.innerfade=function(D,G){var E={"animationtype":"fade","speed":"normal","type":"sequence","timeout":2000,"containerheight":"auto","runningclass":"innerfade","children":null};if(G){A.extend(E,G)}if(E.children===null){var F=A(D).children()}else{var F=A(D).children(E.children)}if(F.length>1){A(D).css("position","relative").css("height",E.containerheight).addClass(E.runningclass);for(var H=0;H<F.length;H++){A(F[H]).css("z-index",String(F.length-H)).css("position","absolute").hide()}if(E.type=="sequence"){setTimeout(function(){A.innerfade.next(F,E,1,0)},E.timeout);A(F[0]).show()}else{if(E.type=="random"){var B=Math.floor(Math.random()*(F.length));setTimeout(function(){do{C=Math.floor(Math.random()*(F.length))}while(B==C);A.innerfade.next(F,E,C,B)},E.timeout);A(F[B]).show()}else{if(E.type=="random_start"){E.type="sequence";var C=Math.floor(Math.random()*(F.length));setTimeout(function(){A.innerfade.next(F,E,(C+1)%F.length,C)},E.timeout);A(F[C]).show()}else{alert("Innerfade-Type must either be 'sequence', 'random' or 'random_start'")}}}}};A.innerfade.next=function(D,C,B,E){if(C.animationtype=="slide"){A(D[E]).slideUp(C.speed);A(D[B]).slideDown(C.speed)}else{if(C.animationtype=="fade"){A(D[E]).fadeOut(C.speed);A(D[B]).fadeIn(C.speed,function(){removeFilter(A(this)[0])})}else{alert("Innerfade-animationtype must either be 'slide' or 'fade'")}}if(C.type=="sequence"){if((B+1)<D.length){B=B+1;E=B-1}else{B=0;E=D.length-1}}else{if(C.type=="random"){E=B;while(B==E){B=Math.floor(Math.random()*D.length)}}else{alert("Innerfade-Type must either be 'sequence', 'random' or 'random_start'")}}setTimeout((function(){A.innerfade.next(D,C,B,E)}),C.timeout)}})(jQuery);function removeFilter(A){if(A.style.removeAttribute){A.style.removeAttribute("filter")}}(function(AC){var Az,As,At,AF,Ai,Ax,Aj,AA,An,Ag,Ap=0,AE={},AB=[],Ao=0,AD={},Ay=[],Al=null,Au=new Image,Aa=/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i,w=/[^\.]\.(swf)\s*$/i,Ab,Ac=1,Am=0,Ar="",Aq,Aw,Av=false,Ah=AC.extend(AC("<div/>")[0],{prop:0}),Ad=AC.browser.msie&&AC.browser.version<7&&!window.XMLHttpRequest,Ae=function(){As.hide();Au.onerror=Au.onload=null;Al&&Al.abort();Az.empty()},Af=function(){if(false===AE.onError(AB,Ap,AE)){As.hide();Av=false}else{AE.titleShow=false;AE.width="auto";AE.height="auto";Az.html('<p id="fancybox-error">The requested content cannot be loaded.<br />Please try again later.</p>');Ak()}},x=function(){var B=AB[Ap],E,I,G,F,D,A;Ae();AE=AC.extend({},AC.fn.fancybox.defaults,typeof AC(B).data("fancybox")=="undefined"?AE:AC(B).data("fancybox"));A=AE.onStart(AB,Ap,AE);if(A===false){Av=false}else{if(typeof A=="object"){AE=AC.extend(AE,A)}G=AE.title||(B.nodeName?AC(B).attr("title"):B.title)||"";if(B.nodeName&&!AE.orig){AE.orig=AC(B).children("img:first").length?AC(B).children("img:first"):AC(B)}if(G===""&&AE.orig&&AE.titleFromAlt){G=AE.orig.attr("alt")}E=AE.href||(B.nodeName?AC(B).attr("href"):B.href)||null;if(/^(?:javascript)/i.test(E)||E=="#"){E=null}if(AE.type){I=AE.type;if(!E){E=AE.content}}else{if(AE.content){I="html"}else{if(E){I=E.match(Aa)?"image":E.match(w)?"swf":AC(B).hasClass("iframe")?"iframe":E.indexOf("#")===0?"inline":"ajax"}}}if(I){if(I=="inline"){B=E.substr(E.indexOf("#"));I=AC(B).length>0?"inline":"ajax"}AE.type=I;AE.href=E;AE.title=G;if(AE.autoDimensions){if(AE.type=="html"||AE.type=="inline"||AE.type=="ajax"){AE.width="auto";AE.height="auto"}else{AE.autoDimensions=false}}if(AE.modal){AE.overlayShow=true;AE.hideOnOverlayClick=false;AE.hideOnContentClick=false;AE.enableEscapeButton=false;AE.showCloseButton=false}AE.padding=parseInt(AE.padding,10);AE.margin=parseInt(AE.margin,10);Az.css("padding",AE.padding+AE.margin);AC(".fancybox-inline-tmp").unbind("fancybox-cancel").bind("fancybox-change",function(){AC(this).replaceWith(Ax.children())});switch(I){case"html":Az.html(AE.content);Ak();break;case"inline":if(AC(B).parent().is("#fancybox-content")===true){Av=false;break}AC('<div class="fancybox-inline-tmp" />').hide().insertBefore(AC(B)).bind("fancybox-cleanup",function(){AC(this).replaceWith(Ax.children())}).bind("fancybox-cancel",function(){AC(this).replaceWith(Az.children())});AC(B).appendTo(Az);Ak();break;case"image":Av=false;AC.fancybox.showActivity();Au=new Image;Au.onerror=function(){Af()};Au.onload=function(){Av=true;Au.onerror=Au.onload=null;AE.width=Au.width;AE.height=Au.height;AC("<img />").attr({id:"fancybox-img",src:Au.src,alt:AE.title}).appendTo(Az);R()};Au.src=E;break;case"swf":AE.scrolling="no";F='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+AE.width+'" height="'+AE.height+'"><param name="movie" value="'+E+'"></param>';D="";AC.each(AE.swf,function(J,K){F+='<param name="'+J+'" value="'+K+'"></param>';D+=" "+J+'="'+K+'"'});F+='<embed src="'+E+'" type="application/x-shockwave-flash" width="'+AE.width+'" height="'+AE.height+'"'+D+"></embed></object>";Az.html(F);Ak();break;case"ajax":Av=false;AC.fancybox.showActivity();AE.ajax.win=AE.ajax.success;Al=AC.ajax(AC.extend({},AE.ajax,{url:E,data:AE.ajax.data||{},error:function(J){J.status>0&&Af()},success:function(J,L,K){if((typeof K=="object"?K:Al).status==200){if(typeof AE.ajax.win=="function"){A=AE.ajax.win(E,J,L,K);if(A===false){As.hide();return}else{if(typeof A=="string"||typeof A=="object"){J=A}}}Az.html(J);Ak()}}}));break;case"iframe":R()}}else{Af()}}},Ak=function(){var A=AE.width,B=AE.height;A=A.toString().indexOf("%")>-1?parseInt((AC(window).width()-AE.margin*2)*parseFloat(A)/100,10)+"px":A=="auto"?"auto":A+"px";B=B.toString().indexOf("%")>-1?parseInt((AC(window).height()-AE.margin*2)*parseFloat(B)/100,10)+"px":B=="auto"?"auto":B+"px";Az.wrapInner('<div style="width:'+A+";height:"+B+";overflow: "+(AE.scrolling=="auto"?"auto":AE.scrolling=="yes"?"scroll":"hidden")+';position:relative;"></div>');AE.width=Az.width();AE.height=Az.height();R()},R=function(){var A,B;As.hide();if(AF.is(":visible")&&false===AD.onCleanup(Ay,Ao,AD)){AC.event.trigger("fancybox-cancel");Av=false}else{Av=true;AC(Ax.add(At)).unbind();AC(window).unbind("resize.fb scroll.fb");AC(document).unbind("keydown.fb");AF.is(":visible")&&AD.titlePosition!=="outside"&&AF.css("height",AF.height());Ay=AB;Ao=Ap;AD=AE;if(AD.overlayShow){At.css({"background-color":AD.overlayColor,opacity:AD.overlayOpacity,cursor:AD.hideOnOverlayClick?"pointer":"auto",height:AC(document).height()});if(!At.is(":visible")){Ad&&AC("select:not(#fancybox-tmp select)").filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one("fancybox-cleanup",function(){this.style.visibility="inherit"});At.show()}}else{At.hide()}Aw=C();Ar=AD.title||"";Am=0;AA.empty().removeAttr("style").removeClass();if(AD.titleShow!==false){if(AC.isFunction(AD.titleFormat)){A=AD.titleFormat(Ar,Ay,Ao,AD)}else{A=Ar&&Ar.length?AD.titlePosition=="float"?'<table id="fancybox-title-float-wrap" cellpadding="0" cellspacing="0"><tr><td id="fancybox-title-float-left"></td><td id="fancybox-title-float-main">'+Ar+'</td><td id="fancybox-title-float-right"></td></tr></table>':'<div id="fancybox-title-'+AD.titlePosition+'">'+Ar+"</div>":false}Ar=A;if(!(!Ar||Ar==="")){AA.addClass("fancybox-title-"+AD.titlePosition).html(Ar).appendTo("body").show();switch(AD.titlePosition){case"inside":AA.css({width:Aw.width-AD.padding*2,marginLeft:AD.padding,marginRight:AD.padding});Am=AA.outerHeight(true);AA.appendTo(Ai);Aw.height+=Am;break;case"over":AA.css({marginLeft:AD.padding,width:Aw.width-AD.padding*2,bottom:AD.padding}).appendTo(Ai);break;case"float":AA.css("left",parseInt((AA.width()-Aw.width-40)/2,10)*-1).appendTo(AF);break;default:AA.css({width:Aw.width-AD.padding*2,paddingLeft:AD.padding,paddingRight:AD.padding}).appendTo(AF)}}}AA.hide();if(AF.is(":visible")){AC(Aj.add(An).add(Ag)).hide();A=AF.position();Aq={top:A.top,left:A.left,width:AF.width(),height:AF.height()};B=Aq.width==Aw.width&&Aq.height==Aw.height;Ax.fadeTo(AD.changeFade,0.3,function(){var D=function(){Ax.html(Az.contents()).fadeTo(AD.changeFade,1,a)};AC.event.trigger("fancybox-change");Ax.empty().removeAttr("filter").css({"border-width":AD.padding,width:Aw.width-AD.padding*2,height:AE.autoDimensions?"auto":Aw.height-Am-AD.padding*2});if(B){D()}else{Ah.prop=0;AC(Ah).animate({prop:1},{duration:AD.changeSpeed,easing:AD.easingChange,step:c,complete:D})}})}else{AF.removeAttr("style");Ax.css("border-width",AD.padding);if(AD.transitionIn=="elastic"){Aq=k();Ax.html(Az.contents());AF.show();if(AD.opacity){Aw.opacity=0}Ah.prop=0;AC(Ah).animate({prop:1},{duration:AD.speedIn,easing:AD.easingIn,step:c,complete:a})}else{AD.titlePosition=="inside"&&Am>0&&AA.show();Ax.css({width:Aw.width-AD.padding*2,height:AE.autoDimensions?"auto":Aw.height-Am-AD.padding*2}).html(Az.contents());AF.css(Aw).fadeIn(AD.transitionIn=="none"?0:AD.speedIn,a)}}}},H=function(){if(AD.enableEscapeButton||AD.enableKeyboardNav){AC(document).bind("keydown.fb",function(A){if(A.keyCode==27&&AD.enableEscapeButton){A.preventDefault();AC.fancybox.close()}else{if((A.keyCode==37||A.keyCode==39)&&AD.enableKeyboardNav&&A.target.tagName!=="INPUT"&&A.target.tagName!=="TEXTAREA"&&A.target.tagName!=="SELECT"){A.preventDefault();AC.fancybox[A.keyCode==37?"prev":"next"]()}}})}if(AD.showNavArrows){if(AD.cyclic&&Ay.length>1||Ao!==0){An.show()}if(AD.cyclic&&Ay.length>1||Ao!=Ay.length-1){Ag.show()}}else{An.hide();Ag.hide()}},a=function(){if(!AC.support.opacity){Ax.get(0).style.removeAttribute("filter");AF.get(0).style.removeAttribute("filter")}AE.autoDimensions&&Ax.css("height","auto");AF.css("height","auto");Ar&&Ar.length&&AA.show();AD.showCloseButton&&Aj.show();H();AD.hideOnContentClick&&Ax.bind("click",AC.fancybox.close);AD.hideOnOverlayClick&&At.bind("click",AC.fancybox.close);AC(window).bind("resize.fb",AC.fancybox.resize);AD.centerOnScroll&&AC(window).bind("scroll.fb",AC.fancybox.center);if(AD.type=="iframe"){AC('<iframe id="fancybox-frame" name="fancybox-frame'+(new Date).getTime()+'" frameborder="0" hspace="0" '+(AC.browser.msie?'allowtransparency="true""':"")+' scrolling="'+AE.scrolling+'" src="'+AD.href+'"></iframe>').appendTo(Ax)}AF.show();Av=false;AC.fancybox.center();AD.onComplete(Ay,Ao,AD);var A,B;if(Ay.length-1>Ao){A=Ay[Ao+1].href;if(typeof A!=="undefined"&&A.match(Aa)){B=new Image;B.src=A}}if(Ao>0){A=Ay[Ao-1].href;if(typeof A!=="undefined"&&A.match(Aa)){B=new Image;B.src=A}}},c=function(A){var B={width:parseInt(Aq.width+(Aw.width-Aq.width)*A,10),height:parseInt(Aq.height+(Aw.height-Aq.height)*A,10),top:parseInt(Aq.top+(Aw.top-Aq.top)*A,10),left:parseInt(Aq.left+(Aw.left-Aq.left)*A,10)};if(typeof Aw.opacity!=="undefined"){B.opacity=A<0.5?0.5:A}AF.css(B);Ax.css({width:B.width-AD.padding*2,height:B.height-Am*A-AD.padding*2})},g=function(){return[AC(window).width()-AD.margin*2,AC(window).height()-AD.margin*2,AC(document).scrollLeft()+AD.margin,AC(document).scrollTop()+AD.margin]},C=function(){var A=g(),B={},E=AD.autoScale,D=AD.padding*2;B.width=AD.width.toString().indexOf("%")>-1?parseInt(A[0]*parseFloat(AD.width)/100,10):AD.width+D;B.height=AD.height.toString().indexOf("%")>-1?parseInt(A[1]*parseFloat(AD.height)/100,10):AD.height+D;if(E&&(B.width>A[0]||B.height>A[1])){if(AE.type=="image"||AE.type=="swf"){E=AD.width/AD.height;if(B.width>A[0]){B.width=A[0];B.height=parseInt((B.width-D)/E+D,10)}if(B.height>A[1]){B.height=A[1];B.width=parseInt((B.height-D)*E+D,10)}}else{B.width=Math.min(B.width,A[0]);B.height=Math.min(B.height,A[1])}}B.top=parseInt(Math.max(A[3]-20,A[3]+(A[1]-B.height-40)*0.5),10);B.left=parseInt(Math.max(A[2]-20,A[2]+(A[0]-B.width-40)*0.5),10);return B},k=function(){var A=AE.orig?AC(AE.orig):false,B={};if(A&&A.length){B=A.offset();B.top+=parseInt(A.css("paddingTop"),10)||0;B.left+=parseInt(A.css("paddingLeft"),10)||0;B.top+=parseInt(A.css("border-top-width"),10)||0;B.left+=parseInt(A.css("border-left-width"),10)||0;B.width=A.width();B.height=A.height();B={width:B.width+AD.padding*2,height:B.height+AD.padding*2,top:B.top-AD.padding-20,left:B.left-AD.padding-20}}else{A=g();B={width:AD.padding*2,height:AD.padding*2,top:parseInt(A[3]+A[1]*0.5,10),left:parseInt(A[2]+A[0]*0.5,10)}}return B},P=function(){if(As.is(":visible")){AC("div",As).css("top",Ac*-40+"px");Ac=(Ac+1)%12}else{clearInterval(Ab)}};AC.fn.fancybox=function(A){if(!AC(this).length){return this}AC(this).data("fancybox",AC.extend({},A,AC.metadata?AC(this).metadata():{})).unbind("click.fb").bind("click.fb",function(B){B.preventDefault();if(!Av){Av=true;AC(this).blur();AB=[];Ap=0;B=AC(this).attr("rel")||"";if(!B||B==""||B==="nofollow"){AB.push(this)}else{AB=AC("a[rel="+B+"], area[rel="+B+"]");Ap=AB.index(this)}x()}});return this};AC.fancybox=function(A,B){var F;if(!Av){Av=true;F=typeof B!=="undefined"?B:{};AB=[];Ap=parseInt(F.index,10)||0;if(AC.isArray(A)){for(var E=0,D=A.length;E<D;E++){if(typeof A[E]=="object"){AC(A[E]).data("fancybox",AC.extend({},F,A[E]))}else{A[E]=AC({}).data("fancybox",AC.extend({content:A[E]},F))}}AB=jQuery.merge(AB,A)}else{if(typeof A=="object"){AC(A).data("fancybox",AC.extend({},F,A))}else{A=AC({}).data("fancybox",AC.extend({content:A},F))}AB.push(A)}if(Ap>AB.length||Ap<0){Ap=0}x()}};AC.fancybox.showActivity=function(){clearInterval(Ab);As.show();Ab=setInterval(P,66)};AC.fancybox.hideActivity=function(){As.hide()};AC.fancybox.next=function(){return AC.fancybox.pos(Ao+1)};AC.fancybox.prev=function(){return AC.fancybox.pos(Ao-1)};AC.fancybox.pos=function(A){if(!Av){A=parseInt(A);AB=Ay;if(A>-1&&A<Ay.length){Ap=A;x()}else{if(AD.cyclic&&Ay.length>1){Ap=A>=Ay.length?0:Ay.length-1;x()}}}};AC.fancybox.cancel=function(){if(!Av){Av=true;AC.event.trigger("fancybox-cancel");Ae();AE.onCancel(AB,Ap,AE);Av=false}};AC.fancybox.close=function(){function A(){At.fadeOut("fast");AA.empty().hide();AF.hide();AC.event.trigger("fancybox-cleanup");Ax.empty();AD.onClosed(Ay,Ao,AD);Ay=AE=[];Ao=Ap=0;AD=AE={};Av=false}if(!(Av||AF.is(":hidden"))){Av=true;if(AD&&false===AD.onCleanup(Ay,Ao,AD)){Av=false}else{Ae();AC(Aj.add(An).add(Ag)).hide();AC(Ax.add(At)).unbind();AC(window).unbind("resize.fb scroll.fb");AC(document).unbind("keydown.fb");Ax.find("iframe").attr("src",Ad&&/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank");AD.titlePosition!=="inside"&&AA.empty();AF.stop();if(AD.transitionOut=="elastic"){Aq=k();var B=AF.position();Aw={top:B.top,left:B.left,width:AF.width(),height:AF.height()};if(AD.opacity){Aw.opacity=1}AA.empty().hide();Ah.prop=1;AC(Ah).animate({prop:0},{duration:AD.speedOut,easing:AD.easingOut,step:c,complete:A})}else{AF.fadeOut(AD.transitionOut=="none"?0:AD.speedOut,A)}}}};AC.fancybox.resize=function(){At.is(":visible")&&At.css("height",AC(document).height());AC.fancybox.center(true)};AC.fancybox.center=function(A){var B,D;if(!Av){D=A===true?1:0;B=g();!D&&(AF.width()>B[0]||AF.height()>B[1])||AF.stop().animate({top:parseInt(Math.max(B[3]-20,B[3]+(B[1]-Ax.height()-40)*0.5-AD.padding)),left:parseInt(Math.max(B[2]-20,B[2]+(B[0]-Ax.width()-40)*0.5-AD.padding))},typeof A=="number"?A:200)}};AC.fancybox.init=function(){if(!AC("#fancybox-wrap").length){AC("body").append(Az=AC('<div id="fancybox-tmp"></div>'),As=AC('<div id="fancybox-loading"><div></div></div>'),At=AC('<div id="fancybox-overlay"></div>'),AF=AC('<div id="fancybox-wrap"></div>'));Ai=AC('<div id="fancybox-outer"></div>').append('<div class="fancybox-bg" id="fancybox-bg-n"></div><div class="fancybox-bg" id="fancybox-bg-ne"></div><div class="fancybox-bg" id="fancybox-bg-e"></div><div class="fancybox-bg" id="fancybox-bg-se"></div><div class="fancybox-bg" id="fancybox-bg-s"></div><div class="fancybox-bg" id="fancybox-bg-sw"></div><div class="fancybox-bg" id="fancybox-bg-w"></div><div class="fancybox-bg" id="fancybox-bg-nw"></div>').appendTo(AF);Ai.append(Ax=AC('<div id="fancybox-content"></div>'),Aj=AC('<a id="fancybox-close"></a>'),AA=AC('<div id="fancybox-title"></div>'),An=AC('<a href="javascript:;" id="fancybox-left"><span class="fancy-ico" id="fancybox-left-ico"></span></a>'),Ag=AC('<a href="javascript:;" id="fancybox-right"><span class="fancy-ico" id="fancybox-right-ico"></span></a>'));Aj.click(AC.fancybox.close);As.click(AC.fancybox.cancel);An.click(function(A){A.preventDefault();AC.fancybox.prev()});Ag.click(function(A){A.preventDefault();AC.fancybox.next()});AC.fn.mousewheel&&AF.bind("mousewheel.fb",function(A,B){if(Av){A.preventDefault()}else{if(AC(A.target).get(0).clientHeight==0||AC(A.target).get(0).scrollHeight===AC(A.target).get(0).clientHeight){A.preventDefault();AC.fancybox[B>0?"prev":"next"]()}}});AC.support.opacity||AF.addClass("fancybox-ie");if(Ad){As.addClass("fancybox-ie6");AF.addClass("fancybox-ie6");AC('<iframe id="fancybox-hide-sel-frame" src="'+(/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank")+'" scrolling="no" border="0" frameborder="0" tabindex="-1"></iframe>').prependTo(Ai)}}};AC.fn.fancybox.defaults={padding:10,margin:40,opacity:false,modal:false,cyclic:false,scrolling:"auto",width:560,height:340,autoScale:true,autoDimensions:true,centerOnScroll:false,ajax:{},swf:{wmode:"transparent"},hideOnOverlayClick:true,hideOnContentClick:false,overlayShow:true,overlayOpacity:0.7,overlayColor:"#777",titleShow:true,titlePosition:"float",titleFormat:null,titleFromAlt:false,transitionIn:"fade",transitionOut:"fade",speedIn:300,speedOut:300,changeSpeed:300,changeFade:"fast",easingIn:"swing",easingOut:"swing",showCloseButton:true,showNavArrows:true,enableEscapeButton:true,enableKeyboardNav:true,onStart:function(){},onCancel:function(){},onComplete:function(){},onCleanup:function(){},onClosed:function(){},onError:function(){}};AC(document).ready(function(){AC.fancybox.init()})})(jQuery);eval(function(F,B,D,C,E,A){E=function(G){return(G<B?"":E(parseInt(G/B)))+((G=G%B)>35?String.fromCharCode(G+29):G.toString(36))};if(!"".replace(/^/,String)){while(D--){A[E(D)]=C[D]||E(D)}C=[function(G){return A[G]}];E=function(){return"\\w+"};D=1}while(D--){if(C[D]){F=F.replace(new RegExp("\\b"+E(D)+"\\b","g"),C[D])}}return F}("h.i['1a']=h.i['z'];h.O(h.i,{y:'D',z:9(x,t,b,c,d){6 h.i[h.i.y](x,t,b,c,d)},17:9(x,t,b,c,d){6 c*(t/=d)*t+b},D:9(x,t,b,c,d){6-c*(t/=d)*(t-2)+b},13:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t+b;6-c/2*((--t)*(t-2)-1)+b},X:9(x,t,b,c,d){6 c*(t/=d)*t*t+b},U:9(x,t,b,c,d){6 c*((t=t/d-1)*t*t+1)+b},R:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t+b;6 c/2*((t-=2)*t*t+2)+b},N:9(x,t,b,c,d){6 c*(t/=d)*t*t*t+b},M:9(x,t,b,c,d){6-c*((t=t/d-1)*t*t*t-1)+b},L:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t*t+b;6-c/2*((t-=2)*t*t*t-2)+b},K:9(x,t,b,c,d){6 c*(t/=d)*t*t*t*t+b},J:9(x,t,b,c,d){6 c*((t=t/d-1)*t*t*t*t+1)+b},I:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t*t*t+b;6 c/2*((t-=2)*t*t*t*t+2)+b},G:9(x,t,b,c,d){6-c*8.C(t/d*(8.g/2))+c+b},15:9(x,t,b,c,d){6 c*8.n(t/d*(8.g/2))+b},12:9(x,t,b,c,d){6-c/2*(8.C(8.g*t/d)-1)+b},Z:9(x,t,b,c,d){6(t==0)?b:c*8.j(2,10*(t/d-1))+b},Y:9(x,t,b,c,d){6(t==d)?b+c:c*(-8.j(2,-10*t/d)+1)+b},W:9(x,t,b,c,d){e(t==0)6 b;e(t==d)6 b+c;e((t/=d/2)<1)6 c/2*8.j(2,10*(t-1))+b;6 c/2*(-8.j(2,-10*--t)+2)+b},V:9(x,t,b,c,d){6-c*(8.o(1-(t/=d)*t)-1)+b},S:9(x,t,b,c,d){6 c*8.o(1-(t=t/d-1)*t)+b},Q:9(x,t,b,c,d){e((t/=d/2)<1)6-c/2*(8.o(1-t*t)-1)+b;6 c/2*(8.o(1-(t-=2)*t)+1)+b},P:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d)==1)6 b+c;e(!p)p=d*.3;e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);6-(a*8.j(2,10*(t-=1))*8.n((t*d-s)*(2*8.g)/p))+b},H:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d)==1)6 b+c;e(!p)p=d*.3;e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);6 a*8.j(2,-10*t)*8.n((t*d-s)*(2*8.g)/p)+c+b},T:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d/2)==2)6 b+c;e(!p)p=d*(.3*1.5);e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);e(t<1)6-.5*(a*8.j(2,10*(t-=1))*8.n((t*d-s)*(2*8.g)/p))+b;6 a*8.j(2,-10*(t-=1))*8.n((t*d-s)*(2*8.g)/p)*.5+c+b},F:9(x,t,b,c,d,s){e(s==u)s=1.l;6 c*(t/=d)*t*((s+1)*t-s)+b},E:9(x,t,b,c,d,s){e(s==u)s=1.l;6 c*((t=t/d-1)*t*((s+1)*t+s)+1)+b},16:9(x,t,b,c,d,s){e(s==u)s=1.l;e((t/=d/2)<1)6 c/2*(t*t*(((s*=(1.B))+1)*t-s))+b;6 c/2*((t-=2)*t*(((s*=(1.B))+1)*t+s)+2)+b},A:9(x,t,b,c,d){6 c-h.i.v(x,d-t,0,c,d)+b},v:9(x,t,b,c,d){e((t/=d)<(1/2.k)){6 c*(7.q*t*t)+b}m e(t<(2/2.k)){6 c*(7.q*(t-=(1.5/2.k))*t+.k)+b}m e(t<(2.5/2.k)){6 c*(7.q*(t-=(2.14/2.k))*t+.11)+b}m{6 c*(7.q*(t-=(2.18/2.k))*t+.19)+b}},1b:9(x,t,b,c,d){e(t<d/2)6 h.i.A(x,t*2,0,c,d)*.5+b;6 h.i.v(x,t*2-d,0,c,d)*.5+c*.5+b}});",62,74,"||||||return||Math|function|||||if|var|PI|jQuery|easing|pow|75|70158|else|sin|sqrt||5625|asin|||undefined|easeOutBounce|abs||def|swing|easeInBounce|525|cos|easeOutQuad|easeOutBack|easeInBack|easeInSine|easeOutElastic|easeInOutQuint|easeOutQuint|easeInQuint|easeInOutQuart|easeOutQuart|easeInQuart|extend|easeInElastic|easeInOutCirc|easeInOutCubic|easeOutCirc|easeInOutElastic|easeOutCubic|easeInCirc|easeInOutExpo|easeInCubic|easeOutExpo|easeInExpo||9375|easeInOutSine|easeInOutQuad|25|easeOutSine|easeInOutBack|easeInQuad|625|984375|jswing|easeInOutBounce".split("|"),0,{}));$(function(){if($("div.Box680Content input").length){$("div.Box680Content").jqf1()}if($("#campagneTable, #mediaGeniek").length>0){$("div.Box940Content").jqf1()}$("ul#verzekerCheck li div.verzekerdeDetailsNav div.verzekerdeGoToNext a.cta_button").hover(function(){$(this).parent().css({"background":"url(/Portals/0/Skins/Standaard/images/compare/btn_blue_left.png) no-repeat bottom left"})},function(){$(this).parent().removeAttr("style")});$(".sf-menu > li.hasChildren >  a").click(function(){return false});$("span.compare").each(function(){$(this).addClass($(this).text())});$("#compare_labels table tbody").each(function(){$(this).find("tr:first td").addClass("first");$(this).find("tr:last td").addClass("last")});$("#slider li").each(function(){$(this).find("tbody tr:first td").addClass("first");$(this).find("tbody tr:last td div.cellWrapper").addClass("last")});$("#slider").anythingSlider({buildArrows:false,buildStartStop:false,infiniteSlides:false,resizeContents:false,hashTags:false});$("#promoSlider").anythingSlider({buildArrows:false,buildStartStop:false,infiniteSlides:false,resizeContents:true,hashTags:false,autoPlay:true,delay:8000,resumeDelay:15000,animationTime:600});$("ul#logoSlider").innerfade({speed:1000,timeout:5000,type:"sequence",containerheight:"80px"});$("div#discountSlider").innerfade({speed:1000,timeout:5000,type:"sequence",containerheight:"120px"});var D=0;$("div.verzekering").each(function(){D=$(this).find("div.percentages").height();$(this).find("div.vergoedingPercentage").each(function(){$(this).css("height",D)})});$("div.onderdeel").click(function(){$(this).parent().find("div.uitgebreideInformatie").slideToggle("slow");$(this).parent().find("a.sluitOnderdeel").fadeToggle("slow");$(this).parent().find("a.openOnderdeel").toggleClass("geopend");return false});$("a.sluitOnderdeel").click(function(){$(this).parent().parent().find("div.uitgebreideInformatie").slideUp("slow");$(this).parent().find("a.openOnderdeel").removeClass("geopend");$(this).fadeOut("slow");return false});$("div.faqQuestion").find("a.sluitOnderdeel").hide();$(".faqQuestion").click(function(){$(this).next().slideToggle("slow");$(this).find("a.sluitOnderdeel").fadeToggle("slow");$(this).find("a.openOnderdeel").toggleClass("geopend")});$("a.sluitOnderdeel").click(function(){$(this).parent().parent().find("div.faqAnswer").slideUp("slow");$(this).parent().find("a.openOnderdeel").removeClass("geopend");$(this).fadeOut("slow");return false});$("#zoekenSoort").hide();$("#btnZoekenTrefwoord").click(function(){if($(this).attr("class")!="selected"){$("#btnZoekenZorg").removeClass("selected");$(this).attr("class","selected");$("#zoekenSoort").hide();$("#zoekenTrefwoord").show()}});$("#btnZoekenZorg").click(function(){if($(this).attr("class")!="selected"){$("#btnZoekenTrefwoord").removeClass("selected");$(this).attr("class","selected");$("#zoekenTrefwoord").hide();$("#zoekenSoort").show()}});$("#ccTableAanvullend td.priceCol a, #ccTableTandarts a.iframe, #ccTableAanvullend a.iframe").fancybox({"titlePosition":"outside","overlayColor":"#000000","overlayOpacity":0.2,"width":860,"height":600});$(".fancyiframe").fancybox({"titlePosition":"outside","overlayColor":"#000000","overlayOpacity":0.2,"width":780,"height":600,"padding":20});$(".callMeNowiframe").fancybox({"titlePosition":"outside","overlayColor":"#000000","overlayOpacity":0.2,"width":780,"height":300,"padding":20});$(".mailPremieiframe").fancybox({"scrolling":"no","titlePosition":"outside","overlayColor":"#000000","overlayOpacity":0.2,"width":643,"height":160,"padding":20});$("div.email a").fancybox({"titlePosition":"outside","overlayColor":"#000000","overlayOpacity":0.2,"width":780,"height":600,"padding":20});$("div.Box928Purple2 a.mailOverlay").fancybox({"titlePosition":"outside","overlayColor":"#000000","overlayOpacity":0.2,"width":780,"height":600,"padding":20});$("a.buitenlandError").fancybox({"titlePosition":"outside","overlayColor":"#000000","overlayOpacity":0.2,"width":780,"height":600,"padding":20});if($("div.funnelMessage a.mailPremieiframe").is(":visible")==true){$("div.funnelMessage a.mailPremieiframe").trigger("click");if(String($("div.funnelMessage div.funnelText span").text()).substr(11,7)=="seintje"){$('[id$="divPremiesNietBekend"]').hide();$("div#emailPremies div.funnelMessage").show()}}$("div.uitgebreideInformatie").hide();var C=self.document.location.hash.substring(1);$("div.onderdeel[name="+C+"]").parent().find("div.uitgebreideInformatie").slideToggle("slow");$("div.onderdeel[name="+C+"]").parent().find("a.sluitOnderdeel").fadeToggle("slow");$("div.onderdeel[name="+C+"]").parent().find("a.openOnderdeel").toggleClass("geopend");$("div#tabFrameContainer #contentBasisAanvullend").show();$("div#tabsContainer ul li #tabBasisAanvullend").click(function(){if($(this).parent().attr("class")!="big selected"){$("#tabsContainer ul li").removeClass("selected");$(this).parent().addClass("selected");$("#contentTandarts").hide();$("#contentBasisAanvullend").show()}});$("div#tabsContainer ul li #tabTandarts").click(function(){if($(this).parent().attr("class")!="selected"){$("#tabsContainer ul li").removeClass("selected");$(this).parent().addClass("selected");$("#contentBasisAanvullend").hide();$("#contentTandarts").show()}});if($("div#tabsContainer ul li #tabTandarts").length){var C=String(window.location).split("#");if(C[1]&&C[1]=="tandartsverzekering"){$("#tabTandarts").trigger("click")}}var A="Zoek of stel je vraag";var B=document.getElementById("dnn_dnnSEARCH_txtSearch");if(B){B.value=A;B.onfocus=function(){if(B.value==A){B.value=""}};B.onblur=function(){if(B.value==""){B.value=A}}}});var WS_URL="/DesktopModules/PNOZiektekostenFunnel/AjaxEndpoint.asmx";function call_xml_webservice(C,A,B,D){$.ajax({type:"POST",url:WS_URL+"/"+C,contentType:"application/json; charset=utf-8",data:A,dataType:"json",timeout:10000,success:B,error:D})}function ajax_callback_error(A){addClientError("","Er is een fout opgetreden")}function CheckStartDateServer(D,A,B,E){var C=JSON.stringify({day:D,month:A,year:B});call_xml_webservice("CheckStartDate",C,E,ajax_callback_error)}function CheckBirthDateServer(A,B,I,J,H,G,F,C,E,K){var D=JSON.stringify({day:A,month:B,year:I,isVerzekeringsnemer:J,isPartner:H,isKind:G,ingangsday:F,ingangsmonth:C,ingangsyear:E});call_xml_webservice("CheckBirthDate",D,K,ajax_callback_error)}$(document).ready(function(){if($("input[name$='rlInkomenUitBuitenland']:checked").val()=="false"){$("[id$='clRekeninguitBuitenland']").hide();$("[id$='lblPersonenInkomenBuitenland']").hide()}else{$("[id$='clRekeninguitBuitenland']").show();$("[id$='lblPersonenInkomenBuitenland']").show()}$("input[name$='rlInkomenUitBuitenland']").click(function(){if($("input[name$='rlInkomenUitBuitenland']:checked").val()=="true"){$("[id$='clRekeninguitBuitenland']").show();$("[id$='lblPersonenInkomenBuitenland']").show()}else{$("[id$='clRekeninguitBuitenland']").hide();$("[id$='lblPersonenInkomenBuitenland']").hide()}});$("[id$='txtPostcode']").change(function(){checkPostcode()});$("[id$='txtHuisnummer']").change(function(){checkPostcode()})});var lastValue="";function isNumericKey(B){lastValue=(B.srcElement?B.srcElement.value:B.target.value);var A;if(window.event){A=event.keyCode}else{if(B){A=B.which}}if(A>31&&(A<48||A>57)){return false}return true}function checkMaxInt(B,C){var A;if(window.event){A=event.keyCode}else{if(B){A=B.which}}if(A>31&&(A<48||A>57)){if(A<96||A>105){return false}}if(window.event){var D=parseInt(B.srcElement.value);if(D>C){B.srcElement.value=lastValue}}else{var D=parseInt(B.target.value);if(D>C){B.target.value=lastValue}}}var startdateTimeout=null;function ValidateStartDate(C,A,B){if(B.length<4){return false}clearStartDateTimeout();if(C.length==0){C="0"}if(A.length==0){A="0"}if(B.length==0){B="0"}if(!IsValidDate(C,A,B)){startdateTimeout=setTimeout('addClientError("IngangsDatum", "De ingangs datum is geen geldige datum.")',4000);return}startdateTimeout=setTimeout("CheckStartDateServer("+C+", "+A+","+B+","+get_checkStartDate_callback+")",5000)}function clearStartDateTimeout(){if(startdateTimeout!=null){clearTimeout(startdateTimeout);startdateTimeout=null}}function get_checkStartDate_callback(A){if(A&&A.d!=null){addClientError("IngangsDatum",A.d.toString())}else{removeClientError("IngangsDatum");var C=$("div.calcBoxData").html();var B=C.indexOf("|");C=$("input[name$='txtIngangsDatumDay']").val()+"-"+$("input[name$='txtIngangsDatumMonth']").val()+"-"+$("input[name$='txtIngangsDatumYear']").val()+C.substring(B);$("div.calcBoxData").html(C)}}var timeout=null;function CheckBirthDate(D,A,C,J,K,I,H,G,B,F,E){clearBirthdateTimeout();if(A.length==0){return}if(C.length==0){return}if(J.length==0){return}if(!IsValidDate(A,C,J)){timeout=setTimeout('addClientError("GeboorteDatum", "De geboorte datum is geen geldige datum.")',E);return false}timeout=setTimeout("CheckBirthDateServer("+A+", "+C+","+J+","+K+","+I+","+H+","+G+","+B+","+F+","+get_checkBirthDate_callback+")",E);return false}function clearBirthdateTimeout(){if(timeout!=null){clearTimeout(timeout);timeout=null}}function get_checkBirthDate_callback(A){if(A&&A.d!=null){if(A.d.isChild!=A.d.wasChild){$("#Form").submit()}else{if(A.d.message.length>0){addClientError("GeboorteDatum",A.d.message)}else{removeClientError("GeboorteDatum")}}}}function IsValidDate(E,B,D){if(D.length<4){return false}var C=B+"/"+E+"/"+D;var A=new Date(C);if(A.getDate()!=E){return false}else{if(A.getMonth()!=B-1){return false}else{if(A.getFullYear()!=D){return false}}}return true}function addClientError(B,C){var A;for(var D=0;D<clientErrors.length;D++){if(clientErrors[D][0]==B){A=clientErrors.length;clientErrors.splice(D)}}var E=[B,C];clientErrors.push(E);renderClientError()}function removeClientError(A){var B=[];for(var C=0;C<clientErrors.length;C++){if(clientErrors[C][0]!=A){B.push(clientErrors[C])}}clientErrors=B;renderClientError()}function renderClientError(){var A="";for(var B=0;B<clientErrors.length;B++){if(clientErrors[B]!=null&&clientErrors[B][1].length>0){if(A.indexOf(clientErrors[B][1]==-1)){if(A.indexOf(clientErrors[B][1])==-1){A+="<li>"+clientErrors[B][1]+"</li>"}}}}if(A.length>0){$("#lblClientError").html("<ul>"+A+"</ul>");$("#divClientError").slideDown("slow",function(){$("#divClientError").show()});scroll(0,0)}else{$("#lblClientError").html("");$("#divClientError").slideUp("slow",function(){$("#divClientError").hide()})}}function ValidateItem(A){if(typeof Page_ClientValidate!="function"){return true}if(Page_ClientValidate(A)){return true}else{return false}}function getErrorMessage(A){for(var B=0;B<errorMessages.length;B++){if(errorMessages[B][0]==A){return errorMessages[B][1]}}}function matchRegEx(B,C){var A=new RegExp(C);return B.match(A)}function CopyEmailAddress(){$("input[name$='txtEmailBewaar']").val($("input[name$='txtEmailBewaarTemp']").val())}function CopyEmailPremiesAddress(){$("input[name$='txtEmailPremies']").val($("input[name$='txtEmailPremiesTemp']").val())}function checkPostcode(){var B=$("[id$='txtPostcode']").val().replace(" ","");var A=$("[id$='txtHuisnummer']").val();if(B.length==6&&A.length>0){var C=JSON.stringify({postcode:B,huisnummer:A});call_xml_webservice("CheckPostcode",C,postCodeSuccess,postCodeNotFound)}}function postCodeSuccess(A){if(A!=null&&A.d!=null&&A.d.Plaatsnaam!=null&&A.d.Straatnaam!=null){$("[id$='txtStraat']").val(A.d.Straatnaam);$("[id$='txtPlaats']").val(A.d.Plaatsnaam);$("#adresOutput").slideDown()}else{$("[id$='txtStraat']").val("");$("[id$='txtPlaats']").val("");$("#adresOutput").show(0)}}function postCodeNotFound(){$("[id$='txtStraat']").val("");$("[id$='txtPlaats']").val("");$("#adresOutput").show(0)}$(document).ready(function(){styleSelect()});function styleSelect(){$("div.contentBox select").each(function(){if($(this).parent().attr("class")!="clear"){var B="";var A="";var D="";var C="false";var E=$(this).width();var F=17;$(this).children("option").each(function(){if(D.length<1){D='<div style="width:'+parseInt(E-F)+'px" value="'+$(this).val()+'">'+$(this).text()+"</div>"}B=B+'<div style="width:'+parseInt(E-F)+'px" value="'+$(this).val()+'">'+$(this).text()+"</div>"});A='<div style="width:'+parseInt(E-F)+'px" value="'+$(this).find("option:selected").val()+'">'+$(this).find("option:selected").text()+"</div>";if(A.length<1){A=D}if(String($(this).attr("onchange")).indexOf("doPostBack")>0){C=true}$(this).before('<div class="selectBox" refid="'+$(this).attr("id")+'" refname="'+$(this).attr("name")+'" style="width:'+$(this).width()+'px" doOnChange="'+C+'"><div class="selectStart"></div><div class="selectWrap" style="width:'+(parseInt(E)-35)+'px"><div class="options" style="max-width:'+(parseInt(E)-10)+'px">'+A+'</div></div><div class="downBtn"></div><div class="clear"><input type="hidden" id="'+$(this).attr("id")+'" name="'+$(this).attr("name")+'" value="'+$(this).find("option:selected").val()+'" /> </div><div class="selectDropdown" style="width:'+(parseInt(E)-13)+'px"><div class="options" style="max-width:'+(parseInt(E)-10)+'px">'+B+"</div></div></div>");$(this).remove()}});if($("[id$='ddMediaBranch2']").val()=="anders"){$("#otherBranche2").show()}else{$("#otherBranche2").hide()}if($("[id$='ddMediaBranch1']").val()=="anders"){$("#otherBranche1").show()}else{$("#otherBranche1").hide()}$("[id$='ddMediaBranch1']").change(function(){if($(this).val()=="anders"){$("#otherBranche1").show()}else{$("#otherBranche1").hide()}});$("[id$='ddMediaBranch2']").change(function(){if($(this).val()=="anders"){$("#otherBranche2").show()}else{$("#otherBranche2").hide()}});$("[id$='ddMediaBranch1']").keyup(function(A){var B=$("#selectBranche");if(B.val()=="otherBranche1"){A.preventDefault();$(B).html($("#otherBranche1").val())}});$("[id$='ddMediaBranch2']").keyup(function(A){var B=$("#selectBranche");if(B.val()=="otherBranche2"){A.preventDefault();$(B).html($("#otherBranche2").val())}});$("div.downBtn, div.selectWrap").click(function(){var A=$(this).parent().find("div.selectDropdown");if(A.find("div.options").children("div").size()>8){A.css({"overflow":"scroll","overflow-x":"hidden","height":"200px"})}A.slideDown()});$("div.selectBox").mouseleave(function(){var A=$(this).find("div.selectDropdown");A.slideUp()});$("div.selectDropdown div.options div").click(function(){$sw=$(this).parent();$sw1=$sw.parent();$sw2=$sw.parent().parent();$swInput=$sw2.find("div.clear input");$swFirst=$sw2.find("div.selectWrap div.options");$sw1.slideUp();$swFirst.html($(this).clone());$swInput.val($(this).attr("value")).trigger("change");if($sw2.attr("doonchange")=="true"){setTimeout("__doPostBack('"+$sw2.attr("refname")+"','')",0)}});showRedenOpzegging();$("[name$='ddRedenOpzegging']").change(function(){showRedenOpzegging()})}function showRedenOpzegging(){var A=false;if($("[name$='ddRedenOpzegging']").length>0){A=false;var C=$("[name$='ddRedenOpzegging']").val();if(C==124){for(var B=0;B<arOverstapService.length;B++){if(arOverstapService[B]==$("[name$='ddRedenOpzegging']").val()){A=true;break}}}else{if(C==13||C==132||C==131){A=true}else{A=false}}if(A){$("[id$='pnlOpzegService']").show()}else{$("[id$='pnlOpzegService']").hide()}}}(function(A){var B=function(D){var F=null;var E=A("#"+D);var C=A("input[name="+D+"]");if(E.length){F=E}else{if(C!=undefined){F=C}}return F};A.fn.autotab_magic=function(D){for(var E=0;E<this.length;E++){var C=E+1;var F=E-1;if(E>0&&C<this.length){A(this[E]).autotab({target:A(this[C]),previous:A(this[F])})}else{if(E>0){A(this[E]).autotab({previous:A(this[F])})}else{A(this[E]).autotab({target:A(this[C])})}}if(D!=null&&(isNaN(D)&&D==A(this[E]).attr("id"))||(!isNaN(D)&&D==E)){A(this[E]).focus()}}return this};A.fn.autotab_filter=function(E){var C={format:"all",uppercase:false,lowercase:false,nospace:false,pattern:null};if(typeof E=="string"||typeof E=="function"){C.format=E}else{A.extend(C,E)}for(var D=0;D<this.length;D++){A(this[D]).bind("keyup",function(G){var H=this.value;switch(C.format){case"text":var F=new RegExp("[0-9]+","g");H=H.replace(F,"");break;case"alpha":var F=new RegExp("[^a-zA-Z]+","g");H=H.replace(F,"");break;case"number":case"numeric":var F=new RegExp("[^0-9]+","g");H=H.replace(F,"");break;case"alphanumeric":var F=new RegExp("[^0-9a-zA-Z]+","g");H=H.replace(F,"");break;case"custom":var F=new RegExp(C.pattern,"g");H=H.replace(F,"");break;case"all":default:if(typeof C.format=="function"){var H=C.format(H)}break}if(C.nospace){var F=new RegExp("[ ]+","g");H=H.replace(F,"")}if(C.uppercase){H=H.toUpperCase()}if(C.lowercase){H=H.toLowerCase()}if(H!=this.value){this.value=H}})}};A.fn.autotab=function(D){var C={format:"all",maxlength:2147483647,uppercase:false,lowercase:false,nospace:false,target:null,previous:null,pattern:null};A.extend(C,D);if(typeof C.target=="string"){C.target=B(C.target)}if(typeof C.previous=="string"){C.previous=B(C.previous)}var E=A(this).attr("maxlength");if(C.maxlength==2147483647&&E!=2147483647){C.maxlength=E}else{if(C.maxlength>0){A(this).attr("maxlength",C.maxlength)}else{C.target=null}}if(C.format!="all"){A(this).autotab_filter(C)}return A(this).bind("keydown",function(F){if(F.which==8&&this.value.length==0&&C.previous){C.previous.focus().val(C.previous.val())}}).bind("keyup",function(G){var F=[8,9,16,17,18,19,20,27,33,34,35,36,37,38,39,40,45,46,144,145];if(G.which!=8){var H=A(this).val();if(A.inArray(G.which,F)==-1&&H.length==C.maxlength&&C.target){C.target.focus()}}})}})(jQuery);(function(A){A.fn.hoverIntent=function(I,J){var C={sensitivity:7,interval:100,timeout:0};C=A.extend(C,J?{over:I,out:J}:I);var B,E,D,F;var K=function(M){B=M.pageX;E=M.pageY};var G=function(M,N){N.hoverIntent_t=clearTimeout(N.hoverIntent_t);if((Math.abs(D-B)+Math.abs(F-E))<C.sensitivity){A(N).unbind("mousemove",K);N.hoverIntent_s=1;return C.over.apply(N,[M])}else{D=B;F=E;N.hoverIntent_t=setTimeout(function(){G(M,N)},C.interval)}};var H=function(M,N){N.hoverIntent_t=clearTimeout(N.hoverIntent_t);N.hoverIntent_s=0;return C.out.apply(N,[M])};var L=function(O){var M=jQuery.extend({},O);var N=this;if(N.hoverIntent_t){N.hoverIntent_t=clearTimeout(N.hoverIntent_t)}if(O.type=="mouseenter"){D=M.pageX;F=M.pageY;A(N).bind("mousemove",K);if(N.hoverIntent_s!=1){N.hoverIntent_t=setTimeout(function(){G(M,N)},C.interval)}}else{A(N).unbind("mousemove",K);if(N.hoverIntent_s==1){N.hoverIntent_t=setTimeout(function(){H(M,N)},C.timeout)}}};return this.bind("mouseenter",L).bind("mouseleave",L)}})(jQuery);if(!this.JSON){this.JSON={}}(function(){function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i<length;i+=1){partial[i]=str(i,value)||"null"}v=partial.length===0?"[]":gap?"[\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"]":"["+partial.join(",")+"]";gap=mind;return v}if(rep&&typeof rep==="object"){length=rep.length;for(i=0;i<length;i+=1){k=rep[i];if(typeof k==="string"){v=str(k,value);if(v){partial.push(quote(k)+(gap?": ":":")+v)}}}}else{for(k in value){if(Object.hasOwnProperty.call(value,k)){v=str(k,value);if(v){partial.push(quote(k)+(gap?": ":":")+v)}}}}v=partial.length===0?"{}":gap?"{\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"}":"{"+partial.join(",")+"}";gap=mind;return v}}if(typeof JSON.stringify!=="function"){JSON.stringify=function(value,replacer,space){var i;gap="";indent="";if(typeof space==="number"){for(i=0;i<space;i+=1){indent+=" "}}else{if(typeof space==="string"){indent=space}}rep=replacer;if(replacer&&typeof replacer!=="function"&&(typeof replacer!=="object"||typeof replacer.length!=="number")){throw new Error("JSON.stringify")}return str("",{"":value})}}if(typeof JSON.parse!=="function"){JSON.parse=function(text,reviver){var j;function walk(holder,key){var k,v,value=holder[key];if(value&&typeof value==="object"){for(k in value){if(Object.hasOwnProperty.call(value,k)){v=walk(value,k);if(v!==undefined){value[k]=v}else{delete value[k]}}}}return reviver.call(holder,key,value)}cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})}if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){j=eval("("+text+")");return typeof reviver==="function"?walk({"":j},""):j}throw new SyntaxError("JSON.parse")}}}());
