var fileExtensions = "doc|docm|docx|flv|mp3|mp4|mpeg|mpg|mov|pdf|ppt|pptx|rss|txt|wma|wmv|xls|xlsx|zip"; var pathFilter = ".*Portals\/\d*\d\/"; var trackedFilter = ""; function trackEvent(category, action, label, value) { var reformedCategory = jQuery.trim(category).toLowerCase(); var reformedAction = jQuery.trim(action).toLowerCase(); var reformedLabel = jQuery.trim(label); var reformedValue = ''; try { if (value > 0) { reformedValue = parseInt(value) } else { reformedValue = '' } } catch (err) { reformedValue = '' } if (typeof (_gaq) != 'undefined') { if (reformedValue == '') { _gaq.push(['_trackEvent', reformedCategory, reformedAction, reformedLabel]) } else { _gaq.push(['_trackEvent', reformedCategory, reformedAction, reformedLabel, parseInt(reformedValue)]) } return true } else if (typeof (self.urchinTracker) != 'undefined') { urchinTracker('/' + reformedCategory + '/' + reformedAction + '/' + reformedLabel + '/' + reformedValue); return true } return false } jQuery(document).ready(function($) { var isInternal = new RegExp("^https?:\/\/" + window.location.host, "i"); var isMailto = new RegExp("^mailto:", "i"); var isDownload = new RegExp("\\.(" + fileExtensions + ")$", "i"); if (trackedFilter && (typeof trackedFilter == "string")) { var isTracked = new RegExp(trackedFilter, "i") } else { var isTracked = new RegExp("^&") } $.expr[':'].external = function(obj) { return !isInternal.test(obj.href) && !isTracked.test(obj.href) && !isDownload.test(obj.href) && !isMailto.test(obj.href) && !obj.href.match(/^javascript\:/) }; $.expr[':'].mailto = function(obj) { return isMailto.test(obj.href) }; $.expr[':'].download = function(obj) { return isDownload.test(obj.href) }; $("a:external").click(function() { trackEvent('External', 'Click', this.href); pauseJS(400) }); $("a:mailto").click(function() { trackEvent('Email', 'Click', this.href.substring(7)) }); $("a:download").click(function() { var extension = isDownload.exec(this.href); var file = this.href.replace(isInternal, ''); if (pathFilter && (typeof pathFilter == "string")) { var pFRegExp = new RegExp(pathFilter, "i"); file = file.replace(pFRegExp, '') } trackEvent('Download', extension[1], file); pauseJS(400) }) }); function pauseJS(timeInMilliS) { var date = new Date(); var curDate = null; do { curDate = new Date() } while (curDate - date < timeInMilliS) }
function pdfnocache(){var a="timestamp="+new Date().getTime();jQuery('a[href$=".pdf"]').each(function(){var b=$(this).attr("href");if(b){b+=(b.match(/\?/)?"&":"?")+a;$(this).attr("href",b)}})};
function docnocache(){var a="timestamp="+new Date().getTime();jQuery('a[href$=".doc"]').each(function(){var b=$(this).attr("href");if(b){b+=(b.match(/\?/)?"&":"?")+a;$(this).attr("href",b)}})};
function docxnocache(){var a="timestamp="+new Date().getTime();jQuery('a[href$=".docx"]').each(function(){var b=$(this).attr("href");if(b){b+=(b.match(/\?/)?"&":"?")+a;$(this).attr("href",b)}})};
function xlsnocache(){var a="timestamp="+new Date().getTime();jQuery('a[href$=".xls"]').each(function(){var b=$(this).attr("href");if(b){b+=(b.match(/\?/)?"&":"?")+a;$(this).attr("href",b)}})};
function xlsxnocache(){var a="timestamp="+new Date().getTime();jQuery('a[href$=".xlsx"]').each(function(){var b=$(this).attr("href");if(b){b+=(b.match(/\?/)?"&":"?")+a;$(this).attr("href",b)}})};
!function (e) { "use strict"; e.fn.meanmenu = function (n) { var a = { meanMenuTarget: jQuery(this), meanMenuContainer: "body", meanMenuClose: "X", meanMenuCloseSize: "18px", meanMenuOpen: "<span /><span /><span />", meanRevealPosition: "right", meanRevealPositionDistance: "0", meanRevealColour: "", meanScreenWidth: "480", meanNavPush: "", meanShowChildren: !0, meanExpandableChildren: !0, meanExpand: "+", meanContract: "-", meanRemoveAttrs: !1, onePage: !1, meanDisplay: "block", removeElements: "" }; n = e.extend(a, n); var t = window.innerWidth || document.documentElement.clientWidth; return this.each(function () { var e = n.meanMenuTarget, a = n.meanMenuContainer, r = n.meanMenuClose, i = n.meanMenuCloseSize, u = n.meanMenuOpen, s = n.meanRevealPosition, m = n.meanRevealPositionDistance, l = n.meanRevealColour, o = n.meanScreenWidth, c = n.meanNavPush, h = ".meanmenu-reveal", v = n.meanShowChildren, d = n.meanExpandableChildren, y = n.meanExpand, j = n.meanContract, Q = n.meanRemoveAttrs, g = n.onePage, f = n.meanDisplay, p = n.removeElements, C = !1; (navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPod/i) || navigator.userAgent.match(/iPad/i) || navigator.userAgent.match(/Android/i) || navigator.userAgent.match(/Blackberry/i) || navigator.userAgent.match(/Windows Phone/i)) && (C = !0), (navigator.userAgent.match(/MSIE 8/i) || navigator.userAgent.match(/MSIE 7/i)) && jQuery("html").css("overflow-y", "scroll"); var w = "", x = function () { if ("center" === s) { var e = window.innerWidth || document.documentElement.clientWidth, n = e / 2 - 22 + "px"; w = "left:" + n + ";right:auto;", C ? jQuery(".meanmenu-reveal").animate({ left: n }) : jQuery(".meanmenu-reveal").css("left", n) } }, A = !1, b = !1; "right" === s && (w = "right:" + m + ";left:auto;"), "left" === s && (w = "left:" + m + ";right:auto;"), x(); var E = "", M = function () { jQuery(E).is(".meanmenu-reveal.meanclose") ? E.html(r) : E.html(u) }, P = function () { jQuery(".mean-bar,.mean-push").remove(), jQuery(a).removeClass("hamburger"), jQuery(e).css("display", f), A = !1, b = !1, jQuery(p).removeClass("mean-remove") }, W = function () { var n = "background:" + l + ";color:" + l + ";" + w; if (o >= t) { jQuery(p).addClass("mean-remove"), b = !0, jQuery(a).addClass("hamburger"), jQuery(".hamburger").prepend('<div class="mean-bar"><a class="logolink" href="/" style="position:absolute;bottom:0;left:0;height:100%;width:33%;"></a><div class="hamburger-wrapper"><a href="#nav" class="hamburger-bun meanmenu-reveal" style="' + n + '">Show Navigation</a></div><nav class="mean-nav"></nav></div>'); var r = jQuery(e).html(); jQuery(".mean-nav").html(r), Q && jQuery("nav.mean-nav ul, nav.mean-nav ul *").each(function () { jQuery(this).is(".mean-remove") ? jQuery(this).attr("class", "mean-remove") : jQuery(this).removeAttr("class"), jQuery(this).removeAttr("id") }), jQuery(e).before('<div class="mean-push" />'), jQuery(".mean-push").css("margin-top", c), jQuery(".meanmenu-reveal").show(), jQuery(h).html(u), E = jQuery(h), jQuery(".mean-nav ul").hide(), v ? d ? (jQuery(".mean-nav ul ul").each(function () { jQuery(this).children().length && jQuery(this, "li:first").parent().append('<a class="mean-expand" href="#" style="font-size: ' + i + '">' + y + "</a>") }), jQuery(".mean-expand").on("click", function (e) { e.preventDefault(), jQuery(this).hasClass("mean-clicked") ? (jQuery(this).text(y), jQuery(this).prev("ul").slideUp(100, function () { })) : (jQuery(this).text(j), jQuery(this).prev("ul").slideDown(100, function () { })), jQuery(this).toggleClass("mean-clicked") })) : jQuery(".mean-nav ul ul").show() : jQuery(".mean-nav ul ul").hide(), jQuery(".mean-nav ul li").last().addClass("mean-last"), E.removeClass("meanclose"), jQuery(E).click(function (e) { e.preventDefault(), A === !1 ? (E.css("text-align", "center"), E.css("text-indent", "0"), E.css("font-size", i), jQuery(".mean-nav ul:first").slideDown(), A = !0) : (jQuery(".mean-nav ul:first").slideUp(), A = !1), E.toggleClass("meanclose"), M(), jQuery(p).addClass("mean-remove") }), g && jQuery(".mean-nav ul > li > a:first-child").on("click", function () { jQuery(".mean-nav ul:first").slideUp(), A = !1, jQuery(E).toggleClass("meanclose").html(u) }) } else P() }; C || jQuery(window).resize(function () { t = window.innerWidth || document.documentElement.clientWidth, t > o, P(), o >= t ? (W(), x()) : P() }), jQuery(window).resize(function () { t = window.innerWidth || document.documentElement.clientWidth, C ? (x(), o >= t ? b === !1 && W() : P()) : (P(), o >= t && (W(), x())) }), W() }) } } (jQuery);
function scrollToTop() { verticalOffset = "undefined" != typeof verticalOffset ? verticalOffset : 0, element = $("body"), offset = element.offset(), offsetTop = offset.top, $("html, body").animate({ scrollTop: offsetTop }, 350, "linear") } $(function () { $(document).on("scroll", function () { $(window).scrollTop() > 600 ? $(".scroll-top-wrapper").addClass("show") : $(".scroll-top-wrapper").removeClass("show") }), $(".scroll-top-wrapper").on("click", scrollToTop) });
$(document).ready(function () { $("#linkDiv a[rel~=external]").prop("target", "_blank"), $('a[target="_blank"]').each(function () { var e = $(this); if (location.hostname !== this.hostname) { var t = void 0 === this.rel ? "" : this.rel.toLowerCase(), n = t.split(" "); -1 === t.indexOf("noopener") && n.push("noopener"), e.attr("rel", n.join(" ").trim()) } }) });