(function(){"use strict";function n(){var t=$("<p style='position:absolute;top:0;left:-999px;background-color:#878787;'>T<\/p>"),n=t.css("background-color").toLowerCase();$.isHCW=n!=="#878787"&&n!=="rgb(135, 135, 135)"&&(n=="#FFFFFF"||n=="rgb(255, 255, 255)");$.isHCW?$("#slickcarousel").find(".slick-dots").addClass("hc-white"):$("#slickcarousel").find(".slick-dots").removeClass("hc-white")}var i=!1,r=null,t;$(function(){$("#ctl11_ctl05_SearchTextBox").on("keydown",function(){$(this).val()!=""?$("#deleteImageGlass").css("display","inline-block"):$("#deleteImageGlass").css("display","none")});$("#deleteImageGlass").on("click",function(){$("#ctl11_ctl05_SearchTextBox").val("")});$("#deleteImageGlass").on("blur",function(){$("#ctl11_ctl05_SearchTextBox").val()==""&&$("#deleteImageGlass").css("display","none")});$("#deleteImageGlass").on("keydown",function(n){if(n.keyCode==13)return $("#ctl11_ctl05_SearchTextBox").val(""),n.stopPropagation(),!1});t();$("#skiplink").focus(function(){$(this).css("left","0px")});$("#skiplink").blur(function(){$(this).css("left","-10000px")});$("#skiplink").on("click",function(){$("#ctl11_ctl05_SearchTextBox").focus()});$("#skipfooterlink").focus(function(){$(this).css("left","0px")});$("#skipfooterlink").blur(function(){$(this).css("left","-10000px")});$("body").on("click",function(){$(".submenu.menu-hidden").hide();$("#menu .hasItems").removeClass("top-menu-click");r=null;i=!1});$(".submenu.menu-hidden").on("click",function(n){n.stopPropagation()});n();setInterval(n,1e3)});t=function(){var n=$(".mscom_header"),r=n.find(".mscom-header-navtogglelink"),t=$(".mscom_navigation #menu"),u=n.find(".mscom-header-searchtogglelink"),i=$(".mscom_navigation .searchBar");$(r).on("click",function(){t.slideToggle()});$(u).on("click",function(){i.slideToggle()});$(window).resize(function(){$(this).width()>"899"&&($(t).show(),$(i).show())})}})(),function(n,t,i){"use strict";function o(t,i){var r=n("#messageDrawerMessages div").filter(function(){return n(this).text().substring(0,20)===t.substring(0,20)});r.length===0&&n("#messageDrawer").attr("class",i).slideDown().promise().done(function(){n("#messageDrawerMessages").append("<div>"+t+"<\/div>");var r=n(".top-bar").outerHeight(),i=n("#messageDrawer").outerHeight();n("#content").animate({paddingTop:r+i+"px"},400);n("#closeButtonContainer").css("line-height",i+"px")})}var f=t.Microsoft=t.Microsoft||{},s;f.Support=f.Support||{};f.Support.Mvp=f.Support.Mvp||{};var r=f.Support.Mvp.PrivatePortal=f.Support.Mvp.PrivatePortal||{},e=function(n,t){for(var i=""+n;i.length<t;)i="0"+i;return i},u={"en-us":function(n){return[n.getMonth()+1,n.getDate(),n.getFullYear()].join("/")},"pt-br":function(n){var t=n.getMonth()+1,i=n.getDate(),r=n.getFullYear();return[e(i,2),e(t,2),r].join("/")},"zh-tw":function(n){var t=n.getMonth()+1,i=n.getDate(),r=n.getFullYear();return[r,t,i].join("/")},"ko-kr":function(n){var t=n.getMonth()+1,i=n.getDate(),r=n.getFullYear();return[r,e(t,2),e(i,2)].join("-")},"ja-jp":function(n){var t=n.getMonth()+1,i=n.getDate(),r=n.getFullYear();return[r,e(t,2),e(i,2)].join("/")}};u["ru-ru"]=function(n){return u["pt-br"](n).replace(/\//g,".")};u["fr-fr"]=u["pt-br"];u["de-de"]=u["ru-ru"];u["it-it"]=u["pt-br"];u["es-es"]=u["pt-br"];u["zh-cn"]=u["zh-tw"];s=function(i){i.on("keydown","td",function(i){var f,e;if(i.keyCode=="37")return n(this).prev().focus(),!1;if(i.keyCode=="38"){var u=n(n(this).parents("tr")[0]).data("rowindex"),r=n(this).data("column"),s=u=="1"?!0:!1;return s?(n(this).parents("tbody").prev().children().first().find("[data-column="+r+"]").focus(),!1):(n(this).parents("tr").prev().find("[data-column="+r+"]").focus(),!1)}if(i.keyCode=="39")return n(this).next().focus(),!1;if(i.keyCode=="40"){var u=n(n(this).parents("tr")[0]).data("rowindex"),r=n(this).data("column"),h=u==0?!0:!1;return h?(n(this).parents("thead").next().children().first().find("[data-column="+r+"]").focus(),!1):(n(this).parents("tr").next().find("[data-column="+r+"]").focus(),!1)}if(i.keyCode=="13"){if(f=n(this).children().hasClass("visibilityBox"),e=n(this).children().data("link"),f){n(this).children().find(".SelectedItem").click();n(n(this).children().find(".Item a")[0]).focus();return}if(e){var o=n(n(this).children()[0]),c=o.attr("href"),l=o.attr("target");t.open(c)}else n(this).children().click()}else return})};r.FormatString=function(){for(var i,t=arguments[0],n=0;n<arguments.length-1;n++)i=new RegExp("\\{"+n+"\\}","gm"),t=t.replace(i,arguments[n+1]);return t};r.GetDateFormatterByCulture=function(n){return u[n]};r.MvpEvent=function(){var n=[];this.add=function(t){for(var i=0;i<n.length;i++)if(n[i]===t)return;n.push(t)};this.remove=function(t){for(var i=0;i<n.length;i++)if(n[i]===t){n.splice(i,1);return}};this.fire=function(){for(var t=0;t<n.length;t++)n[t].apply(null,arguments)}};r.Pagger=function(n,t,i,u){var o=1,h=1,f=Math.ceil(n.length/t),e,s;f=f==0?1:f;e=function(i){var r=(i-1)*t,u=r+t;n.hide();n.slice(r,u).show();o=i};this.getMaxPage=function(){return f};this.gotoPage=function(n){e(n);this.onPageChanged.fire($pageNumber,n,f)};this.onPageChanged=new r.MvpEvent;this.nextPage=function(){var n=o+1;n>f||(e(n),this.onPageChanged.fire(n,f))};this.previousPage=function(){var n=o-1;n<h||(e(n),this.onPageChanged.fire(n,f))};s=this;u.click(function(){return s.previousPage(),!1});i.click(function(){return s.nextPage(),!1});e(1)};r.Pagger2=function(t,i,u,f,e,o,s){var h=0,p=1,c=Math.ceil(t.length/i),y={date:null,title:null,type:null},a=s,v=function(n){var r,u,f;r=(n-1)*i;u=r+i;f=t.slice(r,u);a&&typeof a=="function"&&a(f);h=n},l;this.gotoPage=function(n){n=parseInt(n);v(n);this.onPageChanged.fire(e,o,n,c)};this.setRenderFunc=function(n){a=n};this.getMaxPage=function(){return c};this.getCurrentPage=function(){return h};this.onPageChanged=new r.MvpEvent;this.sortItems=function(n){var i=(y[n]||"desc")=="desc"?"asc":"desc";y[n]=i;t.sort(function(t,r){var e=n.split("."),u,f;return e.length==2?(u=t[e[0]][e[1]].toLowerCase(),f=r[e[0]][e[1]].toLowerCase()):t[n]!=null&&r[n]!=null&&(u=t[n].toLowerCase(),f=r[n].toLowerCase()),(n=="date"||n.substring(0,4).toLowerCase()==="date")&&(u=new Date(u),f=new Date(f)),u>f?i=="asc"?1:-1:u==f?0:i=="asc"?-1:1});v(h)};this.nextPage=function(){var n=h+1;n>c||(v(n),this.onPageChanged.fire(e,o,n,c))};this.previousPage=function(){var n=h-1;n<p||(v(n),this.onPageChanged.fire(e,o,n,c))};l=this;f.click(function(){return l.previousPage(),n("#currentPage").parents("a").focus(),n(".previousPage").focus(),!1});u.click(function(){return l.nextPage(),n(".nextPage").focus(),!1});try{o.on("click",".pagerOver",function(){return l.gotoPage(n(this).find("span").html()),n("#currentPage").parents("a").focus(),!1})}catch(w){}try{o.on("keydown","a",function(t){if(t.keyCode=="13")return l.gotoPage(n(this).find(".pagerOver span").html()),n("#currentPage").parents("a").focus(),!1})}catch(w){}this.start=function(){this.nextPage()}};r.ShowRemoteDialog=function(t,i){var r=n.extend({url:t,cache:!1,type:"GET",dataType:"html"},n.isPlainObject(t)?t:{}),u=n.isFunction(r.success)?r.success:n.noop;r.success=function(t,r,f){if(u(t,r,f)!==!1){var e=n(t).filter("div").first();n(document.body).append(e).append(n(t).filter("script"));e.dialog(n.extend({resizable:!1,modal:!0,dialogClass:"mvp-dialog"},i)).on("dialogopen",function(){}).on("dialogclose",function(){e.dialog("destroy").remove()}).on("click","button[sub-type='closedialog']",function(){e.dialog("close")})}};n.ajax(r)};r.SetVisibility=function(t,i){var r=n("input[name='"+t+"']").parent();r.find(".ItemsList li[value='"+i+"']").click();n.visibilityBox.HideDropList(r)};r.MoniterFormChange=function(i,r){var u=n(i);u.data("changed",!1);u.find("input,select,textarea").change(function(){u.data("changed",!0)});n(t).bind("beforeunload",function(){if(u.data("changed")==!0)return r})};r.CheckVisibilitySettings=function(t,i){var f=[],e,u,o,s;for(e in i)u=n("input[name='"+e+"Visibility.Id']"),u&&u.val()!=i[e]&&f.push(u.data("fieldname"));return f.length>0?(t=n(t),t.empty(),o=f.join("<br/>"),s=t.data("unsavedtext"),t.html(r.FormatString(s,o)),!1):!0};r.ShowFlashMessage=function(t){var r=n("body"),i=n(".flashmessage-autogenerated");i.length==0?(n(r).append('<div class="flashmessage-autogenerated" style="display:none; z-index:9999; position:fixed; top:20px; left: 0px; width:100%; text-align: center;background-color: #1570A6; color: white; font-weight:bold; font-size:1.2em; padding: 10px 0;filter: alpha(opacity=90); -moz-opacity: 0.9;opacity: 0.9;">'+t+"<\/div>"),i=n(".flashmessage-autogenerated")):i.html(t);i.show().delay(2e3).fadeOut()};r.SetHeightAndTop=function(t){var r=n("#imageContainer"),u=t.width,i=t.height,o=u/i,f=3/4,e=u/f,s=e-i,h=s/2;o<f?(r.height(e),t.css("top",h)):r.height(i)};r.AddAntiForgeryToken=function(t){return t.__RequestVerificationToken=n("#__AjaxAntiForgeryForm input[name=__RequestVerificationToken]").val(),t};r.ShowPortalAnnouncements=function(t,i){r.HideMessageDrawer();n.ajax({type:"GET",url:"/MVPBase/GetPortalAnnouncements",data:{id:t,viewedMessageIDs:i},dataType:"json",cache:!1}).done(function(t){var u=r.GetViewedMsgFlag(),i=r.GetViewedMsgFlag()!=null?r.GetViewedMsgFlag().split("|"):[];n.each(t,function(n,t){r.ShowNotification(t.message);i.push(t.messageId)});n("#messageDrawer").attr("data-messageids",i.join("|"))}).fail(function(){r.ShowError("There was an error getting the announcement.")})};r.ShowNotification=function(n){o(n,"notification")};r.ShowError=function(n){o(n,"error")};r.HideMessageDrawer=function(){n("#messageDrawerMessages div").remove();n("#messageDrawer").slideUp();n("#content").animate({paddingTop:n(".top-bar").outerHeight()+"px"},400)};r.SetViewedMsgFlag=function(){if(typeof Storage!="undefined"){var t=n("#messageDrawer").attr("data-messageids");localStorage.setItem("messageWatched",t)}};r.GetViewedMsgFlag=function(){if(typeof Storage!="undefined")return localStorage.getItem("messageWatched")};r.RemoveViewedFlag=function(){typeof Storage!="undefined"&&localStorage.removeItem("messageWatched")};"function"!=typeof Array.prototype.sum&&(Array.prototype.sum=function(){var t,n;if(null===this||"undefined"==typeof this)throw new TypeError("Array.prototype.sum called on null or undefined");if(0===this.length)return i;for(t=this[0],n=1;n<this.length;n++)t+=this[n];return t});"function"!=typeof Array.prototype.where&&(Array.prototype.where=function(n){var t,i;if(null===this||"undefined"==typeof this)return this;if(typeof n!="function")throw new TypeError(n+" is not a function");var r=[],u=arguments.length>=2?arguments[1]:void 0,f=this.length;for(t=0;t<f;t++)i=this[t],n.call(u,i,t,this)&&r.push(i);return r});"function"!=typeof Array.prototype.select&&(Array.prototype.select=function(n){var t;if(null===this||"undefined"==typeof this)return this;if(typeof n!="function")throw new TypeError(n+" is not a function");var i=[],r=arguments.length>=2?arguments[1]:void 0,u=this.length;for(t=0;t<u;t++)i.push(n.call(r,this[t],t,this));return i})}($,window,undefined)