window.csrfToken = '04nVRrA4kT'; function buildWidget(t,e){var a=window.widgets[t.toLowerCase()];function n(){return a.apply(this,e)}return n.prototype=a.prototype,new n}function widget(t){for(var e=$(t);!e.is("[data-widget-id],[data-widget-non-interactive-start]");)if(0===(e=e.parent()).length)return null;var a=e.attr("data-widget-id"),n=e.attr("data-widget-type"),o=buildWidget(n,[a,e]),i={id:a,type:n,element:e,call:function(t,n,o,i){var r=this,d="/widgetResources.axd?widgetCall="+a;i||(d+="&rnd="+Math.random()),$.ajax({url:window.location.protocol+"//"+window.location.hostname+":"+window.location.port+d,type:"POST",data:"token="+window.csrfToken+"&method="+t+"&pageData="+encodeURIComponent(JSON.stringify(getPageData(e)))+"&data="+encodeURIComponent(JSON.stringify(n)),success:function(t,e,a){o(r,t,e,a)},error:function(t,e,a){o(r,a,e,t)}})}};return $.extend(o,i)}function getPageData(t){for(;t.length;){if(t.data("pageData"))return t.data("pageData");t=t.parent()}}function setupValidation(t) { $(t).parent().parent().addClass("was-validated") } function validateTextarea(t) { var e = $(t).attr("data-regex"), i = $(t).attr("data-message"), a = new RegExp("^" + $(t).attr("pattern") + "$"); $.each($(t).val().split("\n"), (function () { var n = !this.match(a); return n ? $(t).next().text(e) : $(t).next().text(i), "function" == typeof t.setCustomValidity ? t.setCustomValidity(n ? i : "") : ($(t).toggleClass("error", !!n), $(t).toggleClass("ok", !n), n ? $(t).attr("title", i) : $(t).removeAttr("title")), !n })) } window.widgets || (window.widgets = {}), window.widgets.emailform = function (t) { return { submitForm: function () { if ("undefined" == typeof validateChildNodes || validateChildNodes(this.element)) { var t = $("#EmailForm_" + this.id + "_lnkSubmit").val(); $("#EmailForm_" + this.id + "_lnkSubmit").val("Please wait...").attr("disabled", !0); for (var e = {}, i = this.element.find(":input[id*=Question]"), a = 0; a < i.length; a++) { var n = $(i[a]); if ("function" == typeof (n.length && n[0].checkValidity) && !n[0].checkValidity()) return n.css({ outline: "solid 2px #f00" }).addClass("invalid"), n.blur((function () { $(this).css({ outline: "none" }).removeClass("invalid") })), n[0].focus(), void $("#EmailForm_" + this.id + "_lnkSubmit").val(t).removeAttr("disabled"); n.is(":checkbox,:radio") ? e[n.attr("data")] = n.is(":checked") : e[n.attr("name")] = n.val() } this.call("submitForm", e, this.gotResult) } }, gotResult: function (t, e, i) { "success" != i ? alert("An error occurred please try again.\n") : (t.element.empty(), t.element.append($("
").append($("

").text(e.result)))) } } };if(void 0===window.jQuery);else{function resizePhotoSlide(){$(".scrolling-photo-wrapper").length&&$(".scrolling-photo-wrapper").each((function(t){parseInt($(this).attr("data-count"));var i=parseInt($(this).parent().parent().width());$(this).attr("data-width",i),$(this).width(i);var e=parseInt($(this).attr("data-index"));$(this).find(".scrolling-item").width(i).css({left:i}),$(this).find(".scrolling-item.item_"+e).css({left:0}),$(this).find(".scrolling-item img").width(i);var s=$(this).find(".scrolling-item.item_"+e+" img").height();$(this).height(s),$(this).parent().height(s),$(this).find(".btn-left > i").css({marginTop:$(this).height()/2-20}),$(this).find(".btn-right > i").css({marginTop:$(this).height()/2-20})}))}function photoSlide(t,i,e){if($this=$('.photogallery[data-widget-id="'+t+'"]').find(".scrolling-photo-wrapper"),$this.isInViewport()&&(!e&&!$this.hasClass("hovered")||e)){var s=parseInt($this.parent().parent().width()),h=parseInt($this.attr("data-index")),n=parseInt($this.attr("data-count"));if("left"==i){if(h==n)return;var r=$this.find(".scrolling-item.item_"+(h+1)+" img").height();$this.height(r),$this.parent().height(r),2==h&&($this.find(".scrolling-item.item_1").css({left:s}),$this.find(".scrolling-item.item_"+n).css({left:s})),$this.find(".scrolling-item.item_"+h).animate({left:"-"+s},500),h==n&&($this.find(".scrolling-item").css({left:s}),h=0),$this.find(".scrolling-item.item_"+(h+1)).animate({left:"0"},500),$this.attr("data-index",h+1)}else if(h>1&&"right"==i){r=$this.find(".scrolling-item.item_"+(h-1)+" img").height();$this.height(r),$this.parent().height(r),2==h&&$this.find(".scrolling-item.item_1").css({left:-s}),$this.find(".scrolling-item.item_"+h).animate({left:s},500),$this.find(".scrolling-item.item_"+(h-1)).animate({left:"0"},500),$this.attr("data-index",h-1)}h=parseInt($this.attr("data-index")),$this.find(".icons i").removeClass("selected"),$this.find(".icons .item_"+h).addClass("selected"),$this.find(".scrolling-item img").width(s),$this.find(".btn-left > i").css({marginTop:$this.height()/2-20}),$this.find(".btn-right > i").css({marginTop:$this.height()/2-20})}}$(document).ready((function(){$.fn.isInViewport=function(){if($(this).offset()){var t=$(this).offset().top,i=t+$(this).outerHeight(),e=$(window).scrollTop(),s=e+$(window).height();return i>e&&t i").css({marginTop:$(this).height()/2-40}),$(this).find(".btn-right > i").css({marginTop:$(this).height()/2-40}),setInterval((function(){photoSlide(e,"left",!1)}),8e3),$(window).scroll((function(){if(!$(this).attr("data-setup")){$(this).attr("data-setup","true");var t=$(this).find(".scrolling-item.item_1 img").height(),i=parseInt($(this).attr("data-count"));$(this).find(".scrolling-item.item_"+i).height(),$(this).height(t),$(this).parent().height(t)}}))})),setTimeout((function(){resizePhotoSlide(),$(".scrolling-item.item_1").css({left:0})}),500))})),$(window).on("resize",(function(){resizePhotoSlide()}))}function resizeContentSlide() { $(".scrolling-wrapper").length && $(".scrolling-wrapper").each(function (t) { var i = parseInt($(this).attr("data-count")), e = parseInt($(this).parent().parent().width()); $(this).attr("data-width", e), $(this).width(e); var s = parseInt($(this).attr("data-index")); $(this).find(".scrolling-item").width(e).css({ left: e }), $(this).find(".scrolling-item.item_" + s).css({ left: 0 }), $(this).find(".scrolling-item img").width(e); i = $(this).find(".scrolling-item.item_" + i).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 scrollerSlide(t, i, e) { if ($this = $('.scrollingcontent[data-widget-id="' + t + '"]').find(".scrolling-wrapper"), $this.isInViewport() && (!e && !$this.hasClass("hovered") || e)) { var s = parseInt($this.parent().parent().width()), n = parseInt($this.attr("data-index")), t = parseInt($this.attr("data-count")); if ("left" == i) { if (e && n == t) return; var h = n + 1, r = $this.find(".scrolling-item.item_" + h).height() - 8; $this.height(r), $this.parent().height(r), 2 == n && ($this.find(".scrolling-item.item_1").css({ left: s }), $this.find(".scrolling-item.item_" + t).css({ left: s })), $this.find(".scrolling-item.item_" + n).animate({ left: "-" + s }, 500), n == t && ($this.find(".scrolling-item").css({ left: s }), n = 0), $this.find(".scrolling-item.item_" + (n + 1)).animate({ left: "0" }, 500), $this.attr("data-index", n + 1) } else 1 < n && "right" == i && (h = n - 1, r = $this.find(".scrolling-item.item_" + h).height() - 8, $this.height(r), $this.parent().height(r), 2 == n && $this.find(".scrolling-item.item_1").css({ left: -s }), $this.find(".scrolling-item.item_" + n).animate({ left: s }, 500), $this.find(".scrolling-item.item_" + (n - 1)).animate({ left: "0" }, 500), $this.attr("data-index", n - 1)); n = parseInt($this.attr("data-index")), $this.find(".icons i").removeClass("selected"), $this.find(".icons .item_" + n).addClass("selected"), $this.find(".scrolling-item img").width(s), $this.find(".btn-left > i").css({ marginTop: $this.height() / 2 - 20 }), $this.find(".btn-right > i").css({ marginTop: $this.height() / 2 - 20 }) } } void 0 === window.jQuery || ($(document).ready(function () { $.fn.isInViewport = function () { if ($(this).offset()) { var t = $(this).offset().top, i = t + $(this).outerHeight(), e = $(window).scrollTop(), s = e + $(window).height(); return e < i && t < s } return !1 }, $(".scrolling-wrapper").length && ($(".scrolling-wrapper").mouseenter(function () { $(this).addClass("hovered") }).mouseleave(function () { $(this).removeClass("hovered") }), $(".scrolling-wrapper").each(function (t) { var i = $(this).parent().parent().width(); $(this).width(i), $(this).attr("data-index", "1").attr("data-count", "0").attr("data-width", $(this).width()); var e = $(this).parent().parent().attr("data-widget-id"); $(this).find(".btn-right").click(function () { scrollerSlide(e, "left", !0) }), $(this).find(".btn-left").click(function () { scrollerSlide(e, "right", !0) }), $(this).find(".scrolling-item").width(i).css({ left: i }), $(this).find(".scrolling-item.item_1").css({ left: 0 }), $(this).attr("data-count", $(this).find(".scrolling-item").length), $(this).find(".btn-left > i").css({ marginTop: $(this).height() / 2 - 40 }), $(this).find(".btn-right > i").css({ marginTop: $(this).height() / 2 - 40 }), setInterval(function () { scrollerSlide(e, "left", !1) }, 8e3), $(window).scroll(function () { var t, i; $(this).attr("data-setup") || ($(this).attr("data-setup", "true"), t = $(this).find(".scrolling-item.item_1").height(), i = parseInt($(this).attr("data-count")), $(this).find(".scrolling-item.item_" + i).height(), $(this).height(t), $(this).parent().height(t)) }) }), setTimeout(function () { resizeContentSlide(), $(".scrolling-item.item_1").css({ left: 0 }) }, 500)) }), $(window).on("resize", function () { resizeContentSlide() }));try { void 0 === window.jQuery || $(document).ready((function () { if ($(".component-popup-close").length) { var o = $(".component-popup").attr("data-id"); $(".component-popup-close").click((function () { createCookie("component-popup-close", o, 1e4) })), readCookie("component-popup-close") != o && $(".component-popup").modal("show") } })) } catch { } function createCookie(o, e, n) { var t; if (n) { var p = new Date; p.setTime(p.getTime() + 24 * n * 60 * 60 * 1e3), t = "; expires=" + p.toGMTString() } else t = ""; document.cookie = encodeURIComponent(o) + "=" + encodeURIComponent(e) + t + "; path=/" } function readCookie(o) { for (var e = encodeURIComponent(o) + "=", n = document.cookie.split(";"), t = 0; t < n.length; t++) { for (var p = n[t]; " " === p.charAt(0);)p = p.substring(1, p.length); if (0 === p.indexOf(e)) return decodeURIComponent(p.substring(e.length, p.length)) } return null }function setupValidation(t) { $(t).parent().parent().addClass("was-validated") } function validateTextarea(t) { var e = $(t).attr("data-regex"), i = $(t).attr("data-message"), a = new RegExp("^" + $(t).attr("pattern") + "$"); $.each($(t).val().split("\n"), (function () { var s = !this.match(a); return s ? $(t).next().text(e) : $(t).next().text(i), "function" == typeof t.setCustomValidity ? t.setCustomValidity(s ? i : "") : ($(t).toggleClass("error", !!s), $(t).toggleClass("ok", !s), s ? $(t).attr("title", i) : $(t).removeAttr("title")), !s })) } window.widgets || (window.widgets = {}), window.widgets.assetdownloadform = function (t) { return { submitForm: function () { if ("undefined" == typeof validateChildNodes || validateChildNodes(this.element)) { var t = $("#AssetDownloadForm_" + this.id + "_lnkSubmit").val(); $("#AssetDownloadForm_" + this.id + "_lnkSubmit").val("Please wait...").attr("disabled", !0); for (var e = {}, i = this.element.find(":input[id*=Question]"), a = 0; a < i.length; a++) { var s = $(i[a]); if ("function" == typeof (s.length && s[0].checkValidity) && !s[0].checkValidity()) return s.css({ outline: "solid 2px #f00" }).addClass("invalid"), s.blur((function () { $(this).css({ outline: "none" }).removeClass("invalid") })), s[0].focus(), void $("#AssetDownloadForm_" + this.id + "_lnkSubmit").val(t).removeAttr("disabled"); s.is(":checkbox,:radio") ? e[s.attr("data")] = s.is(":checked") : e[s.attr("name")] = s.val() } this.call("submitForm", e, this.gotResult) } }, gotResult: function (t, e, i) { "success" != i ? alert("An error occurred please try again.\n") : (t.element.empty(), t.element.append($("

").html(e.result))) } } };function setupValidation(t) { $(t).parent().parent().addClass("was-validated") } function validateTextarea(t) { var e = $(t).attr("data-regex"), i = $(t).attr("data-message"), a = new RegExp("^" + $(t).attr("pattern") + "$"); $.each($(t).val().split("\n"), (function () { var n = !this.match(a); return n ? $(t).next().text(e) : $(t).next().text(i), "function" == typeof t.setCustomValidity ? t.setCustomValidity(n ? i : "") : ($(t).toggleClass("error", !!n), $(t).toggleClass("ok", !n), n ? $(t).attr("title", i) : $(t).removeAttr("title")), !n })) } window.widgets || (window.widgets = {}), window.widgets.newsletterform = function (t) { return { submitForm: function () { if ("undefined" == typeof validateChildNodes || validateChildNodes(this.element)) { var t = $("#NewsletterForm_" + this.id + "_lnkSubmit").val(); $("#NewsletterForm_" + this.id + "_lnkSubmit").val("Please wait...").attr("disabled", !0); for (var e = {}, i = this.element.find(":input[id*=Question]"), a = 0; a < i.length; a++) { var n = $(i[a]); if ("function" == typeof (n.length && n[0].checkValidity) && !n[0].checkValidity()) return n.css({ outline: "solid 2px #f00" }).addClass("invalid"), n.blur((function () { $(this).css({ outline: "none" }).removeClass("invalid") })), n[0].focus(), void $("#NewsletterForm_" + this.id + "_lnkSubmit").val(t).removeAttr("disabled"); n.is(":checkbox,:radio") ? e[n.attr("data")] = n.is(":checked") : e[n.attr("name")] = n.val() } this.call("submitForm", e, this.gotResult) } }, gotResult: function (t, e, i) { "success" != i ? alert("An error occurred please try again.\n") : (t.element.empty(), t.element.append($("
").html(e.result))) } } };void 0 === window.jQuery || $(document).ready(function () { function i() { if ($(".four-image-wrapper").hasClass("setup")) { var i = $(".four-image-wrapper").parent().parent().height() / 2; $(".four-image-item.item_1").width(i).height(i).css({ right: i }), $(".four-image-item.item_2").width(i).height(i).css({ right: i, top: i + "px" }), $(".four-image-item.item_3").width(i).height(i).css({ top: i + "px" }), $(".four-image-item.item_4").width(i).height(i).css({ top: 0 }) } else if ($(".four-image-wrapper").isInViewport()) { $(".four-image-wrapper").addClass("setup"); var i = $(".four-image-item.item_1").width(); $(".four-image-item").animate({ right: i + "px" }, 500, function () { $(".four-image-item.item_2").animate({ top: i + "px" }, 500, function () { $(".four-image-item.item_3").css({ top: i + "px" }), $(".four-image-item.item_4").css({ top: i + "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()) return !1; var i = $(this).offset().top, e = i + $(this).outerHeight(), t = $(window).scrollTop(), r = t + $(window).height(); return e > t && i < r }, $(window).on("resize", function () { i() }), $(window).scroll(function () { i() }), $(document).ready(function () { if ($(".four-image-wrapper").length) { $(".four-image-wrapper").width(); var e = $(".four-image-wrapper").parent().parent().height() / 2; $(".fourimageblock > div").height("100%"), $(".four-image-wrapper").width("100%").css({ position: "relative" }), $(".four-image-item").width(e).height(e).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) } i() }) });