function KeepStateAlive(){var n=JQAjaxText("/AJAXUtilities.aspx","strCall=KeepStateAlive");n==0?setTimeout(KeepStateAlive,6e4):(setTimeout(KeepStateAlive,6e4),intFailedAttempts++)}function Keep508cStateTime(){var n=parseInt(JQAjaxText("/AJAXUtilities.aspx","strCall=GetAuthCookieExpiration")),t;n<=0?self.location.href="/logout.aspx":n<=ticketTime?confirm(GetLocalizedMessage("ML.BASE.JSMSG.PendingSessionExpiration"))&&(t=JQAjaxText("/AJAXUtilities.aspx","strCall=SynchUpAuthTicket"),intCalculatedWarning=6e4,t==0?Section508cTimeout=setTimeout(Keep508cStateTime,intCalculatedWarning):self.location.href="/logout.aspx"):(intCalculatedWarning=n-ticketTime,intCalculatedWarning=intCalculatedWarning<=0?6e4:intCalculatedWarning*6e4,Section508cTimeout=setTimeout(Keep508cStateTime,intCalculatedWarning))}function RenewSessionWithout508CNotification(){var n=readCookie("adHocCookie");n&&Section508cTimeout&&(clearTimeout(Section508cTimeout),KeepStateAlive(),eraseCookie("adHocCookie"),clearInterval(adHocInterval))}function createCookie(n,t,i){var r,u;i?(r=new Date,r.setTime(r.getTime()+i*864e5),u="; expires="+r.toGMTString()):u="",document.cookie=n+"="+t+u+"; path=/"}function readCookie(n){for(var u=n+"=",r=document.cookie.split(";"),t,i=0;i<r.length;i++){for(t=r[i];t.charAt(0)==" ";)t=t.substring(1,t.length);if(t.indexOf(u)==0)return t.substring(u.length,t.length)}return null}function eraseCookie(n){readCookie(n)!=null&&createCookie(n,"",-1)}function DisableSubmitButtons(){$("input[type='submit']").attr("disabled","disabled")}function lookupAjax(n,t){var r,u;if(n.attr("astype")!="0"){var i="",f="",e=!1;return n.attr("asbutton")!=null&&(e=!0,f=n.attr("asbutton")),n.attr("aswidth")!=null&&(t=n.attr("aswidth")),n.attr("asparam")!=null&&(r=function(n){var r,t,i;if(n=="")return{};for(r={},t=0;t<n.length;++t)(i=n[t].split("="),i.length==2)&&(r[i[0]]=decodeURIComponent(i[1].replace(/\+/g," ")));return r}(window.location.search.substr(1).split("&")),i=r.strContentTypeId,i==null&&(i="")),u={serviceUrl:ctx+"/AjaxUtilities.aspx",width:t,autoSubmit:e,autoSubmitButton:f,delimiter:/(,|;)\s*/,deferRequestBy:0,params:{ast:n.attr("astype"),ct:i},noCache:!0},n.autocomplete(u),!1}}function BaseValidatorUpdateDisplay(n){DefaultValidatorUpdateDisplay(n),(n.style.display==="inline"||n.style.visibility==="visible")&&(n.style.display="inline-block")}function findPos(n){var t=curtop=0;if(n.offsetParent)for(t=n.offsetLeft,curtop=n.offsetTop;n=n.offsetParent;)t+=n.offsetLeft,curtop+=n.offsetTop;return[curtop,t]}var intFailedAttempts=0,ticketTime=5,adHocInterval=setInterval(RenewSessionWithout508CNotification,5e3),Meridian;(function(n){function r(n,t,r){var u="("+r.replace(i,"\\$1").replace(/\s/g,"|")+")";return n.replace(new RegExp(u,"gi"),"<strong>$1</strong>")}function t(t,i){this.el=n(t),this.el.attr("autocomplete","off"),this.suggestions=[],this.data=[],this.badQueries=[],this.selectedIndex=-1,this.currentValue=this.el.val(),this.intervalId=0,this.cachedResponse=[],this.onChangeInterval=null,this.ignoreValueChange=!1,this.serviceUrl=i.serviceUrl,this.isLocal=!1,this.options={autoSubmit:!1,autoSubmitButton:"",minChars:2,maxHeight:300,deferRequestBy:0,width:0,highlight:!0,params:{},fnFormatResult:r,delimiter:null,zIndex:9999},this.initialize(),this.setOptions(i)}var i=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\"].join("|\\")+")","g");n.fn.autocomplete=function(i){return new t(this.get(0)||n("<input />"),i)},t.prototype={killerFn:null,initialize:function(){var t,r,i;t=this,r=Math.floor(Math.random()*1048576).toString(16),i="Autocomplete_"+r,this.killerFn=function(i){n(i.target).parents(".autocomplete").size()===0&&(t.killSuggestions(),t.disableKillerFn())},this.options.width||(this.options.width=this.el.width()),this.mainContainerId="AutocompleteContainter_"+r,n('<div id="'+this.mainContainerId+'" style="position:absolute;z-index:9999;"><div class="autocomplete-w1"><div class="autocomplete" id="'+i+'" style="display:none; width:300px;"></div></div></div>').appendTo("body"),this.container=n("#"+i),this.fixPosition(),window.opera?this.el.keypress(function(n){t.onKeyPress(n)}):this.el.keydown(function(n){t.onKeyPress(n)}),this.el.keyup(function(n){t.onKeyUp(n)}),this.el.blur(function(){t.enableKillerFn()}),this.el.focus(function(){t.fixPosition()})},setOptions:function(t){var i=this.options;n.extend(i,t),i.lookup&&(this.isLocal=!0,n.isArray(i.lookup)&&(i.lookup={suggestions:i.lookup,data:[]})),n("#"+this.mainContainerId).css({zIndex:i.zIndex}),this.container.css({maxHeight:i.maxHeight+"px",width:i.width})},clearCache:function(){this.cachedResponse=[],this.badQueries=[]},disable:function(){this.disabled=!0},enable:function(){this.disabled=!1},fixPosition:function(){var t=this.el.offset();n("#"+this.mainContainerId).css({top:t.top+this.el.innerHeight()+"px",left:t.left+"px"})},enableKillerFn:function(){var t=this;n(document).bind("click",t.killerFn)},disableKillerFn:function(){var t=this;n(document).unbind("click",t.killerFn)},killSuggestions:function(){var n=this;this.stopKillSuggestions(),this.intervalId=window.setInterval(function(){n.hide(),n.stopKillSuggestions()},300)},stopKillSuggestions:function(){window.clearInterval(this.intervalId)},onKeyPress:function(t){if(this.disabled=this.options.params.ast=="2"?n("#MainContent_ucSearchWithin_rblSearchWithin").attr("checked")?!0:!1:!1,!this.disabled&&this.enabled){switch(t.keyCode){case 27:this.el.val(this.currentValue),this.hide();break;case 9:case 13:if(this.selectedIndex===-1){this.hide();return}if(this.select(this.selectedIndex),t.keyCode===9)return;break;case 38:this.moveUp();break;case 40:this.moveDown();break;default:return}t.stopImmediatePropagation(),t.preventDefault()}},onKeyUp:function(n){if(!this.disabled){switch(n.keyCode){case 38:case 40:return}if(clearInterval(this.onChangeInterval),this.currentValue!==this.el.val())if(this.options.deferRequestBy>0){var t=this;this.onChangeInterval=setInterval(function(){t.onValueChange()},this.options.deferRequestBy)}else this.onValueChange()}},onValueChange:function(){clearInterval(this.onChangeInterval),this.currentValue=this.el.val();var n=this.getQuery(this.currentValue);if(this.selectedIndex=-1,this.ignoreValueChange){this.ignoreValueChange=!1;return}n===""||n.length<this.options.minChars?this.hide():this.getSuggestions(n)},getQuery:function(t){t=t.toLowerCase();var r,i;return(r=this.options.delimiter,!r)?n.trim(t):(i=t.split(r),n.trim(i[i.length-1]))},getSuggestionsLocal:function(n){var r,i,f,u,t;for(i=this.options.lookup,f=i.suggestions.length,r={suggestions:[],data:[]},n=n.toLowerCase(),t=0;t<f;t++)u=i.suggestions[t],u.toLowerCase().indexOf(n)===0&&(r.suggestions.push(u),r.data.push(i.data[t]));return r},getSuggestions:function(t){var i,r;i=this.isLocal?this.getSuggestionsLocal(t):this.cachedResponse[t],i&&n.isArray(i.suggestions)?(this.suggestions=i.suggestions,this.data=i.data,this.suggest()):this.isBadQuery(t)||(r=this,r.options.params.q=t,n.get(this.serviceUrl,r.options.params,function(n){r.processResponse(n)},"text"))},isBadQuery:function(n){for(var t=this.badQueries.length;t--;)if(n.indexOf(this.badQueries[t])===0)return!0;return!1},hide:function(){this.enabled=!1,this.selectedIndex=-1,this.container.hide()},suggest:function(){if(this.suggestions.length===0){this.hide();return}var i,o,r,s,h,t,u,e,f;for(i=this,o=this.suggestions.length,s=this.options.fnFormatResult,h=this.getQuery(this.currentValue),e=function(n){return function(){i.activate(n)}},f=function(n){return function(){i.select(n)}},this.container.hide().empty(),t=0;t<o;t++)u=this.suggestions[t],r=n((i.selectedIndex===t?'<div class="selected"':'<div class="normal"')+' title="'+u+'">'+s(u,this.data[t],h)+"</div>"),r.mouseover(e(t)),r.click(f(t)),this.container.append(r);this.enabled=!0,this.container.show()},processResponse:function(text){var response;try{response=eval("("+text+")")}catch(err){return}n.isArray(response.data)||(response.data=[]),this.options.noCache||(this.cachedResponse[response.query]=response,response.suggestions.length===0&&this.badQueries.push(response.query)),response.query===this.getQuery(this.currentValue)&&(this.suggestions=response.suggestions,this.data=response.data,this.suggest())},activate:function(t){var i,r;return i=this.container.children(),this.selectedIndex!==-1&&i.length>this.selectedIndex&&n(i.get(this.selectedIndex)).removeClass(),this.selectedIndex=t,this.selectedIndex!==-1&&i.length>this.selectedIndex&&(r=i.get(this.selectedIndex),n(r).addClass("selected")),r},deactivate:function(n,t){n.className="",this.selectedIndex===t&&(this.selectedIndex=-1)},select:function(t){var i,r;if(i=this.suggestions[t],i){this.el.val(i),this.ignoreValueChange=!0,this.hide(),this.options.autoSubmit&&(n("select#ddlSearchType").attr("selectedIndex",1),n("input[id="+this.options.autoSubmitButton+"]").trigger("click"));this.onSelect(t)}},moveUp:function(){if(this.selectedIndex!==-1){if(this.selectedIndex===0){this.container.children().get(0).className="",this.selectedIndex=-1,this.el.val(this.currentValue);return}this.adjustScroll(this.selectedIndex-1)}},moveDown:function(){this.selectedIndex!==this.suggestions.length-1&&this.adjustScroll(this.selectedIndex+1)},adjustScroll:function(n){var u,t,i,r;u=this.activate(n),t=u.offsetTop,i=this.container.scrollTop(),r=i+this.options.maxHeight-25,t<i?this.container.scrollTop(t):t>r&&this.container.scrollTop(t-this.options.maxHeight+25),this.el.val(this.getValue(this.suggestions[n]))},onSelect:function(t){var i,u,r,f;i=this,u=i.options.onSelect,r=i.suggestions[t],f=i.data[t],i.el.val(i.getValue(r)),n.isFunction(u)&&u(r,f,i.el)},getValue:function(n){var u,i,t,r;return(r=this,u=r.options.delimiter,!u)?n:(i=r.currentValue,t=i.split(u),t.length===1)?n:i.substr(0,i.length-t[t.length-1].length)+n}}})(jQuery),$(document).ready(function(){typeof blnAutoSuggest!="undefined"&&blnAutoSuggest&&$("input[astype]").each(function(){lookupAjax($(this),$(this).width())}),typeof ValidatorUpdateDisplay!="undefined"&&(DefaultValidatorUpdateDisplay=ValidatorUpdateDisplay,ValidatorUpdateDisplay=BaseValidatorUpdateDisplay)}),window.onbeforeunload=DisableSubmitButtons,typeof $("#Editor")!="undefined"&&typeof $("#Editor").froalaEditor!="undefined"&&($("#Editor").froalaEditor({key:"mIBEVFBOHC1d2UNYVM=="}),$("#Editor").froalaEditor("helpers.sanitizeURL",function(n){return n})),function(n){n.fn.thumbnailScroller=function(t){var i={scrollerType:"hoverPrecise",scrollerOrientation:"horizontal",scrollEasing:"easeOutCirc",scrollEasingAmount:800,acceleration:2,scrollSpeed:600,noScrollCenterSpace:0,autoScrolling:0,autoScrollingSpeed:8e3,autoScrollingEasing:"easeInOutQuad",autoScrollingDelay:2500},t=n.extend(i,t);return this.each(function(){function d(){s<i.width()/2&&r.position().left>=0?r.stop(!0,!0).css("left",0):s>i.width()/2&&r.position().left<=-(u-i.width())?r.stop(!0,!0).css("left",-(u-i.width())):s<=i.width()/2-t.noScrollCenterSpace||s>=i.width()/2+t.noScrollCenterSpace?(b=Math.round(Math.cos(s/i.width()*Math.PI)*(c+t.acceleration)),r.stop(!0,!0).animate({left:"+="+b},c,"linear")):r.stop(!0,!0),h<i.height()/2&&r.position().top>=0?r.stop(!0,!0).css("top",0):h>i.height()/2&&r.position().top<=-(o-i.height())?r.stop(!0,!0).css("top",-(o-i.height())):h<=i.height()/2-t.noScrollCenterSpace||h>=i.height()/2+t.noScrollCenterSpace?(p=Math.cos(h/i.height()*Math.PI)*(c+t.acceleration),r.stop(!0,!0).animate({top:"+="+p},c,"linear")):r.stop(!0,!0)}function y(){r.delay(t.autoScrollingDelay).animate({left:-(u-i.width()),top:-(o-i.height())},t.autoScrollingSpeed,t.autoScrollingEasing,function(){r.animate({left:0,top:0},t.autoScrollingSpeed,t.autoScrollingEasing,function(){a++,t.autoScrolling>1&&t.autoScrolling!=a&&y()})})}function k(){f.hide(),e.show(),e.click(function(n){n.preventDefault();var c=r.position().left,h=u+(c-i.width()),l=r.position().top,s=o+(l-i.height());f.stop().show("fast"),t.scrollerOrientation=="horizontal"?h>=i.width()?r.stop().animate({left:"-="+i.width()},t.scrollSpeed,t.scrollEasing,function(){h==i.width()&&e.stop().hide("fast")}):(e.stop().hide("fast"),r.stop().animate({left:i.width()-u},t.scrollSpeed,t.scrollEasing)):s>=i.height()?r.stop().animate({top:"-="+i.height()},t.scrollSpeed,t.scrollEasing,function(){s==i.height()&&e.stop().hide("fast")}):(e.stop().hide("fast"),r.stop().animate({top:i.height()-o},t.scrollSpeed,t.scrollEasing))}),f.click(function(n){n.preventDefault();var h=r.position().left,l=u+(h-i.width()),s=r.position().top,c=o+(s-i.height());e.stop().show("fast"),t.scrollerOrientation=="horizontal"?h+i.width()<=0?r.stop().animate({left:"+="+i.width()},t.scrollSpeed,t.scrollEasing,function(){h+i.width()==0&&f.stop().hide("fast")}):(f.stop().hide("fast"),r.stop().animate({left:0},t.scrollSpeed,t.scrollEasing)):s+i.height()<=0?r.stop().animate({top:"+="+i.height()},t.scrollSpeed,t.scrollEasing,function(){s+i.height()==0&&f.stop().hide("fast")}):(f.stop().hide("fast"),r.stop().animate({top:0},t.scrollSpeed,t.scrollEasing))})}var i=n(this),w=i.children(".jTscrollerContainer"),r=i.children(".jTscrollerContainer").children(".jTscroller"),e=i.children(".jTscrollerNextButton"),f=i.children(".jTscrollerPrevButton"),u,o,l,s,h,v,c,b,p,a;t.scrollerOrientation=="horizontal"?(w.css("width",999999),u=r.outerWidth(!0),w.css("width",u)):u=r.outerWidth(!0),o=r.outerHeight(!0),u>i.width()||o>i.height()?(t.scrollerType=="hoverAccelerate"?(c=8,i.hover(function(){i.mousemove(function(n){l=findPos(this),s=n.pageX-l[1],h=n.pageY-l[0]}),clearInterval(v),v=setInterval(d,c)},function(){clearInterval(v),r.stop()}),f.add(e).hide()):t.scrollerType=="clickButtons"?k():(l=findPos(this),i.mousemove(function(n){var e,f,a,c;s=n.pageX-l[1],h=n.pageY-l[0],e=s/i.width(),e>1&&(e=1),f=h/i.height(),f>1&&(f=1),a=Math.round(-((u-i.width())*e)),c=Math.round(-((o-i.height())*f)),r.stop(!0,!1).animate({left:a,top:c},t.scrollEasingAmount,t.scrollEasing)}),f.add(e).hide()),t.autoScrolling>0&&y()):f.add(e).hide(),a=0})}}(jQuery),Meridian=Meridian||{},Meridian.Analytics=Meridian.Analytics||{},Meridian.Analytics.ESLogger=function(){var i={},t=window.performance||window.msPerformance||window.webkitPerformance||window.mozPerformance,n=function(n){return i[n.id]=n.value,!0},tt=function(){var i={id:"fxProcessingTime",value:t.timing.domContentLoadedEventEnd-t.timing.navigationStart};return n(i),i},d=function(){var i={id:"Latency",value:t.timing.responseStart-t.timing.connectStart};return n(i),i},g=function(){for(var t=window.location.search.substring(1),e,r,t=t.substring(t.indexOf("?")+1).split("&"),f={},u=decodeURIComponent,i=t.length-1;i>=0;i--)e=t[i].split("="),f[u(e[0])]=u(e[1]);return r={id:"qs",value:f},n(r),r},nt=function(){var i,t=0,r;return(window.chrome&&window.chrome.loadTimes?(i=window.chrome.loadTimes().firstPaintTime*1e3,t=i-window.chrome.loadTimes().startLoadTime*1e3):typeof window.performance.timing.msFirstPaint=="number"&&(i=window.performance.timing.msFirstPaint,t=i-window.performance.timing.navigationStart),!t)?null:(r={id:"FirstPaint",value:Math.round(t)},n(r),r)},w=function(){var i=0,t;return"getEntriesByType"in window.performance&&(i=window.performance.getEntriesByType("resource").length),t={id:"ResourcesCount",value:i},n(t),t},b=function(){var i={id:"DOMLoadTime",value:t.timing.domContentLoadedEventEnd-t.timing.domContentLoadedEventStart};return n(i),i},k=function(){var i={id:"fxResponseEnd",value:t.timing.responseEnd-t.timing.navigationStart};return n(i),i},ut=function(){var i={id:"fxProcessingLoading",value:t.timing.responseEnd-t.timing.responseStart};return n(i),i},ft=function(){var i={id:"RequestResponseTime",value:t.timing.responseEnd-t.timing.requestStart};return n(i),i},et=function(){if(!t.navigation)return null;var i={id:"RedirectCount",value:t.navigation.redirectCount};return n(i),i},p=function(){var i={id:"LoadTime",value:t.timing.loadEventEnd-t.timing.loadEventStart};return n(i),i},it=function(){var t={id:"NumberOfElements",value:document.documentElement.querySelectorAll("*").length};return n(t),t},rt=function(){var t={id:"NumberOfCss",value:document.querySelectorAll('link[rel="stylesheet"]').length};return n(t),t},h=function(){var t={id:"NumberOfJs",value:document.querySelectorAll("script").length};return n(t),t},c=function(){var t={id:"NumberOfImgs",value:document.querySelectorAll("img").length};return n(t),t},s=function(){var t={id:"NumerOfInlineCss",value:document.querySelectorAll("style").length};return n(t),t},f=function(n){for(var i=document.createElement("a"),r=0,t=0;t<n.length;t++)i.href=n[t],i.hostname!==window.location.hostname&&r++;return r},o=function(){for(var r=document.querySelectorAll('link[rel="stylesheet"]'),e=[],u,i,t=0;t<r.length;t++)e.push(r[t].href);return u=f(e),i={id:"3rdPartyCss",value:u},n(i),i},y=function(){for(var r=document.querySelectorAll("script[src]"),e=[],u,i,t=0;t<r.length;t++)e.push(r[t].href);return u=f(e),i={id:"3rdPartyJs",value:u},n(i),i},u=function(){var t={id:"url",value:window.location.pathname.toLowerCase()};return n(t),t={id:"cookies",value:encodeURIComponent(document.cookie)},n(t),t},v=function(t){var i={id:"action",value:t.toLowerCase()};return n(i),i},l=function(t,i){var r={id:t,value:i};return n(r),r},a=function(){u(),tt(),d(),nt(),w(),b(),k(),ut(),ft(),et(),p(),it(),rt(),h(),c(),s(),o(),y(),g()},e,r;return this.getMetrics=function(){var n=[];return a(),n.push(i),JSON.stringify(n)},this.logToServer=function(n){var t=("https:"===document.location.protocol?"https://":"http://")+window.location.hostname+"/analytics.ashx";$.ajax({async:!0,type:"POST",url:t,data:n,dataType:"json",success:function(){return!0}})},e=this.getMetrics,r=this.logToServer,Meridian.Analytics.ESLogger.prototype.sendAnalytics=function(){var n={};return n.analytics=e(),r(n)},Meridian.Analytics.ESLogger.prototype.usageAnalytics=function(n){i={};var f=[],t={};return u(),v(n),f.push(i),t.usage=JSON.stringify(f),r(t)},Meridian.Analytics.ESLogger.prototype.addEvent=function(n,t){i={},u(),JSON.parse(t,function(n,t){0!==n.length&&l(n,t)});var f={};return f.event=JSON.stringify(i),r(f)},this}