var CKEDITOR_BASEPATH = "/cms/ckeditor/"; (function(c) { var d = c.fn.show; c.fn.show = function() { var a = d.apply(this, arguments); c(this).trigger("onShow"); return a }; var b = c.fn.hide; c.fn.hide = function() { var a = b.apply(this, arguments); c(this).trigger("onHide"); return a }; c.fn.onShow = function(a) { if (null != a) c(this).on("onShow", function() { a() }); else c(this).trigger("onShow"); return this }; c.fn.onHide = function(a) { if (null != a) c(this).on("onHide", function() { a() }); else c(this).trigger("onHide"); return this } })(jQuery); (function(c, d) { var b = function(a, e, b) { var c; return function() { var d = this, f = arguments; c ? clearTimeout(c) : b && a.apply(d, f); c = setTimeout(function() { b || a.apply(d, f); c = null }, e || 100) } }; jQuery.fn[d] = function(a) { return a ? this.on("resize", b(a)) : this.trigger(d) } })(jQuery, "smartresize"); (function() { $.fn.ic16 = function() { var c = this, d = function() { return 1 !== $(".limelightVideo").length ? !1 : !0 }, b = function() { return !0 === $(".limelightVideo").parent().siblings().children("div").hasClass("sc12_7col_txt") ? !0 : !1 }, a = function(a, e) { var c = LimelightPlayer || void 0, d = document.querySelector("object > [name=flashVars]"); void 0 != d ? (d.value = d.value.replace(/(mediaId=)(.*)$/gi, "$1" + e), c = $("object").prop("outerHTML"), $("object").remove(), $(c).insertAfter("#beforeswfanchor0")) : void 0 !== c && c.doLoadMedia(e, !1); !0 === b() && (c = $(".limelightVideo"), c = c.parent().siblings().children("div").children("div"), c.html(a), $(".firstmovie").hide()) }, e = function() { var e = $(".limelightVideo"), b = e.parent().siblings().children("div").children("div"), d = b.find("h2"), f = b.find("p"), g = e.find("object").find("param").eq(4).attr("value"); g = g.match(/^mediaId=(.*)|mediaId=(.*)/g); g = g[0].replace("mediaId=", ""); $(".firstmovie").data("content", b.html()); $(".firstmovie").data("media", g); $(".archive_wraper.first_movie").find("strong").html(d.text()); $(".archive_wraper.first_movie").find("div").children("p").html(f.text()); b = b.html(); $(".firstmovie").on('click', function() { $(".archive_wraper.first_movie").hide(); $(".archive_wraper").not(".first_movie").show(); a(b, g) }); c.movie = { mediaId: g, text: b } }, f = function(e) { if (!0 === d() && e.children) e.find("img,strong").on("click", function() { var e = $(this).parents(".archive_wraper"), d = e.index(), f = e.data("media"), g = LimelightPlayer || void 0; console.log(g, f); var h = document.querySelector("object > [name=flashVars]"); void 0 != h ? (h.value = h.value.replace(/(mediaId=)(.*)$/gi, "$1" + f), f = $("object").prop("outerHTML"), $("object").remove(), $(f).insertAfter("#beforeswfanchor0")) : void 0 !== g && g.doLoadMedia(f, !1); if (!0 === b()) { f = $(".limelightVideo"); g = f.parent().siblings().children("div").children("div"); h = e.find("strong").text(); var n = e.find("div").find("p").text(); g.html("
" + n + '
Back to this month’s video'); $("body, html").animate({ scrollTop: f.offset().top - 60 }, 400); $(".archive_wraper").not(".first_movie").show(); e.hide(); $(".archive_wraper.first_movie").show() } $(".firstmovie").show(); $(".loadfirst,.archive_wraper.first_movie").off("click").on("click", function() { $(".archive_wraper.first_movie").hide(); $(".archive_wraper").not(".first_movie").show(); a(c.movie.text, c.movie.mediaId) }) }) }; (function() { console.log(d()); !0 === d() && console.log("is"); e(); c.each(function() { f($(this)) }) })(); return c }; $.fn.ic6 = function() { var c = this, d = function() { var a = window.location.hash; a = a.replace("#", "").toLowerCase().trim(); "" !== a && c.find("li").each(function() { var e = $(this).data("tab"); a === e && $(this).trigger("click") }) }, b = function(a) { var e = a.find(".controler"); e.children("li").on("click", function() { var a = $(this).index(), e = $(this).siblings(".active").index(), b = $(this).parent().parent().siblings(".preview"), c = $(this), d = $(this).data("tab"); !1 === c.hasClass("active") && !1 === c.parent().hasClass("animating") && (d && (window.location.hash = d), c.parent().children(".active").removeClass("active"), c.parent().addClass("animating"), b.children("div").eq(e).stop(!0, !0).fadeOut(400, function() { b.children("div").stop(!0, !0).eq(a).fadeIn(400, function() { $(this).addClass("active") }); c.addClass("active"); $(this).removeClass("active"); c.parent().removeClass("animating") })) }); a.find(".back_to_top").on("click", function() { var a = e.offset().top; $("body").animate({ scrollTop: a - 50 }, 400) }); $(window).on("scroll", function() { var b = e.outerHeight(), c = e.offset().top, d = e.parent().parent().children(".preview"), l = d.outerHeight(), m = d.offset().top, g = $(window).scrollTop(); d = a.find(".back_to_top"); d.position(); g + 200 > c + b ? (d.css({ display: "block" }), g + 200 > m && (b = g - m + 150, b > l - 30 && (b = l - 30), 0 > b && (b = 0), d.stop(!1, !1).animate({ top: b }, 200))) : d.css({ display: "none" }) }) }; (function() { c.each(function() { b($(this)) }); d() })(); return c }; $.fn.mobileDownload = function() { var c = navigator.userAgent, d = c.match(/(iPad|iPhone|iPod)/); c = c.match(/Android/); d ? $(".google_store").css({ display: "none" }) : c && $(".app_store").css({ display: "none" }); return this }; $.fn.contact_us = function() { var c = this, d = function(a) { $(a).children("div").children("div").children("div").children("*").each(function() { var b = { element: $(this), padding: parseInt($(this).css("padding-top")) }; a.buttons.push(b) }) }, b = function(a) { var b = a.buttons[1].element.outerHeight(), c = a.buttons[0].element.outerHeight(), d = a.buttons[0].padding, k = a.buttons[1].padding; b !== c && (b > c ? (b = (b - c) / 2, $(a).children("div.buttons").children("div").children("div").eq(0).children("*").css({ padding: d + b + "px 15px" })) : (b = (c - b) / 2, $(a).children("div.button").children("div").children("div").eq(1).children("*").css({ padding: k + b + "px 15px" }))) }; c.buttons = []; (function() { c.each(function() { this.buttons = []; d(this); b(this) }); $(window).smartresize(function() { c.each(function() { b(this) }) }) })(); return c }; $.fn.grasshoper_carusel = function(c) { var d = $.extend({ mobile: 2, mobilebig: 3, maxdesktop: 4 }, c), b = this, a = function(a) { a.find("ul"); var b = a.find("ul"), c, e = 640 > a.width() ? 480 > a.width() ? d.mobile : d.mobilebig : d.maxdesktop; b.each(function() { var a = $(this); for (c = 0; c < e; c += 1) a.children("li").eq(c).animate({ "margin-left": "-160px" }, 400, function() { var b = $(this).clone(); $(this).remove(); b.css({ "margin-left": "0px" }); a.append(b) }) }) }, e = function() { b.find(".next_pic > a").on("click", function() { var b = $(this).parent().parent(); a(b) }) }, f = function(a) { a = a || b; var c; for (c = a.find("ul").length - 1; 0 <= c; --c) { var e = a.find("ul").eq(c); e.children("li").each(function() { var a = $(this).clone(); e.append(a) }) } }; (function() { b.find("img").addClass("poster"); b.each(function() { var a = $(this); a = a || b; var c; for (c = a.find("ul").length - 1; 0 <= c; --c) { var e = 0; var d = 2 * a.find("ul").eq(c).children("li").length; var g = a.find("ul").eq(c).children("li").eq(0).children("img").width(); e += d * (g + 20); a.find("ul").eq(c).width(e) } f($(this)) }); e() })(); return b }; $.fn.process_tabs = function() { var c = this, d = function(a) { var b = a.parents("ul").eq(0).children("li.active"); 0 < b.length ? b.children(".process-wrapper").stop(!0, !1).slideUp(400, function() { b.removeClass("active"); a.addClass("active") }) : a.addClass("active") }, b = function(a) { var b = 0; 768 < $(window).width() ? (a.each(function() { var a = $(this).outerHeight(); b < a && (b = a) }), a.css({ height: b })) : a.css({ height: "initial" }) }, a = function() { c.each(function() { $(this).children("ul").children("li").children(".title").children("h6").on("click", function() { var a = $(this).parent().parent(), b = $(window).width(); !1 === a.hasClass("active") ? (d(a), a.children(".process-wrapper").stop(!0, !1).delay(600).slideDown(400, function() { var b = a.children(".process-wrapper").offset(), c = a.children(".title").height(); $("body").animate({ scrollTop: b.top - c }, 400) })) : 768 > b && a.eq(0).children(".process-wrapper").stop(!0, !1).slideUp(400, function() { a.eq(0).removeClass("active") }) }) }); $(window).smartresize(function() { var a = c.children("ul").children("li").eq(0); 768 <= $(window).width() && a.find("h6").trigger("click"); c.each(function() { var a = $(this).children("ul").children("li").children(".title").children("h6"); b(a) }) }) }; (function() { c.each(function() { var a = $(this), c = $(this).children("ul").children("li").children(".title").children("h6"); a = a.children("ul").children("li.active"); a.children(".process-wrapper").css({ display: "block" }); a.siblings("li").children(".process-wrapper").css({ display: "none" }); b(c) }); a() })(); return c }; $.fn.moviePlayer = function() { var c = $(this), d = [], b = [], a = function() { var a = ' "; $("body").append(a) }, e = function() { $(".overlay").fadeIn(400, function() { $(".overlay > div").fadeIn(400, function() { $(".overlay video").css({ opacity: 1, "-webkit-transform": "scale(1)", "-moz-transform": "scale(1)", "-ms-transform": "scale(1)", "-o-transform": "scale(1)", transform: "scale(1)" }) }) }) }; (function() { $(".movie-poster").each(function() { var a = $(this).data("movie-link"), c = $(this).data("poster"); b.push(c); d.push(a) }); a() })(); (function() { $(".movie-poster").off("click").on("click", function() { var a = $(this).index(".movie-poster"); $(".overlay").find("video").attr("poster", b[a]); $(".overlay").find("video").children("source").eq(0).attr("src", d[a] + ".mp4"); $(".overlay").find("video").children("source").eq(1).attr("src", d[a] + ".ogv"); $(".overlay").find("video").children("source").eq(2).attr("src", d[a] + ".webm"); $(".overlay").find("video")[0].load(); e() }); $(".overlay").find("video").mouseover(function() { $(".overlay").addClass("over") }); $(".overlay").find("video").mouseleave(function() { $(".overlay").removeClass("over") }); $(".overlay").off("click").on("click", function() { !1 === $(this).hasClass("over") && ($(this).find("video")[0].pause(), $(".overlay video").css({ opacity: 0, "-webkit-transform": "scale(0.01)", "-moz-transform": "scale(0.01)", "-ms-transform": "scale(0.01)", "-o-transform": "scale(0.01)", transform: "scale(0.01)" }), $(this).fadeOut(400)) }) })(); return c }; $.fn.innerSiteNav = function() { var c = 0, d = function() { var a = $(".inner_site_nav > div ").width(), b = 0; 6 !== $(".inner_site_nav > div > ul > li").length && (991 < a && ($(".inner_site_nav > div > ul > li").each(function() { b += $(this).outerWidth() }), b !== a && b < a ? (b = parseInt((a - b) / 2), $(".inner_site_nav > div > ul > li:first-of-type").css({ "margin-left": b })) : $(".inner_site_nav > div > ul > li:first-of-type").css({ "margin-left": "initial" })), 768 < a && 991 > a && ($(".inner_site_nav > div > ul > li").not(".all").each(function(a, c) { b += $(this).outerWidth() }), b !== a && b < a ? (b = parseInt((a - b) / 2), $(".inner_site_nav > div > ul > li:first-of-type").css({ "margin-left": b })) : $(".inner_site_nav > div > ul > li:first-of-type").css({ "margin-left": "initial" }))) }, b = function() { var a = $(".inner_site_nav ul > li.opend"), b = $(".inner_site_nav ul > li.next"), c = $(".inner_site_nav ul > li:last-of-type").index(); b.eq(b.length - 1).index() !== c ? (a.each(function() { $(this).removeClass("opend").animate({ left: "100%" }, 200, function() { $(this).css({ display: "none" }) }).animate({ left: "-100%" }, 200, function() { $(this).css({ display: "block" }) }).removeClass("prev").addClass("next") }), b.css({ left: "-100%" }), b.each(function(a, b) { $(this).removeClass("next").addClass("opend").animate({ left: "0%" }, 400, function() {}); $(".inner_site_nav > div").removeClass("animating") })) : $(".inner_site_nav > div").removeClass("animating") }, a = function() { var a = $(".inner_site_nav ul > li.opend"), b = $(".inner_site_nav ul > li.next"); 0 !== b.eq(0).index() && (a.each(function() { $(this).removeClass("opend").animate({ left: "-100%" }, 200, function() { $(this).css({ display: "none" }) }).animate({ left: "100%" }, 200, function() { $(this).css({ display: "block" }) }).removeClass("prev").addClass("next") }), b.css({ left: "100%" }), b.each(function(a, b) { $(this).removeClass("next").addClass("opend").animate({ left: "0%" }, 200, function() {}) })); $(".inner_site_nav > div").removeClass("animating") }, e = function() { var a = $(".inner_site_nav ul > li.opend"), b = $(".inner_site_nav ul > li.next"), d = $(".inner_site_nav ul > li.prev"); 0 !== a.eq(0).index() && (a.each(function() { $(this).removeClass("opend").animate({ left: "100%" }, 200, function() {}).removeClass("prev").addClass("next") }), 0 === d.length && b.each(function(a, b) { a >= c && $(this).removeClass("next").addClass("prev").css({ left: "-100%" }) }), d = $(".inner_site_nav ul > li.prev"), d.each(function(a, b) { $(this).removeClass("prev").addClass("opend").animate({ left: "0px" }, 200, function() {}) }), b.each(function(a, b) { var d = $(this); a < c && d.removeClass("next").addClass("prev").css({ left: "-100%" }) })); $(".inner_site_nav > div").removeClass("animating") }, f = function() { var a = $(".inner_site_nav ul > li.opend"), b = $(".inner_site_nav ul > li.next"), d = $(".inner_site_nav ul > li.prev"); 0 !== b.eq(0).index() && (a.each(function() { $(this).removeClass("opend").animate({ left: "-100%" }, 200, function() {}).addClass("prev") }), b.css({ left: "100%" }), b.each(function(a, b) { var d = $(this); a < c && d.removeClass("next").addClass("opend").animate({ left: "0%" }, 200, function() {}) }), d.css({ left: "100%" }).removeClass("prev").addClass("next")); $(".inner_site_nav > div").removeClass("animating") }, h = function() { var a = $(".inner_site_nav ul > li"), b = 0, d = a.length; a.removeClass("next prev opend"); a.removeAttr("style"); for (b; b < c; b += 1) a.eq(b).addClass("opend"); for (b; b < d; b += 1) a.eq(b).hasClass("opend") || a.eq(b).addClass("next") }, k = function() { $(".inner_site_nav").swipe({ tap: function(a, b) { a.preventDefault() }, swipe: function(d, h) { var g = $(this).children("div"); !1 === g.hasClass("animating") && (g.addClass("animating"), "left" === h && (3 === c && 0 !== c && a(), 2 === c && 0 !== c && f()), "right" === h && (3 === c && b(), 2 === c && e())) }, threshold: 50 }); $(".inner_site_nav a.next").off("click").on("click", function() { var b = $(this).parent(); !1 === b.hasClass("animating") && (b.addClass("animating"), 3 === c && 0 !== c && a(), 2 === c && 0 !== c && f()) }); $(".inner_site_nav a.prev").off("click").on("click", function() { var a = $(this).parent(); !1 === a.hasClass("animating") && (a.addClass("animating"), 3 === c && b(), 2 === c && e()) }) }, l = function() { var a = $(window).width(); d(); 800 < a ? (c = 0, h()) : 800 >= a && ($(".inner_site_nav > div > ul > li:first-of-type").css({ "margin-left": "initial" }), c = 600 > a ? 2 : 3, h()) }; $(window).smartresize(function() { l() }); (function() { l(); $(".inner_site_nav > div > ul > li").each(function() { var a = $(this).index(), b = $(this); "" === $(this).find(".text").text() && $(this).remove(); a < c ? b.addClass("opend") : b.addClass("next").removeClass("opend prev") }); d(); k() })(); return this }; $.fn.grasshopper_GoogleMap = function(c, d) { var b = this, a = $.extend({ markerIcon: "/static/img/map-icon-hover.png", markerHover: "/static/img/map-icon.png", cposition: { lat: 51.5177151, lng: -.08 }, zoom: 12, disableDefaultUI: !0, scrollwheel: !1, style: [{ featureType: "administrative", stylers: [{ visibility: "off" }] }, { featureType: "poi", stylers: [{ visibility: "simplified" }] }, { featureType: "road", stylers: [{ visibility: "simplified" }] }, { featureType: "water", stylers: [{ visibility: "simplified" }] }, { featureType: "transit", stylers: [{ visibility: "simplified" }] }, { featureType: "landscape", stylers: [{ visibility: "simplified" }] }, { featureType: "road.highway", stylers: [{ visibility: "off" }] }, { featureType: "road.local", stylers: [{ visibility: "on" }] }, { featureType: "road.highway", elementType: "geometry", stylers: [{ visibility: "on" }] }, { featureType: "water", stylers: [{ color: "#84afa3" }, { lightness: 52 }] }, { stylers: [{ saturation: -77 }] }, { featureType: "road" }] }, c), e = function(a) { $(".mobile-tabs > ul > li").css({ display: "none" }); $('.mobile-tabs > ul > li[data-map="' + a + '"]').delay(200).stop(!0, !0).fadeIn(); m(a) }, f = function() { var a = window.location.hash, b = $(window).width(); a = a.replace("#", "").toLowerCase().trim(); "" !== a && (480 < b ? $(".map-tabs > li > p").each(function() { var b = $(this).data("tab"); a === b && $(this).trigger("click") }) : $(".map-select > ul > li > a").each(function() { var b = $(this).data("tab"); a === b && $(this).trigger("click") })) }, h = function(a) { a = $('.map-select > ul > li > a[data-map="' + a + '"]'); var b = $(".map-select > div"), c = a.text(); b.find("span.text").text(c); a.parent().siblings().removeClass("active"); a.parent().addClass("active") }, k = function(a, b, c) { c.parent().addClass("animating"); a.children("div").slideUp(400, function() { a.removeClass("active"); c.addClass("active"); b.slideDown(400, function() { c.parent().removeClass("animating") }) }) }, l = function(a) { a = $('.map-tabs > li[data-map="' + a + '"]'); var b = a.siblings(".active"), c = a.children("div"); k(b, c, a) }, m = function(c) { "all" === c ? b.markers.forEach(function(b, c) { b.setIcon(a.markerIcon) }) : b.markers.forEach(function(b, d) { d !== c ? b.setIcon(a.markerHover) : b.setIcon(a.markerIcon) }) }, g = function(c) { $(".map-select > div").on("click", function() { var a = $(this), b = a.parent(), c = 100; b.children("ul").css({ display: "block" }); b.children("ul").find("li").each(function() { $(this).delay(c).fadeIn(400); c += 300 }); a.children("span.arrow").removeClass("glyphicon-chevron-down").addClass("glyphicon-chevron-up") }); $(".map-select > ul > li > a").on("click", function(a) { var b = $(this).parents(".map-select"), c = $(this).data("tab"), d = $(this).data("map"), f = $(this).text(), g = 100; a.stopPropagation(); b.find("span.text").text(f); b.children("ul").find("li").each(function() { $(this).delay(g).fadeOut(400); g += 100 }); $(".map-select > ul > li").removeClass("active"); b.children("div").find(".arrow").removeClass("glyphicon-chevron-up").addClass("glyphicon-chevron-down"); $(this).parent().addClass("active"); c && (window.location.hash = c); e(d); l(d); h(d) }); $(".mobile-tabs > ul > li > a").on("click", function() { !1 === $(this).hasClass("opend") ? ($(this).addClass("opend"), $(this).siblings("div.first_step").stop(!0, !0).slideDown(400), $("html, body").animate({ scrollTop: $(document).height() }, "slow"), $(this).children(".glyphicon").removeClass("glyphicon-chevron-up").addClass("glyphicon-chevron-down")) : ($(this).removeClass("opend"), $(this).siblings("div.first_step").stop(!0, !0).slideUp(400), $(this).children(".glyphicon").removeClass("glyphicon-chevron-down").addClass("glyphicon-chevron-up")) }); $(".mobile-tabs > ul > li > div .read_more").on("click", function() { $(this).siblings(".closed").slideDown(400); $("html, body").animate({ scrollTop: $(document).height() }, "slow"); $(this).fadeOut(400) }); $(".mobile-tabs > ul > li > div .read_less").on("click", function() { $(this).parent().slideUp(400); $(this).parent().siblings(".read_more").fadeIn(400) }); google.maps.event.addDomListener(c, "mouseover", function(a) { c.setOptions({ scrollwheel: !0 }) }); google.maps.event.addDomListener($(".map"), "contextmenu", function(a) { a.preventDefault(); a.stopPropogation() }); b.markers.forEach(function(a, b) { google.maps.event.addListener(a, "click", function() { var b = a.zIndex; l(b); e(b); h(b) }) }); $(window).smartresize(function() { var b = new google.maps.LatLng(a.cposition.lat, a.cposition.lng); p(c); c.setCenter(b) }); $(".map-tabs").find('li:not(".active") > div').css({ display: "none" }); $(".map-tabs > li > p").on("click", function() { var a = $(this).parent().data("map"), b = $(this).data("tab"), c = $(this).parent(); $(this); var d = c.children("div"), f = $(this).parent().siblings(".active"); !1 === c.parent().hasClass("animating") && !1 === $(this).parent().hasClass("active") && (b && (window.location.hash = b), c.parent().addClass("animating"), e(a), k(f, d, c), h(a)) }) }, p = function(b) { var c = $(window), d = c.innerHeight() - ($(".dark-navbar").outerHeight() + $(".bottom-panel").outerHeight() + $(".gradient-responsive-bar").outerHeight()); c = c.width(); new google.maps.LatLng(a.cposition.lat, a.cposition.lng); 480 >= c ? ($(".map-header").css({ height: d }), google.maps.event.trigger(b, "resize"), b = 0 < $(".map-tabs").length ? !0 : !1, b ? ($(".main-part").fadeOut(), $(".footer").hide()) : ($(".main-part").fadeIn(), $(".footer").show())) : ($(".map-header").css({ height: "initial" }), $(".main-part").fadeIn()) }, n = function(c) { var e = a.markerIcon; if (0 === d.length) return !1; 1 < d.length && d.forEach(function(a, d) { var f = new google.maps.LatLng(a.lat, a.lng); f = new google.maps.Marker({ position: f, map: c, icon: e, title: a.title, zIndex: d }); b.markers.push(f) }); g(c); f() }; b.markers = []; (function() { var c = { center: { lat: a.cposition.lat, lng: a.cposition.lng }, zoom: a.zoom, disableDefaultUI: a.disableDefaultUI, scrollwheel: !1 }, d = new google.maps.StyledMapType(a.style, { name: "Styled Map" }); c = new google.maps.Map(b.get(0), c); c.mapTypes.set("map_style", d); c.setMapTypeId("map_style"); n(c); p(c) })(); return b }; $.fn.promotionalBox = function() { var c = this, d = function(b) { var a = 0; b = b.children("div"); b.children("div").css({ height: "initial" }); b.each(function() { var b = $(this).outerHeight(); b > a && (a = b) }); b.children("div").css({ height: a }) }; (function() { c.each(function() { d($(this)) }); $(window).smartresize(function() { c.each(function() { d($(this)) }) }) })(); return c }; $.fn.grasshopperTabs = function() { var c = this; c.find(".h6-wrapper").children("h6").off("click").on("click", function() { var c = $(this).parents("li").index(), b = $(this).data("tab"), a = $(this).parents(".tab-control"), e = a.children("li.active"); !1 === $(this).parents("li").hasClass("active") && (b && (window.location.hash = b), e.children(".tab").stop(!0, !0).slideUp(400, function() { e.removeClass("active"); a.children("li").eq(c).children(".tab").slideDown(400); a.children("li").eq(c).addClass("active") })) }); (function() { var d = window.location.hash; d = d.replace("#", "").toLowerCase().trim(); "" !== d && c.find(".h6-wrapper").children("h6").each(function() { var b = $(this).data("tab"); d === b && $(this).trigger("click") }) })(); return c }; $.fn.ExtendableProducts = function() { var c = this, d = function() { var b = $(this).parent().children(".extedable"); $(this).removeClass("read_more").addClass("read_less").children("span.text").text("Read less"); $(this).children("span.png").removeClass("plus").addClass("minus"); b.stop(!0, !1).slideDown(400); a() }, b = function() { var b = $(this).parent().children(".extedable"); $(this).removeClass("read_less").addClass("read_more").children("span.text").text("Read more"); $(this).children("span.png").removeClass("minus").addClass("plus"); b.stop(!0, !1).slideUp(400); a() }, a = function() { c.find("a.read_more").off("click").on("click", d); c.find("a.read_less").off("click").on("click", b) }; a(); return c }; $.fn.StepsTab = function() { this.find(".h6-wrapper").children("h6").on("click", function() { var c = $(this).parents("li").index(), d = $(this).parents(".tab-control"), b = d.children("li.active"); !1 === $(this).parents("li").hasClass("active") && b.children(".tab").stop(!0, !0).slideUp(400, function() { b.removeClass("active"); d.children("li").eq(c).children(".tab").slideDown(400); d.children("li").eq(c).addClass("active") }) }); return this }; $.fn.overlayExpander = function() { var c = this, d = function(a, b) { var c = 0; a.siblings("div").children().each(function(a, b) { c < $(this).height() && (c = $(this).height()) }); b.css({ height: c + 120 }) }, b = function() { c.each(function() { 0 !== $(this).find(".read_more").length && ($(this).find("a.read_more").off("click").on("click", function() { var a = $(this), b = 100, c = a.parent(), h = c.parent(), k = h.outerHeight(); a.css({ display: "none" }); c.animate({ left: -1 * (a.parent().position().left - 20) }, 400); c.addClass("opend"); 768 < $(window).width() ? (h.css({ height: k }), a.parent().siblings("div").each(function(c, e) { $(this).fadeOut(400, function() { 1 === c && (a.parent().css({ left: "0px" }), a.siblings("div").children("div").addClass("col-lg-4 col-md-4 col-sm-4").removeClass("col-lg-12 col-md-12 col-sm-12"), a.parent().addClass("col-lg-12 col-md-12 col-sm-12").removeClass("col-lg-4 col-md-4 col-sm-4"), a.siblings("div").children(".vanishing").each(function(c, e) { d(a, h); $(this).fadeIn(400, function() {}); b += 50 }), a.parent().parent().children("a.close_expanded").fadeIn(400, function() { a.siblings(".read_less").css({ display: "inline-block" }) })) }) })) : (a.parent().css({ left: "0px" }), a.siblings("div").children("div").addClass("col-lg-4 col-md-4 col-sm-4").removeClass("col-lg-12 col-md-12 col-sm-12"), a.parent().addClass("col-lg-12 col-md-12 col-sm-12").removeClass("col-lg-4 col-md-4 col-sm-4"), a.siblings("div").children(".vanishing").each(function() { $(this).delay(b).fadeIn(400); b += 50 }), a.fadeOut(400), a.parent().parent().children("a.close_expanded").animate({ top: a.parent().position().top }, 400), a.parent().parent().children("a.close_expanded").fadeIn(400), a.siblings(".read_less").css({ display: "inline-block" })) }), $(this).find("a.close_expanded").on("click", function() { var a = $(this).parent(); a.children("div.col-lg-12.col-md-12.col-sm-12").index(); a.removeClass("opend"); 768 < $(window).width() ? a.children("div.col-lg-12.col-md-12.col-sm-12").find(".vanishing").fadeOut(400, function() { a.children("div.col-lg-12.col-md-12.col-sm-12").children("div").children("div").addClass("col-lg-12 col-md-12 col-sm-12").removeClass("col-lg-4 col-md-4 col-sm-4"); $(this).addClass("col-lg-12 col-md-12 col-sm-12").removeClass("col-lg-4 col-md-4 col-sm-4"); a.children("div.col-lg-12.col-md-12").addClass("col-lg-4 col-md-4 col-sm-4").removeClass("col-lg-12 col-md-12 col-sm-12"); a.find("a.read_less").css({ display: "none" }); a.find("a.read_more").css({ display: "inline-block" }); a.css({ height: "initial" }); a.children("div").fadeIn(200); a.removeClass("opend") }) : (a.removeClass("opend"), a.children("div.col-lg-12.col-md-12.col-sm-12").find(".vanishing").fadeOut(800, function() { a.children("div.col-lg-12.col-md-12.col-sm-12").children("div").children("div").addClass("col-lg-12 col-md-12 col-sm-12").removeClass("col-lg-4 col-md-4 col-sm-4"); $(this).addClass("col-lg-12 col-md-12 col-sm-12").removeClass("col-lg-4 col-md-4 col-sm-4"); a.children("div.col-lg-12.col-md-12").addClass("col-lg-4 col-md-4 col-sm-4").removeClass("col-lg-12 col-md-12 col-sm-12").find("a.read_more").css({ display: "inline-block" }); a.children("div.col-lg-12.col-md-12").addClass("col-lg-4 col-md-4 col-sm-4").removeClass("col-lg-12 col-md-12 col-sm-12").css({ left: "0px" }); a.children("div").fadeIn(400); a.find("a.read_less").css({ display: "none" }); a.find("a.read_more").css({ display: "inline-block" }) })); $(this).fadeOut(400) }), $(this).find(".read_less").off("click").on("click", function() { var a = $(this).siblings("div"), b = $(this), c = a.parent(), d = c.children(".read_more"); a.find(".vanishing").fadeOut(200, function() { $(this).addClass("col-lg-12 col-md-12 col-sm-12").removeClass("col-lg-4 col-md-4 col-sm-4"); c.removeClass("col-lg-12 col-md-12 col-sm-12").addClass("col-lg-4 col-md-4 col-sm-4"); c.siblings("div").fadeIn(200); a.children("div").removeClass("col-lg-4 col-md-4 col-sm-4").addClass("col-lg-12 col-md-12 col-sm-12"); c.parent().css({ height: "initial" }); $("a.close_expanded").fadeOut(200); d.css({ display: "inline-block" }) }); c.removeClass("opend"); b.css({ display: "none" }) })) }) }; c.activeEl = 0; c.css({ position: "relative" }); c.each(function() { 0 !== $(this).find(".read_more").length && b() }) }; $.fn.fullSiteTabs = function() { var c = function() { var b = window.location.hash; b = b.replace("#", "").toLowerCase().trim(); "" !== b && $(".full-site-tabs > li").each(function() { var a = $(this).data("tab"); b === a && $(this).trigger("click") }) }, d = function() { $(".full-site-tabs > li").off("click").on("click", function() { var b = $(this), a = b.index(), c = $(this).parents(".row"), d = b.data("link"), h = b.data("image"), k = b.data("h3"), l = b.data("h1"), event, eventName = 'showTab', m = b.data("tab"); !1 === b.hasClass("active") && !1 === b.parent().hasClass("animating") && (d ? window.location.href = "/personal/" + d + ".do" : m && (window.location.hash = m, $(".bg").attr("src", h), $(".cpc-page-header > h3").html(k), $(".cpc-page-header > h1").html(l)), c.find(".full-site-tabs > li.active").removeClass("active"), b.addClass("active"), b.parent().addClass("animating"), c.find(".cms-article.opend").stop(!0, !1).hide().removeClass("opend"), c.find(".cms-article").eq(a).show().addClass("opend"), b.parent().removeClass("animating"), document.createEvent ? (event = document.createEvent("HTMLEvents"), event.initEvent(eventName, true, true) ) : ( event = document.createEventObject(), event.eventType = eventName), event.eventName = eventName, document.createEvent ? this.dispatchEvent(event) : this.fireEvent("on" + event.eventType, event), "undefined" != typeof LazyLoad && LazyLoad.load()) }); $(".full_site_back").off("click").on("click", function() { var b = 0 < $(".full-site-tabs").length ? $(".full-site-tabs").offset().top : 60; $("body, html").animate({ scrollTop: b - 60 }, 400) }); $(window).on('scroll', function() { var b = $(".full_site_back"); var a = 0 < $(".full-site-tabs").length ? $(".full-site-tabs").offset().top : $(window).height(); $(window).scrollTop() > a ? b.fadeIn(400) : b.fadeOut(400) }); $(window).smartresize(function() { var b = 0, a = $(".full-site-tabs > li"); a.css({ height: "initial" }); a.each(function() { var a = $(this).outerHeight(!1); a > b && (b = a) }); a.css({ height: b }) }) }; (function() { for (var b = $(".cms-article.opend"), a = 1, e = $(".full-site-tabs > li").length; a < e;) b = b.next().addClass("cms-article site-tabs"), a += 1; 0 === $(".full_site_back").length && $("body").append(""); d(); c() })(); return this }; $.fn.grassHopper_Tabs = function(c) { var d = this; d.currentTab = 0; d.beforeOpen = function(b, a, c) { c(b, a) }; d.afterOpen = function(b, a, c) { c(b, a) }; d.openTab = function(b) { d.children("ul.tab-controls").children("li").removeClass("active"); d.children("ul.tab-controls").children("li").eq(b).addClass("active"); d.find("ul.tab").children("li").eq(d.currentTab).stop(!0, !1).slideUp(600, function() { d.find("ul.tab").children("li").eq(b).stop(!0, !0).slideDown(600); d.currentTab = b }) }; d.createControls = function() { var b = d.children("ul.tab-controler"), a = b.children("li").length, c = Math.round(100 / a); b.children("li").css({ width: c + "%" }); 100 !== c * a && 100 > c * a && (c = 100 - (a - 1) * c, b.children("li:last-of-type").css({ width: c + "%" })); d.find("ul").each(function() { $(this).children("li").eq(0).addClass("active") }) }; d.attachEvent = function() { d.children("ul.tab-controler").children("li").on("click", function() { var b = $(this).index(); d.openTab(b) }) }; $.extend({}, c); d.createControls(); d.attachEvent() }; $.fn.GrassHopper_cookie = function(c, d, b) { var a = this; a.cookieDays = d || null; a.cookieValue = b || 1; a.cookieName = c || "CitiCookie_"; a.template = $(' '); a.setCookie = function(a, b, c) { a = a || ""; b = b || 1; c = c || null; if ("" === b) return b; if (null !== c) { var d = new Date; c = new Date(d.getTime() + 864E5 * c) } else d = new Date, c = new Date(d.getTime() + 31104E6); c = "; expires=" + c.toUTCString(); document.cookie = a + "=" + b + c + "; path=/"; return b }; a.getCookie = function(a) { var b = document.cookie.split(";"), c = !1, d; if (!a) return c; for (d = b.length - 1; 0 <= d; --d) { var e = b[d].split("="); e[0] = e[0].trim(); if (e[0] === a) { c = e[1]; break } } return c }; a.randerCookieInfo = function(b, c, d) { !1 === a.getCookie(b) && (a.append(a.template), $(".cookies-conteiner").show(0), $(".cookies-conteiner a.close-it").on('click', function() { $(this).parents(".cookies-conteiner").animate({ height: 0 }, 500); a.setCookie(b, c, d) })) }; a.randerCookieInfo(a.cookieName, a.cookieValue, a.cookieDays) } })(); window.grasshoperReady = true;