
/*!
 * Lightbox v2.9.0
 * by Lokesh Dhakar
 *
 * More info:
 * http://lokeshdhakar.com/projects/lightbox2/
 *
 * Copyright 2007, 2015 Lokesh Dhakar
 * Released under the MIT license
 * https://github.com/lokesh/lightbox2/blob/master/LICENSE
 */
!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],b):"object"==typeof exports?module.exports=b(require("jquery")):a.lightbox=b(a.jQuery)}(this,function(a){function b(b){this.album=[],this.currentImageIndex=void 0,this.init(),this.options=a.extend({},this.constructor.defaults),this.option(b)}return b.defaults={albumLabel:"Image %1 of %2",alwaysShowNavOnTouchDevices:!1,fadeDuration:600,fitImagesInViewport:!0,imageFadeDuration:600,positionFromTop:50,resizeDuration:700,showImageNumberLabel:!0,wrapAround:!1,disableScrolling:!1,sanitizeTitle:!1},b.prototype.option=function(b){a.extend(this.options,b)},b.prototype.imageCountLabel=function(a,b){return this.options.albumLabel.replace(/%1/g,a).replace(/%2/g,b)},b.prototype.init=function(){var b=this;a(document).ready(function(){b.enable(),b.build()})},b.prototype.enable=function(){var b=this;a("body").on("click","a[rel^=lightbox], area[rel^=lightbox], a[data-lightbox], area[data-lightbox]",function(c){return b.start(a(c.currentTarget)),!1})},b.prototype.build=function(){var b=this;a('<div id="lightboxOverlay" class="lightboxOverlay"></div><div id="lightbox" class="lightbox"><div class="lb-outerContainer"><div class="lb-container"><img class="lb-image" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" /><div class="lb-nav"><a class="lb-prev" href="" ></a><a class="lb-next" href="" ></a></div><div class="lb-loader"><a class="lb-cancel"></a></div></div></div><div class="lb-dataContainer"><div class="lb-data"><div class="lb-details"><span class="lb-caption"></span><span class="lb-number"></span></div><div class="lb-closeContainer"><a class="lb-close"></a></div></div></div></div>').appendTo(a("body")),this.$lightbox=a("#lightbox"),this.$overlay=a("#lightboxOverlay"),this.$outerContainer=this.$lightbox.find(".lb-outerContainer"),this.$container=this.$lightbox.find(".lb-container"),this.$image=this.$lightbox.find(".lb-image"),this.$nav=this.$lightbox.find(".lb-nav"),this.containerPadding={top:parseInt(this.$container.css("padding-top"),10),right:parseInt(this.$container.css("padding-right"),10),bottom:parseInt(this.$container.css("padding-bottom"),10),left:parseInt(this.$container.css("padding-left"),10)},this.imageBorderWidth={top:parseInt(this.$image.css("border-top-width"),10),right:parseInt(this.$image.css("border-right-width"),10),bottom:parseInt(this.$image.css("border-bottom-width"),10),left:parseInt(this.$image.css("border-left-width"),10)},this.$overlay.hide().on("click",function(){return b.end(),!1}),this.$lightbox.hide().on("click",function(c){return"lightbox"===a(c.target).attr("id")&&b.end(),!1}),this.$outerContainer.on("click",function(c){return"lightbox"===a(c.target).attr("id")&&b.end(),!1}),this.$lightbox.find(".lb-prev").on("click",function(){return 0===b.currentImageIndex?b.changeImage(b.album.length-1):b.changeImage(b.currentImageIndex-1),!1}),this.$lightbox.find(".lb-next").on("click",function(){return b.currentImageIndex===b.album.length-1?b.changeImage(0):b.changeImage(b.currentImageIndex+1),!1}),this.$nav.on("mousedown",function(a){3===a.which&&(b.$nav.css("pointer-events","none"),b.$lightbox.one("contextmenu",function(){setTimeout(function(){this.$nav.css("pointer-events","auto")}.bind(b),0)}))}),this.$lightbox.find(".lb-loader, .lb-close").on("click",function(){return b.end(),!1})},b.prototype.start=function(b){function c(a){d.album.push({link:a.attr("href"),title:a.attr("data-title")||a.attr("title")})}var d=this,e=a(window);e.on("resize",a.proxy(this.sizeOverlay,this)),a("select, object, embed").css({visibility:"hidden"}),this.sizeOverlay(),this.album=[];var f,g=0,h=b.attr("data-lightbox");if(h){f=a(b.prop("tagName")+'[data-lightbox="'+h+'"]');for(var i=0;i<f.length;i=++i)c(a(f[i])),f[i]===b[0]&&(g=i)}else if("lightbox"===b.attr("rel"))c(b);else{f=a(b.prop("tagName")+'[rel="'+b.attr("rel")+'"]');for(var j=0;j<f.length;j=++j)c(a(f[j])),f[j]===b[0]&&(g=j)}var k=e.scrollTop()+this.options.positionFromTop,l=e.scrollLeft();this.$lightbox.css({top:k+"px",left:l+"px"}).fadeIn(this.options.fadeDuration),this.options.disableScrolling&&a("body").addClass("lb-disable-scrolling"),this.changeImage(g)},b.prototype.changeImage=function(b){var c=this;this.disableKeyboardNav();var d=this.$lightbox.find(".lb-image");this.$overlay.fadeIn(this.options.fadeDuration),a(".lb-loader").fadeIn("slow"),this.$lightbox.find(".lb-image, .lb-nav, .lb-prev, .lb-next, .lb-dataContainer, .lb-numbers, .lb-caption").hide(),this.$outerContainer.addClass("animating");var e=new Image;e.onload=function(){var f,g,h,i,j,k,l;d.attr("src",c.album[b].link),f=a(e),d.width(e.width),d.height(e.height),c.options.fitImagesInViewport&&(l=a(window).width(),k=a(window).height(),j=l-c.containerPadding.left-c.containerPadding.right-c.imageBorderWidth.left-c.imageBorderWidth.right-20,i=k-c.containerPadding.top-c.containerPadding.bottom-c.imageBorderWidth.top-c.imageBorderWidth.bottom-120,c.options.maxWidth&&c.options.maxWidth<j&&(j=c.options.maxWidth),c.options.maxHeight&&c.options.maxHeight<j&&(i=c.options.maxHeight),(e.width>j||e.height>i)&&(e.width/j>e.height/i?(h=j,g=parseInt(e.height/(e.width/h),10),d.width(h),d.height(g)):(g=i,h=parseInt(e.width/(e.height/g),10),d.width(h),d.height(g)))),c.sizeContainer(d.width(),d.height())},e.src=this.album[b].link,this.currentImageIndex=b},b.prototype.sizeOverlay=function(){this.$overlay.width(a(document).width()).height(a(document).height())},b.prototype.sizeContainer=function(a,b){function c(){d.$lightbox.find(".lb-dataContainer").width(g),d.$lightbox.find(".lb-prevLink").height(h),d.$lightbox.find(".lb-nextLink").height(h),d.showImage()}var d=this,e=this.$outerContainer.outerWidth(),f=this.$outerContainer.outerHeight(),g=a+this.containerPadding.left+this.containerPadding.right+this.imageBorderWidth.left+this.imageBorderWidth.right,h=b+this.containerPadding.top+this.containerPadding.bottom+this.imageBorderWidth.top+this.imageBorderWidth.bottom;e!==g||f!==h?this.$outerContainer.animate({width:g,height:h},this.options.resizeDuration,"swing",function(){c()}):c()},b.prototype.showImage=function(){this.$lightbox.find(".lb-loader").stop(!0).hide(),this.$lightbox.find(".lb-image").fadeIn(this.options.imageFadeDuration),this.updateNav(),this.updateDetails(),this.preloadNeighboringImages(),this.enableKeyboardNav()},b.prototype.updateNav=function(){var a=!1;try{document.createEvent("TouchEvent"),a=this.options.alwaysShowNavOnTouchDevices?!0:!1}catch(b){}this.$lightbox.find(".lb-nav").show(),this.album.length>1&&(this.options.wrapAround?(a&&this.$lightbox.find(".lb-prev, .lb-next").css("opacity","1"),this.$lightbox.find(".lb-prev, .lb-next").show()):(this.currentImageIndex>0&&(this.$lightbox.find(".lb-prev").show(),a&&this.$lightbox.find(".lb-prev").css("opacity","1")),this.currentImageIndex<this.album.length-1&&(this.$lightbox.find(".lb-next").show(),a&&this.$lightbox.find(".lb-next").css("opacity","1"))))},b.prototype.updateDetails=function(){var b=this;if("undefined"!=typeof this.album[this.currentImageIndex].title&&""!==this.album[this.currentImageIndex].title){var c=this.$lightbox.find(".lb-caption");this.options.sanitizeTitle?c.text(this.album[this.currentImageIndex].title):c.html(this.album[this.currentImageIndex].title),c.fadeIn("fast").find("a").on("click",function(b){void 0!==a(this).attr("target")?window.open(a(this).attr("href"),a(this).attr("target")):location.href=a(this).attr("href")})}if(this.album.length>1&&this.options.showImageNumberLabel){var d=this.imageCountLabel(this.currentImageIndex+1,this.album.length);this.$lightbox.find(".lb-number").text(d).fadeIn("fast")}else this.$lightbox.find(".lb-number").hide();this.$outerContainer.removeClass("animating"),this.$lightbox.find(".lb-dataContainer").fadeIn(this.options.resizeDuration,function(){return b.sizeOverlay()})},b.prototype.preloadNeighboringImages=function(){if(this.album.length>this.currentImageIndex+1){var a=new Image;a.src=this.album[this.currentImageIndex+1].link}if(this.currentImageIndex>0){var b=new Image;b.src=this.album[this.currentImageIndex-1].link}},b.prototype.enableKeyboardNav=function(){a(document).on("keyup.keyboard",a.proxy(this.keyboardAction,this))},b.prototype.disableKeyboardNav=function(){a(document).off(".keyboard")},b.prototype.keyboardAction=function(a){var b=27,c=37,d=39,e=a.keyCode,f=String.fromCharCode(e).toLowerCase();e===b||f.match(/x|o|c/)?this.end():"p"===f||e===c?0!==this.currentImageIndex?this.changeImage(this.currentImageIndex-1):this.options.wrapAround&&this.album.length>1&&this.changeImage(this.album.length-1):("n"===f||e===d)&&(this.currentImageIndex!==this.album.length-1?this.changeImage(this.currentImageIndex+1):this.options.wrapAround&&this.album.length>1&&this.changeImage(0))},b.prototype.end=function(){this.disableKeyboardNav(),a(window).off("resize",this.sizeOverlay),this.$lightbox.fadeOut(this.options.fadeDuration),this.$overlay.fadeOut(this.options.fadeDuration),a("select, object, embed").css({visibility:"visible"}),this.options.disableScrolling&&a("body").removeClass("lb-disable-scrolling")},new b});
//# sourceMappingURL=lightbox.min.map
/*! viewportSize | Author: Tyson Matanich, 2013 | License: MIT */
(function(n){n.viewportSize={},n.viewportSize.getHeight=function(){return t("Height")},n.viewportSize.getWidth=function(){return t("Width")};var t=function(t){var f,o=t.toLowerCase(),e=n.document,i=e.documentElement,r,u;return n["inner"+t]===undefined?f=i["client"+t]:n["inner"+t]!=i["client"+t]?(r=e.createElement("body"),r.id="vpw-test-b",r.style.cssText="overflow:scroll",u=e.createElement("div"),u.id="vpw-test-d",u.style.cssText="position:absolute;top:-1000px",u.innerHTML="<style>@media("+o+":"+i["client"+t]+"px){body#vpw-test-b div#vpw-test-d{"+o+":7px!important}}<\/style>",r.appendChild(u),i.insertBefore(r,e.head),f=u["offset"+t]==7?i["client"+t]:n["inner"+t],i.removeChild(r)):f=n["inner"+t],f}})(this);
/*!
 * Bootstrap-submenu v2.0.4 (https://vsn4ik.github.io/bootstrap-submenu/)
 * Copyright 2014-2016 Vasily A. (https://github.com/vsn4ik)
 * Licensed under the MIT license
 */

