jQuery(document).ready(function(){function i(n){n.wrap("<div class='table-wrapper' />");var t=n.clone();t.find("td:not(:first-child), th:not(:first-child)").css("display","none"),t.removeClass("responsive"),n.closest(".table-wrapper").append(t),t.wrap("<div class='pinned' />"),n.wrap("<div class='scrollable' />"),u(n,t)}function r(n){n.closest(".table-wrapper").find(".pinned").remove(),n.unwrap(),n.unwrap()}function u(n,t){var r=n.find("tr"),u=t.find("tr"),i=[];r.each(function(n){var t=$(this),r=t.find("th, td");r.each(function(){var t=$(this).outerHeight(!0);i[n]=i[n]||0,t>i[n]&&(i[n]=t)})}),u.each(function(n){$(this).height(i[n])})}$("table").addClass("responsive");var n=!1,t=function(){if($(window).width()<767&&!n)return n=!0,$("table.responsive").each(function(n,t){i($(t))}),!0;n&&$(window).width()>767&&(n=!1,$("table.responsive").each(function(n,t){r($(t))}))};$(window).load(t);$(window).on("redraw",function(){n=!1,t()});$(window).on("resize",t)}),jQuery(document).ready(function(n){n(".videoId").css("display","none"),n(".fancybox").fancybox();var t=window.location.pathname;n(".desktopMenuItemsList li a").each(function(){n(this).attr("href")==t?n(this).addClass("orangeTriangle"):n(this).addClass("greyTriangle")}),n(".homeHeader a").each(function(){n(this).addClass("headerAnchor")}),n(".mobileMenuHeaderList").show(),n(".mobileMenuItemsList").hide(),n(".mobileMenuItemsList li ").each(function(){n(this).addClass("greyTriangle")}),n(".mobileMenuHeaderList li a").each(function(){n(this).addClass("orangeTriangle")}),n(".mobileMenuHeaderList a").click(function(){n(".mobileMenuItemsList").is(":visible")?n(".mobileMenuItemsList").hide():n(".mobileMenuItemsList").show()}),n("#homeBodyText div div").removeClass("outerDiv"),n(window).resize(function(){n(".main-nav").equalHeights()}),n(window).resize()}),function(n){n.fn.equalHeights=function(){return this.each(function(){var t=n(this).find("a"),i=n(document).width();i<752||i>=1040?t.height(18):t.height(30),n("#mobileTopMenu .row .main-nav li a").height(18)})}}(jQuery),jQuery(document).ready(function(){return $.each($("a"),function(){if(this.href.indexOf("youtube")!=-1){var n=$(this).attr("href"),t=n.split("v=")[1],i=t,r="http://www.youtube.com/embed/"+i;$(this).attr("href",r),$(this).attr("class","youtube fancybox.iframe")}}),$(".youtube").fancybox({maxWidth:398,maxHeight:305,fitToView:!0,autoSize:!1,closeClick:!1,openEffect:"elastic",closeEffect:"none"}),!1}),jQuery(document).ready(function(){function n(n,t){$("#ExitWarning").modal({closeHTML:"<a href='#' title='Close' class='modal-close'>x<\/a>",overlayId:"confirm-overlay",containerId:"confirm-container",position:["35%"],autoResize:!0,autoPosition:!0,maxHeight:150,maxWidth:300,overlayClose:!0,onShow:function(i){var r=this;$(".url",i.data[0]).text(n),$(".yes",i.data[0]).click(function(){$.isFunction(t)&&t.call(null),r.close()}),$(".no",i.data[0]).click(function(){r.close()})}})}$("a[href]").filter(function(){return["https:","http:","mailto:"].indexOf(this.protocol)>-1&&this.hostname!==window.location.hostname&&!$(this).hasClass("youtube")}).click(function(t){t.preventDefault();var i=this.href;n(this.hostname,function(){window.location.href=i})})})