function __190917d018b91f4c257de0511e645f6b07f7ad51(){if("undefined"==typeof jQuery){var e=document.getElementsByTagName("head")[0],t=document.createElement("script");t.type="text/javascript",t.src="https://embed.online-geplant.de/application/Vendor/jquery-2.2.4.min.js",t.async=!0,t.onload=t.onreadystatechange=function(){return t.readyState&&"complete"!==t.readyState&&"loaded"!==t.readyState?!1:(t.onload=t.onreadystatechange=null,"undefined"!=typeof $&&$.noConflict(),void jQuery(document).ready(function(){_190917d018b91f4c257de0511e645f6b07f7ad51(jQuery)}))},e.appendChild(t)}else jQuery(document).ready(function(){_190917d018b91f4c257de0511e645f6b07f7ad51(jQuery)})}function linkToUnCryptMailto(e){function t(e,t,n,i){return e+=i,i>0&&e>n?e=t+(e-n-1):0>i&&t>e&&(e=n-(t-e-1)),String.fromCharCode(e)}function n(e,n){for(var i="",a=e.length,r=0;a>r;r++){var d=e.charCodeAt(r);i+=d>=43&&58>=d?t(d,43,58,n):d>=64&&90>=d?t(d,64,90,n):d>=97&&122>=d?t(d,97,122,n):e.charAt(r)}return i}location.href=n(e,-2)}function _190917d018b91f4c257de0511e645f6b07f7ad51(e){function t(t,i){u.pHL=!0,u.gP.cP=t[u.pP]?t[u.pP]:1,u.gP.cED=t[u.eDP]?t[u.eDP]:"",t[u.pP]=u.gP.cP,t[u.dP]&&""!==t[u.dP]&&(t.event_id=t[u.dP],u.gP.cE=t[u.dP]),i||(i=rL),u.gP.eL={},e.getJSON(u.rU,t,function(a){if(a)if(u.gP.wP=a.wP,u.gP.tC=a.tC?a.tC:0,u.oEL=a.eL?a.eL:0,u.eL=t[u.eLP]?t[u.eLP]:u.oEL,a.rPL&&(u.gP.rPL=a.rPL),a.tRT&&(u.gP.tRT=a.tRT),u.dWW=1==a.dWW?!0:!1,u.gP.tC>0&&(u.gP.pFC=u.gP.cP*u.eL-u.eL+1,u.gP.pEC=u.gP.pFC+u.eL-1,u.gP.pEC>u.gP.tC&&(u.gP.pEC=u.gP.tC)),u.gP.cBTL=a.cBTL?a.cBTL:"",u.gP.aPC=u.gP.tC>0&&u.eL>0?Math.ceil(u.gP.tC/u.eL):0,a.data&&0!==a.data.length){var d={};e.each(a.data,function(e,t){d[t.event_id]={migration_image:t.migration_image,migration_download:t.migration_download}}),0===d.length?n(a,t,i):e.getJSON("https://embed.online-geplant.de/application/Migration/",{data:d},function(d){var l=d?d:[];e.each(a.data,function(n,i){i.locationcountry&&(i.locationcountry=u.countries[i.locationcountry]),i.hasImages=!1,e.each(l[i.event_id],function(e,t){i[e]=t}),(i.event_images&&i.event_images.length>0||i.hasMigrationImage)&&(i.hasImages=!0),i.hasDownloads=!1,(i.event_files&&i.event_files.length>0||i.hasMigrationDownload)&&(i.hasDownloads=!0);var a=!1;1==i.booking_online&&i.booking_email&&0==i.booking_bookedup&&(u.gP.tRT="directlink","embed"===u.gP.tRT&&u.gP.rPL?a=!0:"directlink"===u.gP.tRT&&(a=!0)),i.registrationActivated=a;var d={startdate:i.startdate,enddate:i.enddate,timestart:i.timestart,timeend:i.timeend,notice:i.date_notice};t[u.dP]&&i.event_dates&&i.event_dates[0]&&i.event_dates[0].notice&&(d.notice=i.event_dates[0].notice),i.eventDate=r(d),e.each(i,function(e,t){t&&"string"==typeof t&&-1===u.rte.indexOf(e)&&(i[e]=t.replace(/(<([^>]+)>)/gi,""))}),e.each(u.lF,function(e,t){if(i[t])if(-1===i[t].indexOf("http://")&&-1===i[t].indexOf("https://"))i[t+"_protocol"]="http://";else{var n=i[t].split("/");i[t+"_protocol"]=n[0]+"//";var n=i[t].split(n[0]+"//");i[t]=n[1]}}),u.gP.eL[n]=i}),n(a,t,i)})}else n(a,t,i);return!1})}function n(t,n,i){t.fO&&(u.gP.fO=t.fO),t.tO&&(u.gP.tO=t.tO),t.cO&&(u.gP.cO=t.cO),u.gP.fC={},u.gP.fC.fA=t.fA,u.gP.fC.fBM=t.fBM,u.gP.fC.fBC=t.fBC,u.gP.fC.fBQ=t.fBQ,t.lP&&(u.lP=t.lP),u.tAI?i(n[u.dP]&&""!==n[u.dP]?n[u.dP]:n):(t.js=t.js?t.js.trim():"",t.js&&(-1===t.js.indexOf("<script>")&&(t.js="<script>"+t.js+"</script>"),e("body").append(t.js)),t.lV&&(u.lVT=t.lV+t.js),t.dV&&(u.dVT=t.dV+t.js),e("body").append(e("<link />").attr("rel","stylesheet").attr("href","https://embed.online-geplant.de/application/StyleSheets/")),t.css&&e("body").append(e("<style />").text(t.css)),t.lv&&(u.lVT=t.lv),t.dV&&(u.dVT=t.dV),t.lV&&t.dV||"latest"===u.rT&&t.lV?i(n[u.dP]&&""!==n[u.dP]?n[u.dP]:n):c(n,i),u.tAI=!0)}function i(){p()}function a(){e("script").each(function(){e(this).attr("src")&&-1!==e(this).attr("src").indexOf(u.rURI)&&(e("<style />").text(".gp-wrapper{position: relative;} .gp-loader{color: #ddd;width:100%;height:100%;background:rgba(255, 255, 255, .6);background-image:url(//embed.online-geplant.de/application/Images/ajax-loader.svg);background-position: center center;background-repeat: no-repeat;position: absolute;z-index: 1000;text-align: center;padding-top: 50px;}").insertAfter(e(this)),e("<div />").attr("id",u.wI).addClass("gp-wrapper").append(e("<div />").attr("class","gp-loader").html("<p>Bitte warten</p>")).insertAfter(e(this)),"function"==typeof require&&"function"==typeof require.specified?require(["//embed.online-geplant.de/application/Vendor/speakingurl.js"],function(e){globalSlug=e}):e.getScript("//embed.online-geplant.de/application/Vendor/speakingurl.js",function(){globalSlug=getSlug}))})}function r(e){var t="";if(e.startdate){var n=e.startdate.split(" ");if(u.dWW){var i=new Date(n[0]);t=u.weekdays[i.getDay()]+", "+d(n[0])}else t=d(n[0]);if(e.enddate){var a=e.enddate.split(" ");if(n[0]===a[0])n[1]&&!o(n[1])?(t+=", "+l(n[1])+" Uhr",a[1]&&!o(a[1])&&(t+=" - "+l(a[1])+" Uhr")):e.timestart&&!o(e.timestart)&&(t+=", "+l(e.timestart)+" Uhr",e.timeend&&!o(e.timeend)&&(t+=" - "+l(e.timeend)+" Uhr"));else if(n[1]&&!o(n[1])){if(t+=", "+l(n[1])+" Uhr",u.dWW){var r=new Date(a[0]);t+=" - "+u.weekdays[r.getDay()]+", "+d(a[0])}else t+=" - "+d(a[0]);a[1]&&!o(a[1])?t+=", "+l(a[1])+" Uhr":e.timeend&&!o(e.timeend)&&(t+=" - "+l(e.timeend)+" Uhr")}else if(e.timestart&&!o(e.timestart)){if(t+=", "+l(e.timestart)+" Uhr",u.dWW){var r=new Date(a[0]);t+=" - "+u.weekdays[r.getDay()]+", "+d(a[0])}else t+=" - "+d(a[0]);a[1]&&!o(a[1])?t+=", "+l(a[1])+" Uhr":e.timeend&&!o(e.timeend)&&(t+=", "+l(e.timeend)+" Uhr")}else{if(u.dWW){var r=new Date(a[0]);t+=" - "+u.weekdays[r.getDay()]+", "+d(a[0])}else t+=" - "+d(a[0]);a[1]&&!o(a[1])?t+=", "+l(a[1])+" Uhr":e.timeend&&!o(e.timeend)&&(t+=", "+l(e.timeend)+" Uhr")}}else n[1]&&!o(n[1])?t+=", "+l(n[1])+" Uhr":e.timestart&&!o(e.timestart)&&(t+=", "+l(e.timestart)+" Uhr",e.timeend&&!o(e.timeend)&&(t+=" - "+l(e.timeend)+" Uhr"));e.notice&&(t+=" | "+e.notice)}return t}function d(e){if(e){var t=e.split("-");return t[2]+"."+t[1]+"."+t[0]}}function l(e){if(e){var t=e.split(":");return t[1]?t[0]+":"+t[1]:t[0]}}function o(e){return e?-1!==["00:00","00:00:00","23:59","23:59:00","23:59:59"].indexOf(e):""}function c(t,n){e.ajax({type:"GET",data:{rT:u.rT},dataType:"json",url:"https://embed.online-geplant.de/application/Templates/"}).done(function(i){if(i){if(!u.lVT&&i.lV&&(u.lVT=i.lV),!u.dVT&&i.dV&&(u.dVT=i.dV),i.dV102&&(u.dVT102=i.dV102),i.cT&&(u.rCT=i.cT),i.css&&e("body").append(e("<style />").text(i.css)),"list"===u.rT){if(i.lV&&(i.dV||i.dV102))return void(t[u.dP]?n(t[u.dP]):n())}else{if("latest"===u.rT)return void(i.lV&&n());if("calendar"===u.rT||"eventCalendar"===u.rT)return void n()}window.console&&console.log("ERROR: There couldn't be found any template at all")}})}function s(){globalHBS.registerHelper("extendedIf",function(e,t,n,i){switch(t){case"==":return e==n?i.fn(this):i.inverse(this);case"===":return e===n?i.fn(this):i.inverse(this);case"<":return n>e?i.fn(this):i.inverse(this);case"<=":return n>=e?i.fn(this):i.inverse(this);case">":return e>n?i.fn(this):i.inverse(this);case">=":return e>=n?i.fn(this):i.inverse(this);case"&&":return e&&n?i.fn(this):i.inverse(this);case"||":return e||n?i.fn(this):i.inverse(this);default:return i.inverse(this)}}),globalHBS.registerHelper("pages",function(){var e="";if(u.gP.aPC>1)for(var t=1;t<=u.gP.aPC;++t)e+=t==u.gP.cP?"<strong> "+t+" </strong>":'<a href="javascript:void(0);" data-'+u.pP+'="'+t+'"> '+t+" </a>",t<u.gP.aPC&&(e+="  | ");return e}),globalHBS.registerHelper("eventDates",function(t){var n="";return t&&t.event_dates&&(1===t.event_dates.length?(n+="<dt><b>Datum:</b></dt>",n+="<dd><b>"+r(t.event_dates[0])+"</b></dd>"):(n+="<dt><b>Termine:</b></dt>",n+="<dd>",e.each(t.event_dates,function(e,t){var i=r(t);n+=u.gP.cED&&u.gP.cED===t.eventdate_id?"<b>"+i+"</b><br>":i+"<br>"}),n+="</dd>")),n}),globalHBS.registerHelper("fileUrl",function(){return"//backend.online-geplant.de/public/file/embed/190917d018b91f4c257de0511e645f6b07f7ad51/5c3ef7d1cf940/"}),globalHBS.registerHelper("detailUrl",function(e){if(u.lP){var t=u.lP;return-1!==u.lP.indexOf("id=")?(t+="&title="+globalSlug(e.title)+"&detail="+e.event_id,e.eventdate_id?t+"&eventdate="+e.eventdate_id:t):u.aCR?(t+="?title="+globalSlug(e.title)+"&detail="+e.event_id,e.eventdate_id?t+"&eventdate="+e.eventdate_id:t):e.eventdate_id?t+"?detail/"+e.event_id+"/eventdate/"+e.eventdate_id:t+"?detail/"+e.event_id}return""}),globalHBS.registerHelper("filter",function(){var t="";if(1==u.gP.fC.fA&&(u.gP.fC.fBM||u.gP.fC.fBC||u.gP.fC.fBQ||0==u.gP.fC.fA),1==u.gP.fC.fA){var t='<div class="gp-filter">';1==u.gP.fC.fBM&&(t+='<select id="startdate" class="gp-date"><option value="">Von</option>',e.each(u.gP.fO,function(e,n){t+='<option value="'+n.value+'" '+n.selected+">"+n.label+"</option>"}),t+="</select>",t+='<select id="enddate" class="gp-date"><option value="">Bis</option>',e.each(u.gP.tO,function(e,n){t+='<option value="'+n.value+'" '+n.selected+">"+n.label+"</option>"}),t+="</select>"),1==u.gP.fC.fBC&&u.gP.cO&&u.gP.cO.length>1&&(t+='<select id="categories" class="gp-categories"><option value="">Kategorien</option>',e.each(u.gP.cO,function(e,n){t+='<option value="'+n.value+'" '+n.selected+">"+n.label+"</option>"}),t+="</select>"),1==u.gP.fC.fBQ&&(currentQueryValue=u.gP.cQV?u.gP.cQV:u.dQV,t+='<input type="text" class="gp-input" value="'+currentQueryValue+'">',t+='<button class="gp-submit"><span class="glyphicon glyphicon-search"></span></button>'),1==u.gP.fC.fBR&&u.gP.rO&&u.gP.rO.length>1&&(t+="<p>Bitte wählen Sie die zu buchende Ressource aus:</p>",t+='<select id="resource" class="gp-resources"><option value="">Ressourcen</option>',e.each(u.gP.rO,function(e,n){t+='<option value="'+n.resource_id+'"',n.resource_id===u.gP.cR&&(t+=' selected="selected"'),t+=">"+n.name+"</option>"}),t+="</select>"),t+="</div>"}return t}),globalHBS.registerHelper("ifNotFirst",function(e,t){return e>0?t.fn(this):t.inverse(this)})}function p(){a(),t({},f)}function f(){var t={};t[u.cP.e]=u.gP.eL,t[u.cP.lP]=u.lP,t.notEmpty=e.isEmptyObject(u.gP.eL)?!1:!0,t.embedUrl="https://embed.online-geplant.de","object"==typeof Handlebars?(s(),g(t)):"function"==typeof require&&"function"==typeof require.specified?require([u.hBS],function(e){globalHBS=e,s(),g(t)}):e.getScript(u.hBS,function(){globalHBS=Handlebars,s(),g(t)})}function g(t){var n=globalHBS.compile(u.lVT),i=n(t);e("#"+u.wI).empty(),e("#"+u.wI).append(i)}var u={aP:{page:!0,detail:!0,startdate:!0,enddate:!0,categories:!0,query:!0,resource:!0,eventdate:!0,eventlimit:!0,title:!0},bU:"",cP:{tC:"totalCount",fC:"fromCount",eC:"endCount",e:"events",cP:"currentPage",aPC:"allPagesCount",lP:"listPage",wP:"withPagination",fO:"fromOptions",tO:"toOptions",cO:"categoryOptions",gFO:"globalFilterOptions",cQV:"currentQueryValue",fA:"filteringActivated",fBM:"filteringByMonths",fBC:"filteringByCategory",fBQ:"filteringByQuery",fBR:"filteringByResource",cBT:"registrationTerms",cBTL:"registrationTermsLink",cEL:"currentEventLimit"},eL:0,oEL:0,gP:{cED:"",cE:"",cP:1,cR:"",eL:{},rB:{},fO:{},tO:{},cO:{},rB:{},rO:{},tC:0,wP:!1,aPC:0,fDO:{},fC:{},rNW:0,rIA:0,rPL:"",tRT:"",cBT:"",cBTL:""},hR:"www.kirchenbezirk-tuebingen.de",lF:["link","facilitywww","locationwww"],lP:"",wI:"gp-wrapper-190917d018b91f4c257de0511e645f6b07f7ad51",oC:"gp-overlay",dP:"detail",tP:"title",eLP:"eventlimit",eDP:"eventdate",pP:"page",rP:"resource",qP:"query",rC:{},rT:"latest",tD:"embed.online-geplant.de",dQV:"Suche",dVT:"",lVT:"",rCT:"",pHL:!1,tAI:!1,hBS:"https://embed.online-geplant.de/application/Vendor/handlebars.min-latest.js",fCS:"https://embed.online-geplant.de/application/Vendor/fullcalendar/fullcalendar.min.js",mJS:"https://embed.online-geplant.de/application/Vendor/moment/moment-with-locales.js",fCC:"https://embed.online-geplant.de/application/Vendor/fullcalendar/fullcalendar.min.css",fCL:"https://embed.online-geplant.de/application/Vendor/fullcalendar/locale/de.js",qTJ:"https://embed.online-geplant.de/application/Vendor/jquery.qtip.custom/jquery.qtip.min.js",qTC:"https://embed.online-geplant.de/application/Vendor/jquery.qtip.custom/jquery.qtip.min.css",mBJS:"https://embed.online-geplant.de/application/Vendor/modal/function.js",mBCS:"https://embed.online-geplant.de/application/Vendor/modal/styles.css",bRL:"https://embed.online-geplant.de/form/bookingRequest/",rte:["teaser","description","audience","course_notice","referent","pricenotice","requirements","participantsnotice","instructors"],rU:"https://backend.online-geplant.de/public/event/190917d018b91f4c257de0511e645f6b07f7ad51/5c3ef7d1cf940",cRU:"https://backend.online-geplant.de/public/resourcecalendar/190917d018b91f4c257de0511e645f6b07f7ad51/5c3ef7d1cf940",bAU:"https://backend.online-geplant.de/public/bookresource/190917d018b91f4c257de0511e645f6b07f7ad51/5c3ef7d1cf940/",rURI:"/latest/?customerToken=190917d018b91f4c257de0511e645f6b07f7ad51&customerKey=5c3ef7d1cf940",debug:!1,countries:{de:"Deutschland",at:"Österreich",sz:"Schweiz"},tPI:"",aCR:1,lVTT:document.title,weekdays:["So","Mo","Di","Mi","Do","Fr","Sa"],dWW:!1};i(e)}var globalHBS,globalLightbox,globalSlug,head=document.getElementsByTagName("head")[0],script=document.createElement("script");script.type="text/javascript",script.async=!0,script.innerHTML="__190917d018b91f4c257de0511e645f6b07f7ad51();",head.appendChild(script);