"use strict";!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){function b(b){this.$element=a(b),this.$menu=this.$element.closest(".dropdown-menu"),this.$main=this.$menu.parent(),this.$items=this.$menu.children(".dropdown-submenu"),this.init()}function c(b){this.$element=a(b),this.$main=this.$element.parent(),this.$menu=this.$main.children(".dropdown-menu"),this.$subs=this.$main.siblings(".dropdown-submenu"),this.$items=this.$menu.children(".dropdown-submenu"),this.init()}function d(b){this.$element=a(b),this.$main=this.$element.parent(),this.$menu=this.$main.children(".dropdown-menu"),this.$items=this.$menu.children(".dropdown-submenu"),this.init()}b.prototype={init:function(){this.$element.on("keydown",a.proxy(this,"keydown"))},close:function(){this.$main.removeClass("open"),this.$items.trigger("hide.bs.submenu")},keydown:function(a){27==a.keyCode&&(a.stopPropagation(),this.close(),this.$main.children("a, button").trigger("focus"))}},a.extend(c.prototype,b.prototype,{init:function(){this.$element.on({click:a.proxy(this,"click"),keydown:a.proxy(this,"keydown")}),this.$main.on("hide.bs.submenu",a.proxy(this,"hide"))},click:function(a){a.preventDefault(),a.stopPropagation(),this.toggle()},hide:function(a){a.stopPropagation(),this.close()},open:function(){this.$main.addClass("open"),this.$subs.trigger("hide.bs.submenu")},toggle:function(){this.$main.hasClass("open")?this.close():this.open()},keydown:function(b){32==b.keyCode&&b.preventDefault(),-1!=a.inArray(b.keyCode,[13,32])&&this.toggle()}}),d.prototype={init:function(){this.$menu.off("keydown.bs.dropdown.data-api"),this.$menu.on("keydown",a.proxy(this,"itemKeydown")),this.$menu.find("li > a").each(function(){new b(this)}),this.$menu.find(".dropdown-submenu > a").each(function(){new c(this)}),this.$main.on("hidden.bs.dropdown",a.proxy(this,"hidden"))},hidden:function(){this.$items.trigger("hide.bs.submenu")},itemKeydown:function(b){if(-1!=a.inArray(b.keyCode,[38,40])){b.preventDefault(),b.stopPropagation();var c=this.$menu.find("li:not(.disabled):visible > a"),d=c.index(b.target);if(38==b.keyCode&&0!==d)d--;else{if(40!=b.keyCode||d===c.length-1)return;d++}c.eq(d).trigger("focus")}}};var e=a.fn.submenupicker;return a.fn.submenupicker=function(b){var c=this instanceof a?this:a(b);return c.each(function(){var b=a.data(this,"bs.submenu");b||(b=new d(this),a.data(this,"bs.submenu",b))})},a.fn.submenupicker.Constructor=d,a.fn.submenupicker.noConflict=function(){return a.fn.submenupicker=e,this},a.fn.submenupicker});
/**
 * https://github.com/electerious/basicLightbox/
 * Version 4.0.0
 */
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).basicLightbox=e()}}(function(){return function e(t,o,n){function r(f,a){if(!o[f]){if(!t[f]){var c="function"==typeof require&&require;if(!a&&c)return c(f,!0);if(i)return i(f,!0);var l=new Error("Cannot find module '"+f+"'");throw l.code="MODULE_NOT_FOUND",l}var u=o[f]={exports:{}};t[f][0].call(u.exports,function(e){var o=t[f][1][e];return r(o||e)},u,u.exports,e,t,o,n)}return o[f].exports}for(var i="function"==typeof require&&require,f=0;f<n.length;f++)r(n[f]);return r}({1:[function(e,t,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var n=function(e,t){var o=e.children;return 1===o.length&&o[0].tagName===t},r=o.visible=function(e){return null!=(e=e||document.querySelector(".basicLightbox"))&&!0===e.ownerDocument.body.contains(e)};o.create=function(e,t){var o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments[1],o=document.createElement("div");o.classList.add("basicLightbox"),null!=t.className&&o.classList.add(t.className),o.innerHTML="\n\t\t"+t.beforePlaceholder+'\n\t\t<div class="basicLightbox__placeholder" role="dialog">\n\t\t\t'+e+"\n\t\t</div>\n\t\t"+t.afterPlaceholder+"\n\t";var r=o.querySelector(".basicLightbox__placeholder"),i=n(r,"IMG"),f=n(r,"VIDEO"),a=n(r,"IFRAME");return!0===i&&o.classList.add("basicLightbox--img"),!0===f&&o.classList.add("basicLightbox--video"),!0===a&&o.classList.add("basicLightbox--iframe"),o}(e,t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return!1!==(e=Object.assign({},e)).closable&&(e.closable=!0),"function"==typeof e.className&&(e.className=e.className()),"string"!=typeof e.className&&(e.className=null),"function"!=typeof e.beforeShow&&(e.beforeShow=function(){}),"function"!=typeof e.afterShow&&(e.afterShow=function(){}),"function"!=typeof e.beforeClose&&(e.beforeClose=function(){}),"function"!=typeof e.afterClose&&(e.afterClose=function(){}),"function"==typeof e.beforePlaceholder&&(e.beforePlaceholder=e.beforePlaceholder()),"string"!=typeof e.beforePlaceholder&&(e.beforePlaceholder=""),"function"==typeof e.afterPlaceholder&&(e.afterPlaceholder=e.afterPlaceholder()),"string"!=typeof e.afterPlaceholder&&(e.afterPlaceholder=""),e}(t)),i=function(e){return!1!==t.beforeClose(f)&&function(e,t){return e.classList.remove("basicLightbox--visible"),setTimeout(function(){requestAnimationFrame(function(){return!1===r(e)?t():(e.parentElement.removeChild(e),t())})},410),!0}(o,function(){if(t.afterClose(f),"function"==typeof e)return e(f)})};!0===t.closable&&(o.onclick=function(e){e.target===this&&(i(),function(e){"function"==typeof e.stopPropagation&&e.stopPropagation(),"function"==typeof e.preventDefault&&e.preventDefault()}(e))});var f={element:function(){return o},visible:function(){return r(o)},show:function(e){return!1!==t.beforeShow(f)&&function(e,t){return document.body.appendChild(e),setTimeout(function(){requestAnimationFrame(function(){return e.classList.add("basicLightbox--visible"),t()})},10),!0}(o,function(){if(t.afterShow(f),"function"==typeof e)return e(f)})},close:i};return f}},{}]},{},[1])(1)});

