var ledenvoordeel=function(){var t={body:"body.ledenvoordeel",ext:"body.ledenvoordeel .subhome div.extras",mo:"body.ledenvoordeel div.sub li.rubriek, body.ledenvoordeel div.sub li.locatie",li:"body.ledenvoordeel div.sub ul ul li",a:"body.ledenvoordeel div.sub ul ul li a",phID:"popupPlace",res:"#verfijnResultaten"};var o=function(){jQuery.getScript("/static/js/app/ledenvoordeel/jquery.intercept-min.js");q();a();g();c();if(jQuery("body.ledenvoordeel .carousel").length!==0){p.init()}h();e();s();l();f();j();b();jQuery(document).ready(function(){if(jQuery("#anwbmap").length!==0){r();m.init()}})};var f=function(){jQuery("ul.tabs li a span").click(function(){var u=jQuery(this).html();if(u=="Overzicht"){jQuery(".carouselContainer").show()}else{jQuery(".carouselContainer").hide()}})};var s=function(){jQuery("body").click(jQuery.delegate({".tabTrigger":function(u){d(u)},".close":function(){k()},"#verfijnResultaten h3":function(u){n(u)}}))};var l=function(){jQuery("#zoekOpdracht p input").mouseover(function(){jQuery(this).parent().addClass("hover")});jQuery("#zoekOpdracht p input").mouseout(function(){jQuery(this).parent().removeClass("hover")})};var n=function(u){if(u.target=="h3.toggle"){jQuery(u.target).parent().parent().toggleClass("toggled");jQuery(u.target+" + div").toggle()}};var q=function(){jQuery(t.ext).append('<div id="'+t.phID+'"></div>')};var a=function(){jQuery(t.mo).click(jQuery.delegate({a:function(u){var v=jQuery(u.target).parent().parent().parent().attr("class");i(u,v);return false}}))};var k=function(){jQuery(".popup").toggle();return false};var i=function(w,x){var v=jQuery(w.target).attr("href").split("#");if(jQuery("#"+v[1]).length!==0){jQuery("#"+v[1]).toggle()}else{jQuery("#popupPlace").load(v[0]+" #"+v[1])}return false};var g=function(){$("div.extras ul li").hover(function(){$(this).addClass("hover")},function(){$(this).removeClass("hover")})};var c=function(){jQuery(t.res).click(jQuery.delegate({label:function(u){jQuery("#verfijnResultaten").find("li").removeClass("active");jQuery(u.target).parent().toggleClass("active");jQuery(u.target).parent().find("div")},"span.sluit":function(u){jQuery("#verfijnResultaten").find("li").removeClass("active")}}))};var p=function(){var v={carCo:".extras .carousel",car:".extras .carousel ul",nekst:".next",prev:".prev"};var w=function(){var y=jQuery("div.carousel ul li").size();if(y>=4){jQuery.getScript("/static/js/app/ledenvoordeel/jquery.carousellite.js",function(){u();x()})}};var u=function(){jQuery(".extras .carousel").after('<p class="buttons"><button name="prev" class="prev">vorige</button><button name="next" class="next">volgende</button></p>')};var x=function(){jQuery(".extras .carousel").jCarouselLite({btnNext:".next",btnPrev:".prev",visible:4})};return{init:w}}();var h=function(){jQuery("#orderby").change(function(){jQuery("form.sorteer").trigger("submit")})};var r=function(){jQuery('.tabs li.map a, a[href="#adresgegevens"]').click(function(){createCookie("voordeelmap","true",0);setTimeout("window.initializeMaps()",50)});jQuery("body").click(jQuery.delegate({span:function(z){var A=$(z.target).parent();if(A.hasClass("newWindow")){var x=jQuery(A);var w=x.attr("href");var u=(this.className.indexOf("meetcode")!=-1);if(u){var y=GetElementValueFromClassName(this.className,"meetcodeArgument");var v=this.getAttribute("href");w=addMeetcodeToUrl(y,v)}window.open(w);return false}}}))};var e=function(){$("body").mouseover($.delegate({area:function(v){var u=$(v.target).attr("id").split("prov")[1];jQuery("#mapProvincie #li-prov"+u).addClass("hover")}}));$("body").mouseout($.delegate({area:function(v){var u=$(v.target).attr("id").split("prov")[1];jQuery("#mapProvincie #li-prov"+u).removeClass("hover")}}));jQuery("#content").click(jQuery.delegate({area:function(v){var u=$(v.target).attr("id").split("prov")[1];jQuery("#button-prov"+u).trigger("click");return false}}))};var j=function(){if(jQuery("#content.appDetails").length!==0){var u=jQuery("#content.appDetails > .sub > .sectie");jQuery("#details .sub").append(u)}};var d=function(v){var u=jQuery(v.target).attr("href");jQuery(".carouselContainer").hide();jQuery(".tabs a[href="+u+"]").trigger("click");return false};var b=function(){$("form").submit(function(){helpers.waitnotice.build("#wrapper","div","zoek resultaten.");var v=jQuery(document).height();var u=jQuery(document).width();$("#wait").height(v+"px");$("#wait").width(u+"px")})};var m=function(){var u={c:"voordeelmap"};var x=function(){w();v();y()};var w=function(){if(jQuery.cookie(u.c)=="true"){}};var v=function(){jQuery(".tabs li.map a").click(function(){jQuery.cookie(u.c,"true")})};var y=function(){jQuery(".tabs li:first a").click(function(){jQuery.cookie(u.c,"false")})};return{init:x}}();return{init:o}}();if(jQuery("body.ledenvoordeel").length!==0){ledenvoordeel.init()}var showGeenCoordinatenDiv=function(){jQuery("#geenCoordinaten").show()};
