window.csrfToken = 'TCij4ObQq2'; function buildWidget(n,t){function r(){return i.apply(this,t)}var i=window.widgets[n.toLowerCase()];return r.prototype=i.prototype,new r}function widget(n){for(var t=$(n);!t.is("[data-widget-id],[data-widget-non-interactive-start]");)if(t=t.parent(),t.length===0)return null;var i=t.attr("data-widget-id"),r=t.attr("data-widget-type"),u=buildWidget(r,[i,t]),f={id:i,type:r,element:t,call:function(n,r,u,f){var e=this,o="/widgetResources.axd?widgetCall="+i;f||(o+="&rnd="+Math.random());$.ajax({url:window.location.protocol+"//"+window.location.hostname+":"+window.location.port+o,type:"POST",data:"token="+window.csrfToken+"&method="+n+"&pageData="+encodeURIComponent(JSON.stringify(getPageData(t)))+"&data="+encodeURIComponent(JSON.stringify(r)),success:function(n,t,i){u(e,n,t,i)},error:function(n,t,i){u(e,i,t,n)}})}};return $.extend(u,f)}function getPageData(n){while(n.length){if(n.attr("data-pageData"))return JSON.parse(n.attr("data-pageData"));n=n.parent()}}function setupValidation(n){$(n).parent().parent().addClass("was-validated")}function validateTextarea(n){var i=$(n).attr("data-regex"),t=$(n).attr("data-message"),r=new RegExp("^"+$(n).attr("pattern")+"$");$.each($(n).val().split("\n"),function(){var u=!this.match(r);return u?$(n).next().text(i):$(n).next().text(t),typeof n.setCustomValidity=="function"?n.setCustomValidity(u?t:""):($(n).toggleClass("error",!!u),$(n).toggleClass("ok",!u),u?$(n).attr("title",t):$(n).removeAttr("title")),!u})}function createCookie(n,t,i){var u,r;i?(r=new Date,r.setTime(r.getTime()+i*864e5),u="; expires="+r.toGMTString()):u="";document.cookie=encodeURIComponent(n)+"="+encodeURIComponent(t)+u+"; path=/"}function readCookie(n){for(var t,r=encodeURIComponent(n)+"=",u=document.cookie.split(";"),i=0;it.length&&(lightboxIndex=1),n<1&&(lightboxIndex=t.length),i=0;i575&&(r=$(t[lightboxIndex-1]).find("img")[0].width,$(t[lightboxIndex-1]).parent().width(r));$(t[lightboxIndex-1]).show()}var lightboxIndex,players;if($(document).ready(function(){$(".col-xs-6").removeClass("col-xs-6").addClass("col-6")}),window.widgets||(window.widgets={}),window.widgets.assetdownloadform=function(){return{submitForm:function(){var u,t,r,i,n;if(typeof validateChildNodes=="undefined"||validateChildNodes(this.element)){for(u=$("#AssetDownloadForm_"+this.id+"_lnkSubmit").val(),$("#AssetDownloadForm_"+this.id+"_lnkSubmit").val("Please wait...").attr("disabled",!0),t={},r=this.element.find(":input[id*=Question]"),i=0;i").html(t.result)))}}},setupComponentPopup(),window.widgets||(window.widgets={}),window.widgets.emailform=function(){return{submitForm:function(){var u,t,r,i,n;if(typeof validateChildNodes=="undefined"||validateChildNodes(this.element)){for(u=$("#EmailForm_"+this.id+"_lnkSubmit").val(),$("#EmailForm_"+this.id+"_lnkSubmit").val("Please wait...").attr("disabled",!0),t={},r=this.element.find(":input[id*=Question]"),i=0;i").append($("

").text(t.result))))}}},"undefined"==typeof jQuery||$(document).ready(function(){function n(){var n;$(".four-image-wrapper").hasClass("setup")?(n=$(".four-image-wrapper").parent().parent().height()/2,$(".four-image-item.item_1").width(n).height(n).css({right:n}),$(".four-image-item.item_2").width(n).height(n).css({right:n,top:n+"px"}),$(".four-image-item.item_3").width(n).height(n).css({top:n+"px"}),$(".four-image-item.item_4").width(n).height(n).css({top:0})):$(".four-image-wrapper").isInViewport()&&($(".four-image-wrapper").addClass("setup"),n=$(".four-image-item.item_1").width(),$(".four-image-item").animate({right:n+"px"},500,function(){$(".four-image-item.item_2").animate({top:n+"px"},500,function(){$(".four-image-item.item_3").css({top:n+"px"});$(".four-image-item.item_4").css({top:n+"px"});$(".four-image-item.item_3").animate({right:0},500,function(){$(".four-image-item.item_4").css({right:0});$(".four-image-item.item_4").animate({top:"0"},500,function(){})})})}))}$.fn.isInViewport=function(){if($(this).offset()){var n=$(this).offset().top,i=n+$(this).outerHeight(),t=$(window).scrollTop(),r=t+$(window).height();return i>t&&n div").height("100%");$(".four-image-wrapper").width("100%").css({position:"relative"});$(".four-image-item").width(t).height(t).css({right:0,position:"absolute"});$(".four-image-item.item_1").css("z-index",4);$(".four-image-item.item_2").css("z-index",3);$(".four-image-item.item_3").css("z-index",2);$(".four-image-item.item_4").css("z-index",1)}n()})}),window.widgets||(window.widgets={}),window.widgets.newsletterform=function(){return{submitForm:function(){var u,t,r,i,n;if(typeof validateChildNodes=="undefined"||validateChildNodes(this.element)){for(u=$("#NewsletterForm_"+this.id+"_lnkSubmit").val(),$("#NewsletterForm_"+this.id+"_lnkSubmit").val("Please wait...").attr("disabled",!0),t={},r=this.element.find(":input[id*=Question]"),i=0;i").html(t.result)))}}},"undefined"!=typeof jQuery){$(document).ready(function(){$.fn.isInViewport=function(){if($(this).offset()){var n=$(this).offset().top,i=n+$(this).outerHeight(),t=$(window).scrollTop(),r=t+$(window).height();return i>t&&n i").css({marginTop:$(this).height()/2-40});$(this).find(".btn-right > i").css({marginTop:$(this).height()/2-40});setInterval(function(){photoSlide(t,"left",!1)},8e3);$(window).scroll(function(){if(!$(this).attr("data-setup")){$(this).attr("data-setup","true");var n=$(this).find(".scrolling-item.item_1 img").height(),t=parseInt($(this).attr("data-count"));$(this).find(".scrolling-item.item_"+t).height()+20;$(this).height(n);$(this).parent().height(n)}})}),setTimeout(function(){resizePhotoSlide();$(".scrolling-item.item_1").css({left:0})},500))});$(window).on("resize",function(){resizePhotoSlide()});function resizePhotoSlide(){$(".scrolling-photo-wrapper").length&&$(".scrolling-photo-wrapper").each(function(){var r=parseInt($(this).attr("data-count")),n=parseInt($(this).parent().parent().width()),t,i;$(this).attr("data-width",n);$(this).width(n);t=parseInt($(this).attr("data-index"));$(this).find(".scrolling-item").width(n).css({left:n});$(this).find(".scrolling-item.item_"+t).css({left:0});$(this).find(".scrolling-item img").width(n);i=$(this).find(".scrolling-item.item_"+t+" img").height();$(this).height(i);$(this).parent().height(i);$(this).find(".btn-left > i").css({marginTop:$(this).height()/2-20});$(this).find(".btn-right > i").css({marginTop:$(this).height()/2-20})})}function photoSlide(n,t,i){var f;if($this=$('.photogallery[data-widget-id="'+n+'"]').find(".scrolling-photo-wrapper"),$this.isInViewport()&&(!i&&!$this.hasClass("hovered")||i)){var u=parseInt($this.parent().parent().width()),r=parseInt($this.attr("data-index")),e=parseInt($this.attr("data-count"));if(t=="left"){if(r==e)return;f=$this.find(".scrolling-item.item_"+(r+1)+" img").height();$this.height(f);$this.parent().height(f);r==2&&($this.find(".scrolling-item.item_1").css({left:u}),$this.find(".scrolling-item.item_"+e).css({left:u}));$this.find(".scrolling-item.item_"+r).animate({left:"-"+u},500);r==e&&($this.find(".scrolling-item").css({left:u}),r=0);$this.find(".scrolling-item.item_"+(r+1)).animate({left:"0"},500);$this.attr("data-index",r+1)}else r>1&&t=="right"&&(f=$this.find(".scrolling-item.item_"+(r-1)+" img").height(),$this.height(f),$this.parent().height(f),r==2&&$this.find(".scrolling-item.item_1").css({left:-u}),$this.find(".scrolling-item.item_"+r).animate({left:u},500),$this.find(".scrolling-item.item_"+(r-1)).animate({left:"0"},500),$this.attr("data-index",r-1));r=parseInt($this.attr("data-index"));$this.find(".icons i").removeClass("selected");$this.find(".icons .item_"+r).addClass("selected");$this.find(".scrolling-item img").width(u);$this.find(".btn-left > i").css({marginTop:$this.height()/2-20});$this.find(".btn-right > i").css({marginTop:$this.height()/2-20})}}}if(lightboxIndex=1,"undefined"!=typeof jQuery){$(document).ready(function(){var n,t;$(".video-data").length&&(n=document.createElement("script"),n.src="https://www.youtube.com/player_api",t=document.getElementsByTagName("script")[0],t.parentNode.insertBefore(n,t))});function onYouTubePlayerAPIReady(){var t=$(".video-data"),n,i;if(void 0!==t)for(n=0;nt&&n i").css({marginTop:$(this).height()/2-40});$(this).find(".btn-right > i").css({marginTop:$(this).height()/2-40});setInterval(function(){componentSlide(n,"left",!1)},8e3);$(window).scroll(function(){if(!$(this).attr("data-setup")){$(this).attr("data-setup","true");var n=$(this).find(".scrolling-item.item_1").height(),t=parseInt($(this).attr("data-count"));$(this).find(".scrolling-item.item_"+t).height()+20;$(this).height(n);$(this).parent().height(n)}})}),setTimeout(function(){resizeComponentSlide();$(".componentscroller .scrolling-item.item_1").css({left:0})},500))});$(window).on("resize",function(){resizeComponentSlide()})};function resizeComponentSlide(){$(".componentscroller .scrolling-wrapper").length&&$(".componentscroller .scrolling-wrapper").each(function(){var r=parseInt($(this).attr("data-count")),n=parseInt($(this).parent().parent().width()),t,i;$(this).attr("data-width",n);$(this).width(n);t=parseInt($(this).attr("data-index"));$(this).find(".scrolling-item").width(n).css({left:n});$(this).find(".scrolling-item.item_"+t).css({left:0});$(this).find(".scrolling-item img").width(n);i=$(this).find(".scrolling-item.item_"+t).height()-8;$(this).height(i);$(this).parent().height(i);$(this).find(".btn-left > i").css({marginTop:$(this).height()/2-20});$(this).find(".btn-right > i").css({marginTop:$(this).height()/2-20});$(this).find(".btn-left").css({height:$(this).height()});$(this).find(".btn-right").css({height:$(this).height()})})}function componentSlide(n,t,i){var e,f;if($this=$('.componentscroller[data-widget-id="'+n+'"]').find(".scrolling-wrapper"),$this.isInViewport()&&(!i&&!$this.hasClass("hovered")||i)){var u=parseInt($this.parent().parent().width()),r=parseInt($this.attr("data-index")),o=parseInt($this.attr("data-count"));if(t=="left"){if(i&&r==o)return;e=r+1;f=$this.find(".scrolling-item.item_"+e).height()-8;$this.height(f);$this.parent().height(f);r==2&&($this.find(".scrolling-item.item_1").css({left:u}),$this.find(".scrolling-item.item_"+o).css({left:u}));$this.find(".scrolling-item.item_"+r).animate({left:"-"+u},500);r==o&&($this.find(".scrolling-item").css({left:u}),r=0);$this.find(".scrolling-item.item_"+(r+1)).animate({left:"0"},500);$this.attr("data-index",r+1)}else r>1&&t=="right"&&(e=r-1,f=$this.find(".scrolling-item.item_"+e).height()-8,$this.height(f),$this.parent().height(f),r==2&&$this.find(".scrolling-item.item_1").css({left:-u}),$this.find(".scrolling-item.item_"+r).animate({left:u},500),$this.find(".scrolling-item.item_"+(r-1)).animate({left:"0"},500),$this.attr("data-index",r-1));r=parseInt($this.attr("data-index"));$this.find(".icons i").removeClass("selected");$this.find(".icons .item_"+r).addClass("selected");$this.find(".scrolling-item img").width(u);$this.find(".btn-left > i").css({marginTop:$this.height()/2-20});$this.find(".btn-right > i").css({marginTop:$this.height()/2-20})}}}