function LuxMain(){"use strict";var t="luxId",e="";this.lightboxInstance=null;var n=this;this.initialize=function(){i(),T()&&(o(),L(),a(),r(),l(),c()),u(),g()},this.closeLightbox=function(){null!==n.lightboxInstance&&n.lightboxInstance.close()};var i=function(){for(var t=document.querySelectorAll('[data-lux-trackingoptout="checkbox"]'),e=0;e<t.length;e++){var n=t[e];n.checked=U()===!1,n.addEventListener("change",function(){U()?F():j()})}},o=function(){e=J()},a=function(){A()&&q({"tx_lux_fe[dispatchAction]":"pageRequest","tx_lux_fe[idCookie]":J(),"tx_lux_fe[arguments][pageUid]":y(),"tx_lux_fe[arguments][referrer]":_(),"tx_lux_fe[arguments][currentUrl]":encodeURIComponent(window.location.href)},S(),"generalWorkflowActionCallback",null)};this.generalWorkflowActionCallback=function(t){for(var e=0;e<t.length;e++)if(t[e].action)try{n[t[e].action+"WorkflowAction"](t[e])}catch(i){console.log(i)}},this.lightboxContentWorkflowAction=function(t){var e=t.configuration.contentElement,i=document.querySelector("[data-lux-contenturi]").getAttribute("data-lux-contenturi")||"/index.php?id=1&type=1520192598",o='<div><iframe src="'+i+"&luxContent="+parseInt(e)+'" width="800" height="600"></iframe></div>';n.lightboxInstance=basicLightbox.create(o),setTimeout(function(){n.lightboxInstance.show()},parseInt(t.configuration.delay))},this.redirectWorkflowAction=function(t){t.configuration.uri&&(window.location=t.configuration.uri)},this.ajaxContentWorkflowAction=function(t){var e=document.querySelector("[data-lux-contenturiwithoutheader]").getAttribute("data-lux-contenturiwithoutheader")||"/index.php?id=1&type=1560175278",n=new XMLHttpRequest;n.onreadystatechange=function(){if(4===this.readyState&&200===this.status){var e=document.querySelector(t.configuration.domselection);null!==e?e.innerHTML=this.responseText:console.log("Element "+t.configuration.domselection+" could not be found in HTML")}},n.open("POST",I(e,{luxContent:parseInt(t.configuration.contentElement)}),!0),n.send()},this.showorhideWorkflowAction=function(t){var e=document.querySelector(t.configuration.domselection);null!==e?"hide"===t.configuration.showorhide?e.style.display="none":"show"===t.configuration.showorhide&&(e.style.display="block"):console.log("Element "+t.configuration.domselection+" could not be found in HTML")},this.disableEmail4LinkWorkflowAction=function(t){P("luxDisableEmail4Link",!0)};var r=function(){var t="form:not([data-lux-form-identification]) input:not([data-lux-disable]), ";t+="form:not([data-lux-form-identification]) textarea:not([data-lux-disable]), ",t+="form:not([data-lux-form-identification]) select:not([data-lux-disable]), ",t+="form:not([data-lux-form-identification]) radio:not([data-lux-disable]), ",t+="form:not([data-lux-form-identification]) check:not([data-lux-disable])";for(var e=document.querySelectorAll(t),n=0;n<e.length;n++){var i=e[n];"password"!==i.type&&h(i)&&i.addEventListener("change",function(){d(this)})}},l=function(){for(var t=document.querySelectorAll("form[data-lux-form-identification]"),e=0;e<t.length;e++)t[e].addEventListener("submit",function(t){"preventDefault"===t.target.getAttribute("data-lux-form-identification")&&t.preventDefault(),x(t.target)})},u=function(){for(var t=document.querySelectorAll("[data-lux-email4link-title]"),e=0;e<t.length;e++){var n=t[e];n.addEventListener("click",function(t){f(this,t)})}},c=function(){if(w())for(var t,e=document.querySelectorAll(p()),n=0;n<e.length;n++)e[n].hasAttribute("data-lux-email4link-title")||(t=e[n].getAttribute("href"),e[n].addEventListener("click",function(){q({"tx_lux_fe[dispatchAction]":"downloadRequest","tx_lux_fe[idCookie]":J(),"tx_lux_fe[arguments][href]":this.getAttribute("href")},S(),null,null)}))},f=function(t,e){if("true"!==X("luxDisableEmail4Link")){e.preventDefault();var i=t.getAttribute("data-lux-email4link-title")||"",o=t.getAttribute("data-lux-email4link-text")||"",a=t.getAttribute("href"),r=document.querySelectorAll('[data-lux-container="email4link"]');if(r.length>0){var l=r[0].cloneNode(!0),u=l.innerHTML;u=u.replace("###TITLE###",i),u=u.replace("###TEXT###",o),u=u.replace("###HREF###",D(a)),n.lightboxInstance=basicLightbox.create(u),n.lightboxInstance.element().querySelector('[data-lux-email4link="form"]').addEventListener("submit",function(e){s(this,e,t)}),n.lightboxInstance.show()}}},s=function(t,e,i){e.preventDefault();var o=i.getAttribute("href"),a=i.getAttribute("data-lux-email4link-sendemail")||"false",r=n.lightboxInstance.element().querySelector('[data-lux-email4link="email"]').value;W(r)?(C(),q({"tx_lux_fe[dispatchAction]":"email4LinkRequest","tx_lux_fe[idCookie]":J(),"tx_lux_fe[arguments][email]":r,"tx_lux_fe[arguments][sendEmail]":"true"===a,"tx_lux_fe[arguments][href]":o},S(),"email4LinkLightboxSubmitCallback",{sendEmail:"true"===a,href:o})):N(n.lightboxInstance.element().querySelector('[data-lux-email4link="errorEmailAddress"]'))};this.email4LinkLightboxSubmitCallback=function(t,e){O(),t.error===!0?N(n.lightboxInstance.element().querySelector('[data-lux-email4link="errorEmailAddress"]')):e.sendEmail===!0?(M(n.lightboxInstance.element().querySelector('[data-lux-email4link="form"]')),N(n.lightboxInstance.element().querySelector('[data-lux-email4link="successMessageSendEmail"]')),setTimeout(function(){n.lightboxInstance.close()},2e3)):setTimeout(function(){n.lightboxInstance.close(),window.location=e.href},500)};var d=function(t){var e=m(t,b()),n=t.value;q({"tx_lux_fe[dispatchAction]":"fieldListeningRequest","tx_lux_fe[idCookie]":J(),"tx_lux_fe[arguments][key]":e,"tx_lux_fe[arguments][value]":n},S(),"generalWorkflowActionCallback",null)},x=function(t){for(var e={},n=0;n<t.elements.length;n++){var i=t.elements[n],o=m(i,k());""!==o&&(e[o]=i.value)}q({"tx_lux_fe[dispatchAction]":"formListeningRequest","tx_lux_fe[idCookie]":J(),"tx_lux_fe[arguments][values]":JSON.stringify(e)},S(),"generalWorkflowActionCallback",null)},g=function(){if("1"===navigator.doNotTrack){for(var t=document.querySelectorAll('[data-lux-container-optout="text"]'),e=0;e<t.length;e++)M(t[e]);for(var n=document.querySelectorAll('[data-lux-container-optout="textDoNotTrack"]'),i=0;i<n.length;i++)N(n[i])}},h=function(t){return""!==m(t,b())},m=function(t,e){var n="",i=t.name;for(var o in e)if(e.hasOwnProperty(o))for(var a=0;a<e[o].length;a++)v(i,e[o][a])&&(n=o);return n},p=function(){var t=E().getAttribute("data-lux-downloadtracking-extensions").toLowerCase().split(",");return'a[href$="'+t.join('"],a[href$="')+'"]'},v=function(t,e){if(e.indexOf("*")!==-1){e=e.replace("*","");var n=t.indexOf(e)!==-1}else n=t===e;return n},b=function(){var t={};try{t=JSON.parse(window.luxFieldMappingConfiguration)}catch(e){console.log("Lux: No fieldmapping configuration given.")}return t},k=function(){var t={};try{t=JSON.parse(window.luxFormFieldMappingConfiguration)}catch(e){console.log("Lux: No formfieldmapping configuration given.")}return t},A=function(){var t=!1,e=E();if(null!==e&&e.hasAttribute("data-lux-pagetracking")){var n=e.getAttribute("data-lux-pagetracking");t="1"===n}return t},w=function(){var t=!1,e=E();if(null!==e&&e.hasAttribute("data-lux-downloadtracking")){var n=e.getAttribute("data-lux-downloadtracking");t="1"===n}return t},y=function(){var t=0,e=E();if(null!==e&&e.hasAttribute("data-lux-pageuid")){var n=e.getAttribute("data-lux-pageuid");t=parseInt(n)}return t},_=function(){return encodeURIComponent(document.referrer)},L=function(){""===e&&(e=R(32),P(t,e))},S=function(){var t=E();return null!==t?t.getAttribute("data-lux-requesturi"):""},q=function(t,e,i,o){if(o=o||{},""!==e){var a=new XMLHttpRequest;a.onreadystatechange=function(){4===this.readyState&&200===this.status&&null!==i&&n[i](JSON.parse(this.responseText),o)},a.open("POST",I(e,t),!0),a.send()}else console.log("No ajax URI given!")},I=function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t+=t.indexOf("?")!==-1?"&":"?",t+=n+"="+e[n]);return t},T=function(){return U()===!1&&"1"!==navigator.doNotTrack&&null!==E()&&"1"===E().getAttribute("data-lux-enable")},E=function(){return document.getElementById("lux_container")},C=function(){document.body.className+=" lux_waiting"},O=function(){document.body.classList.remove("lux_waiting")},M=function(t){t.style.display="none"},N=function(t){t.style.display="block"},R=function(t){for(var e="",n="abcdefghijklmnopqrstuvwxyz0123456789",i=0;i<t;i++)e+=n.charAt(Math.floor(Math.random()*n.length));return e},W=function(t){var e=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;return e.test(t)},D=function(t){var e=t.replace(/^.*[\\\/]/,""),n=["pdf","txt","doc","docx","xls","xlsx","ppt","pptx","jpg","png","zip"];return H(z(e).toLowerCase(),n)&&(t=e),t},H=function(t,e){for(var n=e.length,i=0;i<n;i++)if(e[i]===t)return!0;return!1},z=function(t){return t.indexOf(".")!==-1?t.split(".").pop():""},U=function(){return"true"===X("luxTrackingOptOut")},j=function(){P("luxTrackingOptOut",!0)},F=function(){P("luxTrackingOptOut",!1)},J=function(){return X(t)},P=function(t,e){var n=new Date,i=n.getTime();i+=31536e7,n.setTime(i),document.cookie=t+"="+e+"; expires="+n.toUTCString()+"; path=/"},X=function(t){for(var e=t+"=",n=document.cookie.split(";"),i=0;i<n.length;i++){for(var o=n[i];" "===o.charAt(0);)o=o.substring(1);if(0===o.indexOf(e))return o.substring(e.length,o.length)}return""}}var Lux=new window.LuxMain;Lux.initialize();

function centerImage(object, winWidth, intext) {
	var intextFigures = object.find('figure'),
		float = object.data('float');

	if(winWidth < 768) {
		if(intext)
			object.removeClass('center-block').removeClass('pull-left').removeClass('pull-right').addClass('intext');
		jQuery(intextFigures).each(function() {
			jQuery(this).removeClass('center-block').removeClass('pull-left').removeClass('pull-right').addClass('center-block');
		});
	} else if (winWidth >= 768) {
		if(intext)
			object.removeClass('center-block').removeClass('pull-left').removeClass('pull-right').addClass(float);
		jQuery( intextFigures ).each(function() {
			jQuery(this).removeClass('center-block').removeClass('pull-left').removeClass('pull-right').addClass(float);
		});
	}
}
jQuery(function() {
	var winWidth = viewportSize.getWidth(),
		carousel = jQuery('.carousel'),
		textmedia = jQuery('.textmedia');

	if (carousel.length) {
		jQuery('.carousel-inner .item:first-of-type').addClass( 'active' );
	}
  	if (textmedia.length) {
		jQuery('.textmedia .intext').each(function(){
			centerImage(jQuery(this), winWidth, true);
		});
		jQuery('.textmedia .noWrap').each(function(){
			centerImage(jQuery(this), winWidth, false);
		});

		jQuery(window).resize(function() {
			var winWidth = viewportSize.getWidth();
			jQuery('.textmedia .intext').each(function(){
				centerImage(jQuery(this), winWidth, true);
			});
			jQuery('.textmedia .noWrap').each(function(){
				centerImage(jQuery(this), winWidth, false);
			});
		});

		jQuery('.carousel-inner img').removeAttr('width').removeAttr('height');

	}
	jQuery('[data-submenu]').submenupicker();
	jQuery('.dropdown-submenu .caret').remove();

	var navBarHeight = $('#main-navbar').outerHeight(),
		footerHeight = $('#page-footer').outerHeight();

	if ( $('#main-navbar').hasClass('navbar-fixed-top') ) {
		jQuery('body').css('padding-top', (navBarHeight-1)+'px');
	}

	if ( $('#page-footer').hasClass('sticky-footer') ) {
		jQuery('body').css('padding-bottom', footerHeight+'px');
	}
	jQuery('.page-content a').tooltip({placement:'top'});
	jQuery('[data-toggle="tooltip"]').tooltip()
	jQuery('.sidebar .has-sub.active ul.sidebar-sub').show();
	lightbox.option({
	  'resizeDuration': 200,
	  'wrapAround': true,
	  'albumLabel' : 'Bild %1 von %2'
	});

	if (location.hash) jQuery(location.hash).collapse('show');
});