function $_global_core(){SPAnimation={};SPAnimation.g_Curves=new Array(7);SPAnimation.g_Curves[0]=new SPCurve(0,0,0,0,0,0);SPAnimation.g_Curves[1]=new SPCurve(1,1,0,0,0,0);SPAnimation.g_Curves[2]=new SPCurve(2,2,0,0,0,0);SPAnimation.g_Curves[3]=new SPCurve(3,3,.1,.9,.2,1);SPAnimation.g_Curves[4]=new SPCurve(4,3,.42,0,1,1);SPAnimation.g_Curves[5]=new SPCurve(5,3,0,0,.58,1);SPAnimation.g_Curves[6]=new SPCurve(6,3,.42,0,.58,1);SPKeyFrame.prototype={type:0,curveID:0,startTime:0,endTime:0,startValue:0,endValue:0,relativeTo:0,operationType:0};SPAnimation.Attribute={PositionX:1,PositionY:2,Height:3,Width:4,Opacity:5};SPAnimation.ID={Basic_Show:0,Basic_SlowShow:1,Basic_Fade:2,Basic_Move:3,Basic_Size:4,Content_SlideInFadeInRight:5,Content_SlideInFadeInRightInc:6,Content_SlideOutFadeOutRight:7,Content_SlideInFadeInLeft:8,Content_SlideInFadeInLeftInc:9,SmallObject_SlideInFadeInTop:10,SmallObject_SlideInFadeInLeft:11,Test_Instant:12,Test_Hold:13,Basic_Opacity:14,Basic_QuickShow:15,Basic_QuickFade:16,Content_SlideInFadeInGeneric:17,Basic_StrikeThrough:18,SmallObject_SlideInFadeInBottom:19,SmallObject_SlideOutFadeOutBottom:20,Basic_QuickSize:21};SPAnimation.g_Animations=new Array(22);SPAnimation.g_Animations[SPAnimation.ID.Basic_Show]=new Animation(SPAnimation.ID.Basic_Show,[new SPKeyFrame(SPAnimation.Attribute.Opacity,2,0,367,0,1,1,0)]);SPAnimation.g_Animations[SPAnimation.ID.Basic_SlowShow]=new Animation(SPAnimation.ID.Basic_SlowShow,[new SPKeyFrame(SPAnimation.Attribute.Opacity,2,0,700,0,1,1,0)]);SPAnimation.g_Animations[SPAnimation.ID.Basic_QuickShow]=new Animation(SPAnimation.ID.Basic_QuickShow,[new SPKeyFrame(SPAnimation.Attribute.Opacity,2,0,167,0,1,1,0)]);SPAnimation.g_Animations[SPAnimation.ID.Basic_Fade]=new Animation(SPAnimation.ID.Basic_Fade,[new SPKeyFrame(SPAnimation.Attribute.Opacity,2,0,367,1,0,1,0)]);SPAnimation.g_Animations[SPAnimation.ID.Basic_QuickFade]=new Animation(SPAnimation.ID.Basic_QuickFade,[new SPKeyFrame(SPAnimation.Attribute.Opacity,2,0,167,1,0,1,0)]);SPAnimation.g_Animations[SPAnimation.ID.Basic_Move]=new Animation(SPAnimation.ID.Basic_Move,[new SPKeyFrame(SPAnimation.Attribute.PositionX,3,0,367,null,0,1,1),new SPKeyFrame(SPAnimation.Attribute.PositionY,3,0,367,null,0,1,1)]);SPAnimation.g_Animations[SPAnimation.ID.Basic_Size]=new Animation(SPAnimation.ID.Basic_Size,[new SPKeyFrame(SPAnimation.Attribute.Width,3,0,367,null,0,1,1),new SPKeyFrame(SPAnimation.Attribute.Height,3,0,367,null,0,1,1)]);SPAnimation.g_Animations[SPAnimation.ID.Basic_QuickSize]=new Animation(SPAnimation.ID.Basic_QuickSize,[new SPKeyFrame(SPAnimation.Attribute.Width,3,0,167,null,0,1,1),new SPKeyFrame(SPAnimation.Attribute.Height,3,0,167,null,0,1,1)]);SPAnimation.g_Animations[SPAnimation.ID.Content_SlideInFadeInRight]=new Animation(SPAnimation.ID.Content_SlideInFadeInRight,[new SPKeyFrame(SPAnimation.Attribute.Opacity,2,0,367,0,1,1,0),new SPKeyFrame(SPAnimation.Attribute.PositionX,0,0,1,null,-100,0,1),new SPKeyFrame(SPAnimation.Attribute.PositionX,3,1,367,null,0,0,1)]);SPAnimation.g_Animations[SPAnimation.ID.Content_SlideInFadeInRightInc]=new Animation(SPAnimation.ID.Content_SlideInFadeInRightInc,[new SPKeyFrame(SPAnimation.Attribute.Opacity,2,0,367,0,1,1,0),new SPKeyFrame(SPAnimation.Attribute.PositionX,3,0,367,null,100,0,1)]);SPAnimation.g_Animations[SPAnimation.ID.Content_SlideOutFadeOutRight]=new Animation(SPAnimation.ID.Content_SlideOutFadeOutRight,[new SPKeyFrame(SPAnimation.Attribute.Opacity,0,0,1,1,0,1,0)]);SPAnimation.g_Animations[SPAnimation.ID.Content_SlideInFadeInLeft]=new Animation(SPAnimation.ID.Content_SlideInFadeInLeft,[new SPKeyFrame(SPAnimation.Attribute.Opacity,2,0,367,0,1,1,0),new SPKeyFrame(SPAnimation.Attribute.PositionX,0,0,1,null,100,0,1),new SPKeyFrame(SPAnimation.Attribute.PositionX,3,1,367,null,0,0,1)]);SPAnimation.g_Animations[SPAnimation.ID.Content_SlideInFadeInLeftInc]=new Animation(SPAnimation.ID.Content_SlideInFadeInLeftInc,[new SPKeyFrame(SPAnimation.Attribute.Opacity,2,0,367,0,1,1,0),new SPKeyFrame(SPAnimation.Attribute.PositionX,3,0,367,null,-100,0,1)]);SPAnimation.g_Animations[SPAnimation.ID.SmallObject_SlideInFadeInTop]=new Animation(SPAnimation.ID.SmallObject_SlideInFadeInTop,[new SPKeyFrame(SPAnimation.Attribute.Opacity,2,0,167,0,1,1,0),new SPKeyFrame(SPAnimation.Attribute.PositionY,0,0,1,null,-40,0,1),new SPKeyFrame(SPAnimation.Attribute.PositionY,3,1,167,null,0,0,1)]);SPAnimation.g_Animations[SPAnimation.ID.SmallObject_SlideInFadeInLeft]=new Animation(SPAnimation.ID.SmallObject_SlideInFadeInLeft,[new SPKeyFrame(SPAnimation.Attribute.Opacity,2,0,167,0,1,1,0),new SPKeyFrame(SPAnimation.Attribute.PositionX,0,0,1,null,40,0,1),new SPKeyFrame(SPAnimation.Attribute.PositionX,3,1,167,null,0,0,1)]);SPAnimation.g_Animations[SPAnimation.ID.Test_Instant]=new Animation(SPAnimation.ID.Test_Instant,[new SPKeyFrame(SPAnimation.Attribute.PositionX,0,0,367,null,1,1,0),new SPKeyFrame(SPAnimation.Attribute.PositionY,0,0,367,null,1,1,0)]);SPAnimation.g_Animations[SPAnimation.ID.Test_Hold]=new Animation(SPAnimation.ID.Test_Hold,[new SPKeyFrame(SPAnimation.Attribute.PositionX,1,0,367,null,1,1,0),new SPKeyFrame(SPAnimation.Attribute.PositionY,1,0,367,null,1,1,0)]);SPAnimation.g_Animations[SPAnimation.ID.Basic_Opacity]=new Animation(SPAnimation.ID.Basic_Opacity,[new SPKeyFrame(SPAnimation.Attribute.Opacity,2,0,367,null,1,1,0)]);SPAnimation.g_Animations[SPAnimation.ID.Content_SlideInFadeInGeneric]=new Animation(SPAnimation.ID.Content_SlideInFadeInGeneric,[new SPKeyFrame(SPAnimation.Attribute.Opacity,2,0,367,0,1,1,0),new SPKeyFrame(SPAnimation.Attribute.PositionX,3,0,367,null,1,1,0),new SPKeyFrame(SPAnimation.Attribute.PositionY,3,0,367,null,1,1,0)]);SPAnimation.g_Animations[SPAnimation.ID.Basic_StrikeThrough]=new Animation(SPAnimation.ID.Basic_StrikeThrough,[new SPKeyFrame(SPAnimation.Attribute.Width,3,0,167,null,0,1,1)]);SPAnimation.g_Animations[SPAnimation.ID.SmallObject_SlideInFadeInBottom]=new Animation(SPAnimation.ID.SmallObject_SlideInFadeInBottom,[new SPKeyFrame(SPAnimation.Attribute.Opacity,2,0,167,0,1,1,0),new SPKeyFrame(SPAnimation.Attribute.PositionY,0,0,1,null,40,0,1),new SPKeyFrame(SPAnimation.Attribute.PositionY,3,1,167,null,0,0,1)]);SPAnimation.g_Animations[SPAnimation.ID.SmallObject_SlideOutFadeOutBottom]=new Animation(SPAnimation.ID.SmallObject_SlideOutFadeOutBottom,[new SPKeyFrame(SPAnimation.Attribute.Opacity,2,0,167,1,0,1,0),new SPKeyFrame(SPAnimation.Attribute.PositionY,0,0,1,null,0,0,1),new SPKeyFrame(SPAnimation.Attribute.PositionY,3,1,167,null,40,0,1)]);SPAnimation.g_AnimationEngine=function(){return null}();SPAnimation.Logging=window.location.search.indexOf("AnimationLogging=1")!=-1;SPAnimation.g_AnimationWSA=null;SPAnimation.DATAID_SPANIMATION=9423;SPAnimation.g_AnimationThrottleCutoffFPS=11;SPAnimation.g_AnimationThrottleNumInstance=3;!IsNullOrUndefined(window.sessionStorage)&&IsNullOrUndefined(window.sessionStorage.SPAnimationEnabled)&&TrySetProperty(window.sessionStorage,"SPAnimationEnabled",1);!IsNullOrUndefined(window.localStorage)&&IsNullOrUndefined(window.localStorage.SPAnimationEnabled)&&TrySetProperty(window.localStorage,"SPAnimationEnabled",1);SPAnimation.Settings={};SPAnimation.Settings.EnableAnimation=function(){TrySetProperty(window.sessionStorage,"SPAnimationEnabled",1);TrySetProperty(window.localStorage,"SPAnimationEnabled",1);typeof UpdateAnimationUserControl!="undefined"&&UpdateAnimationUserControl(false)};SPAnimation.Settings.DisableAnimation=function(){TrySetProperty(window.localStorage,"SPAnimationEnabled",0);typeof UpdateAnimationUserControl!="undefined"&&UpdateAnimationUserControl(false)};SPAnimation.Settings.DisableSessionAnimation=function(){TrySetProperty(window.sessionStorage,"SPAnimationEnabled",0);typeof UpdateAnimationUserControl!="undefined"&&UpdateAnimationUserControl(false)};SPAnimation.Settings.IsAnimationEnabled=function(){var a=IsNullOrUndefined(window.sessionStorage)?false:window.sessionStorage.SPAnimationEnabled==1,b=IsNullOrUndefined(window.localStorage)?false:window.localStorage.SPAnimationEnabled==1;return a&&b};UpdateAnimationStateFromQuery();SPAnimation.State=SPAnimation_State;SPAnimation.Object=SPAnimation_Object;AnimationEngine.prototype={AnimationQueue:new Array(0),sharedTimer:null,sharedCancelTimer:null,frameInterval:1e3/60,resetInterval:3e4,sharedTimerRefs:0,conflictTable:new Array(0),currentAnimationIndex:-1,temporaryIDGenerator:0};AnimationEngine.prototype.LocalStepper=function(){SPAnimation.g_AnimationEngine.StepAllAnimations()};AnimationEngine.prototype.LocalStopper=function(){SPAnimation.g_AnimationEngine.StopEngine()};AnimationEngine.prototype.StartEngine=function(){if(this.sharedTimer!=null||this.sharedCancelTimer!=null||this.sharedTimerRefs!=0)return;this.sharedTimer=window.setInterval(AnimationEngine.prototype.LocalStepper,this.frameInterval);this.sharedCancelTimer=window.setTimeout(AnimationEngine.prototype.LocalStopper,this.resetInterval);this.sharedTimerRefs=0;SPAnimation.g_TelemetryObject.Start()};AnimationEngine.prototype.StopEngine=function(){SPAnimation.g_TelemetryObject.Stop();if(this.sharedCancelTimer!=null){window.clearTimeout(this.sharedCancelTimer);this.sharedCancelTimer=null}if(this.sharedTimer!=null){window.clearInterval(this.sharedTimer);this.sharedTimer=null}this.sharedTimerRefs=0;this.conflictTable=new Array(0)};AnimationEngine.prototype.StartAnimation=function(a){this.AnimationQueue[this.sharedTimerRefs++]=a};AnimationEngine.prototype.StopAnimation=function(b){for(var a=0;athis.duration||i>1){d=c;j=true}k&&SPAnimation.g_AnimationEngine.CheckForConflictingAnimations(f,a);this.SetStyle(a,f,d)}else{f=this.element;b=this.startValue.GetAttribute(a);h=this.targetValue;c=h.GetAttribute(a);if(IsNullOrUndefined(b)){b=GetCurrentAttributeValue(this.element,a);this.startValue.SetAttribute(a,b)}if(isNaN(b)){SPAnimation.g_TelemetryObject.LogData("Unexpected: bogus start value for element "+String(this.element.id)+", attribute "+String(a));d=c}else d=b+i*(c-b);if(g>this.duration||i>1){d=c;j=true;SPAnimation.g_TelemetryObject.LogData("done")}k&&SPAnimation.g_AnimationEngine.CheckForConflictingAnimations(this.element,a);this.SetStyle(a,this.element,d)}}this.fIsExecuting=true;if(j){this.StopAnimation();if(this.finishFunc!=null){SPAnimation.g_TelemetryObject.LogData("calling fnishfunc");this.finishFunc(this.extraData)}}};AnimationUnit.prototype.PositionFunction=function(c,d,e){var a=0,b=SPAnimation.g_Curves[e];switch(b.type){case 0:a=1;break;case 1:a=c0)for(var m=this.logDataIndex,a=0;a";l+=this.logData[a]}if(this.perfDataIndex>0){j=Number.MAX_VALUE;i=Number.MIN_VALUE;var d=this.perfDataIndex;for(a=0;ai)i=this.perfData[a];e+=this.perfData[a];if(a!=0)k+=", ";k+=this.perfData[a]}if(d>1)e/=d-1;e=Math.round(e*100)/100;for(a=0;a1)c/=d-1;c=Math.sqrt(c);c=Math.round(c*100)/100;h=this.perfDataIndex/f*1e3;h=Math.round(h)}var b=new Array(9);b[0]=f;b[1]=h;b[2]=j;b[3]=i;b[4]=e;b[5]=c;b[6]=k;b[7]=l;b[8]=this.numUnits;return b};AnimationTelemetry.prototype.CalculateAndShowStatistics=function(){var a=this.CalculateStatistics();SPAnimation.g_LastAnimationTelemetryData=a;this.ShowAnimationStats(a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8]);typeof ExecuteOrDelayUntilScriptLoaded=="function"&&ExecuteOrDelayUntilScriptLoaded(function(){var b=GetAnimationWSA();WSAEnabled()&&!IsNullOrUndefined(b)&&b.addToStreamDw(SPAnimation.DATAID_SPANIMATION,Number(SPAnimation.Settings.IsAnimationEnabled()),a[0],a[1],a[2],a[3],Math.round(a[4]),Math.round(a[5]),a[8])},"SP.core.js");if(!IsNullOrUndefined(window.sessionStorage))if(a[1]=SPAnimation.g_AnimationThrottleNumInstance){SPAnimation.Settings.DisableSessionAnimation();TrySetProperty(window.sessionStorage,"SPAnimationThrottleCounter",0)}}else TrySetProperty(window.sessionStorage,"SPAnimationThrottleCounter",0)};AnimationTelemetry.prototype.ShowAnimationStats=function(g,s,v,u,r,k,q,t,h){this.animationIndex++;var b=String(this.animationIndex);if(typeof DeveloperDashboard!="undefined"&&typeof DeveloperDashboard.PostMsg!="undefined"){var a=typeof Strings!="undefined"&&typeof Strings.STS!="undefined",f=a&&typeof Strings.STS.L_DevDashAnimation_Duration!="undefined"?Strings.STS.L_DevDashAnimation_Duration:"Duration",n=a&&typeof Strings.STS.L_DevDashAnimation_FPS!="undefined"?Strings.STS.L_DevDashAnimation_FPS:"FPS",p=a&&typeof Strings.STS.L_DevDashAnimation_Min!="undefined"?Strings.STS.L_DevDashAnimation_Min:"Min",o=a&&typeof Strings.STS.L_DevDashAnimation_Max!="undefined"?Strings.STS.L_DevDashAnimation_Max:"Max",m=a&&typeof Strings.STS.L_DevDashAnimation_Avg!="undefined"?Strings.STS.L_DevDashAnimation_Avg:"Average",j=a&&typeof Strings.STS.L_DevDashAnimation_Stddev!="undefined"?Strings.STS.L_DevDashAnimation_Stddev:"Standard Dev",l=a&&typeof Strings.STS.L_DevDashAnimation_NumUnits!="undefined"?Strings.STS.L_DevDashAnimation_NumUnits:"#Units",i=a&&typeof Strings.STS.L_DevDashAnimation_AllFrames!="undefined"?Strings.STS.L_DevDashAnimation_AllFrames:"All Frames:",d=a&&typeof Strings.STS.L_DevDashAnimation_Header!="undefined"?Strings.STS.L_DevDashAnimation_Header:"Animation",c=a&&typeof Strings.STS.L_DevDashAnimation_Millisec!="undefined"?Strings.STS.L_DevDashAnimation_Millisec:"ms",e="
"+d+" "+b+"
"+f+""+n+""+p+""+o+""+m+""+j+""+l+"
"+String(g)+c+""+String(s)+""+String(v)+c+""+String(u)+c+""+String(r)+c+""+String(k)+""+String(h)+"
"+i+q+"
"+t+"
";DeveloperDashboard.PostMsg("MS.AnimationTelemetry","AddAnimationData",e)}};SPAnimation.g_TelemetryObject=new AnimationTelemetry;SPAnimation.g_LastAnimationTelemetryData=null;SPAnimationUtility={};SPAnimationUtility.BasicAnimator={};SPAnimationUtility.BasicAnimator.FadeIn=function(a,c,d){if(a==null)return;SetOpacity(a,0);if(a.style.display=="none")a.style.display="";if(a.style.visibility=="hidden")a.style.visibility="";var b=new SPAnimation.State;b.SetAttribute(SPAnimation.Attribute.Opacity,1);var e=new SPAnimation.Object(SPAnimation.ID.Basic_QuickShow,0,a,b,c,d);e.RunAnimation()};SPAnimationUtility.BasicAnimator.FadeOut=function(a,c,d){if(a==null)return;var b=new SPAnimation.State;b.SetAttribute(SPAnimation.Attribute.Opacity,0);var e=new SPAnimation.Object(SPAnimation.ID.Basic_QuickFade,0,a,b,c,d);e.RunAnimation()};SPAnimationUtility.BasicAnimator.Move=function(a,c,d,e,f){if(a==null)return;var g=c==null?pxToNum(a.style.left):c,h=d==null?pxToNum(a.style.top):d,b=new SPAnimation.State;b.SetAttribute(SPAnimation.Attribute.PositionX,g);b.SetAttribute(SPAnimation.Attribute.PositionY,h);var i=new SPAnimation.Object(SPAnimation.ID.Basic_Move,0,a,b,e,f);i.RunAnimation()};SPAnimationUtility.BasicAnimator.StrikeThrough=function(a,h,l,m){if(a==null)return;var r=SPAnimationUtility.BasicAnimator.GetTopOffset(a),q=SPAnimationUtility.BasicAnimator.GetLeftOffset(a),s=SPAnimationUtility.BasicAnimator.GetRightOffset(a),d=a.offsetWidth,g=a.offsetHeight;if(h==null)h=d;var f=document.createElement("div"),e=document.createElement("div");e.style.overflow="hidden";var b=document.createElement("div");b.style.overflow="hidden";var i=a.cloneNode(true);i.style.textDecoration="line-through";e.appendChild(i);var c=a.cloneNode(true);b.appendChild(c);f.appendChild(b);f.appendChild(e);a.parentNode.appendChild(f);a.style.visibility="hidden";SPAnimationUtility.BasicAnimator.PositionAbsoluteExact(f,r,q,g,d);var p=8;SPAnimationUtility.BasicAnimator.PositionAbsoluteExact(e,0,0,g,p);SPAnimationUtility.BasicAnimator.PositionAbsoluteExact(b,0,0,g,d);SPAnimationUtility.BasicAnimator.PositionAbsoluteExact(i,0,0,g,d);SPAnimationUtility.BasicAnimator.PositionAbsoluteExact(c,0,0,g,d);if(!fRightToLeft){b.style.left=c.style.left="";b.style.right=c.style.right="0px"}else{b.style.right=c.style.right="";b.style.left=c.style.left="0px"}var k=new SPAnimation.State;k.SetAttribute(SPAnimation.Attribute.Width,d-h);var o=new SPAnimation.Object(SPAnimation.ID.Basic_StrikeThrough,0,b,k,null,m);o.RunAnimation();var j=new SPAnimation.State;j.SetAttribute(SPAnimation.Attribute.Width,h);var n=new SPAnimation.Object(SPAnimation.ID.Basic_StrikeThrough,0,e,j,function(){a.style.textDecoration="line-through";a.style.visibility="";a.parentNode.removeChild(f);l!=null&&l()},m);n.RunAnimation()};SPAnimationUtility.BasicAnimator.PositionAbsolute=function(a){if(a==null)return;var e=SPAnimationUtility.BasicAnimator.GetTopOffset(a),d=fRightToLeft?SPAnimationUtility.BasicAnimator.GetRightOffset(a):SPAnimationUtility.BasicAnimator.GetLeftOffset(a),c=a.offsetWidth==0?a.parentNode.offsetWidth:a.offsetWidth,b=a.offsetHeight;SPAnimationUtility.BasicAnimator.PositionAbsoluteExact(a,e,d,b,c)};SPAnimationUtility.BasicAnimator.PositionRelative=function(a){if(a==null)return;SPAnimationUtility.BasicAnimator.PositionRelativeExact(a,0,0,null,null)};SPAnimationUtility.BasicAnimator.PositionAbsoluteExact=function(a,e,d,b,c){if(a==null)return;a.style.position="absolute";SPAnimationUtility.BasicAnimator.PositionElement(a,e,d,b,c)};SPAnimationUtility.BasicAnimator.PositionRelativeExact=function(a,e,d,b,c){if(a==null)return;a.style.position="relative";SPAnimationUtility.BasicAnimator.PositionElement(a,e,d,b,c)};SPAnimationUtility.BasicAnimator.ResetPosition=function(a){if(a==null)return;a.style.position=a.style.top=a.style.left=""};SPAnimationUtility.BasicAnimator.GetLeftOffset=function(a){if(a==null)return 0;var b=a.offsetLeft;while(a.offsetParent!=null){a=a.offsetParent;if(SPAnimationUtility.BasicAnimator.IsPositioned(a)&&!(browseris.firefox&&a.tagName.toUpperCase()=="TD"))break;b+=a.offsetLeft}return b};SPAnimationUtility.BasicAnimator.GetTopOffset=function(a){if(a==null)return 0;var b=a.offsetTop;while(a.offsetParent!=null){a=a.offsetParent;if(SPAnimationUtility.BasicAnimator.IsPositioned(a)&&!(browseris.firefox&&a.tagName.toUpperCase()=="TD"))break;b+=a.offsetTop}return b};SPAnimationUtility.BasicAnimator.IsPositioned=function(a){var b=Boolean(window.getComputedStyle)?window.getComputedStyle(a,null):a.currentStyle;return b.position=="relative"||b.position=="absolute"};SPAnimationUtility.BasicAnimator.GetDefaultCloneId=function(a){return a.id+"_clone"};SPAnimationUtility.BasicAnimator.CloneElement=function(a,k,l,n,g,p,m){if(a==null)return null;if(a.id!=null&&a.id.indexOf("_clone")!=-1)return a;var j=SPAnimationUtility.BasicAnimator.GetDefaultCloneId(a),b=document.getElementById(j);if(b==null){b=document.createElement("div");if(p)b.style.zIndex="-100";var h=SPAnimationUtility.BasicAnimator.GetWindowScrollPosition(),q=h.x,r=h.y,i=SPAnimationUtility.BasicAnimator.IsPositioned(a),d=g?SPAnimationUtility.BasicAnimator.GetTopOffset(a):a.offsetTop;if(a.parentNode!=null&&a.parentNode.offsetTop>d)d=a.parentNode.offsetTop;if(!i)d-=r;var f=null;if(!m){f=fRightToLeft?SPAnimationUtility.BasicAnimator.GetRightOffset(a):g?SPAnimationUtility.BasicAnimator.GetLeftOffset(a):a.offsetLeft;if(!i)f-=q}var e=a.offsetWidth==0?a.parentNode.offsetWidth:a.offsetWidth;if(n)e=e+1;var o=a.offsetHeight==0?a.parentNode.offsetHeight:a.offsetHeight;SPAnimationUtility.BasicAnimator.PositionAbsoluteExact(b,d,f,o,e);var c=a.innerHTML.replace(/(\s+)id=(["])([^"]*)(["])/g,"$1");c=c.replace(/(\s+)id=(['])([^']*)(['])/g,"$1");if(browseris.ie8standard)c=c.replace(/(\s+)id=([^\s<>]*)([\s>])/g,"$1$3");b.innerHTML=c;b.className=a.className;b.id=j;a.style.visibility="hidden";k&&SetOpacity(a,0);if(l)a.parentNode.insertBefore(b,a);else a.parentNode.appendChild(b)}return b};SPAnimationUtility.BasicAnimator.CommonResize=function(a,b,c,f,g,e){if(a==null)return;if(!IsNullOrUndefined(b)&&(a.style.height==null||a.style.height==""))a.style.height=String(a.clientHeight)+"px";if(!IsNullOrUndefined(c)&&(a.style.width==null||a.style.width==""))a.style.width=String(a.clientWidth)+"px";var d=new SPAnimation.State;!IsNullOrUndefined(b)&&d.SetAttribute(SPAnimation.Attribute.Height,b);!IsNullOrUndefined(c)&&d.SetAttribute(SPAnimation.Attribute.Width,c);var h=new SPAnimation.Object(e,0,a,d,f,g);h.RunAnimation()};SPAnimationUtility.BasicAnimator.Resize=function(d,b,c,a,e){SPAnimationUtility.BasicAnimator.CommonResize(d,b,c,a,e,SPAnimation.ID.Basic_Size)};SPAnimationUtility.BasicAnimator.QuickResize=function(d,b,c,a,e){SPAnimationUtility.BasicAnimator.CommonResize(d,b,c,a,e,SPAnimation.ID.Basic_QuickSize)};SPAnimationUtility.BasicAnimator.ResizeContainerAndFillContent=function(a,b,g,h){if(a==null||b==null)return;var i=a.style.zIndex,f=a.style.position,j=a.style.left,k=a.style.top;a.style.zIndex=String(1);a.style.position="absolute";a.style.left="0px";a.style.top="0px";a.style.visibility="hidden";if(!h)b.insertBefore(a,b.firstChild);else b.appendChild(a);var c=document.createElement("div");c.style.height="0px";c.style.width="0px";b.insertBefore(c,a);var d=a.clientHeight,e=a.clientWidth;SPAnimationUtility.BasicAnimator.Resize(c,d,e,function(){b.removeChild(c);a.style.left=j;a.style.top=k;a.style.zIndex=i;a.style.position=f;SPAnimationUtility.BasicAnimator.FadeIn(a,g,null)},null)};SPAnimationUtility.BasicAnimator.GetRightOffset=function(a){return document.body.offsetWidth-a.offsetWidth-SPAnimationUtility.BasicAnimator.GetLeftOffset(a)};SPAnimationUtility.BasicAnimator.PositionElement=function(a,e,b,c,d){if(!IsNullOrUndefined(e))a.style.top=String(e)+"px";if(!IsNullOrUndefined(b))fRightToLeft?a.style.right=String(b)+"px":a.style.left=String(b)+"px";if(!IsNullOrUndefined(d))a.style.width=String(d)+"px";if(!IsNullOrUndefined(c))a.style.height=String(c)+"px"};SPAnimationUtility.BasicAnimator.GetWindowScrollPosition=function(){var a=0,b=0,c=document.getElementById("s4-workspace");if(c!=null){b=c.scrollTop;a=c.scrollLeft}else{b=window.pageYOffset;a=window.pageXOffset}if(IsNullOrUndefined(b))b=0;if(IsNullOrUndefined(a))a=0;return{x:a,y:b}};SPAnimationUtility.RowAddInfo=function(){};SPAnimationUtility.RowMoveInfo=function(){};SPAnimationUtility.TableAnimator=SPAnimUtil_TableAnimator;SPAnimUtil_TableAnimator.prototype={tableElement:null,tbody:null,headerRow:null,footer:null,fAnimatable:false,topOffset:0,leftOffset:0,headerRowHeight:0,itemRowHeight:0,headerColWidths:null,itemColWidths:null};SPAnimUtil_TableAnimator.prototype.AnimatePaging=function(b,c,g){this.IncrementRefCount();var f=this.tableElement.parentNode.style.overflow;this.tableElement.parentNode.style.overflow="hidden";SetOpacity(this.tableElement,0);var a=this.tbody,h=a.nextSibling;h.style.display="";this.footer=c;SetOpacity(this.footer,0);this.footer.style.display="";a.parentNode.removeChild(a);var d=new SPAnimation.State;d.SetAttribute(SPAnimation.Attribute.Opacity,1);var k=new SPAnimation.Object(SPAnimation.ID.Basic_QuickShow,0,c,d,null,null);k.RunAnimation();var i=b?100:-100;SPAnimationUtility.BasicAnimator.PositionRelativeExact(this.tableElement,null,i,null,null);var j=this,e=new SPAnimation.State;e.SetAttribute(SPAnimation.Attribute.Opacity,1);var l=new SPAnimation.Object(b?SPAnimation.ID.Content_SlideInFadeInLeftInc:SPAnimation.ID.Content_SlideInFadeInRightInc,0,this.tableElement,e,function(){j.ResetPagingAnimation(f);g()},null);l.RunAnimation()};SPAnimUtil_TableAnimator.prototype.ResetPagingAnimation=function(a){var b=this.DecrementRefCount();if(b==0){SPAnimationUtility.BasicAnimator.ResetPosition(this.footer);this.tableElement.parentNode.style.overflow=a}};SPAnimUtil_TableAnimator.prototype.AnimateSort=function(g,b,f){this.PrepareForSortAnimation(g,b);for(var e=15,c=b.rows.length,a=0;a "+STSHtmlEncode(Strings.STS.L_Loading_Text)+"";return addNotification(b,a)};NotificationEngine.prototype={Initialized:false,Notifications:undefined,Containers:undefined,Initialize:undefined,AddNotification:undefined,AddContainer:undefined,DisposeNotification:undefined,SetExpireTimer:undefined,RetireNotificationInternal:undefined};(function(){var d=null,b=-1;NotificationEngine.prototype.Initialize=function(){if(this.Initialized)return;this.Notifications={};this.Containers={};this.Initialized=true};NotificationEngine.prototype.Reset=function(){var a,c;for(c in this.Containers){a=this.Containers[c];a.Dispose();a.UnblockUpdatesInternal()}var d=b;b=-1;window.clearInterval(d)};NotificationEngine.prototype.AddNotification=function(b,a){var c=this.Containers[b];a.container=c;this.Notifications[a.id]=a};NotificationEngine.prototype.AddContainer=function(a){this.Containers[a.id]=a};NotificationEngine.prototype.DisposeNotification=function(a){if(this.Notifications[a.id]!=null){delete this.Notifications[a.id];delete a}};NotificationEngine.prototype.SetExpireTimer=function(d,c){var e=new Date;d.expires=e.valueOf()+c;if(b==-1)b=window.setInterval(function(){a().RetireNotificationInternal()},750)};NotificationEngine.prototype.RetireNotificationInternal=function(){var i=new Date,h=i.valueOf(),e=true,d,c,a,f=[];for(d in this.Notifications){c=this.Notifications[d];if(c.expires!=null)if(h>c.expires)f.push(c);else e=false}while(f.length>0){c=f.shift();a=c.container;a.RemoveNotification(c);a.pendingUpdate=true}for(d in this.Containers){a=this.Containers[d];if(a.items.length>0)e=false;if(Boolean(a.pendingUpdate)){a.Update();delete a.pendingUpdate}}if(e){var g=b;b=-1;window.clearInterval(g)}};SPNotification.prototype={id:undefined,elm:undefined,strHtml:undefined,strTooltip:undefined,bSticky:undefined,bIsAdd:undefined,bNoAnimate:undefined,bHidden:undefined,onclickHandler:undefined,container:undefined,extraData:undefined,expires:undefined};SPNotification.prototype.Initialize=function(e,i,h,f,d,g){var c="notification_"+String(getUniqueIndex()),b=document.createElement("span");b.id=c;this.id=c;this.bIsAdd=true;this.elm=b;this.strHtml=i;this.extraData=g;this.bSticky=h;this.strTooltip=f;this.onclickHandler=d;this.bHidden=false;a().AddNotification(e,this)};SPNotification.prototype.Show=function(a){if(Boolean(a)==true)this.bNoAnimate=true;this.container.AddNotification(this)};SPNotification.prototype.Hide=function(a){if(Boolean(a)==true)this.bNoAnimate=true;this.container.RemoveNotification(this)};SPNotificationContainer.prototype={id:undefined,element:undefined,bIsShown:undefined,bIsBlocked:undefined,nDisposalState:undefined,nNotificationLayer:25,nDisplayDuration:7e3,nMaxNotifications:20,events:undefined,items:undefined,pending:undefined,blockedUpdates:undefined};SPNotificationContainer.prototype.Initialize=function(f,d,e,b){this.id=f;this.element=d;this.events=new Array(g_SPNotificationEventID_Count);this.bIsShown=false;this.nNotificationLayer=e;this.bIsBlocked=false;this.items=[];this.pending=[];this.blockedUpdates=[];this.nDisposalState=0;var c=this;this.items.add=function(a){this.push(a);c.FireEvent(SPNotifications.EventID.OnNotificationCountChanged)};this.items.remove=function(d){var a,b;for(a=0,b=this.length;a0)return;this.nDisposalState=1;this.Clear()};SPNotificationContainer.prototype.AddNotification=function(b){var d,e;for(d=0,e=this.items.length;d=0;b--){var a=c[b];if(!Boolean(a)||!a.bIsAdd)continue;if(Boolean(d))a.bNoAnimate=true;this.RemoveNotification(a)}};SPNotificationContainer.prototype.GetCount=function(){return this.items.length};SPNotificationContainer.prototype.GetHiddenCount=function(){var b=0,a,d,c=this.items;for(a=0,d=c.length;ag_SPNotificationEventID_Count)throw"Invalid eventId "+String(a)+". ContainerId: "+String(this.id);if(this.events[a]!=null){var b=this.events[a];Array.prototype.shift.call(arguments);b.apply(null,arguments)}};SPNotificationContainer.prototype.Show=function(){if(this.bIsShown)return;this.bIsShown=true;var a=this;this.FireEvent(SPNotifications.EventID.OnShow,function(){a.Update();return true})};SPNotificationContainer.prototype.Hide=function(){if(!this.bIsShown)return;this.bIsShown=false;while(this.element.hasChildNodes())this.element.removeChild(this.element.firstChild);var a=this;this.FireEvent(SPNotifications.EventID.OnHide,function(){if(a.nDisposalState==0){a.UnblockUpdatesInternal();a.Update()}else if(a.nDisposalState==1){a.nDisposalState=2;a.FireEvent(SPNotifications.EventID.OnDisposing)}return true})};SPNotificationContainer.prototype.BlockUpdatesInternal=function(a){if(a.nNotificationLayer>this.nNotificationLayer||a.id==this.id)return;var b,d,c=false;for(b=0,d=this.blockedUpdates.length;b0){var a=this.blockedUpdates.shift();a.bIsBlocked=false;while(a.pending.length>0){var b=a.pending.shift();b()}a.Update()}};var e=function(b,i){var a=b.elm,e=b.onclickHandler,f=b.strTooltip,h=b.bNoAnimate,g=function(){e!=null&&e();removeNotification(a.id,h);return false};a.className="ms-trcnoti-base";SetOpacity(a,0);var c=document.createElement("div");c.className="ms-trcnoti-bg";AttachEvent("click",g,c);var d=document.createElement("div");d.className=i;c.appendChild(d);a.appendChild(c);if(Boolean(f))a.title=f;a.setAttribute("role","alert");return d},c=function(a,f,d,c){var g=a.elm;if(a.bNoAnimate||IsAccessibilityFeatureEnabled())c(a);else{var b=new SPAnimation.State;b.SetAttribute(SPAnimation.Attribute.Opacity,d);var e=new SPAnimation.Object(f,0,g,b,c,a);e.RunAnimation()}};function f(d){var a=document.createElement("div"),c=document.createElement("div"),b=document.createElement("div");a.className="ms-trcnoti-border";c.className="ms-fullWidth";b.className="ms-trcnoti-host ms-fullWidth";c.appendChild(b);a.appendChild(c);d.appendChild(a);return{ctr:d,root:a,host:b}}function i(){var c=document.createElement("div");c.className="ms-trcnoti-ctr";document.body.appendChild(c);var a=f(c);a.root.id="js-trcnoti-ct";a.host.id="js-trcnoti-host";a.root.style.display="none";var b=document.createElement("div");b.id="ms-trcnoti-ovrflw";b.className="ms-trcnoti-ovrflw ms-trcnoti-bg";a.host.parentNode.appendChild(b);a.ovrflw=b;return a}function j(){var a=document.getElementById("notificationArea");if(a==null){a=document.createElement("div");a.id="notificationArea";var b=document.getElementById("contentBox");if(null!=b)b.appendChild(a);else document.body.appendChild(a)}a.style.display="none";var c=f(a);return c}function g(){if(g_standardNotiCt!=null)return g_standardNotiCt;var d=j(),a=d.ctr,b=d.host;g_standardNotiCt=new SPNotificationContainer(SPNotifications.ContainerID.Basic,b,50);var f=function(a){var b=e(a,"ms-trcnoti-toast");b.innerHTML=a.strHtml},i=function(b){a.style.display="none";b()},k=function(b){a.setAttribute("aria-live","polite");a.setAttribute("aria-relevant","all");a.style.display="block";b()},g=function(a,e){f(a);var d=a.elm;d.style.top="0px";b.appendChild(d);c(a,SPAnimation.ID.SmallObject_SlideInFadeInTop,1,e)},h=function(b,a){c(b,SPAnimation.ID.Basic_Fade,0,a)};g_standardNotiCt.SetEventHandler(SPNotifications.EventID.OnHide,i);g_standardNotiCt.SetEventHandler(SPNotifications.EventID.OnShow,k);g_standardNotiCt.SetEventHandler(SPNotifications.EventID.OnDisplayNotification,g);g_standardNotiCt.SetEventHandler(SPNotifications.EventID.OnRemoveNotification,h);return g_standardNotiCt}function h(){var g=i(),q=g.ctr,f=g.root,b=g.ovrflw,d=g.host,a=new SPNotificationContainer(SPNotifications.ContainerID.Status,d,75,3);function j(g,e,f){var d=document.createElement("span"),b=document.createElement("a"),a=document.createElement("img"),c=document.createElement("a");b.href="#";c.className="ms-core-defaultFont ms-textLarge";b.className="ms-imnlink";b.onclick=function(){IMNImageOnClick(event);return false};a.id=g+"_imn,type=sip";a.setAttribute("name","imnmark");a.className="ms-imnImg";a.title="";a.border=0;a.src="/_layouts/15/images/blank.gif?rev=23";a.alt=Strings.STS.L_NoPresenceInformation;a.width="12px";a.height="12px";a.style.verticalAlign="middle";a.style.marginRight="0px";a.setAttribute("sip",f);c.innerHTML=e;b.appendChild(a);d.appendChild(b);d.appendChild(c);return d}var h=function(h){var q=e(h,"ms-trcnoti-status"),m=h.strHtml,b=h.extraData,k=document.createElement("div"),d=document.createElement("div"),a=document.createElement("div");d.className="ms-trcnoti-body";k.className="ms-trcnoti-gfx";a.className="ms-trcnoti-txt ms-core-defaultFont ms-trc-noti-title";if(b.img!=null){var i=document.createElement("img");i.src=b.img;if(browseris.ie){i.removeAttribute("width");i.removeAttribute("height")}k.appendChild(i)}if(b.sip!=null)if(browseris.ie5up){var p=j(h.id,m,b.sip);a.appendChild(p);for(var g=p.getElementsByTagName("img"),c=0,r=g.length;c0){b.style.display="block";b.innerHTML=StBuildParam(Strings.STS.L_NotificationsAndNMore,c);b.onclick=function(){a.ShowAllNotifications();b.style.display="none";return false}}else b.style.display="none"},m=function(){document.body.removeChild(q)};a.SetEventHandler(SPNotifications.EventID.OnShow,p);a.SetEventHandler(SPNotifications.EventID.OnHide,o);a.SetEventHandler(SPNotifications.EventID.OnDisplayNotification,l);a.SetEventHandler(SPNotifications.EventID.OnRemoveNotification,n);a.SetEventHandler(SPNotifications.EventID.OnNotificationCountChanged,k);a.SetEventHandler(SPNotifications.EventID.OnDisposing,m);g_statusNotiCt=a}addNotification=function(f,e,d,b,c){var a=new SPNotification(SPNotifications.ContainerID.Basic,f,e,d,b);a.Show(c);return a.id};removeNotification=function(d,c){var b=a().Notifications[d];Boolean(b)&&b.Hide(c)};function a(){if(d===null){g_NotificationEngine=new NotificationEngine;d=g_NotificationEngine;g();h()}return d}NotificationEngine.GetInstance=a})();cGCMinimumWidth=400;cGCMinimumHeight=200;cGCMaxGCResizeCount=10;glGCObjectHeight=0;glGCObjectWidth=0;glGCResizeCounter=0;objGCGlobal=null;PositionInfo_InitializePrototype();ecbManager={callOutPar:null,DismissECB:function(){var c={};if(ecbManager.callOutPar!=null){var e=itemTable;c.callOut=true;OutItem(c);ecbManager.callOutPar=null;itemTable=e}var d=window.event,a=null;if(d!=null)a=Boolean(d.srcElement)?d.srcElement:d.target;while(a!=null&&a.tagName!="TR")a=a.parentNode;var b=null;if(a!=null&&itemTable!=null){b=itemTable;while(b!=null){if(b==a)break;b=b.parentNode}}if(b==null){c.callOut=false;OutItem(c)}}};ecbItems="ECBItems";SYSTEM_ACCOUNT_ID=1073741823;resetItemGlobals();_spBodyOnLoadFunctions.push(InitFullScreenMode);filterTable=null;bIsFilterMenuShown=false;bIsFilterDataLoaded=false;filterImageCell=null;currentFilterMenu=null;loadingFilterMenu=null;ctxFilter=null;bIsFilterKeyPress=false;filterStr=null;strFieldName="";bMenuLoadInProgress=false;strFilteredValue=null;bIsMultiFilter=false;fnOnFilterMouseOut=null;if(typeof String.prototype.trim=="undefined")String.prototype.trim=function(){return this.replace(/^\s\s*/,"").replace(/\s\s*$/,"")};if(typeof Object.create==="undefined")Object.create=function(b){function a(){}a.prototype=b;return new a};if(typeof Object.keys==="undefined")Object.keys=function(c){var b=[];for(var a in c)c.hasOwnProperty(a)&&b.push(a);return b};RibbonBlock.prototype={initialTabId:null,buildMinimized:true,initStarted:false,initialTabSelectedByUser:false,launchedByKeyboard:false};kfnDisableEvent=new Function("return false");g_menuHtc_lastMenu=null;g_uniqueNumber=0;g_MenuEndOfDOM=false;ElementPosition_InitializePrototype();MenuTag_InitializePrototype();MMU_chDelim=",";MMU_chDelimEnc="%2c";MMU_postbackPrefix="javascript:__doPostBack(";MMU_chDelim2="%";MMU_chDelim2Enc="%25";MHash_InitializePrototype();ParseContext_InitializePrototype();MMU_reDelimEnc=new RegExp(MMU_chDelimEnc,"g");MMU_reDelim2Enc=new RegExp(MMU_chDelim2Enc,"g");MMU_reDelimDec=new RegExp(MMU_chDelim,"g");MMU_reDelim2Dec=new RegExp(MMU_chDelim2,"g");g_MMU_HighlightedEcbTable=null;g_MMU_HighlightedEcbTableOpen=null;g_MMU_OpenTimeoutHandle=null;g_MMU_theFormActionAtPageLoad=null;g_MMU_Form0ActionAtPageLoad=null;g_MMU_Form0ActionAtPreMenuOpen=null;g_MMU_RequestTimeoutTimeoutHandle=null;_AddSilverlightWebPartPopupUI_InitializePrototype();_ConfigSilverlightWebpartPopupUI_InitializePrototype();_launchNotificationId=null;_tenantAppData=null;typeof NotifyScriptLoadedAndExecuteWaitingJobs=="function"&&NotifyScriptLoadedAndExecuteWaitingJobs("core.js")}var SPAnimation;function SPCurve(b,a,c,e,d,f){this.ID=b;this.type=a;this.x1=c;this.y1=e;this.x2=d;this.y2=f}function SPKeyFrame(h,e,c,f,d,g,b,a){this.type=h;this.curveID=e;this.startTime=c;this.endTime=f;this.startValue=d;this.endValue=g;this.relativeTo=b;this.operationType=a}function Animation(a,b){this.ID=a;this.keyFrames=b}function UpdateAnimationStateFromQuery(){var a=window.location.href,b=a!=null&&a.indexOf("Animation=0")!=-1,c=a!=null&&a.indexOf("Animation=1")!=-1;b&&SPAnimation.Settings.DisableAnimation();c&&SPAnimation.Settings.EnableAnimation()}function AnimationEngine(){this.AnimationQueue=new Array(0);this.sharedTimer=null;this.sharedCancelTimer=null;this.frameInterval=1e3/60;this.resetInterval=3e4;this.sharedTimerRefs=0;this.conflictTable=new Array(0);this.currentAnimationIndex=-1;this.temporaryIDGenerator=0}function SPAnimation_State(){this.Index=0;this.Data=new Array(0)}function SPAnimation_Object(a,f,e,b,c,d){this.Initialize(a,f,e,b,c,d)}function AnimationUnit(d,e,c,a,b){this.Initialize(d,e,c,a,b)}function AnimationTelemetry(){this.perfData=new Array(0);this.logData=new Array(0);this.perfDataIndex=0;this.logDataIndex=0;this.animationIndex=0;this.startTime=null;this.duration=null;this.numAddedUnits=0}function GetCurrentAttributeValue(b,c){var a=0;switch(c){case 1:if(fRightToLeft)a=parseInt(b.style.right.replace("px",""));else a=parseInt(b.style.left.replace("px",""));break;case 2:a=parseInt(b.style.top.replace("px",""));break;case 3:a=parseInt(b.style.height.replace("px",""));break;case 4:a=parseInt(b.style.width.replace("px",""));break;case 5:a=GetOpacity(b)}return a}function TrySetProperty(b,c,d){var a=false;if(b!=null)try{b[c]=d;a=true}catch(e){}return a}function B1(a){return a*a*a}function B2(a){return 3*a*a*(1-a)}function B3(a){return 3*a*(1-a)*(1-a)}function B4(a){return(1-a)*(1-a)*(1-a)}function BezierFunction(d,b,e,c,a){return 0*B4(a)+b*B3(a)+c*B2(a)+1*B1(a)}function GetAnimationWSA(){if(typeof SPAnimation.g_AnimationWSA=="undefined"||!Boolean(SPAnimation.g_AnimationWSA))if(SP)if(SP.BWsaClient!=null){var a=GetWSA();SPAnimation.g_AnimationWSA=a;SPAnimation.g_AnimationWSA.createStream(SPAnimation.DATAID_SPANIMATION,1,8,200)}return SPAnimation.g_AnimationWSA}var SPAnimationUtility;function SPAnimUtil_TableAnimator(a){this.tableElement=a;this.fAnimatable=false;this.Initialize()}function SiteLogoImagePageUpdate(a,b){a.src=b.ImageUrl;a.alt=b.AlternateText}function SearchAreaPageUpdate(c,b){var a=c.getElementsByTagName("select")[0];a.options[0].value=b.Site.value;a.options.length>1&&a.remove(1);if(b.List.isValid){a.options[1]=new Option(b.List.text,b.List.value);a.selectedIndex=1}else a.selectedIndex=0;if(typeof searchAreaUrl!="undefined")searchAreaUrl=b.SearchAreaUrl}var IsMenuShown,ChevronContainer,itemTableDeferred,imageCell,onKeyPress,downArrowText,currentEditMenu,currentItemID,currentItemAppName,currentItemProgId,currentItemIcon,currentItemOpenControl,currentItemOpenApp,currentItemFileUrl,currentItemFSObjType,currentItemContentTypeId,currentItemCheckedOutUserId,currentItemCheckoutExpires,currentItemModerationStatus,currentItemUIString,currentItemCheckedoutToLocal,bIsCheckout,currentItemCanModify,currentItemPermMaskH,currentItemPermMaskL,currentItemEvtType,currentItemIsEventsExcp,currentItemIsEventsDeletedExcp,g_MaximumSelectedItemsAllowed,g_CustomActionDialogHandlers,g_CustomActionDialogHandlerId,g_ExpGroupWPState,DocOpen,hoverTR,ecbTD;function RowOnHover(b,c){var g=b.getAttribute("iid"),f=CtxFromRow(b);if(CountSelectedItems(f)>1&&ItemIsCurrentlySelected(f,g,b)){ecbTD=null;hoverTR=null;for(var e=0;e=0?ShowCalloutMenuForTr(d,b,c):true}function ShowCalloutMenuForTr(c,d,b){var a=false;EnsureScriptFunc("callout.js","Callout",function(){a=ShowCalloutMenuForTrInner(c,d,b)});return a}function ShowCalloutMenuForTrInner(h,c,g){if(IsEventRightClickOnAnchor(c))return true;var b=GetAncestor(h,"TR"),e=GetEcbTdFromRow(b),a=GetEcbDivFromEcbTd(e),d=GetEcbAffordanceDivFromRow(b);if(a==null)return true;g&&SingleItemSelectByElement(b,false);var f=GetAttributeFromItemTable(a,"ItemId","Id");OpenCallout(d,c,a,f);return false}function FIsMouseCursorInsideElement(a,c){if(a==null||c==null||a.clientX==null||a.clientY==null||a.clientX==0||a.clientY==0)return false;var b=c.getBoundingClientRect();return b.left<=a.clientX&&b.right>=a.clientX&&b.top<=a.clientY&&b.bottom>=a.clientY?true:false}function ShowECBMenuForTr(d,b){if(IsEventRightClickOnAnchor(b))return true;var c=GetAncestor(d,"TR"),f=GetEcbTdFromRow(c),a=GetEcbDivFromEcbTd(f);if(a==null)return true;c.className.indexOf("s4-itm-selected")<0&&SingleItemSelectByElement(c,false);var g=IsAjaxMenu(a);itemTable=a;currentItemID=GetAttributeFromItemTable(a,"ItemId","Id");currentCtx=g_ctxDict[a.getAttribute("CTXName")];if(g){var e=FIsMouseCursorInsideElement(b,d);return CreateAjaxMenu(b,e)}else return CreateMenu(b)}var ProtocolCommand,phManager;function CBSelectedValues(b,a){this.strList=b;this.fAllChecked=a}function CBSelectedValues_InitializePrototype(){CBSelectedValues.prototype.strList="";CBSelectedValues.prototype.fAllChecked=false}function PageContextInfo(e,n,h,m,q,p,r,k,c,a,j,l,o,g,i,f,d,b){this.webServerRelativeUrl=e;this.webAbsoluteUrl=j;this.siteAbsoluteUrl=i;this.layoutsUrl=o;this.webLanguage=n;this.siteClientTag=l;this.currentLanguage=h;this.webUIVersion=m;this.pageListId=q;this.pageItemId=p;this.userId=r;this.alertsEnabled=k;this.siteServerRelativeUrl=c;this.allowSilverlightPrompt=a;this.tenantAppVersion=g;this.themedImageRootPath=f;this.themedImageFileNames=d;this.clientServerTimeDelta=b}function PageContextInfo_InitializePrototype(){PageContextInfo.prototype.webServerRelativeUrl="";PageContextInfo.prototype.webAbsoluteUrl="";PageContextInfo.prototype.siteAbsoluteUrl="";PageContextInfo.prototype.serverRequestPath="";PageContextInfo.prototype.layoutsUrl="";PageContextInfo.prototype.siteClientTag="";PageContextInfo.prototype.webLanguage=0;PageContextInfo.prototype.webTitle=null;PageContextInfo.prototype.webLogoUrl=null;PageContextInfo.prototype.currentCultureName=null;PageContextInfo.prototype.currentUICultureName=null;PageContextInfo.prototype.currentLanguage=0;PageContextInfo.prototype.crossDomainPhotosEnabled=false;PageContextInfo.prototype.webUIVersion=0;PageContextInfo.prototype.pageListId="";PageContextInfo.prototype.pageItemId=0;PageContextInfo.prototype.userId="";PageContextInfo.prototype.systemUserKey="";PageContextInfo.prototype.alertsEnabled=false;PageContextInfo.prototype.siteServerRelativeUrl="";PageContextInfo.prototype.allowSilverlightPrompt="";PageContextInfo.prototype.tenantAppVersion=null;PageContextInfo.prototype.themedImageRootPath=null;PageContextInfo.prototype.themedImageFileNames=null;PageContextInfo.prototype.clientServerTimeDelta=0}var _groupCollapse,_spPageContextInfo,bGridViewPresent,_fV4Calendar,_spCustomNavigateHierarchy,g_ExtensionNotSupportCheckoutToLocal,g_ExtensionDefaultForRead,bValidSearchTerm,ListCtrlObj,fListControl,fListErrorShown,fNewDoc,fNewDoc2,fNewDoc3,SPDesignerDownloadUrl,SPDesignerProgID;function CtxRgiid(b,a){this.ctx=b;this.rgiid=a}function CtxRgiid_InitializePrototype(){CtxRgiid.prototype={ctx:undefined,rgiid:undefined}}function FilterNoteField(b,g,i,o){if(o!=13)return;event.returnValue=false;var a=window.location.href,m=/&Paged=TRUE&p_[^&]*&PageFirstRow=[^&]*/gi;a=a.replace(m,"");var f=GetUrlKeyValue("View",true);if(f==""){a=StURLSetVar2(a,"View",b);f=b}var e;if(b.toUpperCase()!=f.toUpperCase()){var k=escapeProperly(b);if(k.toUpperCase()!=f.toUpperCase()){var p=/\?[^?]*/i;e=a.indexOf("?");if(e!=-1)a=a.replace(p,"?View="+b);else a=a+"?View="+b}}var c=a.match(new RegExp("FilterField([0-9]+)="+g));if(c==null){e=a.indexOf("?");if(e!=-1)a=a+"&";else a=a+"?";var d=0,h;do{d++;h=a.match(new RegExp("FilterField"+String(d)+"=[^&]*&FilterValue"+String(d)+"=[^&]*"))}while(h!=null);a=a+"FilterField"+String(d)+"="+g+"&FilterValue"+String(d)+"="+escapeProperly(i);a=a.replace("Filter=1&","")}else{var n=parseInt(c[1]),l=a.match(new RegExp("&FilterValue"+String(n)+"=[^&]*")),q="&"+c[0]+l[0],j="&FilterField"+c[1]+"="+g+"&FilterValue"+c[1]+"="+escapeProperly(i);a=a.replace(q,j);a=a.replace("Filter=1&","")}window.location.href=STSPageUrlValidation(a)}function _SelectField(k,m){var a=ajaxNavigate.get_href(),i=ajaxNavigate.get_hash(),b=false,e=/\#.*/i;a=a.replace(e,"");var h=GetUrlKeyValue("View",true),g=GetUrlKeyValue("PageView",true),j=GetUrlKeyValue("ID",true),f=GetUrlKeyValue("ContentTypeId",true);if(k.toUpperCase()!=h.toUpperCase()){var c=escapeProperly(k);if(c.toUpperCase()!=h.toUpperCase()){e=/\?[^?]*/i;var l=a.indexOf("?");if(l!=-1)a=a.replace(e,"?View="+c);else a=a+"?View="+c;b=true}}if(!b&&GetUrlKeyValue("SelectedID")!=""){var d=/&SelectedID=[^&]*/gi;a=a.replace(d,"");d=/\?SelectedID=[^&]*&?/;a=a.replace(d,"?")}a=a+"&SelectedID=";a=a+m;if(b&&g!="")a=a+"&PageView="+g;if(j!="")a=a+"&ID="+j;if(f!="")a=a+"&ContentTypeId="+f;if(i!="")a=a+i;_SubmitFormPost(a);return false}function getSortQueryParam(b){if(b==null||b=="")return"";var c="",a;a=b.match(new RegExp("SortField=[^&]*&SortDir=[^&]*"));if(a!=null)c=a[0];return c}function _FilterField(d,b,a,c){return FilterFieldV3(d,b,a,c,"",false)}function CompleteDecode(b){if(typeof b=="undefined"||b==null)return b;var a=b,c=unescapeProperly(a);while(a!=c){a=c;c=unescapeProperly(a)}return a}function FilterFieldV3(l,k,i,t,r,G){var g,a=Boolean(r)?r:CanonicalizeUrlEncodingCase(ajaxNavigate.get_href()),v=new URI(a,{disableEncodingDecodingForLegacyCode:true});a="?"+v.getQuery();var e,q,b=a.match(new RegExp("[&?]Paged=TRUE[^&]*"));if(b!=null){var c=/&p_[^&]*/gi;a=a.replace(c,"");c=/&PageFirstRow=[^&]*/gi;a=a.replace(c,"");c=/&PageLastRow=[^&]*/gi;a=a.replace(c,"");c=/&PagedPrev=TRUE[^&]*/i;a=a.replace(c,"");b=a.match(new RegExp("[?]Paged=TRUE[^&]*"));if(b!=null){g=a.substr(b.index).indexOf("&");if(g!=-1)a=a.substr(0,b.index+1)+a.substr(g+b.index+1);else a=a.substr(0,b.index)}else{c=/&Paged=TRUE[^&]*/i;a=a.replace(c,"")}}var u=GetUrlKeyValue("View",true);if(u==""){a=StURLSetVar2(a,"View",l);u=l}if(CompleteDecode(l.toUpperCase())!=CompleteDecode(u.toUpperCase())){var H=/\?[^?]*/i;g=a.indexOf("?");if(g!=-1)a=a.replace(H,"?View="+l);else a=a+"?View="+l}var s=true;b=a.match(new RegExp("FilterField([0-9]+)="+k+"&"));if(!Boolean(b)){b=a.match(new RegExp("FilterFields([0-9]+)="+k+"&"));s=false}if(!Boolean(b))if(0==t){a=a.replace("Filter=1&","");a=a.replace("?Filter=1","")}else{g=a.indexOf("?");if(g!=-1)a=a+"&";else a=a+"?";var m=0;do{m++;q=a.match(new RegExp("FilterField"+String(m)+"=[^&]*"));if(!Boolean(q))q=a.match(new RegExp("FilterFields"+String(m)+"=[^&]*"))}while(q!=null);a=a+"FilterField"+String(m)+"="+k+"&FilterValue"+String(m)+"="+escapeProperly(i);a=a.replace("Filter=1&","")}else{e=parseInt(b[1]);var f=a.match(new RegExp("FilterValue"+String(e)+"=[^&]*"));if(!Boolean(f))f=a.match(new RegExp("FilterValues"+String(e)+"=[^&]*"));var C=a.match(new RegExp("&FilterOp"+String(e)+"=[^&]*")),z=a.match(new RegExp("&FilterLookupId"+String(e)+"=[^&]*")),B=a.match(new RegExp("&FilterData"+String(e)+"=[^&]*")),j="&"+b[0]+f[0];if(0==t){if(a.indexOf(j)==-1){var F=b[0];j=F+f[0]+"&"}a=a.replace(j,"");if(C!=null)a=a.replace(String(C[0]),"");if(z!=null)a=a.replace(String(z[0]),"");if(B!=null)a=a.replace(String(B[0]),"");a=restructureFilterUrl(a,e);a=a.replace("Filter=1&","");a=a.replace("?Filter=1","");a=a.replace("&Filter=1","")}else{var o;if(a.indexOf(j)==-1){j="?"+b[0]+f[0];o="?"}else o="&";var p;if(ctxFilter==null||!ctxFilter.IsClientRendering)p=o+"FilterField"+b[1]+"="+k+"&FilterValue"+b[1]+"="+escapeProperly(i);else{var w=false,d=String(f[0].substr(f[0].indexOf("=")+1)),h=[],n=[];if(s){d=unescapeProperly(d);if(i!=d){h.push(d);h.push(i)}}else{n=ParseMultiColumnValue(unescapeProperly(d),";#",true);for(var A in n){if(n[A]==i){w=true;continue}h.push(n[A])}!w&&h.push(i)}d=escapeProperly(ConvertMultiColumnValueToString(h,null,false));var x="FilterField",y="&FilterValue";if(h.length>1){x="FilterFields";y="&FilterValues"}p=o+x+b[1]+"="+k+y+b[1]+"="+d;if(d==""&&s){p="";a=restructureFilterUrl(a,e)}}a=a.replace(j,p);a=a.replace("Filter=1&","");a=a.replace("&Filter=1","")}}var E=b;b=a.match(new RegExp("FilterField([0-9]+)="));if(!Boolean(b))b=a.match(new RegExp("FilterFields([0-9]+)="));if(b==null&&t==0&&ctxFilter!=null&&(!ctxFilter.IsClientRendering||E!=null&&!Boolean(r)))a=a+"&FilterClear=1";else a=a.replace("&FilterClear=1","");v.setQuery(a);a=v.getString();if(G){var D=a.indexOf("?");D=a.substr(D+1).indexOf("?");return a}else _SubmitFormPost(a);return null}function restructureFilterUrl(a,h){var b=h+1,f=a.match(new RegExp("FilterField"+String(b)+"=[^&]*")),g=false;if(!Boolean(f)){f=a.match(new RegExp("FilterFields"+String(b)+"=[^&]*"));g=f!=null}for(var e=h;f!=null;e++){var c=g?"FilterFields"+String(e):"FilterField"+String(e),d=g?"FilterFields"+String(b):"FilterField"+String(b);a=a.replace(d,c);c=g?"FilterValues"+String(e):"FilterValue"+String(e);d=g?"FilterValues"+String(b):"FilterValue"+String(b);a=a.replace(d,c);c="FilterOp"+String(e);d="FilterOp"+String(b);a=a.replace(d,c);c="FilterLookupId"+String(e);d="FilterLookupId"+String(b);a=a.replace(d,c);c="FilterData"+String(e);d="FilterData"+String(b);a=a.replace(d,c);b++;f=a.match(new RegExp("FilterField"+String(b)+"=[^&]*"));if(!Boolean(f))f=a.match(new RegExp("FilterFields"+String(b)+"=[^&]*"))}return a}function CanonicalizeUrlEncodingCase(c){for(var b="",a=0;a1){var f=function(){inplview.HandleFilterReal(e,b,d)};EnsureScript(c[0],a,f)}return}_SubmitFormPost(b)}function _SubmitFormPost(a,d,c){if(typeof MSOWebPartPageFormName!="undefined"){var b=document.forms[MSOWebPartPageFormName];if(null!=b)if(d!=undefined&&d==true||typeof b.onsubmit=="undefined"||b.onsubmit==null||b.onsubmit()!=false){typeof window.WebForm_OnSubmit=="function"&&window.WebForm_OnSubmit();if(ajaxNavigate.get_search().match(new RegExp("[?&]IsDlg=1"))!=null)a+=a.indexOf("?")==-1?"?IsDlg=1":"&IsDlg=1";if(FV4UI())try{var e=SP.Ribbon.PageManager.get_instance().get_ribbon().get_selectedTabId();if(Boolean(e)){a=StURLSetVar2(a,"InitialTabId",escapeProperly(e));a=StURLSetVar2(a,"VisibilityContext","WSSTabPersistence")}}catch(f){}if(c!=undefined&&c==true){a=DemoteIntoFormBody(b,a,"owsfileref");a=DemoteIntoFormBody(b,a,"NextUsing")}b.action=STSPageUrlValidation(a);b.method="POST";if(isPortalTemplatePage(a))b.target="_top";!bValidSearchTerm&&_ClearSearchTerm("");b.submit()}}}function DemoteIntoFormBody(e,c,b){var d=GetUrlKeyValue(b,false,c);if(d.length>0){var a=document.createElement("INPUT");if(a!=null){a.setAttribute("type","hidden");a.setAttribute("id",b);a.setAttribute("name",b);a.setAttribute("value",d);e.appendChild(a);return RemoveUrlKeyValue(b,c)}}return c}function RemoveUrlKeyValue(c,a){var b=new RegExp(c+"=[^&]*&");a=a.replace(b,"");b=new RegExp(c+"=[^&]*");a=a.replace(b,"");return a}function _RefreshPageTo(b,c,a){EnsureScript("inplview",typeof inplview,null,true);inplview.RefreshPageTo(b,c,a)}var g_varSkipRefreshOnFocus;function RefreshOnFocus(){(typeof g_varSkipRefreshOnFocus=="undefined"||!Boolean(g_varSkipRefreshOnFocus))&&_RefreshPage(1)}function RefreshOnFocusForOneRow(){RefreshOnFocus()}function DisableRefreshOnFocus(){g_varSkipRefreshOnFocus=1}function SetWindowRefreshOnFocus(){window.onbeforeunload=DisableRefreshOnFocus;window.onfocus=RefreshOnFocus}function RemoveParametersFromUrl(a){var b=a.indexOf("?");return b==-1?a:a.substr(0,b)}function _GoToPageRelative(a){if(a.substr(0,4)!="http"&&a.substr(0,1)!="/"){var b=RemoveParametersFromUrl(window.location.href),c=b.lastIndexOf("/");if(c>0)a=b.substring(0,c+1)+a}GoToPage(a)}function _EnterFolder(c){var b=RemoveParametersFromUrl(window.location.href),a=RemoveParametersFromUrl(c),d=a!=null&&a.length>0&&a.charAt(0)=="/"&&a.length";a.send(d);return a.status==200&&a.responseText.indexOf("true")!=0}function FSupportCheckoutToLocal(a){var c=true;if(a==null||a=="")return false;a=a.toLowerCase();for(var b=0,b=0;b0)b=d}var a=ajaxNavigate.getParam("ServerFilter");if(typeof a!="undefined"&&null!=a&&a.length>0){a=a.replace(/-/g,"&").replace(/&&/g,"-");var f=GetUrlKeyValue("RootFolder",true,a),e=GetUrlKeyValue("RootFolder",true);if(""==f&&""!=e)a+="&RootFolder="+e;var c=new URI(b,{disableEncodingDecodingForLegacyCode:true});c.setFragment("");c.setQuery(a);return c.getString()}return b}function _RefreshPage(a){var b=function(){SetFocusBack(a)};if(a==1)_SubmitFormPost(_CorrectUrlForRefreshPageSubmitForm());else EnsureScript("inplview",typeof InitAllClvps,b)}function AJAXRefreshView(a,c){if(a==null||!(typeof a.fakeEvent=="boolean"&&a.fakeEvent||typeof a.csrAjaxRefresh=="boolean"&&a.csrAjaxRefresh||typeof a.fromRibbon=="boolean"&&a.fromRibbon))_RefreshPage(c);else if(c==SP.UI.DialogResult.OK){var b;try{b=typeof inplview.HandleRefreshView}catch(g){b="undefined"}var f="inplview.HandleRefreshView",d=f.split(".");if(d.length>1){var e=function(){inplview.HandleRefreshView(a)};EnsureScript(d[0],b,e)}}}function AJAXRefreshViewOnDialogClose(a){AJAXRefreshView(a,SP.UI.DialogResult.OK)}function RefreshOnDialogClose(){_RefreshPage(SP.UI.DialogResult.OK)}function OpenPopUpPageWithDialogOptions(c){var d=function(){var a=SP.UI.ModalDialog.showModalDialog(c)},b;try{b=typeof SP.UI.ModalDialog.showModalDialog}catch(e){b="undefined"}EnsureScript("SP.UI.Dialog.js",b,d);var a=window.event;if(a!=null)if(a.stopPropagation!=null)a.stopPropagation();else a.cancelBubble=true}function OpenPopUpPageWithTitle(f,a,d,b,c){var e={url:f,args:null,title:c,dialogReturnValueCallback:a,width:d,height:b};OpenPopUpPageWithDialogOptions(e)}function SetupAndOpenDialogForCustomAction(a,j,g,i){if(typeof a=="undefined"||a==null||a.length==0)return;var d=a.indexOf("//",0),b=-1;if(d==-1)b=a.indexOf("/",0);else b=a.indexOf("/",d+2);var h="";if(b==-1)b=a.length-1;h=a.substring(0,b);var f={url:a,args:null,title:i,dialogReturnValueCallback:CustomActionDialogCloseCallback,width:j,height:g},k=EnsureScriptParams("SP.UI.Dialog.js","SP.UI.ModalDialog.showModalDialog",f),e=g_CustomActionDialogHandlerId,c=function(a){if(typeof a.data=="undefined"||typeof a.data==null||a.data!="CloseCustomActionDialogRefresh"&&a.data!="CloseCustomActionDialogNoRefresh")return;if(typeof a.origin=="undefined"||typeof a.origin==null)return;var c=function(){var b=SP.UI.ModalDialog.get_childDialog();if(a.data=="CloseCustomActionDialogRefresh")b.close(0);else b.close(1)},b;try{b=typeof SP.UI.ModalDialog.get_childDialog}catch(a){b="undefined"}EnsureScript("SP.UI.Dialog.js",b,c);a.data=="CloseCustomActionDialogNoRefresh"&&RemoveCustomActionDialogPostMessageHandler(e)};g_CustomActionDialogHandlers[g_CustomActionDialogHandlerId]=c;g_CustomActionDialogHandlerId++;if(typeof window.addEventListener!="undefined")window.addEventListener("message",c,false);else typeof window.attachEvent!="undefined"&&window.attachEvent("onmessage",c)}function CustomActionDialogCloseCallback(a){a==0&&RefreshOnDialogClose()}function RemoveCustomActionDialogPostMessageHandler(b){var a=g_CustomActionDialogHandlers[b];if(typeof a=="function"){if(typeof window.removeEventListener!="undefined"&&typeof window.removeEventListener!=null)window.removeEventListener("message",a,false);else typeof window.detachEvent!="undefined"&&typeof window.detachEvent!=null&&window.detachEvent("onmessage",a);delete g_CustomActionDialogHandlers[b]}}function _OpenPopUpPage(d,a,c,b){OpenPopUpPageWithTitle(d,a,c,b,null)}function _RemoveQueryStringsAndHash(a){if(Boolean(a)){var b=a.indexOf("#");if(b>=0)a=a.substr(0,b);b=a.indexOf("?");if(b>=0)a=a.substr(0,b)}return a}function _OpenCreateWebPageDialog(a){if(!Boolean(a)&&typeof _spPageContextInfo!="undefined"&&_spPageContextInfo.webServerRelativeUrl!=null){a=_spPageContextInfo.webServerRelativeUrl;if(a.charAt(a.length-1)!="/")a=a+"/";a=a+"_layouts/15/createwebpage.aspx"}var b=ajaxNavigate.get_href();b=_RemoveQueryStringsAndHash(b);a=StURLSetVar2(a,"Url",escapeProperly(b));if(FV4UI()){var c={};commonModalDialogOpen(a,c,null,null)}else GoToPage(a)}function _EditLink2(a,b){var c=function(){var d=GetGotoLinkUrl(a);if(d==null)return false;var c=window["ctx"+String(b)];if(c!=null&&c.clvp!=null&&UseDialogsForFormsWithCtx(c)){var e=c.clvp;PreventDefaultNavigation();e.ShowPopup(d);return false}GoToLinkOrDialogNewWindow(a);return false};EnsureScript("inplview",typeof inplview,c)}function EditLink(a,b){if(FV4UI())EditLink2(a,b);else GoToLink(a)}function _GoBack(a){window.location.href=unescapeProperly(GetSource(a))}function _ReplyItem(a,b,d,c){if(b.length>=504)alert(Strings.STS.L_ReplyLimitMsg_Text);else{a+="?Threading="+b;a+="&Guid="+d;a+="&Subject="+c;GoToPage(a)}}function GoBacktoCurrentIssue(a,b){a+="?ID="+b;GoToPage(a)}function _ExportToDatabase(c,d,e,b){if(g_expDatabase==null){var a=GetCookie("databaseBtnText");if(a!=null&&a!="0")try{g_expDatabase=new ActiveXObject("SharePoint.ExportDatabase")}catch(f){return}else if(a==null)GetDataBaseInstalled();else return}if(g_expDatabase!=null&&typeof g_expDatabase.DoExport!="undefined")if(browseris.ie5up&&browseris.win32)try{g_expDatabase.SiteUrl=makeAbsUrl(c);g_expDatabase.ListID=d;g_expDatabase.ViewID=e;g_expDatabase.DoExport(b)}catch(f){alert(Strings.STS.L_ExportDBFail_Text);return}else alert(Strings.STS.L_NoWSSClient_Text)}function _ExportList(a){var b=typeof navigator.msProtocols=="function"&&navigator.msProtocols.excel;!b&&g_ssImporterObj==null&&EnsureSSImporter();if(!b&&g_ssImporterObj==null)(g_fSSImporter||GetCookie("EnsureSSImporter")==null)&&EnsureSSImporter(true);if(IsSupportedMacBrowser()){if(g_fSSImporter!=null&&typeof g_ssImporterObj.IqyExportEnabled!="undefined"&&g_ssImporterObj.IqyExportEnabled&&typeof g_ssImporterObj.IqyExport!="undefined"){var c=g_ssImporterObj.IqyExport(makeAbsUrl(a));if(!c)window.location.href=STSPageUrlValidation(makeAbsUrl(a))}else if(confirm(Strings.STS.L_ExportListSpreadsheet_Text))window.location.href=STSPageUrlValidation(makeAbsUrl(a))}else if(b||g_fSSImporter!=false&&typeof g_ssImporterObj.IqyImportEnabled!="undefined"&&g_ssImporterObj.IqyImportEnabled()||confirm(Strings.STS.L_ExportListSpreadsheet_Text))window.location.href=STSPageUrlValidation(makeAbsUrl(a))}function ExportDiagram(l,e,k,f,h,g){if(g_objDiagramLaunch==null){var a=GetCookie("digInstalled");if(a!=null&&a!="0")try{g_objDiagramLaunch=new ActiveXObject("DiagramLaunch.DiagramLauncher")}catch(m){return}else if(a==null)GetDiagramLaunchInstalled();else return}if(g_objDiagramLaunch!=null&&typeof g_objDiagramLaunch.CreateDiagram!="undefined")try{var c="",i=l,d=g,b=e,j=k;g_objDiagramLaunch.CreateDiagram(c,i,d,b,f,h,j)}catch(m){alert(Strings.STS.L_DiagramLaunchFail_Text)}}function OpenTasks(g,a,f,b,e,d){var c="ms-project:ost|u|"+g+"|l|"+a+"|i|"+f+"|n|"+b+"|v|"+e+"|g|"+d;window.location.href=c}function CatchListCreateError(){alert(Strings.STS.L_EditInGrid_Text);fListErrorShown=true;return false}function RegisterTouchOverride(a,b){if(a.getAttribute("hasTouchHandler")!="true")if(window.navigator.msMaxTouchPoints!=null&&window.navigator.msMaxTouchPoints>0){AttachEvent("MSPointerDown",function(a){a.target.setAttribute("pointerType",a.pointerType.toString())},a);a.setAttribute("hasTouchHandler","true")}else if(document.documentElement!=null&&"ontouchstart"in document.documentElement){AttachEvent("touchstart",function(a){if(b(a)){a.preventDefault!=null&&a.preventDefault();a.stopPropagation!=null&&a.stopPropagation()}},a);a.setAttribute("hasTouchHandler","true")}}function EnsureListControl(){if(!fListControl){fListErrorShown=false;if(browseris.ie5up&&browseris.win32){var b='try{ ListCtrlObj = new ActiveXObject("ListNet.ListNet"); if (ListCtrlObj) fListControl = true;} catch (e){ fListControl = false;};',a=new Function(b);a()}else{window.onerror=CatchListCreateError;ListCtrlObj=new ActiveXObject("ListNet.ListNet");if(ListCtrlObj!=null)fListControl=true}}ListCtrlObj=null;return fListControl}function IsVoteOK(a){if(1==a)alert(Strings.STS.L_NoQuestion_Text);else if(2==a)alert(Strings.STS.L_NoVoteAllowed_Text);else return true;return false}function hasHighChar(b){for(var a=0,a=0;a127)return true;return false}function _ClearSearchTerm(a){if(typeof MSOWebPartPageFormName!="undefined"){var c=document.forms[MSOWebPartPageFormName];if(null!=c)if(a!=null){var b=c["SearchString"+a];if(b!=null)b.value=""}}bValidSearchTerm=true}function _SubmitSearchRedirect(b){var a=document.forms.frmSiteSearch;if(a==null)if(typeof MSOWebPartPageFormName!="undefined")a=document.forms[MSOWebPartPageFormName];if(a!=null){var e;if(typeof a.elements.SearchString!="undefined")e=a.elements.SearchString;var c=e.value.trim();if(c===Strings.STS.L_SharepointSearch_Text||c==="")return false;b=b+"?k="+escapeProperly(c);var f=a.elements.SearchScope;if(f!=null){var d=f.value;if(Boolean(d))b=b+"&u="+escapeProperly(d)}window.location.href=b}return false}function ShowGridUrlInHTML(a){if(a.indexOf("?")>0)a=a+"&";else a=a+"?";a=a+"ShowInGrid=HTML";return a}function SearchOnBodyLoad(){var a=document.getElementById("idSearchString");if(a!=null&&(a.value.trim()===Strings.STS.L_SharepointSearch_Text||a.value.trim()===""))a.className="ms-sharepointsearchtext"}function SearchOnBlur(){var a=document.getElementById("idSearchString");if(a!=null&&a.value.trim()===""){a.value=Strings.STS.L_SharepointSearch_Text;a.className="ms-sharepointsearchtext"}}function SearchOnFocus(){var a=document.getElementById("idSearchString");if(a!=null&&a.value.trim()===Strings.STS.L_SharepointSearch_Text){a.value="";a.className="ms-searchtext"}}function SubmitSearch(){_SubmitSearchForView("")}function _SubmitSearchForView(e){var a=document.forms[0],c="SearchString"+e,d=a.elements[c].value;if(""==d){alert(Strings.STS.L_Enter_Text);a.elements[c].focus()}else{var b;b=RemovePagingArgs(a.action);if(typeof bGridViewPresent!="undefined"&&bGridViewPresent)b=ShowGridUrlInHTML(b);a.action=b;a.submit()}}function IsKeyDownSubmit(a){if(a!=null){var c,b;if(browseris.ie){c=a.keyCode;b=Number(a.altKey||a.ctrlKey)}else{c=a.which;b=typeof a.modifers!="undefined"&&typeof a.ALT_MASK!="undefined"&&typeof a.CONTROL_MASK!="undefined"?a.modifers&(a.ALT_MASK|a.CONTROL_MASK):0}if(c==13&&!Boolean(b))return true}return false}function SearchViewKeyDown(a){IsKeyDownSubmit(event)&&_SubmitSearchForView(a)}function SearchKeyDown(b,a){if(IsKeyDownSubmit(b)){_SubmitSearchRedirect(a);return false}return true}function SearchKeyDownGoSearch(a){if(IsKeyDownSubmit(a)){typeof GoSearch!="undefined"&&GoSearch();return false}return true}function _AlertAndSetFocus(b,a){a.focus();a.select();window.alert(b)}function _AlertAndSetFocusForDropdown(b,a){a.focus();window.alert(b)}function setElementValue(c,b){var a=document.getElementsByName(c)[0];if(a==null)return false;a.value=b;return true}function GetMultipleSelectedText(a){var c="";if(a!=null)for(var e=a.options.length,d=true,b=0;b=0;d--)if(g_ExpGroupWPState.ageStack[d]!=null){var b=g_ExpGroupWPState.ageStack[d];if(a==ExpGroupMaxWP){DeleteCookie(ExpGroupCookiePrefix+b);break}else if(g_ExpGroupTable[b]==null){a++;if(a>1)c+=escapeProperly(ExpGroupCookieDelimiter);c+=escapeProperly(b)}else if(g_ExpGroupTable[b].count==0)DeleteCookie(ExpGroupCookiePrefix+b);else if(a1)c+=escapeProperly(ExpGroupCookieDelimiter);c+=escapeProperly(b)}}if(a==0)DeleteCookie(ExpGroupWPListName);else document.cookie=c}function ExpGroupRenderCookieForWebPart(a){if(!g_ExpGroupTable[a].ageStack)return;for(var d=ExpGroupCookiePrefix+a+"=",e=true,c=g_ExpGroupTable[a].ageStack.length-1;c>=0;c--)if(g_ExpGroupTable[a].ageStack[c]!=null){var f=g_ExpGroupTable[a].ageStack[c],b="";if(!e)b+=escapeProperly(ExpGroupCookieDelimiter);b+=escapeProperly(f);if(d.length+b.length<=ExpGroupMaxCookieLength){d+=b;e=false}}document.cookie=d+";"}function ExpDataViewGroupOnPageLoad(){ExpGroupOnPageLoad("PageLoad")}function ExpGroupOnPageLoad(a){var b=document.getElementById("GroupByColFlag");if(b!=null){g_ExpGroupNeedsState=true;ExpGroupParseCookie(a)}}function ExpGroupParseCookie(a){var d=GetCookie(ExpGroupWPListName);if(d==null)return;g_ExpGroupParseStage=true;for(var e=d.split(ExpGroupCookieDelimiter),c=e.length-1;c>=0;c--){var b=e[c];LRUCache_Add(g_ExpGroupWPState,b);if(g_ExpGroupTable[b]==null)document.getElementById("GroupByCol"+b)!=null&&ExpGroupParseCookieForWebPart(b,a)}g_ExpGroupParseStage=false;if(Boolean(a)&&g_ExpGroupXSLTQueue.length>0)ExpGroupFetchData(g_ExpGroupXSLTQueue.shift(),a);else!Boolean(a)&&g_ExpGroupCAMLQueue.length>0&&ExpGroupFetchData(g_ExpGroupCAMLQueue.shift(),a)}function ExpGroupParseCookieForWebPart(c,f){var n=GetCookie(ExpGroupCookiePrefix+c);if(n==null)return;var o=n.split(ExpGroupCookieDelimiter),e,b;g_ExpGroupTable[c]=new LRUCache;for(b=o.length-1;b>=0;b--){e=o[b];LRUCache_Add(g_ExpGroupTable[c],e)}var d=[],q=document.getElementById("GroupByCol"+c).parentNode,j=q.getElementsByTagName("TBODY");for(b=0;b5&&c.id.substr(0,5)=="group")break}var b=c;while(b!=null){b=b.parentNode;if(b!=null&&b.tagName=="TABLE")break}var d=null;if(b!=null){d=b.lastChild;if(d!=null&&d.tagName=="TBODY")d=d.lastChild;if(d!=null&&d.tagName=="TR"&&d.lastChild!=null)d=d.lastChild}for(var a,g=0;g5&&a.id.substr(0,5)=="group"){var v=parseInt(a.id.slice(5));if(v<=w)return}b=a;while(b!=null){b=b.parentNode;if(b==c)break}if(b==c)continue;if(a.id!=null&&a.id.substring(0,5)=="group")f=i;if(a.id!=null&&a.id.substring(0,8)=="footer"+q)f=i;if(i!="none"&&a!=e&&a.tagName=="IMG"&&a.src!=null){var p="/_layouts/15/images/plus.gif",n="/_layouts/15/images/minus.gif";if(a.getAttribute("src")==h||a.src.slice(a.src.length-p.length)==p)f="none";else if(a.getAttribute("src")==r||a.src.slice(a.src.length-n.length)==n)f=""}if(a.tagName==c.tagName&&a.id!="footer")a.style.display=f;if(a.tagName=="TABLE"&&d==null||a==d)break}}function SzExtension(a){var c=new String(a),b=/^.*\.([^\.]*)$/;return c.replace(b,"$1").toLowerCase()}function SzServer(a){var c=new String(a),b=/^([^:]*):\/\/([^\/]*).*$/;return c.replace(b,"$1://$2")}var v_stsOpenDoc,v_strStsOpenDoc;function NavigateParentOrSelf(b,a){if(b.target=="_top"&&typeof window.frameElement.navigateParent!="undefined")window.frameElement.navigateParent(a);else STSNavigate(a)}function StsOpenEnsureEx(a){if(v_stsOpenDoc==null||v_strStsOpenDoc!=a)if(window.ActiveXObject!=null)try{v_stsOpenDoc=new ActiveXObject(a);v_strStsOpenDoc=a}catch(b){v_stsOpenDoc=null;v_strStsOpenDoc=null}return v_stsOpenDoc}function _DispDocItem(b,a){return _DispDocItemEx(b,"FALSE","FALSE","FALSE",a)}function _DispDocItemExWithServerRedirect(d,c,j,g,i,f,k,a){var e=a!=null&&a!="",h=IsClientAppInstalled(f,null,d)&&HasRights(16,0)||SzExtension(d.href)=="pdf";if(e){a=a.substring(1);e=a!=""}if(e)if(k=="1"||!h){var b=a;b=AddInfoPathParametersToUrl(b,f,d,DocOpen.BROWSER);b=AddSourceToUrl(b);if(ajaxNavigate.get_search().match(new RegExp("[?&]IsDlg=1"))!=null)typeof window.frameElement.navigateParent!="undefined"&&window.frameElement.navigateParent(b);else if(c.shiftKey||c.ctrlKey)return true;else NavigateParentOrSelf(d,b);c.cancelBubble=true;c.returnValue=false;return false}return DispDocItemExWithEvent(d,c,j,g,i,f)}function _DispDocItemEx(e,c,a,b,d){return DispDocItemExWithEvent(e,null,c,a,b,d)}function DispDocItemExWithEvent(f,g,r,o,q,c,l,p){var h;itemTable=FindSTSMenuTable(f,"CTXName");if(!browseris.ie&&!IsSupportedMacBrowser()&&!IsSupportedNPApiBrowserOnWin()){if(browseris.ie)event.cancelBubble=false;h=f.href;if(ajaxNavigate.get_search().match(new RegExp("[?&]IsDlg=1"))!=null)typeof window.frameElement.navigateParent!="undefined"&&window.frameElement.navigateParent(h);else STSNavigate(h);return false}var a,b,e=true,i="",s=document.getElementById("FileDialogViewTable");if(s!=null){if(browseris.ie){event.cancelBubble=false;event.returnValue=false}return true}var d=itemTable!=null?GetAttributeFromItemTable(itemTable,"App",null):"",k=Boolean(f.getAttribute("isEdit"))||d=="ms-infopath";b=itemTable!=null?GetAttributeFromItemTable(itemTable,"Url","ServerUrl"):"";if(b==null||b==""){if(k)b=f.editHref;if(!Boolean(b))b=f.href}else b=SzServer(f.href)+b;var j=SzExtension(b),n=k&&HasRights(0,4)&&!FDefaultOpenForReadOnly(j)&&(!Boolean(currentItemCheckedOutUserId)||currentItemCheckedOutUserId==ctx.CurrentUserId);if(!Boolean(d))d=f.getAttribute("App");if(phManager.ShouldTryProtocolHandler(d)){navigator.msLaunchUri(phManager.CreateProtocolHandlerUrl(d,b,n?ProtocolCommand.Edit:ProtocolCommand.View,null),function(){PHSucceed(d,true)},function(){PHSucceed(d,false);m()});return CancelMyEvent(false,a,g,true)}return m();function m(){phManager.SetProtocolHandlerEnabled(d,null);if(l!=null&&!(k&&p)){l();return CancelMyEvent(false,a,g,true)}if(Boolean(d)&&phManager.IsProtocolHandlerEnabled(d))if(d!=null&&d!=""){window.location.href=phManager.CreateProtocolHandlerUrl(d,b,n?ProtocolCommand.Edit:ProtocolCommand.View,null);return CancelMyEvent(false,a,g,true)}if(currentItemProgId==null&&itemTable!=null)currentItemProgId=GetAttributeFromItemTable(itemTable,"Type","HTMLType");if(currentItemProgId!=null)i=currentItemProgId;if(FDefaultOpenForReadOnly(j)){if(c.indexOf("SharePoint.OpenDocuments")>=0)c="SharePoint.OpenDocuments.3"}else if(!FSupportCheckoutToLocal(j))c="";if(currentItemCheckedOutUserId==null&&itemTable!=null&&typeof itemTable.COUId=="string")currentItemCheckedOutUserId=itemTable.COUId;if(currentItemCheckedoutToLocal==null&&itemTable!=null)currentItemCheckedoutToLocal=GetAttributeFromItemTable(itemTable,"COut","IsCheckedoutToLocal ");if(currentItemCheckedOutUserId!=null&¤tItemCheckedOutUserId!=""&¤tItemCheckedOutUserId==ctx.CurrentUserId&&(c==""||c.indexOf("SharePoint.OpenDocuments")>=0)&&FSupportCheckoutToLocal(j)||c=="SharePoint.OpenDocuments")c="SharePoint.OpenDocuments.3";var s=2;if(c!=""&&HasRights(16,0)){if(c.indexOf(".3")>=0)s=3;a=StsOpenEnsureEx2(c);if(a==null&&s==3){c=c.replace(".3",".2");a=StsOpenEnsureEx2(c);s=2}}if(a!=null)if(s==2||itemTable==null&¤tItemCheckedOutUserId==null||ctx.isVersions==1&&(itemTable==null||typeof itemTable.isMostCur!="string"||itemTable.isMostCur=="0")){try{if(currentItemCheckedOutUserId!=null&¤tItemCheckedOutUserId!=""&&(currentItemCheckedOutUserId==ctx.CurrentUserId||ctx.CurrentUserId==null))if(currentItemCheckedoutToLocal=="1"){alert(Strings.STS.L_OpenDocumentLocalError_Text);e=false}else e=typeof a.EditDocument2!="undefined"&&a.EditDocument2(window,b,i);else e=typeof a.ViewDocument2!="undefined"&&a.ViewDocument2(window,b,i)}catch(v){e=false}if(e)window.onfocus=RefreshOnNextFocus}else{var m=0;if(currentItemCheckedOutUserId!="")if(currentItemCheckedOutUserId!=ctx.CurrentUserId&&ctx.CurrentUserId!=null)m=1;else if(currentItemCheckedoutToLocal==null||currentItemCheckedoutToLocal!="1")m=2;else m=4;else if(!HasRights(0,4)||FDefaultOpenForReadOnly(j))m=1;else if(ctx.isForceCheckout==true)m=3;try{if(k)e=typeof a.EditDocument3!="undefined"&&a.EditDocument3(window,b,false,i);else e=typeof a.ViewDocument3!="undefined"&&a.ViewDocument3(window,b,m,i)}catch(v){e=false}if(e){var t=typeof a.PromptedOnLastOpen!="undefined"&&a.PromptedOnLastOpen();if(t)window.onfocus=RefreshOnNextFocus;else SetWindowRefreshOnFocus()}}else currentItemCheckedoutToLocal=="1"&&alert(Strings.STS.L_OpenDocumentLocalError_Text);if(a==null||!e){if(r=="TRUE"&&o=="TRUE"&&q=="TRUE"){if(itemTable==null)return e;if(browseris.ie){event.cancelBubble=true;event.returnValue=false}else if(IsSupportedMacBrowser()||IsSupportedFirefoxOnWin()){typeof g.preventDefault!="undefined"&&g.preventDefault();typeof g.stopPropagation!="undefined"&&g.stopPropagation()}var u=new Function("return "+itemTable.getAttribute("CTXName")+".HttpRoot;");h=u()+"/_layouts/15/htmltrverify.aspx?doc="+escapeProperly(b);if(ajaxNavigate.get_search().match(new RegExp("[?&]IsDlg=1"))!=null)typeof window.frameElement.navigateParent!="undefined"&&window.frameElement.navigateParent(h);else GoToPage(h)}else if(ajaxNavigate.get_search().match(new RegExp("[?&]IsDlg=1"))!=null)typeof window.frameElement.navigateParent!="undefined"&&window.frameElement.navigateParent(f.href);else STSNavigate(f.href);return false}return CancelMyEvent(e,a,g)}}function CancelMyEvent(b,d,a,c){if(browseris.ie){if(event!=null){event.cancelBubble=true;event.returnValue=false}}else if(IsSupportedMacBrowser()||IsSupportedNPApiBrowserOnWin()){if(c||d!=null&&b){typeof a.preventDefault!="undefined"&&a.preventDefault();typeof a.stopPropagation!="undefined"&&a.stopPropagation()}return true}return b}function DispDocItemEx2(b,d,l,j,k,s,n,c,g){var a,u=false,p=g!=null&&g!="",e=IsClientAppInstalled(c,null,b)&&HasRights(16,0),f=!IsNullOrUndefined(b.getAttribute("isEdit"));function q(){a=g;a=AddInfoPathParametersToUrl(a,c,b,DocOpen.BROWSER);a=AddSourceToUrl(a);if(f){var e=new URI(a);e.setQueryParameter("action","edit");a=e.getString()}if(ajaxNavigate.get_search().match(new RegExp("[?&]IsDlg=1"))!=null)typeof window.frameElement.navigateParent!="undefined"&&window.frameElement.navigateParent(a);else if(d.shiftKey||d.ctrlKey)return true;else NavigateParentOrSelf(b,a);d.cancelBubble=true;d.returnValue=false;return false}function m(){!ViewDoc(b.href,c)&&editDocumentWithProgIDNoUI(b.href,currentItemProgId,c,"0",ctx.HttpRoot,"0",i,o,o);var a=StsOpenEnsureEx2(c);return CancelMyEvent(false,a,d)}if(SzExtension(b.href).indexOf("pdf")!=-1)if(!e){var h=b,r=f&&Boolean(h.editHref)?h.editHref:h.href;h.href=r;STSNavigate(r);return false}else m();if(p){itemTable=FindSTSMenuTable(b,"CTXName");var i=itemTable!=null?GetAttributeFromItemTable(itemTable,"App",null):"";if(!Boolean(i))i=b.getAttribute("App");var t=!e&&(browseris.ie10standardUp||browseris.msEdge||browseris.chrome&&f)&&Boolean(i)&&(n=="0"||f)&&HasRights(0,32);if(!t&&(n=="1"&&!(e&&f&&HasRights(0,32))||!e))return q();else if(e)if(c==""||c.indexOf("SharePoint.OpenDocuments")>=0)return DispDocItemExWithEvent(b,d,l,j,k,s);else m()}function o(){a=g;a=AddInfoPathParametersToUrl(a,c,b,-1);a=AddSourceToUrl(a);if(ajaxNavigate.get_search().match(new RegExp("[?&]IsDlg=1"))!=null)typeof window.frameElement.navigateParent!="undefined"&&window.frameElement.navigateParent(a);else NavigateParentOrSelf(b,a)}return DispDocItemExWithEvent(b,d,l,j,k,c,p?q:null,e)}function DispDocItemExWithOutContext(o,n,e,a,d,i,g,m,k,b,h,j,f,c,l){DispEx(o,n,e,a,d,i,g,m,k,b,h,j,f,c,l)}function AddSourceToUrl(a){var d=a.toLowerCase().indexOf("/wopiframe.aspx?")>0;if(d){document.cookie="WOPISessionContext="+GetSource()+";path=/;";return a}else{var b=GetSource(),c=a.length+b.length;if(c>1950)return a;else{var e=a.indexOf("?")>=0?"&":"?";return a+e+"Source="+b}}}function IsInfoPathProgId(a){return a!=null&&(a.startsWith("SharePoint.OpenXMLDocuments")||a.startsWith("SharePoint.OpenXmlDocuments"))?true:false}function AddInfoPathParametersToUrl(b,d,f,c){if(IsInfoPathProgId(d)){var e=IsClientAppInstalled(d,null,f)&&HasRights(16,0),g=b.indexOf("?")>=0?"&":"?",a=b+g+"ClientInstalled="+String(e);if(c!=-1)a=a+"&DefaultItemOpen="+String(c);return a.length>1950?b:a}else return b}function _VerifyFolderHref(a,d,m,l,f,j,b,c){var h=d.button==Sys.UI.MouseButton.rightButton,k=GetRedirectedHref(a.href,f,j,b,c,false,h,a),i=b!=null&&b!=""&&c!=null&&c.length>1;if(i){if(Boolean(a.getAttribute("isEdit")))a.editHref=a.href;if(!(b=="OneNote.Notebook"&&f=="0"))a.href=k;else{var e=GetCurrentCtx();if(e!=null&&typeof getHostUrl=="function"){var g=ListItemDataFromId(e,a.parentNode.id);if(g!=null)a.href=getHostUrl(e.HttpRoot)+g.FileRef}}d.cancelBubble=true;d.returnValue=true;DetachEvent("mousedown",VerifyFolderHref,a)}return false}function _VerifyHref(a,d,c,f,b){var g=d.button==Sys.UI.MouseButton.rightButton,i=GetRedirectedHref(a.href,c,f,null,b,false,g,a),h=b!=null&&b.length>1,e=IsClientAppInstalled(f,null,a)&&HasRights(16,0);if(h){if(c=="1"&&!(e&&!IsNullOrUndefined(a.getAttribute("isEdit")))||!e){if(Boolean(a.getAttribute("isEdit")))a.editHref=a.href;if(c=="1")a.href=i;d.cancelBubble=true;d.returnValue=true}DetachEvent("mousedown",VerifyHref,a)}return false}function GetRedirectedHref(c,k,e,f,b,g,j,h){var d=b!=null&&b!=""&&(!g||f!=null&&f!=""),i=IsClientAppInstalled(e,null,h)&&HasRights(16,0);if(d){b=b.substring(1);d=b!=""}var a=c;if(d)if(g||k=="1"||!i){a=b;if(!IsInfoPathProgId(e)&&c.indexOf("?")<0&&j)a=c+"?Web=1";else if(GetUrlKeyValue("Web",true,c,true)=="1")a=c;else{a=AddInfoPathParametersToUrl(a,e,h,DocOpen.BROWSER);a=AddSourceToUrl(a)}a=STSPageUrlValidation(a)}return a}function _DispEx(p,a,h,e,g,k,c,o,m,b,j,l,i,f,d){if(a.shiftKey||a.ctrlKey)return true;var n=document.getElementById("FileDialogViewTable");if(n!=null){a.cancelBubble=false;a.returnValue=false;return true}if(typeof ctx=="undefined"||ctx==null)ctx=new ContextInfo;CtxSetCurrentUserId(l);if(i=="1")CtxSetIsForceCheckout(true);else CtxSetIsForceCheckout(false);currentItemCheckedOutUserId=j;currentItemCheckedoutToLocal=f;currentItemProgId=m;if(d!=null&&d!=""){SetCurrentPermMaskFromString(d,null);if(c=="0"&&!HasRights(0,32))c="1"}a.cancelBubble=true;if(b!=null&&b!="")b=b.substring(1);return DispDocItemEx2(p,a,h,e,g,k,c,o,b)}function IsClientAppInstalled(c,e,b){if(e!=null&&phManager.IsProtocolHandlerEnabled(e,true))return true;if(b!=null){itemTable=FindSTSMenuTable(b,"CTXName");var a=itemTable!=null?GetAttributeFromItemTable(itemTable,"App",null):"";if(!Boolean(a))a=b.getAttribute("App");if(Boolean(a)&&phManager.IsProtocolHandlerEnabled(a,true))return true}var d=null;if(c!="")d=StsOpenEnsureEx2(c);return d!=null}function ViewDoc(d,c){var a=StsOpenEnsureEx2(c),b=false;if(a!=null)try{b=typeof a.ViewDocument2!="undefined"&&a.ViewDocument2(window,d)}catch(e){b=false}return b}function _PortalPinToMyPage3(a,c,b){a.action=c+"_vti_bin/portalapi.aspx?Cmd=PinToMyPage";if(typeof a.ReturnUrl!="undefined")a.ReturnUrl.value=window.location.href;if(typeof a.ListViewUrl!="undefined"&&typeof a.ListViewUrl.value!="undefined")a.ListViewUrl.value=MakeMtgInstanceUrl(a.ListViewUrl.value,b);a.submit()}function _PortalPinToMyPage(a,g,e,f,b,d,h,c){a.action=g+"_vti_bin/portalapi.aspx?Cmd=PinToMyPage";SetFieldValue(a,"ReturnUrl",window.location.href);SetFieldValue(a,"ListViewUrl",MakeMtgInstanceUrl(d,e));SetFieldValue(a,"ListTitle",f);SetFieldValue(a,"ListDescription",b);SetFieldValue(a,"BaseType",h);SetFieldValue(a,"ServerTemplate",c);a.submit()}function SetFieldValue(c,b,d){var a=c[b];if(a==null){a=document.createElement("INPUT");a.setAttribute("type","hidden");a.setAttribute("name",b);c.appendChild(a)}a.value=d}function _MoveToViewDate(b,a,c){var d=function(){var d;if(Boolean(c))d=SP.UI.ApplicationPages.CalendarInstanceRepository.lookupInstance(c);else d=SP.UI.ApplicationPages.CalendarInstanceRepository.firstInstance();if(d!=null)if(a!=null)typeof d.moveToViewType!="undefined"&&d.moveToViewType(a);else typeof d.moveToDate!="undefined"&&d.moveToDate(b)};if(FV4UI()&&typeof _fV4Calendar!="undefined"&&_fV4Calendar)AjaxCalendarCall(d);else MoveToViewDatePostBack(b,a)}function MoveToViewDatePostBack(c,b){var a=window.location.href;if(c!=null)a=StURLSetVar2(a,"CalendarDate",escapeProperly(c));if(b!=null)a=StURLSetVar2(a,"CalendarPeriod",b);_SubmitFormPost(a,true)}function AjaxCalendarCall(b){var a;try{a=typeof SP.UI.ApplicationPages.CalendarInstanceRepository}catch(c){a="undefined"}EnsureScript("SP.js",a,b)}function _MoveToDate(a,b){_MoveToViewDate(a,null,b)}function MoveToToday(){_MoveToViewDate("",null)}function MoveView(a){_MoveToViewDate(null,a)}function _ClickDay(a){_MoveToDate(a)}function GetIframe(){return null}function _GetMonthView(c){var b=window.location.href,a=document.getElementById("ExpandedWeeksId");if(a!=null){a.value=c;_SubmitFormPost(b,true)}}function NewItemDT(a,c,b){if(a==null)return;if(b!=null)a=StURLSetVar2(a,"CalendarTime",b);if(c!=null)a=StURLSetVar2(a,"CalendarDate",c);_NewItem(a)}function ClickTime(b,a){NewItemDT(b,null,a)}function NewItemDay(b,a){NewItemDT(b,a,null)}function ScrollToAnchorInInnerScrollPane(k,h,j){try{var l=document.getElementById(k),b=document.getElementById(l[h].value);if(typeof b=="undefined"||b==null)throw"";var d=b.parentNode.previousSibling;if(typeof d!="undefined"&&d!=null){var e=d.previousSibling;if(typeof e!="undefined"&&e!=null)b=e;else b=d}else throw"";}catch(o){for(var f=null,i=document.anchors.length,g=0;g=0){f=true;o=d.options[d.selectedIndex].innerText}for(a=0;a20)p=true;if(!f||i==o){l+='";f=true;j=b;r=k;m=a}else l+='";g++}}var t=' ondblclick="HandleOptDblClick()" onkeydown="HandleOptKeyDown()"',e="";if(p)e='';else e+=' style="position:absolute;z-index:2;left:'+String(z)+"px;top:"+String(A)+'px" size="'+String(g<=8?g:8)+'"'+(g==1?'multiple="true"':"")+' onfocusout="OptLoseFocus(this)">'+l+"";d.outerHTML=e;var y=document.getElementById(C);if(m!=0||c[1]!="0")y.value=r;else y.value="0";return m!=0||c[1]!="0"?j:""}function _OptLoseFocus(a){var b=a.getAttribute("ctrl"),c=b!=null?b:"",d=document.getElementById(c);a.selectedIndex>=0&&_SetCtrlFromOpt(d,a);a.style.display="none"}function SetCtrlMatch(b,a){var c=b.getAttribute("optHid"),e=c!=null?c:"",d=document.getElementById(e);d.value=a.options[a.selectedIndex].value;if(d.value!="0")b.match=a.options[a.selectedIndex].innerText;else b.match=""}function _SetCtrlFromOpt(a,b){var c=a.getAttribute("optHid"),d=c!=null?c:"",e=document.getElementById(d);e.value=b.options[b.selectedIndex].value;a.value=b.options[b.selectedIndex].innerText;if(b.options[b.selectedIndex].value==0)a.match="";else a.match=a.value;typeof a.onValueSetFromPicker=="function"&&a.onValueSetFromPicker()}function HandleOptDblClick(){var a=event.srcElement,b=a.getAttribute("ctrl"),d=b!=null?b:"",c=document.getElementById(d);_SetCtrlFromOpt(c,a);SetCtrlMatch(c,a);a.style.display="none"}function HandleOptKeyDown(){var a=event.srcElement,b=a.getAttribute("ctrl"),c=b!=null?b:"",d=document.getElementById(c),e=event.keyCode;switch(e){case 13:case 9:_SetCtrlFromOpt(d,a);event.returnValue=false;a.style.display="none";return}return}function CommitInlineEditChange(tr,cancel){if(tr.cells.length>0){var c=tr.cells[0];if(c.width=="1%")eval(cancel==true?c.firstChild.lastChild.href:c.firstChild.firstChild.href);else if(tr.cells.length>1){c=tr.cells[1];if(c.width=="1%")eval(cancel==true?c.firstChild.lastChild.href:c.firstChild.firstChild.href)}}}function InlineEditNextTR(tr,nextTr,element,down){var inlineEditString;if(nextTr!=null){_inlineEditString=tr.getAttribute("automode")+"#";var index=null;while(element!=null&&element.nodeType==1&&element.getAttribute("automode")==null){var siblingCount=0,sibling=element.previousSibling;while(sibling!=null){siblingCount++;sibling=sibling.previousSibling}if(index==null)index=String(siblingCount);else index=String(siblingCount)+","+index;element=element.parentNode}_inlineEditString+=index;var tab=nextTr;while(tab!=null&&tab.tagName!="TABLE")tab=tab.parentNode;if(tab!=null&&nextTr!=null&&nextTr.getAttribute("iid")!=null){inlineEditString=tab.getAttribute("inlineedit");if(inlineEditString!=null){inlineEditString=inlineEditString.replace("{@ID}","{"+IdFromRow(nextTr)+"}");inlineEditString=inlineEditString.replace("__cancel;","__commit;dvt_inlineedit={"+_inlineEditString+"};");eval(inlineEditString)}}else if(down==true&&nextTr!=null)if(nextTr.cells.length>0){inlineEditString=null;var c=nextTr.cells[0];if(c.width=="1%")inlineEditString=c.firstChild.href;else if(nextTr.cells.length>1){c=nextTr.cells[1];if(c.width=="1%")inlineEditString=c.firstChild.href}if(inlineEditString!=null){inlineEditString=inlineEditString.replace("__cancel;","__commit;dvt_inlineedit={"+_inlineEditString+"};");eval(inlineEditString)}}}}function HandleInlineEditKeyDown(c){var d=event.srcElement;if(d.tagName!="INPUT")return;var e=event.keyCode,a=c.parentNode,b;switch(e){case 27:CommitInlineEditChange(a,true);break;case 38:b=a.previousSibling;InlineEditNextTR(a,b,d);break;case 13:case 40:b=a.nextSibling;InlineEditNextTR(a,b,d,true)}if(window.event!=null)window.event.cancelBubble=true;else c!=null&&typeof c.stopPropagation!="undefined"&&c.stopPropagation()}function EnsureSelectElement(b,c){var a=document.getElementById(c);if(a==null){a=document.createElement("SELECT");b.parentNode.appendChild(a);a.outerHTML='';FilterChoice(a,b,b.value,"")}else{a.parentNode.removeChild(a);b.parentNode.appendChild(a)}return document.getElementById(c)}function HandleKey(){var j=event.keyCode,b=event.srcElement,c=b.value,g=b.getAttribute("opt"),i=g!=null?g:"",a=EnsureSelectElement(b,i),d=false,f,e;switch(j){case 8:if(c.length>0)c=c.substr(0,c.length-1);d=true;break;case 16:case 17:case 18:return;case 9:case 16:case 17:case 18:return;case 13:f=b.value.toLocaleLowerCase();var h=typeof b.match=="string"?b.match:"";e=h.toLocaleLowerCase();if(e.indexOf(f)!=0)b.match=FilterChoice(a,b,b.value,"");if(a.style.display!="none"){b.value=b.match;a.style.display="none";event.returnValue=false}return;case 27:a.style.display="none";event.returnValue=false;return;case 38:if(a.style.display!="none"){if(a.selectedIndex>0)a.selectedIndex=a.selectedIndex-1;else a.selectedIndex=a.options.length-1;SetCtrlMatch(b,a);event.returnValue=false}return;case 40:if(a.style.display!="none"&&a.selectedIndex=0){a=m;a++;if(b.charCodeAt(a)==o){if(a-1>c){d=b.substr(c,a-c-1);if(g)d=d.replace(l,k);e.push(d);g=false}else e.push("");a++;c=a;continue}else if(b.charCodeAt(a)==p){a++;g=true;continue}else throw"ArgumentException";}else a=j}if(a>c){d=b.substr(c,a-c);if(g)d=d.replace(l,k);e.push(d)}else Boolean(i)&&e.push("");return e}function ConvertMultiColumnValueToString(f,b,c){if(b==null)b=";#";if(c==null)c=true;for(var h=b.charAt(0),i=h+h,j=new RegExp(b.charAt(0),"g"),g=false,d="",e=0;e0)a=a.replace(j,i);if(a!=null&&a.length>0)g=true;if(c||e!=0)d+=b;d+=a}if(g){if(c)d+=b;return d}else return""}var httpFolderTarget,httpFolderSource,httpFolderDiv;function NavigateHttpFolderCore(){var a;if(httpFolderDiv==null){httpFolderDiv=document.createElement("DIV");document.body.appendChild(httpFolderDiv);httpFolderDiv.onreadystatechange=NavigateHttpFolderCore;typeof httpFolderDiv.addBehavior!="undefined"&&httpFolderDiv.addBehavior("#default#httpFolder")}if(typeof httpFolderDiv.readyState=="string"&&httpFolderDiv.readyState=="complete"){httpFolderDiv.onreadystatechange=null;try{a=typeof document.frames!="undefined"&&typeof document.frames.item!="undefined"?document.frames.item(httpFolderTarget):null;if(a!=null){var d=typeof a.document!="undefined"?a.document:null;if(d!=null){var f=typeof d.body!="undefined"?d.body:null;if(f!=null&&typeof f.innerText=="string")f.innerText=Strings.STS.L_WebFoldersRequired_Text}}}catch(i){}var b=false;try{var g="";if(typeof httpFolderDiv.navigateFrame!="undefined")g=httpFolderDiv.navigateFrame(httpFolderSource,httpFolderTarget);if(g=="OK")b=true}catch(i){}if(!b&&0==httpFolderSource.search(new RegExp("http://[a-zA-Z0-9-.]+(:80)?/"))){var h=httpFolderSource.replace(/http:\/\/([a-zA-Z0-9\-\.]+)(:80)?[\/]/,"//$1/").replace(/[\/]/g,"\\");try{a=typeof document.frames!="undefined"&&typeof document.frames.item!="undefined"?document.frames.item(httpFolderTarget):null;if(a!=null){a.onload=null;var c=typeof a.document!="undefined"?a.document:null;if(c!=null){var e=typeof c.location!="undefined"?c.location:null;if(e!=null&&typeof e.href=="string"){e.href=h;b=true}}}}catch(i){}}if(!b)if(browseris.ie)alert(Strings.STS.L_WebFoldersError_IE_Text);else alert(Strings.STS.L_WebFoldersError_Text)}}function NavigateHttpFolder(a,b){if("/"==a.charAt(0))a=window.location.protocol+"//"+window.location.host+a;httpFolderSource=a;httpFolderTarget=b;NavigateHttpFolderCore()}function NavigateHttpFolderIfSupported(b,a){if(a=="_blank")if(SupportsNavigateHttpFolder())NavigateHttpFolder(b,a);else alert(Strings.STS.L_WebFoldersError_Text);else alert(Strings.STS.L_NoExplorerView_Text)}function AutoIndexForRelationshipsConfirmation(){var a=Strings.STS.L_Lookup_AutoIndexForRelationships_Confirm_Text;return confirm(a)}function SetHomePage2(c){if(!window.confirm(SP.Res.confirmWelcomePage))return;var d=new SP.ClientContext(undefined),b=d.get_web().get_rootFolder(),a="";if(c.length>0){a=_spPageContextInfo.serverRequestPath;a=unescapeProperly(a);a=a.substr(c.length);if(a.indexOf("/")==0)a=a.substr(1)}b.set_welcomePage(a);b.update();var e=STSHtmlEncode(SP.Res.sending),f=addNotification(e,true);d.executeQueryAsync(function(){removeNotification(f);addNotification(STSHtmlEncode(SP.Res.pageIsSiteHomePage),false)},null)}function SetHomePage(b){var a=function(){SetHomePage2(b)};if(typeof SP!="undefined")EnsureScript("SP.js",typeof SP.ClientContext,a);else EnsureScript("SP.js",typeof SP,a)}function SendEmail(c){var a;try{a=typeof SP.Ribbon.EMailLink.openMailerWithUrl}catch(f){a="undefined"}var e="SP.Ribbon.EMailLink.openMailerWithUrl",b=e.split(".");if(b.length>1){var d=function(){SP.Ribbon.EMailLink.openMailerWithUrl(c)};EnsureScript(b[0],a,d)}}function TryCopyStringToClipboard(b){if(typeof window.clipboardData!="undefined"&&typeof window.clipboardData.setData!="undefined")window.clipboardData.setData("Text",b);else if(typeof netscape!="undefined"&&typeof Components!="undefined"){netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");var d=Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString);if(d==null)return false;d.data=b;var a=Components.classes["@mozilla.org/widget/transferable;1"].createInstance(Components.interfaces.nsITransferable);if(a==null||typeof a.addDataFlavor=="undefined"||typeof a.setTransferData=="undefined")return false;a.addDataFlavor("text/unicode");a.setTransferData("text/unicode",d,b.length*2);var e=Components.interfaces.nsIClipboard,c=Components.classes["@mozilla.org/widget/clipboard;1"].getService(e);if(c==null||typeof c.setData=="undefined")return false;c.setData(a,null,e.kGlobalClipboard)}return true}function CopyStringToClipboard(b){var a=false;try{a=TryCopyStringToClipboard(b)}catch(c){a=false}!a&&alert(SP.Res.clipboardNoAccess)}function CopyPageAddressToClipboard(){CopyStringToClipboard(window.location.href)}function showViewSelector(b,a,d){if(b==null)b=window.event;CancelEvent(b);a=EnsureValidPositioningElement(b,a);if(a!=null&&a.className=="ms-csrlistview-viewselectormenu")a=a.parentNode;var e=function(){SP.Application.UI.ViewSelectorMenuBuilder.showMenu(a,d)},c;try{c=typeof SP.Application.UI.ViewSelectorMenuBuilder.showMenu}catch(f){c="undefined"}EnsureScript("SP.js",c,e)}function EnsureValidPositioningElement(d,c){if(c!=null)return c;var b=GetEventSrcElement(d),a=b;while(a!=null&&a.tagName!="BODY"){if(a.tagName=="TD"&&(a.className=="ms-viewselector"||a.className=="ms-viewselectorhover"))return a;a=a.parentNode}return b}function EnsureCheckoutAndChangeLayoutModeToEdit(e,d,g){var a,c=function(){var a;try{a=typeof browserScript.MSOLayout_ChangeLayoutMode}catch(e){a="undefined"}var d="browserScript.MSOLayout_ChangeLayoutMode",b=d.split(".");if(b.length>1){var c=function(){browserScript.MSOLayout_ChangeLayoutMode(g)};EnsureScript(b[0],a,c)}},f=function(){var g=a!=null?a.get_item("CheckoutUser"):null;if(!g){if(confirm(Strings.STS.L_ConfirmCheckout_Text)){var b=new SP.ClientContext(undefined),f=b.get_web().get_lists().getById(new SP.Guid(e));a=f.getItemById(d);a.get_file().checkOut();b.executeQueryAsync(c,null)}}else c()},h=function(){var b=new SP.ClientContext(undefined),c=b.get_web().get_lists().getById(new SP.Guid(e));a=c.getItemById(d);b.load(a,"CheckoutUser");b.executeQueryAsync(f,null)},b;try{b=typeof SP.ClientContext}catch(i){b="undefined"}EnsureScript("SP.js",b,h)}function _ChangeLayoutMode(e,f){var a;try{a=typeof browserScript.MSOLayout_ChangeLayoutMode}catch(g){a="undefined"}var d="browserScript.MSOLayout_ChangeLayoutMode",b=d.split(".");if(b.length>1){var c=function(){browserScript.MSOLayout_ChangeLayoutMode(e,f)};EnsureScript(b[0],a,c)}}function OpenWebPartMenuFromLink(a,b,c,d){OpenWebPartMenu(a,b,c,d,false)}function OpenWebPartMenu(e,f,g,h,i){var a;try{a=typeof browserScript.MSOWebPartPage_OpenMenu}catch(j){a="undefined"}var d="browserScript.MSOWebPartPage_OpenMenu",b=d.split(".");if(b.length>1){var c=function(){browserScript.MSOWebPartPage_OpenMenu(e,f,g,h,i)};EnsureScript(b[0],a,c)}return true}function UpdateWebPartMenuFocus(a,d,c){if(a!=null)a.className=d;var b=null;if(a!=null&&a.childNodes!=null){b=a.childNodes[0];if(b!=null&&b.tagName=="SPAN")b.className=c}}function _WebPartMenuKeyboardClick(e,c,d,f){var a;try{a=typeof browserScript.MSOMenu_KeyboardClick}catch(i){a="undefined"}var h="browserScript.MSOMenu_KeyboardClick",b=h.split(".");if(b.length>1){var g=function(){browserScript.MSOMenu_KeyboardClick(e,c,d,f)};EnsureScript(b[0],a,g)}}function _ShowToolPane2Wrapper(e,f,g){var a;try{a=typeof browserScript.MSOTlPn_ShowToolPane2Wrapper}catch(h){a="undefined"}var d="browserScript.MSOTlPn_ShowToolPane2Wrapper",b=d.split(".");if(b.length>1){var c=function(){browserScript.MSOTlPn_ShowToolPane2Wrapper(e,f,g)};EnsureScript(b[0],a,c)}}function ChangeWebPartPageView(c){var a;try{a=typeof browserScript.MSOLayout_ToggleView}catch(f){a="undefined"}var e="browserScript.MSOLayout_ToggleView",b=e.split(".");if(b.length>1){var d=function(){browserScript.MSOLayout_ToggleView(c)};EnsureScript(b[0],a,d)}}function _SetupFixedWidthWebParts(){var a;try{a=typeof browserScript.MSOWebPartPage_SetupFixedWidthWebParts}catch(e){a="undefined"}var d="browserScript.MSOWebPartPage_SetupFixedWidthWebParts",b=d.split(".");if(b.length>1){var c=function(){browserScript.MSOWebPartPage_SetupFixedWidthWebParts()};EnsureScript(b[0],a,c)}}function EnsureSelectionHandlerOnFocusDeferred(d,c,b){var a=c;while(a.tagName!="TABLE")a=a.parentNode;EnsureSelectionHandlerDeferred(d,a,b)}function EnsureSelectionHandlerDeferred(n,g,j){var c=window["ctx"+String(j)];if(!FV4UI()||c==null){g.onmouseover=null;return}if(c.BaseViewID=="MapView"&&(IsStrNullOrEmpty(g.className)||g.className.indexOf("ms-mapviewtable")==-1))return;ctxInitItemState(c);var e=g.querySelector(".ms-selectall-span");if(e!=null){$addHandler(e,"keydown",function(a){if(a.keyCode==Sys.UI.Key.space||a.keyCode==Sys.UI.Key.enter){ClkElmt(e);e.focus();a.preventDefault()}});$addHandler(e,"mousedown",function(){e.style.outline="none"});$addHandler(e,"mouseup",function(){e.style.outline="";e.firstChild.focus()})}for(var k=g.rows,h=0;h0){b=a.cells[0];var d=b.querySelector(".s4-itm-cbx");if(d!=null){if(!i)d.checked=false;if(typeof d._setup=="undefined"||!Boolean(d._setup)){d._setup=true;var m=TooltipOfRow(a);if(m!=null)d.title=m;d.onblur=HideItemCbx;d.onfocus=DisplayItemCbx;d.onclick=ToggleItemRowSelection;b.onclick=ToggleItemRowSelection;if(d.nodeName=="DIV"){$addHandler(b,"keydown",function(b,a){return function(c){if(c.keyCode==Sys.UI.Key.space||c.keyCode==Sys.UI.Key.enter){ToggleItemRowSelection(c,b);a.focus()}}}(a,b));$addHandler(b,"mousedown",function(a){return function(){a.style.outline="none"}}(b));$addHandler(b,"mouseup",function(a){return function(){a.style.outline=""}}(b))}}if(a.getAttribute("automode")==null)a.onclick=SingleItemSelect}UpdateAutoMode(a);AddSpaceToEmptyTDs(a);AddBorderToLastCell(a)}}}c.TableMouseoverHandler=g.onmouseover;g.onmouseover=null;AddKeyDownEventHandler(g,j)}function AddKeyDownEventHandler(a,c){if(a.nodeName.toUpperCase()!="TABLE")return;var b=window["ctx"+String(c)];if(IsStrNullOrEmpty(a.className)||b.BaseViewID=="MapView"&&a.className.indexOf("ms-mapviewtable")==-1||b.BaseViewID!="MapView"&&a.className.indexOf("ms-listviewtable")==-1)return;if(a.getAttribute("handleDeleteInit")==null){a.setAttribute("handleDeleteInit","true");$addHandler(a,"keydown",function(a){OnListViewKeyDown(a,c)})}}function ItemIsSelectable(a){return a==null||!ItemHasiid(a)||!ItemIsCurrentlyVisible(a)?false:true}function ItemIsCurrentlyVisible(a){return a==null||a.parentNode==null?false:GetCurrentEltStyle(a.parentNode,"display")=="none"||GetCurrentEltStyle(a,"display")=="none"?false:true}function ItemIsCurrentlySelected(b,c,d){if(b==null||!Boolean(c))return false;var a=GetSelectedItemsDict(b);return a==null||a[c]==null||d.className.indexOf("s4-itm-selected")<0?false:true}function ItemHasiid(a){return a==null||a.getAttribute("iid")==null?false:true}function OnListViewKeyDown(a,b){var d=GetListContextFromContextNumber(String(b));if(d==null||d.inGridMode)return;var e=a.keyCode,c=a.shiftKey||a.ctrlKey;if(IsCallOutOn())return;switch(e){case Sys.UI.Key.del:HandleItemDelete(a,b);break;case Sys.UI.Key.up:SelectNextRow(b,-1,c,a);break;case Sys.UI.Key.down:SelectNextRow(b,1,c,a);break;case Sys.UI.Key.enter:if(IsEventTargetAnchor(a))return;if(a.target!=null&&!IsStrNullOrEmpty(a.target.className)&&a.target.className.indexOf("ms-lstItmLinkAnchor")>=0)OpenCallOutOrECB(b,a);else ListItem_Open(b,a)}}function OpenCallOutOrECB(e,b){var c=GetListContextFromContextNumber(String(e));if(c==null)return true;var a=b.target,d=DoesListUseCallout(c),f=GetAncestor(a,"TR"),g=IdFromRow(f);if(IsStrNullOrEmpty(g))return true;if(d)ShowCalloutMenuForTr(a,b,true);else ShowECBMenuForTr(a.parentNode,b);return true}function ListItem_Open(c,d){var a=GetListContextFromContextNumber(String(c));if(a==null)return false;var b=GetLastSelectedRow(a);if(b==null)return false;if(a.ListSchema.IsDocLib)OpenDocItem(d,a,b);else OpenListItem(b,c);return true}function OpenDocItem(h,f,b){var a=GetListItemDataFromTrInternal(f,b),c=b,g=GetEcbTdFromRow(b),e=GetEcbDivFromEcbTd(g);if(e!=null)c=e.querySelector("a.ms-draggable");if(c==null)c=b;var d=f.ListSchema;return DispEx(c,h,"TRUE","FALSE",a["File_x0020_Type.url"],a["File_x0020_Type.progid"],d.DefaultItemOpen,a["HTML_x0020_File_x0020_Type.File_x0020_Type.mapcon"],a.HTML_x0020_File_x0020_Type,a["serverurl.progid"],Boolean(a.CheckoutUser)?a.CheckoutUser[0].id:"",d.Userid,d.ForceCheckout,a.IsCheckedoutToLocal,a.PermMask)}function OpenListItem(b,c){var a=b.querySelector('a[class*="ms-listlink"]');if(a==null)return;EditLink2(a,c)}function GetListItemDataFromTr(a){if(a==null)return null;var b=GetListContextFromTr(a);return b==null?null:GetListItemDataFromTrInternal(b,a)}function GetListItemDataFromTrInternal(b,a){if(b==null||a==null)return null;var c=IdFromRow(a);return ListItemDataFromId(b,c)}function GetListContextFromTr(a){if(a==null)return null;var b=a.getAttribute("iid");if(IsStrNullOrEmpty(b))return null;var c=b.split(",");return c.length<=2?null:GetListContextFromContextNumber(c[0])}function GetListContextFromContextNumber(a){return window["ctx"+a]}function ListItemDataFromId(c,d){if(c==null||d==null||c.ListData==null)return null;var a=c.ListData.Row;if(a==null)return null;for(var e=a.length,b=0;b0){var d='tr[iid="'+b+'"]';a=document.querySelector(d);if(a!=null&&a.getAttribute("automode")!=null)a=null}return a}function GetIndexFromIID(a,c){if(c==null)return-1;var e=c.split(",")[1],d=0;if(a!=null&&a.ListData!=null&&a.ListData.Row!=null){var f=a.ListData.Row;d=f.length;for(var b=0;b0&&SelectRowByIID(b,d)}}function EnsureKeyBoardHandlersRegistered(a){if(a==null)return;if(a.ListData==null||a.ListData.Row==null||a.ListData.Row[0]==null)return;var b=GenerateIIDForListItem(a,a.ListData.Row[0]),d=GetTrFromIID(b);if(d==null)return;var c=GetAncestor(d,"TABLE");if(c==null)return;AddKeyDownEventHandler(c,b.split(",")[0])}function MakeDefaultSelectionForListView(a){if(a==null)return;EnsureKeyBoardHandlersRegistered(a);if(a.ListData!=null&&a.ListData.Row!=null&&a.ListData.Row[0]!=null){var b=GetTrFromIID(GenerateIIDForListItem(a,a.ListData.Row[0]));if(b==null)return;while(b!=null){if(b.className.indexOf("s4-wpcell")>=0||b.className.indexOf("s4-wpActive")>=0)break;b=b.parentNode}if(b==null)return;EnsureScriptParams("ribbon","SelectWp",b)}if(a.LastSelectedItemIID!=null&&a.LastSelectedItemIID.length>0){var e=GetTrFromIID(a.LastSelectedItemIID);if(e!=null){SingleItemSelectByElement(e,false);return}}var c=a.LastRowIndexSelected;if(c==null)c=0;else{if(a.ListData!=null&&a.ListData.Row!=null)var d=a.ListData.Row.length;if(c>=d)c=d==0?-1:d-1}a.LastRowIndexSelected=null;c!=-1&&SelectRowByIndex(a,c,false)}function GetNextRow(b,c){var a=null;if(b!=null&&b.nodeName.toLowerCase()!="tr")return null;if(c==1)a=b.nextSibling;else if(c==-1)a=b.previousSibling;if(a!=null){var d=a.getAttribute("iid");return d!=null&&d.length>0?a:GetNextRow(a,c)}return a}function HandleItemDelete(h,e){var b=window["ctx"+String(e)],a=GetLastSelectedRowIndex(b);if(a==-1)a=0;b.LastRowIndexSelected=a;var c;try{c=typeof inplview.DeleteSelectedItems}catch(i){c="undefined"}var g="inplview.DeleteSelectedItems",d=g.split(".");if(d.length>1){var f=function(){inplview.DeleteSelectedItems(b)};EnsureScript(d[0],c,f)}return false}function GetItemRow2(b){var a=b;while(a!=null&&a.nodeType==1&&a.tagName!="BODY"&&a.getAttribute("iid")==null){if(typeof a.parentNode=="undefined"||a.parentNode==null||typeof a.parentNode.tagName=="undefined"){a=null;break}a=a.parentNode}return a!=null&&a.nodeType==1&&a.tagName=="TR"?a:null}function GetItemRow(a){if(a==null)a=window.event;var b=GetEventSrcElement(a);return GetItemRow2(b)}function TooltipOfRow(d){for(var c=d.cells,a=0,a=0;a2)return""+f[1]}return null}function AlertCheckOut(){alert(Strings.STS.L_MustCheckout_Text)}function UpdateAutoModeImage(a){if(a==null)a=window.event;if(a!=null){var b=a.srcElement!=null?a.srcElement:a.currentTarget;if(b!=null&&b.tagName=="A")if(a.type=="blur")RemoveCssClassFromElement(b,"ms-inlineEditLink");else a.type=="focus"&&AddCssClassToElement(b,"ms-inlineEditLink")}}function AddAutoModeTag(f,e,g){var a=document.createElement("A");SetEvent("blur",UpdateAutoModeImage,a);SetEvent("focus",UpdateAutoModeImage,a);var c=e;while(c.tagName!="TABLE")c=c.parentNode;if(f.getAttribute("requiresCheckout")!=null)SetEvent("click",AlertCheckOut,a);else{var d=c.getAttribute("inlineedit");if(d!=null)a.href=d.replace("{@ID}","{"+IdFromRow(e)+"}")}var b=document.createElement("IMG");b.className="s4-itm-inlineedit";b.src=g;b.border=0;b.alt=Strings.STS.L_Edit_Text;a.appendChild(b);f.appendChild(a)}function GetItemRowCbx(a){var b=null;if(a!=null&&a.cells!=null&&a.cells.length>0){var c=a.cells[0];b=c.querySelector(".s4-itm-cbx")}return b}function GetEcbTdFromRow(b){var a=null;if(b!=null)a=b.querySelector('td[IsECB="TRUE"]');return a}function GetEcbDivFromEcbTd(a){return a==null?null:a.querySelector("div.ms-vb.itx")}function GetEcbAffordanceDivFromRow(a){return a==null?null:a.querySelector("div.ms-list-itemLink")}function UpdateAutoMode(b){if(b!=null){var c=CtxFromRow(b);if(c==null||typeof c.InlineEdit=="undefined"||!Boolean(c.InlineEdit))return;if(b.cells!=null&&b.cells.length>0){var a=b.cells[0];if(a.innerHTML==""&&a.width=="1%"){if(a.getAttribute("requiresCheckout")==null)a.onclick=ClickToEdit;AddAutoModeTag(a,b,"/_layouts/15/images/edititem.gif?rev=23")}else if(b.cells.length>1){a=b.cells[1];if(a.innerHTML==""&&a.width=="1%"){if(a.getAttribute("requiresCheckout")==null)a.onclick=ClickToEdit;AddAutoModeTag(a,b,"/_layouts/15/images/edititem.gif?rev=23")}}}}}function ClickToEdit(a){var c=GetItemRow(a);if(c!=null&&c.cells.length>1){var e=c.cells[1],d=e.firstChild;if(d!=null){var b=d.firstChild;if(b!=null&&b.tagName=="IMG")b.src="/_layouts/15/images/spinnyrefresh.gif?rev=23"}}if(window.event!=null)window.event.cancelBubble=true;else a!=null&&a.stopPropagation()}function HideItemCbx(b){if(b==null)b=window.event;var c=GetItemRow(b),a=GetItemRowCbx(c);if(a!=null&&a.tagName=="INPUT"){a.style.top="";a.style.position="";a.onmouseout=null}}function DisplayItemCbx(b){if(b==null)b=window.event;var c=GetItemRow(b),a=GetItemRowCbx(c);if(a!=null&&a.tagName=="INPUT"){a.style.top="0px";a.style.position="relative";a.onmouseout=HideItemCbx}}function Log(b){var a=document.createElement("DIV");a.innerHTML=b;document.body.appendChild(a)}function _ToggleAllItems(a,b,c){IsFullNameDefined("CUI.PMetrics.perfMark")&&CUI.PMetrics.perfMark(CUI.PMarker.perfWSSSelectOrDeselectAllStart);if(a==null)a=window.event;MenuHtc_hide();ToggleAllItems2(b,c,b.checked);if(window.event!=null)window.event.cancelBubble=true;else a.stopPropagation();IsFullNameDefined("CUI.PMetrics.perfMark")&&CUI.PMetrics.perfMark(CUI.PMarker.perfWSSSelectOrDeselectAllEnd);return false}function ToggleAllItems2(b,f,g){var a=window["ctx"+String(f)];if(a==null){b.checked=false;return}if(a.inGridMode){SPGridToggleAllItems(a);return}var c=b;while(c.tagName!="TABLE")c=c.parentNode;var e=c.rows,d=CountTotalItems(a);if(d==0){b.checked=false;return}if(g){if(d>g_MaximumSelectedItemsAllowed){b.checked=false;alert(Strings.STS.L_BulkSelection_TooManyItems);return}SelectAllItems(a,e)}else DeselectAllItems(a,e,true)}function SelectAllItems(a,b){if(a==null||b==null)return;for(var e=a.LastSelectableRowIdx,c=1;cb?c:b;if(!i.ctrlKey)if(CountSelectedItems(a)>0){var d=e;while(d.tagName!="TABLE")d=d.parentNode;for(var h=d.rows,f=0;f1)d=true}if(d&&!k)if(CountSelectedItems(b)>0)for(var h=c==null?null:c.querySelectorAll("tr[class*='s4-itm-selected']"),m=h==null?0:h.length,i=0;i0)a.SelectAllCbx.checked=true}}function SelectListItem(a,c,f,d,e,g){var b=GetItemRowCbx(d);if(b==null)return;b.checked=e;if(typeof a.dictSel=="undefined")a.dictSel=[];if(e){AddCssClassToElement(d,"s4-itm-selected");if(a.dictSel[c]==null){a.CurrentSelectedItems++;a.dictSel[c]={id:f[1],fsObjType:f[2]}}b.nodeName.toUpperCase()!="INPUT"&&b.setAttribute("aria-checked","true")}else{RemoveCssClassFromElement(d,"s4-itm-selected");if(a.dictSel[c]!=null){delete a.dictSel[c];a.CurrentSelectedItems--}b.nodeName.toUpperCase()!="INPUT"&&b.setAttribute("aria-checked","false")}!g&&FocusRow(a,c,d)}function FocusRow(a,c,d){if(a==null)return;a.LastSelectedItemIID=c;var b=GetItemRowCbx(d);if(b!=null){a.RowFocusTimerID!=null&&clearTimeout(a.RowFocusTimerID);a.RowFocusTimerID=setTimeout(function(){SetFocusOnRowDelayed(a,b)},11)}}function SetFocusOnRowDelayed(c,a){if(a==null||c==null)return;a.focus();if(browseris.webKit){var b=ElementInViewportVertical(a,document.getElementById("s4-workspace"));if(b!=g_InViewPort){var d=b==g_OutOfViewPortCloserToTop?true:false;a.scrollIntoView(d)}}c.RowFocusTimerID=null}function CountTotalItems(a){if(a.TotalListItems==null)a.TotalListItems=0;return a.TotalListItems}function CountSelectedItems(a){if(a.CurrentSelectedItems==null)a.CurrentSelectedItems=0;return a.CurrentSelectedItems}function GetCtxRgiidFromIid(c){if(c==null)return null;var b=c.split(",");if(b.length!=3)return null;if(b[1]=="")return null;var d=b[0],a=window["ctx"+d];if(a==null)return null;if(typeof a.dictSel=="undefined")a.dictSel=[];if(a.CurrentSelectedItems==null)a.CurrentSelectedItems=0;return new CtxRgiid(a,b)}function GetCurrentCtx(){var c=document.getElementById("_wpSelected");if(c==null)return null;var a=c.getAttribute("value");if(a==null||a=="")return null;a=a.substr(12);c=document.getElementById(a);if(c==null)return null;var b;if(typeof _spWebPartComponents!="undefined"&&_spWebPartComponents!=null&&_spWebPartComponents[a]&&_spWebPartComponents[a].storageId)b=_spWebPartComponents[a].storageId;else b=c.getAttribute("WebPartID");if(b==null)return null;b=b.toUpperCase();var d=g_ViewIdToViewCounterMap["{"+b+"}"];if(d==null)return null;var e=window["ctx"+d];return e}function GetLastSelectableRowIdx(c,d){if(c==null||d==null)return-1;for(var b=c.rows,a=b.length-1;a>=0;a--){var e=b[a];if(d(e))return a}return-1}function UpdateCtxLastSelectableRow(a,c){if(a==null||c==null)return;a.LastSelectableRowIdx=0;var b=GetLastSelectableRowIdx(c,ItemIsSelectable);if(b!=-1)a.LastSelectableRowIdx=b}function DeselectAllWPItems(){var a=GetCurrentCtx(),b;if(a==null||(b=a.clvp)==null||b.tab==null)return;var d=b.tab,c=getSelectAllCbxFromTable(d);if(c==null)return;c.checked=false;CountSelectedItems(a)>0&&DeselectAllItems(a,d.rows,false)}function callOpenBreadcrumbMenu(a,g,j,i,c,d,e,f,m,n,h,k){IsFullNameDefined("CUI.PMetrics.perfMark")&&CUI.PMetrics.perfMark(CUI.PMarker.perfWSSBreadcrumbStart);if(a==null)a=window.event;a.cancelBubble=true;typeof a.stopPropagation!="undefined"&&a.stopPropagation();var l=function(){SP.UI.PopoutMenu.createPopoutMenuInstanceAndLaunch(g,j,i,c,d,e,f,m,n,h,k)},b;try{b=typeof SP.UI.PopoutMenu.createPopoutMenuInstanceAndLaunch}catch(o){b="undefined"}EnsureScript("SP.js",b,l);IsFullNameDefined("CUI.PMetrics.perfMark")&&CUI.PMetrics.perfMark(CUI.PMarker.perfWSSBreadcrumbEnd)}function HasCssClass(d,f,e){var c=d.className;if(c==null)return false;for(var a=c.split(" "),b=0;b0){if(browseris.ie7down)a[0].className+="";var b=a[a.length-1];if(b!=null)if(b.className!="")b.className+=" ms-vb-lastCell";else b.className="ms-vb-lastCell"}c.setAttribute("setEdgeBorder","true")}function AddCssClassToElement(a,b){var c=a.className;if(c!=null){if(!HasCssClass(a,b))a.className=a.className+" "+b}else a.className=b}function RemoveCssClassFromElement(b,a){HasCssClass(b,a,true)}function AddGallery_TypeOf(c){if(c!=null){var b=typeof c;if(b=="object")if(b.constructor!=null){var a=c.constructor.toString(),d=a.indexOf(" "),e=a.indexOf("("),f=a.substr(d+1,e-d-1);return f}return b}return null}function IsLanguageSupportedInSilverlight(a){return a==1025||a==1037||a==1054||a==1081?false:true}function IsSilverlightInstalled(b){if(typeof b=="undefined")b=null;var a=false,l=null;try{var f=null,k=false;if(window.ActiveXObject!=null)try{f=new ActiveXObject("AgControl.AgControl");if(b===null)a=true;else if(typeof f.IsVersionSupported!="undefined"&&f.IsVersionSupported(b))a=true;f=null}catch(m){k=true}else k=true;if(k){var j=typeof navigator.plugins!="undefined"?navigator.plugins["Silverlight Plug-In"]:null;if(j!=null)if(b===null)a=true;else{var i=typeof j.description=="string"?j.description:"";if(i==="1.0.30226.2")i="2.0.30226.2";var c=i.split(".");while(c.length>3)c.pop();while(c.length<4)c.push(0);var e=b.split(".");while(e.length>4)e.pop();var d,h,g=0;do{d=parseInt(e[g]);h=parseInt(c[g]);g++}while(g",e="";for(var f in b){a.push(d);a.push(b[f]);a.push(e)}}return a.join("")}function GetAncestor(a,b){while(a!=null&&a.tagName!=b)a=a.parentNode;return a}function GetAncestorByTagNames(b,c){if(b==null)return null;var a=b.parentNode;while(a!=null){if(Array.contains(c,a.tagName))break;a=a.parentNode}return a}function StURLNormalize(a){if(a.substr(0,2)=="\\\\"||a.substr(0,2)=="//")a="file:"+a;if(a.substr(0,5)=="file:")a=a.replace(/\\/g,"/");return a}function QuickLaunchInitDroppable(){if(Boolean(g_QuickLaunchControlIds)){for(var a=[],c=0;c0&&EnsureScriptParams("DragDrop.js","InitMenuItemAsDroppable",a)}}var g_listItemCache;function GetListItemByIID(b){if(typeof g_listItemCache[b]!=="undefined")return g_listItemCache[b];var d=GetCtxRgiidFromIid(b),a=d.ctx,e=d.rgiid[1];if(typeof a==="undefined"||a===null||typeof a.ListData==="undefined"||a.ListData===null||typeof a.ListData.Row==="undefined"||a.ListData.Row===null)throw"Error: ctx ListData could not be found";for(var c=0;c=0&&c>=0?g_InViewPort:Math.abs(d)0)||+new Date-g>24*60*60*1e3}}else if(typeof SPSuiteNavBar!="undefined"&&typeof SPSuiteNavBar.cachedJson=="string"&&!IsStrNullOrEmpty(SPSuiteNavBar.cachedJson)){c=false;e=f;a=SPSuiteNavBar.cachedJson}if(typeof SP._yam!=="undefined")if(!c&&Boolean(a)&&a.indexOf(SP._yam?"ShellNewsfeed":"ShellYammer")!==-1)c=true;if(e!=f||a==null){if(d!=null)d(function(a){SP.SOD.executeFunc("suitelinks.js","CacheSuiteLinks",function(){CacheSuiteLinks(a);b!=null&&b(a)})});else b!=null&&b(null);return}if(c)d!=null&&d(function(b){SP.SOD.executeFunc("suitelinks.js","CacheSuiteLinks",function(){if(CacheSuiteLinks(b))a=b})});b!=null&&b(a)}function CtxFromElement(e){if(e==null)return null;var f=null,j=null;f=GetAncestor(e,"TABLE");var b=f.getElementsByTagName("SCRIPT");if(b==null)return null;var a;if(b.length>0)a=b[0];while(!fIsNullOrUndefined(a)&&!fIsNullOrUndefined(a.id)&&a.id.indexOf("scriptBodyWPQ")==-1)a=a.previousSibling;var c=null,d=null;if(!fIsNullOrUndefined(a)&&!fIsNullOrUndefined(a.id)){c=a.id;var h=c.indexOf("WPQ");if(h!=-1)d=c.substr(h)}if(!fIsNullOrUndefined(d)&&!fIsNullOrUndefined(g_ctxDict))for(var i in g_ctxDict){var g=g_ctxDict[i];if(g.wpq==d)return g}return null}var g_NotificationEngine,g_notiExpireTimerId,g_standardNotiCt,g_statusNotiCt,SPNotifications,g_SPNotificationEventID_Count,addNotification,removeNotification;function NotificationEngine(){this.Initialize()}function SPNotification(b,f,e,c,a,d){this.Initialize(b,f,e,c,a,d)}function SPNotificationContainer(d,a,c,b){this.Initialize(d,a,c,b)}function SPStatusNotificationData(c,d,a,b){this.txt=c;this.dt=d;this.img=a;this.sip=b}function addSharingNotification(g,h,b,e,d,c){var a;if(e)a=STSHtmlEncode(Strings.STS.L_SharingNotificationAccessRequestsMode);else if(d)a=STSHtmlEncode(Strings.STS.L_SharingNotificationGuestLink);else if(c)a=STSHtmlEncode(Strings.STS.L_SharingNotificationExternalUsers);else if(b!==null&&b.length>0)a=STSHtmlEncode(StBuildParam(Strings.STS.L_SharingNotificationPrefixText,b.join(Strings.STS.L_SharingNotificationUserSeparator)));else a=STSHtmlEncode(Strings.STS.L_SharingNotificationEmptyText);var f=new SPStatusNotificationData("",a,h,null),i=new SP.UI.Notify.Notification(SPNotifications.ContainerID.Status,STSHtmlEncode(g),false,null,null,f);window.setTimeout(function(){i.Show(false)},200)}var cGCMinimumWidth,cGCMinimumHeight,cGCMaxGCResizeCount,glGCObjectHeight,glGCObjectWidth,glGCResizeCounter;function GCComputeSizing(e){if(TestGCObject(e)){var g=document.documentElement.currentStyle.direction=="rtl",h=typeof document.compatMode!="undefined"&&document.compatMode=="BackCompat",d=h?document.documentElement.scrollWidth:document.documentElement.clientWidth,f=h?document.documentElement.scrollHeight:document.documentElement.clientHeight,b=0,c=0;if(g){b=-180;c=120}else{b=32;c=-2}var a=e.parentNode;while(a!=document.body){b+=a.offsetLeft;c+=a.offsetTop;a=a.offsetParent;if(a==null)break;if(g)if(a.offsetLeft>0)break}b+=e.parentNode.offsetLeft;c+=e.parentNode.offsetTop;glGCObjectHeight=f-c;if(glGCObjectHeight>f)glGCObjectHeight=f;if(glGCObjectHeightd)glGCObjectWidth=d;if(glGCObjectWidth0){var b=c.split(" ");if(b!=null&&b.length>1&&b[b.length-1]=="itx")return true}return false}function DeferredOnItem(b){var a=itemTableDeferred;if(a!=null){MenuHtc_hide();OnItem(a);if(IsAjaxMenu(a))CreateAjaxMenu(b);else CreateMenu(b);return false}return undefined}function EndDeferItem(){var a=itemTableDeferred;if(a!=null){itemTableDeferred=null;var c=a.tagName=="TABLE";if(c){a.onmouseout=null;a.onclick=null;a.oncontextmenu=null}else{var b=a.parentNode;b.onmouseout=null;b.onclick=null;b.oncontextmenu=null}}}function GetLastChildElement(b){for(var a=b.childNodes.length-1;a>=0;a--)if(b.childNodes[a].nodeType==1)return b.childNodes[a];return null}function CreateHiddenCtxMenu(b,a){return CreateCtxImg_Helper(b,a,false)}function CreateCtxImg(b,a){return CreateCtxImg_Helper(b,a,true)}function CreateCtxImg_Helper(c,j,i){var a=FindCtxImg(c);if(a!=null&&typeof a.shown=="boolean"&&a.shown==true)return a;if(a==null){a=document.createElement("DIV");a.className="s4-ctx";var b=[];b.push("\u00a0");b.push("");b.push("\u00a0");a.innerHTML=b.join("");delete b;c.appendChild(a)}if(typeof a.shown=="undefined"){for(var h=a.getElementsByTagName("SPAN"),k=h.length,f=0;f0)d-=a.scrollTop;if(typeof a.scrollLeft=="number"&&a.scrollLeft>0)c-=a.scrollLeft}if(a==f){c+=b.offsetLeft;if(typeof a.clientLeft=="number"&&a.nodeName!="TABLE")c+=a.clientLeft;d+=b.offsetTop;if(typeof a.clientTop=="number"&&a.nodeName!="TABLE")d+=a.clientTop;b=a;if(b.offsetParent==null){if(typeof b.offsetLeft=="number")c+=b.offsetLeft;if(typeof b.offsetTop=="number")d+=b.offsetTop}f=b.offsetParent}}if(typeof e.offsetWidth=="number")h=e.offsetWidth;if(typeof e.offsetHeight=="number")g=e.offsetHeight;return new PositionInfo(c,d,h,g)}function GetElemHeight(c,d,g,h){var e=browseris.ie9standardUp;if(!e&&d&&!g&&!h)return c.clientHeight;var b=window.getComputedStyle(c,null),a=getWidthFromPxString(b.height);if(e||d){var f=getWidthFromPxString(b.paddingTop)+getWidthFromPxString(b.paddingBottom);if(e)a=Math.max(c.clientHeight,a+f)-f;if(d)a+=f}if(g)a+=getWidthFromPxString(GetCurrentEltStyle(c,"border-top-width"))+getWidthFromPxString(GetCurrentEltStyle(c,"border-bottom-width"));var i=0;if(h)a+=getWidthFromPxString(b.marginTop)+getWidthFromPxString(b.marginBottom);return a}function PositionCtxImg(b,a){var j=0,c=0,f=HasCssClass(b.parentNode,"ms-positionRelative"),o=GetPosition(a),s=GetPosition(b.offsetParent);if(!window.browseris.chrome&&getCurrentEltStyleByNames(a,["border-collapse","borderCollapse"])=="collapse"){var k=a.offsetHeight-a.clientHeight;o.height+=k;o.top-=k}var n=m$(f?a:a).offset(),m=m$(f?b.parentNode:b.offsetParent).offset();j=n.top-m.top;if(f){var g,h;if(!IsElementRtl(a)){g=getCurrentEltStyleByNames(a,["padding-right","paddingRight"]);h=getCurrentEltStyleByNames(a,["border-right-width","borderRightWidth"])}else{g=getCurrentEltStyleByNames(a,["padding-left","paddingLeft"]);h=getCurrentEltStyleByNames(a,["border-left-width","borderLeftWidth"])}var r=getWidthFromPxString(g),q=getWidthFromPxString(h);c=-r-q}else{c=n.left-m.left;if(!IsElementRtl(a))c=c+a.offsetWidth-b.offsetWidth;j+=b.offsetParent.scrollTop;c+=b.offsetParent.scrollLeft}var l=String(c)+"px",d=b.style;d.top=String(j)+"px";if(!IsElementRtl(a)&&f)d.right=l;else d.left=l;var i=GetElemHeight(a,true,false,false);if(browseris.ie9standardUp){var e=GetAncestorByTagNames(a,["TR","TH"]);if(e!=null&&e.nextSibling!=null){var p=e.nextSibling.offsetTop-e.offsetTop-e.offsetHeight;i+=p}}d.height=String(i)+"px";d.lineHeight=String(Math.max(i-2,0))+"px";d.margin="0px"}function getCurrentEltStyleByNames(d,c){var a=null,b=0;while(b0){b.push("&RootFolder=");b.push(h)}b.push("&ListViewPageUrl=");var l=new URI(ajaxNavigate.get_href(),{disableEncodingDecodingForLegacyCode:true});d=l.getStringWithoutQueryAndFragment();b.push(d);if(typeof a.overrideScope!="undefined"){b.push("&OverrideScope=");b.push(escapeProperly(a.overrideScope))}if(typeof a.searchTerm!="undefined"&&a.searchTerm!=null){b.push("&InplaceSearchQuery=");b.push(escapeProperlyCore(a.searchTerm,true))}else if(typeof a.completedSearchTerm!="undefined"&&a.completedSearchTerm!=null){b.push("&InplaceSearchQuery=");b.push(escapeProperlyCore(a.completedSearchTerm,true))}typeof a.fullListSearch!="undefined"&&a.fullListSearch!=null&&a.fullListSearch==true&&b.push("&InplaceFullListSearch=true");var j=b.join(""),c;if(window.XMLHttpRequest!=null){c=new XMLHttpRequest;c.open("POST",j,true);c.onreadystatechange=function(){if(c.readyState!=4)return;if(c.status==601)alert(c.responseText);else if(c.status==503)alert(Strings.STS.L_ServerBusyError);else if(typeof a.IsClientRendering!="undefined"&&a.IsClientRendering){var d=c.responseText;if(g){var p="",l=d.indexOf(p);if(l>=0){var s=document.createElement("DIV");s.innerHTML=d.substring(0,l);document.body.appendChild(s);d=d.substring(l+p.length)}}var j=null;if(Boolean(a.ExternalDataList))j=a.ListData;else j=JSON.parse(d);if(a.HasRelatedCascadeLists==1&&a.CascadeDeleteWarningMessage==null)a.CascadeDeleteWarningMessage=j.CascadeDeleteWarningMessage;CallBackWithRowData(a,e,j,f)}else{var b=c.responseText,n=document.createElement("DIV");n.style.visibility="hidden";if(a.HasRelatedCascadeLists==1&&a.CascadeDeleteWarningMessage==null){var q="",r="";if(b.startsWith(q)){var o=b.indexOf(r);if(o!==-1){a.CascadeDeleteWarningMessage=b.substring(q.length,o);b=b.substring(o+r.length)}}}n.innerHTML=b;for(var m=n.getElementsByTagName(i),h,k=0;k0)for(var j=c.substring(h+1,c.length).toLowerCase(),f=false,a=0;a=504)b="alert('"+Strings.STS.L_ReplyLimitMsg_Text+"')";else{b="STSNavigate('"+a.newFormUrl+"&Threading="+escapeProperly(itemTable.getAttribute("Ordering"))+"&Guid="+escapeProperly(itemTable.getAttribute("ThreadID"))+"&Subject="+escapeProperly(itemTable.getAttribute("Subject"));b=AddSourceToUrl(b)+"')"}f=a.imagesPath+"reply.gif";c=CAMOpt(d,e,b,f,null,String(100));c.id="ID_Reply"}AddSharedNamespaceMenuItems(d,a);var i=itemTable.getAttribute("CId");if(i!=null&&i.indexOf("0x0106")==0&&HasRights(16,0)){e=Strings.STS.L_ExportContact_Text;b="STSNavigate('"+a.HttpPath+"&Cmd=Display&CacheControl=1&List="+a.listName+"&ID="+currentItemID+"&Using="+escapeProperly(a.listUrlDir)+"/vcard.vcf')";f=a.imagesPath+"exptitem.gif";c=CAMOpt(d,e,b,f,null,String(350));CUIInfo(c,"ExportContact",["ExportContact"]);c.id="ID_ExportContact"}CAMSep(d);a.verEnabled==1&&AddVersionsMenuItem(d,a,g);if(HasRights(0,4)&&a.isModerated==true&&HasRights(0,16)&&HasRights(0,135168)&&a.listBaseType!=4&¤tItemID.indexOf(".0.")<0){e=Strings.STS.L_ModerateItem_Text;b="NavigateToApproveRejectAspx(event, '"+a.HttpRoot+"/_layouts/15/approve.aspx?List="+a.listName+"&ID="+j;b=AddSourceToUrl(b)+"')";f=a.imagesPath+"apprj.gif";c=CAMOpt(d,e,b,f,null,String(850));CUIInfo(c,"Moderate",["Moderate"]);c.id="ID_ModerateItem"}CAMSep(d);AddWorkflowsMenuItem(d,a);var h=typeof _spPageContextInfo!="undefined"&&_spPageContextInfo!=null&&_spPageContextInfo.alertsEnabled;if(currentItemID.indexOf(".0.")<0&&HasRights(128,0)&&!a.ExternalDataList&&h){e=Strings.STS.L_Subscribe_Text;b="NavigateToSubNewAspxV4(event, '"+a.HttpRoot+"', 'List="+a.listName+"&ID="+currentItemID+"')";f="";c=CAMOpt(d,e,b,f,null,String(1100));c.id="ID_Subscribe";CUIInfo(c,"Subscribe",["Subscribe"])}(h||!a.ExternalDataList&&HasRights(0,4))&&CAMSep(d);AddManagePermsMenuItem(d,a,a.listName,currentItemID);if(currentItemID.indexOf(".0.")<0&&HasRights(0,8)&&!currentItemIsEventsExcp){if(a.listBaseType==4)e=Strings.STS.L_DeleteResponse_Text;else e=Strings.STS.L_DeleteItem_Text;b="DeleteListItem()";f=a.imagesPath+"delitem.gif";c=CAMOpt(d,e,b,f,null,String(1180));CUIInfo(c,"Delete",["Delete"]);c.id="ID_DeleteItem";CUIInfo(c,"Delete",["Delete"])}var k=currentItemProgId!=null&¤tItemProgId!="";if(currentItemFSObjType=="1"&&!k&&HasRights(0,4)&&a.ContentTypesEnabled&&a.listTemplate!=108){e=Strings.STS.L_CustomizeNewButton_Text;b="STSNavigate('"+a.HttpRoot+"/_layouts/15/ChangeContentTypeOrder.aspx?List="+a.listName+"&RootFolder="+g;b=AddSourceToUrl(b)+"')";f="";c=CAMOpt(d,e,b,f,null,String(1170));CUIInfo(c,"ChangeNewButton",["ChangeNewButton"]);c.id="ID_CustomizeNewButton"}}function ReplaceUrlTokens(c,d){var e;if(c==null||c==""){c="";return c}if(currentItemID!=null)c=c.replace(/{ItemId}/g,currentItemID);var a=null,b=null,f=c.indexOf("?");if(-1!=f&&f+21950)a=a.replace(/{Source}/g,"");else a=a.replace(/{Source}/g,g);return null==a?b:b+a}var SYSTEM_ACCOUNT_ID;function UseCustomAction(c,a,f,g,j,k,e,d,h){var b=false,i=true;if(a!=null){a=a.toLowerCase();if(c=="FileType")b=j==a.toLowerCase();else if(c=="ProgId")b=k==a.toLowerCase();else if(c=="ContentType")b=e!=null&&e.indexOf(a.toLowerCase())==0;else if(c=="List")if(null!=d&&d==a)b=true;else if(null!=h&&h==a)b=true}if(b)i=!HasRights(f,g)||IsTrimmedBySystem(f,g);return b&&!i}function InsertFeatureMenuItems(x,f){CAMSep(x);var j=GetAttributeFromItemTable(itemTable,"Ext","FileType"),k=GetAttributeFromItemTable(itemTable,"Type","HTMLType"),h=GetAttributeFromItemTable(itemTable,"CId","ContentTypeId"),n=null,l=null,q=ecbItems;if(f!=null){n=String(f.listTemplate);if(null!=f.listName&&00?i:null;a.FromTenantApp=false;if(i!=null&&i.length>0)t[i]=true;m.push(a)}var u=GetTenantAppData();if(u!=null){var w=u.apps;for(d=0;d0){var n=currentItemID.indexOf(".0."),m=currentItemID.substr(0,n);d=Strings.STS.L_EditSeriesItem_Text;b="EditItem2(event, '"+a.editFormUrl+e+"ID="+m+f;b=AddSourceToUrl(b)+"')";g=a.imagesPath+"recurrence.gif";c=CAMOpt(i,d,b,g,null,String(230));CUIInfo(c,"EditSeriesItem",["EditSeriesItem"]);c.id="ID_EditSeriesItem"}}}function AddSolutionsCatalogMenuItems(a,f){if(HasRights(0,4))if(currentItemFSObjType!="1"){var d=true,b=GetAttributeFromItemTable(itemTable,"Url",null);if(b.length>4){var h=b.substr(b.length-4).toLowerCase();if(h==".wsp"){var c=GetAttributeFromItemTable(itemTable,"SolutionHash",null),g=GetAttributeFromItemTable(itemTable,"Hash",null),i=GetAttributeFromItemTable(itemTable,"SolutionItemID",null),e=GetAttributeFromItemTable(itemTable,"Status",null),j=GetAttributeFromItemTable(itemTable,"id",null);if(c!="")if(e=="")AddSolutionMenuActivate(a);else if(c==g){d=false;AddSolutionMenuDeactivate(a)}else AddSolutionMenuUpgrade(a)}}d&&AddSolutionMenuDelete(a,f)}}function AddSolutionMenuHelper(i,d,f,e,g,b,c){var a,h="if(event){event.currentItemID="+currentItemID+';}RunSolutionOperation(event, "'+f+'")';a=CAMOpt(i,d,h,e,null,String(g));CUIInfo(a,b,[b]);a.id=c}function AddSolutionMenuActivate(a){typeof window.SPUserCanManageSolutions=="boolean"&&window.SPUserCanManageSolutions==true&&AddSolutionMenuHelper(a,Strings.STS.L_ActivateSolution_Text,"ACT","",1210,"ActivateSolution","ID_ActivateSolution")}function AddSolutionMenuDeactivate(a){typeof window.SPUserCanManageSolutions=="boolean"&&window.SPUserCanManageSolutions==true&&AddSolutionMenuHelper(a,Strings.STS.L_DeactivateSolution_Text,"DEA","",1220,"DeactivateSolution","ID_DeactivateSolution")}function AddSolutionMenuUpgrade(a){typeof window.SPUserCanManageSolutions=="boolean"&&window.SPUserCanManageSolutions==true&&AddSolutionMenuHelper(a,Strings.STS.L_UpgradeSolution_Text,"UPG","",1230,"UpgradeSolution","ID_UpgradeSolution")}function AddSolutionMenuDelete(h,b){var a,c;currentItemFileUrl=GetAttributeFromItemTable(itemTable,"Url","ServerUrl");if(currentItemFileUrl!=null)c=escapeProperly(unescapeProperly(currentItemFileUrl));var e=Strings.STS.L_DeleteDocItem_Text,d="false";if(typeof itemTable.getAttribute("CSrc")!="undefined"&&itemTable.getAttribute("CSrc")!=null&&itemTable.getAttribute("CSrc")!="")d="true";var g="DeleteDocLibItem('"+b.HttpPath+"&Cmd=Delete&List="+b.listName+"&ID="+currentItemID+"&owsfileref="+c+"&NextUsing="+GetSource()+"',"+d+")",f=b.imagesPath+"delitem.gif";a=CAMOpt(h,e,g,f,null,"310");a.id="ID_DeleteDocItem";CUIInfo(a,"Delete",["Delete"])}function RunSolutionOperation(a,g){if(a==null&&!IsContextSet())return;var b=currentCtx!=null?currentCtx:typeof a.currentCtx=="object"?a.currentCtx:null,e=currentItemID!=null?currentItemID:typeof a.currentItemID=="string"?a.currentItemID:"";if(b==null)return;var f=b.listUrlDir,i=GetSource(),c=f+"/Forms/Activate.aspx?Op="+g+"&ID="+e+"&Source="+i;if(b.listBaseType==1)c=c+GetRootFolder(b);var h=function(){},j=function(){var a={url:c,args:null,width:650,height:450,dialogReturnValueCallback:h},b=SP.UI.ModalDialog.showModalDialog(a)},d;try{d=typeof SP.UI.ModalDialog.showModalDialog}catch(k){d="undefined"}EnsureScript("SP.UI.Dialog.js",d,j)}function AddDocLibMenuItems(c,a){if(typeof window.Custom_AddDocLibMenuItems!="undefined")if(window.Custom_AddDocLibMenuItems(c,a))return;var l=GetRootFolder(a),b,e,d,f;AddSharedNamespaceMenuItems(c,a);var g;if(currentItemFileUrl!=null)g=escapeProperly(unescapeProperly(currentItemFileUrl));var h=itemTable.getAttribute("SRed"),i=currentItemCheckedOutUserId==String(SYSTEM_ACCOUNT_ID)&&a.CurrentUserId!=String(SYSTEM_ACCOUNT_ID);if(HasRights(0,4)&&HasRights(16,0)&&!i&&(h==null||h==""||HasRights(0,32)))if(a.isWebEditorPreview==0&&a.listBaseType==1)if(a.listTemplate!=119){setDocType();if(currentItemAppName!=""&¤tItemOpenControl!="")if(!(a.IsAppWeb&¤tItemProgId==SPDesignerProgID)){e="";if(currentItemAppName!=" ")e=StBuildParam(Strings.STS.L_EditIn_Text,currentItemAppName);else{var k=StsOpenEnsureEx2(currentItemOpenControl+".3");if(k!=null)e=Strings.STS.L_EditInApplication_Text}if(e!=""){d="editDocumentWithProgID2('"+currentItemFileUrl+"', '"+currentItemProgId+"', '"+currentItemOpenControl+"', '"+String(bIsCheckout)+"', '"+a.HttpRoot+"', '"+currentItemCheckedoutToLocal+"', '"+currentItemOpenApp+"')";f=a.imagesPath+currentItemIcon;b=CAMOpt(c,e,d,f,null,String(260));b.id="ID_EditIn_"+currentItemAppName;b.style.cssText="display:none";CUIInfo(b,"EditDocument",["EditDocument"])}}}CAMSep(c);if(HasRights(0,4))if(currentItemFSObjType!="1")a.listBaseType==1&&AddCheckinCheckoutMenuItem(c,a,g);(a.verEnabled==1||a.isModerated)&¤tItemFSObjType!="1"&&AddVersionsMenuItem(c,a,g);if(HasRights(0,4))if(a.isModerated==true&&HasRights(0,16)&&((currentItemModerationStatus==String(2)||!a.EnableMinorVersions)&¤tItemCheckedOutUserId==""||currentItemFSObjType=="1")){e=Strings.STS.L_ModerateItem_Text;d="NavigateToApproveRejectAspx(event, '"+a.HttpRoot+"/_layouts/15/approve.aspx?List="+a.listName+"&ID="+currentItemID;d=AddSourceToUrl(d)+GetRootFolder(a)+"')";f=a.imagesPath+"apprj.gif";b=CAMOpt(c,e,d,f,null,String(850));CUIInfo(b,"Moderate",["Moderate"]);b.id="ID_ModerateItem"}CAMSep(c);AddWorkflowsMenuItem(c,a);if(currentItemFSObjType!="1"){if(a.PortalUrl!=null){e=Strings.STS.L_AddToMyLinks_Text;d="Portal_Tasks('PinToMyPage')";f="";b=CAMOpt(c,e,d,f,null,String(1e3));CUIInfo(b,"AddToMyLinks",["AddToMyLinks"]);b.id="ID_AddToMyLinks";b.style.display="none"}}else a.listBaseType==1&&HasRights(16,0)&&AddWorkOfflineMenuItem(c,a,currentItemFileUrl);if(HasRights(128,0)&&typeof _spPageContextInfo!="undefined"&&_spPageContextInfo!=null&&typeof _spPageContextInfo.alertsEnabled=="boolean"&&_spPageContextInfo.alertsEnabled){e=Strings.STS.L_Subscribe_Text;d="NavigateToSubNewAspxV4(event, '"+a.HttpRoot+"', 'List="+a.listName+"&ID="+currentItemID+"')";f="";b=CAMOpt(c,e,d,f,null,String(1100));CUIInfo(b,"Subscribe",["Subscribe"]);b.id="ID_Subscribe";b.style.display="none"}if(currentItemFSObjType!="1"){AddSendSubMenu(c,a);AddGotoSourceItemMenuItem(c,a,itemTable,currentItemFSObjType);AddDocTransformSubMenu(c,a)}CAMSep(c);AddManagePermsMenuItem(c,a,a.listName,currentItemID);if(HasRights(0,8)&&!i){e=Strings.STS.L_DeleteDocItem_Text;var j="false";if(typeof itemTable.getAttribute("CSrc")!="undefined"&&itemTable.getAttribute("CSrc")!=null&&itemTable.getAttribute("CSrc")!="")j="true";d="DeleteDocLibItem('"+a.HttpPath+"&Cmd=Delete&List="+a.listName+"&ID="+currentItemID+"&owsfileref="+g+"&NextUsing="+GetSource()+"',"+j+")";f=a.imagesPath+"delitem.gif";b=CAMOpt(c,e,d,f,null,String(1190));b.id="ID_DeleteDocItem";CUIInfo(b,"Delete",["Delete"])}if(HasRights(0,4)&¤tItemFSObjType=="1"&&a.ContentTypesEnabled&&a.listTemplate!=108){e=Strings.STS.L_CustomizeNewButton_Text;d="STSNavigate('"+a.HttpRoot+"/_layouts/15/ChangeContentTypeOrder.aspx?List="+a.listName+"&RootFolder="+g;d=AddSourceToUrl(d)+"')";f="";b=CAMOpt(c,e,d,f,null,String(1170));CUIInfo(b,"ChangeNewButton",["ChangeNewButton"]);b.id="ID_CustomizeNewButton"}}function AddManagePermsMenuItem(h,a,f,g){if(!HasRights(0,131072)||currentItemIsEventsExcp||a.ExternalDataList||currentItemEvtType==5)return;var c=Strings.STS.L_SharedWithDialogTitle,e="EnsureScriptFunc('sharing.js', 'DisplaySharedWithDialog', function () { DisplaySharedWithDialog('"+a.HttpRoot+"', '"+f+"','"+g+"'); })",d=a.imagesPath+"permissions16.png",b=CAMOpt(h,c,e,d,null,String(1160));b.id="ID_MngPerms";CUIInfo(b,"ManagePermissions",["ManagePermissions"])}function AddGotoSourceItemMenuItem(i,h,e,g){if(g!="1"){var a=e.getAttribute("CSrc");if(typeof a!="undefined"&&a!=null&&a!=""){var c=Strings.STS.L_GoToSourceItem_Text,f="NavigateToSourceItem(event, '"+STSScriptEncode(a)+"')",d=h.imagesPath+"goToOriginal.gif",b=CAMOpt(i,c,f,d,null,String(440));b.id="ID_GoToSourceItem";CUIInfo(b,"GotoSourceItem",["GotoSourceItem"])}}}function CheckoutSingleItemFromECB(c,d){var a;try{a=typeof inplview.CheckOutSingleItem}catch(g){a="undefined"}var f="inplview.CheckOutSingleItem",b=f.split(".");if(b.length>1){var e=function(){inplview.CheckOutSingleItem(c,d)};EnsureScript(b[0],a,e)}}function AddCheckinCheckoutMenuItem(g,a,f){var b,d,e,c;if(!HasRights(0,4))return;if(currentItemCheckedOutUserId==String(SYSTEM_ACCOUNT_ID)&&a.CurrentUserId!=String(SYSTEM_ACCOUNT_ID))return;if(currentItemCheckedOutUserId==null)currentItemCheckedOutUserId=itemTable.getAttribute("COUId");if(currentItemCheckedOutUserId!=""){if(currentItemCheckedOutUserId==a.CurrentUserId||a.CurrentUserId==null||HasRights(0,256)){d=Strings.STS.L_Checkin_Text;if(!FV4UI())c="NavigateToCheckinAspx('"+a.HttpRoot+"', 'List="+a.listName+"&FileName="+f+"')";else c="CheckInSingleItemFromECB(event, currentCtx, itemTable)";e=a.imagesPath+"checkin.gif";b=CAMOpt(g,d,c,e,null,String(300));b.id="ID_Checkin";CUIInfo(b,"CheckIn",["CheckIn"]);d=Strings.STS.L_DiscardCheckou_Text;c="UnDoCheckOutwithNotification('"+a.HttpRoot+"', '"+f+"')";e=a.imagesPath+"unchkout.gif";b=CAMOpt(g,d,c,e,null,String(310));b.id="ID_DiscardCheckou";CUIInfo(b,"DiscardCheckOut",["DiscardCheckOut"])}}else if(typeof g_disableCheckoutInEditMode=="undefined"||!g_disableCheckoutInEditMode){d=Strings.STS.L_Checkout_Text;currentItemOpenControl==""&&setDocType();var l="",j=itemTable.getAttribute("SRed");if(j==null||j==""||HasRights(0,32)){if(!FV4UI())c="CheckoutDocument('"+a.HttpRoot+"', '"+f+"', '"+l+"')";else c="CheckoutSingleItemFromECB(currentCtx, itemTable)";e=a.imagesPath+"checkout.gif";b=CAMOpt(g,d,c,e,null,String(300));b.id="ID_Checkout";CUIInfo(b,"CheckOut",["CheckOut"])}if(currentItemModerationStatus==null)currentItemModerationStatus=GetAttributeFromItemTable(itemTable,"MS","MStatus");if(a.EnableMinorVersions){if(currentItemUIString==null)currentItemUIString=GetAttributeFromItemTable(itemTable,"UIS","UIString");var k=parseInt(currentItemUIString)%512;if((currentItemModerationStatus==String(1)||currentItemModerationStatus==String(3))&&a.isModerated||!a.isModerated&&k!=0){d=Strings.STS.L_PublishItem_Text;c="PublishMajorVersion(event, '"+a.HttpRoot+"', 'List="+a.listName+"&FileName="+f+"&Publish=true')";e=a.imagesPath+"pubmajor.gif";b=CAMOpt(g,d,c,e,null,String(320));CUIInfo(b,"Publish",["Publish"]);b.id="ID_PublishItem"}else{var i,h=false;if(!a.isModerated||currentItemModerationStatus==String(0)){d=Strings.STS.L_UnPublishItem_Text;i="ID_UnPublishItem";e=a.imagesPath+"unpub.gif"}else{d=Strings.STS.L_CancelPublish_Text;i="ID_CancelPublish";e=a.imagesPath+"unapprv.gif";h=true}c="UnPublish('"+a.HttpRoot+"', 'FileName="+f+"&UnPublish=true',"+String(h)+")";b=CAMOpt(g,d,c,e,null,String(330));if(h)CUIInfo(b,"CancelApproval",["CancelApproval"]);else CUIInfo(b,"Unpublish",["Unpublish"]);b.id=i}}}}function AddWorkflowsMenuItem(h,a){if(HasRights(0,4)&&!a.ExternalDataList){var f=GetAttributeFromItemTable(itemTable,"CId","ContentTypeId");if(f==null||f.substr(0,8)!="0x010801"){var g=a.imagesPath+"workflows.png",c,d=(""+currentItemID).indexOf(".0.");if(d>0)c=currentItemID.substr(0,d);else c=currentItemID;var b="STSNavigate('"+a.HttpRoot+"/_layouts/15/Workflow.aspx?ID="+c+"&List="+a.listName;b=AddSourceToUrl(b)+"')";var e=CAMOpt(h,Strings.STS.L_Workflows_Text,b,g,null,String(900));CUIInfo(e,"ViewWorkflows",["ViewWorkflows"]);e.id="ID_Workflows"}}}function AddWorkspaceMenuItem(e,b){var a,c,d=GetAttributeFromItemTable(itemTable,"SUrl","SourceUrl");if(d!=null&&d!=""&&d!="%20"){if(HasRights(0,135168)){c="STSNavigate('"+b.HttpRoot+"/_layouts/15/publishback.aspx?list="+b.listName+"&item="+currentItemID+GetRootFolder(b)+"')";a=CAMOpt(e,Strings.STS.L_PublishBack_Text,c,"",null,String(1140));CUIInfo(a,"PublishBack",["PublishBack"]);a.id="ID_PublishBack"}}else if(HasRights(0,8388608)&&HasRights(0,135168)&&HasRights(0,67108864)){c="STSNavigate('"+b.HttpRoot+"/_layouts/15/createws.aspx?list="+b.listName+"&item="+currentItemID+GetRootFolder(b)+"')";a=CAMOpt(e,Strings.STS.L_CreateDWS_Text,c,"",null,String(1140));CUIInfo(a,"CreateDocumentWorkspace",["CreateDocumentWorkspace"]);a.id="ID_CreateDWS"}}function AddVersionsMenuItem(i,a,h){if(currentItemID!=null){var d=currentItemID.toString();if(d.indexOf(".0.")>=0)return}var b=currentItemID;if(currentItemIsEventsExcp)if(currentItemID.indexOf(".")!=-1)b=currentItemID.split(".")[0];if(!HasRights(0,64))return;var e=Strings.STS.L_Versions_Text,g="NavigateToVersionsAspxV4(event, '"+a.HttpRoot+"', 'list="+a.listName+"&ID="+b+"&FileName="+h+"')",f=a.imagesPath+"versions.gif",c=CAMOpt(i,e,g,f,null,String(800));CUIInfo(c,"ViewVersions",["ViewVersions"]);c.id="ID_Versions"}function AddWorkOfflineMenuItem(j,a,i){var b=GetStssyncData("documents",Strings.STS.L_WorkOffline_Text,a.imagesPath+"tbsprsht.gif",a.imagesPath);if(b!=null){var d=b.BtnText,h=b.BtnImagePath;if(d!=null){var f="";if(typeof a.SiteTitle=="string"&&a.SiteTitle!=null)f=STSScriptEncode(a.SiteTitle);var c="";if(typeof a.ListTitle=="string"&&a.ListTitle!=null)c=STSScriptEncode(a.ListTitle);var g="javascript:ExportHailStorm('documents','"+a.HttpRoot+"','"+STSScriptEncode(a.listName)+"','"+STSScriptEncode(f)+"','"+c+"','"+STSScriptEncode(a.listUrlDir)+"','','"+STSScriptEncode(unescapeProperly(a.listUrlDir))+"'";g+=",'"+STSScriptEncode(unescapeProperly(i))+"','"+currentItemID+"')";var e=CAMOpt(j,d,g,h);CUIInfo(e,"ConnectFolderToClient",["ConnectFolderToClient"]);e.id="ID_WorkOffline"}}}function AddVersionMenuItems(b,a){typeof AddVersionMenuItemsCore=="function"&&AddVersionMenuItemsCore(b,a)}function NavigateToApproveRejectAspx(b,a){if(FV4UI())ShowInPopUI(b,currentCtx,a);else STSNavigate(a)}function PublishMajorVersion(d,b,c){var a=b+"/_layouts/15/Checkin.aspx?"+c;a=AddSourceToUrl(a);if(FV4UI())ShowInPopUI(d,currentCtx,a);else SubmitFormPost(a)}function _NavigateToSubNewAspx(b,c){var a=b+"/_layouts/15/SubNew.aspx?"+c;a=AddSourceToUrl(a);STSNavigate(a)}function NavigateToSubNewAspxV4(d,b,c){var a=b+"/_layouts/15/SubNew.aspx?"+c;a=AddSourceToUrl(a);if(FV4UI())ShowInPopUI(d,currentCtx,a);else STSNavigate(a)}function NavigateToVersionsAspx(b,c){var a=b+"/_layouts/15/Versions.aspx?"+c;a=AddSourceToUrl(a);STSNavigate(a)}function NavigateToVersionsAspxV4(d,b,c){var a=b+"/_layouts/15/Versions.aspx?"+c;a=AddSourceToUrl(a);if(FV4UI())ShowInPopUI(d,currentCtx,a);else STSNavigate(a)}function NavigateToSendToOtherLocationV4(b,a){if(FV4UI())ShowInPopUI(b,currentCtx,a);else STSNavigate(a)}function UnDoCheckOutwithNotification(a,c){var b=UnDoCheckOut(a,c);if(b){var d=Strings.STS.L_Notification_DiscardCheckOut;addNotification(d,true)}}function UnDoCheckOut(f,c){try{var b=null,e=SzExtension(unescapeProperly(c));if(FSupportCheckoutToLocal(e))b=StsOpenEnsureEx2("SharePoint.OpenDocuments.3");if(b!=null&&typeof b.DiscardLocalCheckout=="function"){var a=unescapeProperly(c);if(a.charAt(0)=="/")a=window.location.protocol+"//"+window.location.host+a;var d=b.DiscardLocalCheckout(a);if(d){SetWindowRefreshOnFocus();return d}if(IsSupportedMacBrowser()||IsSupportedFirefoxOnWin()){if(!confirm(Strings.STS.L_UndoCheckoutWarning_Text))return false}else return d}else if(!confirm(Strings.STS.L_UndoCheckoutWarning_Text))return false}catch(g){}NavigateToCheckinAspx(f,"FileName="+c+"&DiscardCheckout=true");return true}function UnPublish(c,d,b){var a=Strings.STS.L_UnPublishWarning_Text;if(b)a=Strings.STS.L_CancleApproval_TEXT;if(!confirm(a))return;NavigateToCheckinAspx(c,d)}function NavigateToCheckinAspx(b,c){var a=b+"/_layouts/15/Checkin.aspx?"+c;a=AddSourceToUrl(a);SubmitFormPost(a)}function _NavigateToManagePermsPage(a,c,b){NavigateToManagePermsPageEx(a,c,b,false)}function NavigateToManagePermsPageEx(c,b,d,f){var e=",LISTITEM",a=c+"/_layouts/15/User.aspx?obj="+b+","+d+e+"&List="+b;a=AddSourceToUrl(a);if(f)typeof window.frameElement.navigateParent=="function"&&window.frameElement.navigateParent(a);else STSNavigate(a)}function NavigateToSourceItem(e,a){var d=a.match(/[^\/]*\/\/[^\/]*/g),c=d[0];a=escapeProperly(a);var b=c+"/_layouts/15/copyutil.aspx?GoToDispForm=1&Use=url&ItemUrl="+a;b=AddSourceToUrl(b);STSNavigate(b)}function setDocType(){var b=GetAttributeFromItemTable(itemTable,"Icon","DocIcon"),a=Boolean(b)?b.split("|"):[];currentItemIcon=a[0];currentItemAppName=a[1];currentItemOpenControl=a[2];if(a[3]==null)currentItemOpenApp="";else currentItemOpenApp=a[3];currentItemProgId=GetAttributeFromItemTable(itemTable,"Type","HTMLType")}function DeleteListItem(){if(!IsContextSet())return;var b=currentCtx,e=currentItemID,c=Strings.STS.L_STSRecycleConfirm_Text;if(!b.RecycleBinEnabled||b.ExternalDataList)c=Strings.STS.L_STSDelConfirm_Text;if(Boolean(b.HasRelatedCascadeLists)&&b.CascadeDeleteWarningMessage!=null)c=b.CascadeDeleteWarningMessage+c;if(confirm(c)){var g=Strings.STS.L_Notification_Delete,f=addNotification(g,true),a=b.clvp;if(b.ExternalDataList&&a!=null){a.DeleteItemCore(e);a.pendingItems=[];typeof a.cctx.executeQueryAsync!="undefined"&&a.cctx.executeQueryAsync(function(){if(a.rgehs!=null&&typeof a.rgehs.length=="number"){if(a.rgehs.length==1&&a.rgehs[0].get_serverErrorCode()==SP.ClientErrorCodes.redirect){GoToPage(a.rgehs[0].get_serverErrorValue());return}removeNotification(f);a.ShowErrorDialog(RefreshOnDialogClose)}else RefreshPage(SP.UI.DialogResult.OK)},function(){removeNotification(f);typeof a.rgehs!="undefined"&&a.ShowErrorDialog(function(){})})}else{var d=b.HttpPath+"&Cmd=Delete&List="+b.listName+"&ID="+e+"&NextUsing="+GetSource();if(null!=currentItemContentTypeId)d+="&ContentTypeId="+currentItemContentTypeId;SubmitFormPost(d)}}}function DeleteDocLibItem(d,e){if(!IsContextSet())return;var b=currentCtx,h=currentItemID,g=currentItemFSObjType,a,c=false;if(currentItemFSObjType=="1"){if(currentItemContentTypeId!=null){d+="&ContentTypeId="+currentItemContentTypeId;if(currentItemContentTypeId.substr(0,8).toLowerCase()=="0x0120d5")c=true}if(c)a=b.RecycleBinEnabled?Strings.STS.L_STSRecycleConfirm2_Text:Strings.STS.L_STSDelConfirm2_Text;else a=b.RecycleBinEnabled?Strings.STS.L_STSRecycleConfirm1_Text:Strings.STS.L_STSDelConfirm1_Text}else a=b.RecycleBinEnabled?Strings.STS.L_STSRecycleConfirm_Text:Strings.STS.L_STSDelConfirm_Text;if(Boolean(b.HasRelatedCascadeLists)&&b.CascadeDeleteWarningMessage!=null)a=b.CascadeDeleteWarningMessage+a;if(e&¤tItemFSObjType!="1")a=Strings.STS.L_NotifyThisIsCopy_Text+a;if(confirm(a)){var f=Strings.STS.L_Notification_Delete;addNotification(f,true);SubmitFormPost(d,false,true)}}function EditMenuDefaultForOnclick(){if(!IsContextSet())return;var a=currentCtx;if(Boolean(a.isVersions))STSNavigate(itemTable.getAttribute("verUrl"));else if(a.listTemplate==200){var b=currentItemID;MtgNavigate(b)}else EditListItem()}function EditListItem(){if(event.srcElement.tagName=="A"||event.srcElement.parentNode.tagName=="A")return;if(!IsContextSet())return;var b=currentCtx,c="&";if(b.editFormUrl.indexOf("?")==-1)c="?";var a=b.editFormUrl+c+"ID="+currentItemID;a=AddSourceToUrl(a);if(b.listBaseType==1)a=a+GetRootFolder(b);STSNavigate2(event,a)}function _DoNavigateToTemplateGallery(a,b){document.cookie="MSOffice_AWS_DefSaveLoc="+a;STSNavigate(b)}function Portal_Tasks(j){if(!IsContextSet())return;var b=currentCtx,g=unescapeProperly(currentItemFileUrl),c=0,d=0;c=g.lastIndexOf("/");d=g.lastIndexOf(".");if(c<0||d<0||c>d)return;var i=g.substr(c+1,d-c-1),f="";c=b.HttpRoot.indexOf("://");if(c>0){d=b.HttpRoot.indexOf("/",c+3);if(d>0)f=b.HttpRoot.substring(0,d);else f=b.HttpRoot}var e="";if(currentItemFileUrl.charAt(0)=="/"||currentItemFileUrl.substr(0,3).toLowerCase()=="%2f")e=f+currentItemFileUrl;else e=currentItemFileUrl;var a="";if(setElementValue("ListViewURL",e)==false)a=a+"&ListViewURL="+escapeProperly(e);if(setElementValue("ListTitle",i)==false)a=a+"&ListTitle="+escapeProperly(i);if(setElementValue("ListDescription","")==false)a=a+"&ListDescription=";if(setElementValue("ReturnUrl",window.location.href)==false)a=a+"&ReturnUrl="+escapeProperly(window.location.href);if(b.PortalUrl.substr(0,4)!="http")b.PortalUrl=f+b.PortalUrl;var h=b.PortalUrl+"_vti_bin/portalapi.aspx?cmd="+j;h=h+"&IconUrl="+b.imagesPath+currentItemIcon+a;SubmitFormPost(h)}function IsContextSet(){return currentCtx==null?false:typeof currentCtx.isExplictLogin=="boolean"&¤tCtx.isExplictLogin?true:currentCtx.HttpPath==null||currentItemID==null?false:true}function ChangeContentType(d){var b=document.getElementById(d),a=window.location.href,e=a.indexOf("?");if(a.indexOf("?")<=0)a=a+"?ContentTypeId="+b.value;else if(a.indexOf("&ContentTypeId=")<=0)a=a+"&ContentTypeId="+b.value;else{var c=/&ContentTypeId=[^&]*/i;a=a.replace(c,"&ContentTypeId="+b.value)}STSNavigate(a)}function _TopHelpButtonClick(a){if(typeof navBarHelpOverrideKey!="undefined")return HelpWindowKey(navBarHelpOverrideKey);if(a!=null)HelpWindowKey(a);else HelpWindowKey("HelpHome")}function GetSPHelpUrl(d){var c,a;if(typeof d=="undefined")c="?Lcid="+Strings.STS.L_Language_Text;else c="?Lcid="+Strings.STS.L_Language_Text+d;var b;if(typeof ctx=="undefined"||ctx==null)if(typeof currentCtx!="undefined"&¤tCtx!=null)ctx=currentCtx;else if(typeof ctxFilter!="undefined"&&ctxFilter!=null)ctx=ctxFilter;if(typeof ctx!="undefined"&&ctx!=null&&typeof ctx.HttpRoot!="undefined"&&ctx.HttpRoot!=null){a=ctx.HttpRoot;if(a.charAt(a.length-1)!="/")a=a+"/";b=a+"_layouts/15/help.aspx"}if(b==null&&typeof _spPageContextInfo!="undefined"&&_spPageContextInfo!=null&&typeof _spPageContextInfo.webServerRelativeUrl!="undefined"&&_spPageContextInfo.webServerRelativeUrl!=null){a=_spPageContextInfo.webServerRelativeUrl;if(a.charAt(a.length-1)!="/")a=a+"/";b=a+"_layouts/15/help.aspx"}if(b==null)b="/_layouts/15/help.aspx";return b+c}function ShowHelpWindow(a){if(a!=null){var b=window.open(a,"STSHELP_15","height=500,location=no,menubar=no,resizable=yes,scrollbars=no,status=no,toolbar=no,width=400");b.focus()}}function HelpWindowHelper(a){if(SuiteLinksEmptyOrSuiteHelpLinkIsCached())GetSuiteLinks(null,function(b){SP.SOD.executeFunc("suitelinks.js","GetSPOHelpUrl",function(){var c=GetSPOHelpUrl(b,a);ShowHelpWindow(c)})});else{var b=GetSPHelpUrl(a);ShowHelpWindow(b)}}function _HelpWindowKey(a){if(a!=null)HelpWindowHelper("&Key="+a+"&ShowNav=true");else HelpWindowHelper("&Key=HelpHome&ShowNav=true")}function _HelpWindowUrl(a){HelpWindowHelper("&Url="+a)}function _HelpWindow(){HelpWindowKey("HelpHome")}function _ToggleFullScreenMode(){var a=HasCssClass(document.body,"ms-fullscreenmode");SetFullScreenMode(!a)}function SetFullScreenMode(d){var c=document.body,b=document.getElementById("fullscreenmode"),a=document.getElementById("exitfullscreenmode");if(c!=null){SetCookieEx("WSS_FullScreenMode",d,true,window);if(d){AddCssClassToElement(c,"ms-fullscreenmode");if(b!=null&&a!=null){b.style.display="none";a.style.display=""}}else{RemoveCssClassFromElement(c,"ms-fullscreenmode");if(b!=null&&a!=null){b.style.display="";a.style.display="none"}}if("undefined"!=typeof document.createEvent&&"function"==typeof window.dispatchEvent){var e=document.createEvent("Event");e.initEvent("resize",false,false);window.dispatchEvent(e)}else"undefined"!=typeof document.createEventObject&&document.body.fireEvent("onresize");CallWorkspaceResizedEventHandlers()}}function FullScreenModeOnKeyDown(a){if(a==null)a=window.event;var b;if(a==null)return true;if(browseris.nav6up)b=a.which;else b=a.keyCode;a.altKey&&b==122&&_ToggleFullScreenMode();return true}function InitFullScreenMode(){AttachEvent("keydown",FullScreenModeOnKeyDown,document.body);SetFullScreenMode(GetCookieEx("WSS_FullScreenMode",window)=="true")}function EditSelectedImages(){if(!IsImgLibJssLoaded()){alert(Strings.STS.L_NotOurView_Text);return}_EditSelectedImages()}function DeleteImages(){if(!IsImgLibJssLoaded()){alert(Strings.STS.L_NotOurView_Text);return}_DeleteImages()}function SendImages(){if(!IsImgLibJssLoaded()){alert(Strings.STS.L_NotOurView_Text);return}_SendImages()}function DownloadImages(){if(!IsImgLibJssLoaded()){alert(Strings.STS.L_NotOurView_Text);return}_DownloadImages()}function MtgToggleTimeZone(){var b=document.getElementById("TimeZoneSection"),a=document.getElementById("TimeZoneLink");if(b.style.display=="none"){b.style.display="";a.innerHTML="<<";a.title=Strings.STS.L_HideTZ_Text;SetMtgCookie("MtgTimeZone","1","")}else{b.style.display="none";a.innerHTML=">>";a.title=Strings.STS.L_ShowTZ_Text;SetMtgCookie("MtgTimeZone","0","")}}function GetPageUrl(b){var a=undefined;if(b&&typeof g_webUrl!="undefined")a=g_webUrl;else if(typeof g_pageUrl!="undefined")a=g_pageUrl;return unescapeProperly(a)}function MtgNavigate(a){if(typeof g_instanceId!="undefined"&&a==g_instanceId)return;if(typeof g_fPageGlobal!="undefined")var c=!g_fPageGlobal;if(typeof g_thispagedata!="undefined")var b=g_thispagedata;window.location.href=GetPageUrl(c)+"?InstanceID="+a+"&"+b}function GoToMtgMove(d,c,b,a){window.location.href=d+"/movetodt.aspx?FromInstanceID="+c+"&FromInstanceDate="+escapeProperly(b)+"&FromInstanceDateISO="+escapeProperly(a)+"&Source="+escapeProperly(window.location.href)}function MtgKeep(b,c,a){confirm(Strings.STS.L_MtgKeepConfirm_Text)&&SubmitFormPost(b+"&Cmd=MtgKeep&List="+escapeProperly(c)+"&EditInstanceID="+a+"&NextUsing="+escapeProperly(window.location.href))}function MtgDelete(c,d,a){if(confirm(Strings.STS.L_MtgDeleteConfirm_Text)){var b=a==g_instanceId;SubmitFormPost(c+"&Cmd=MtgMove&List="+escapeProperly(d)+"&FromInstanceID="+a+"&ToInstanceID=-3&NextUsing="+escapeProperly(b?GetPageUrl(true):window.location.href))}}function SetMtgCookie(a,b,c){document.cookie=a+"="+b+";path="+c}function SetAsLastTabVisited(){typeof g_pageUrl!="undefined"&&typeof g_webUrl!="undefined"&&SetMtgCookie("MtgLastTabVisited",escapeProperly(unescapeProperly(g_pageUrl)),escapeProperlyCore(unescapeProperly(g_webUrl),true))}function MtgRedirect(){var a=GetCookie("MtgLastTabVisited");if(a==null)if(typeof g_webUrl!="undefined")a=g_webUrl;else a="../../";else a=escapeProperlyCore(a,true);window.location.href=a}function MakeMtgInstanceUrl(a,c){if(c!="undefined"&&c!=""){var b=a.indexOf("?");if(b==-1||a.indexOf("InstanceID=",b)==-1)a=a+(b==-1?"?":"&")+"InstanceID="+c}return a}var filterTable,bIsFilterMenuShown,bIsFilterDataLoaded,filterImageCell,currentFilterMenu,loadingFilterMenu,ctxFilter,bIsFilterKeyPress,filterStr,strFieldName,bMenuLoadInProgress,strFilteredValue,bIsMultiFilter,fnOnFilterMouseOut;function resetFilterMenuState(){if(bMenuLoadInProgress)return;bIsFilterMenuShown=false;bIsFilterDataLoaded=false;filterTable=null;filterImageCell=null;currentFilterMenu=null;loadingFilterMenu=null;ctxFilter=null;bIsFilterKeyPress=false;fnOnFilterMouseOut!=null&&fnOnFilterMouseOut();fnOnFilterMouseOut=null}function setupFilterMenuContext(a){ctxFilter=a}function IsFilterMenuOn(){var a=false;if(!bIsFilterMenuShown)return false;a=bMenuLoadInProgress||MenuHtc_isOpen(currentFilterMenu)||MenuHtc_isOpen(loadingFilterMenu);if(!a)bIsFilterMenuShown=false;return a}function IsFilterMenuEnabled(b){if(b==null)return true;var a=CtxFromElement(b);return a!=null&&typeof a.fullListSearch!="undefined"&&Boolean(a.fullListSearch)?false:true}function OnMouseOverFilterDeferCall(elm){if(!IsFilterMenuEnabled(elm))return false;if(IsFilterMenuOn()||bMenuLoadInProgress)return false;if(window.location.href.search(new RegExp("[\\?&]Filter=1"))!=-1)return false;if(typeof elm.FilterDisable!=undefined&&elm.FilterDisable=="TRUE")return false;if(IsFieldNotFilterable(elm)&&IsFieldNotSortable(elm))return false;if(filterTable==elm)return true;filterTable!=null&&OnMouseOutFilter();filterTable=elm;var isTable=filterTable.tagName=="TABLE",curCtx;try{curCtx=eval("ctx"+filterTable.getAttribute("CtxNum"))}catch(e){}if(typeof curCtx=="undefined")return false;var createCtx=new Function("setupFilterMenuContext(ctx"+filterTable.getAttribute("CtxNum")+");");createCtx();if(isTable){filterTable.className="ms-selectedtitle";SetEvent("click",CreateFilterMenu,filterTable);SetEvent("contextmenu",CreateFilterMenu,filterTable);SetEvent("mouseout",OnMouseOutFilter,filterTable)}else{var par=filterTable.parentNode;SetEvent("click",CreateFilterMenu,par);SetEvent("contextmenu",CreateFilterMenu,par);SetEvent("mouseout",OnMouseOutFilter,par);CreateCtxImg(par,OnMouseOutFilter)}if(isTable){var titleParent=filterTable.childNodes[0],titleRow=titleParent.childNodes[0];filterImageCell=titleRow.childNodes[titleRow.childNodes.length-1];var filterArrow=filterImageCell.childNodes[0];filterArrow.src=ctxFilter.imagesPath+"menudark.gif";filterArrow.alt=Strings.STS.L_OpenMenu_Text;filterArrow.style.visibility="visible";if(IsElementRtl(filterTable)){filterImageCell.style.right=null;filterImageCell.style.left="1px"}else{filterImageCell.style.left=null;filterImageCell.style.right="1px"}filterImageCell.className="ms-menuimagecell"}return true}function OnMouseOutFilter(a){if(!IsFilterMenuOn()&&filterTable!=null&&!bMenuLoadInProgress){var c=filterTable.tagName=="TABLE",b=filterTable.parentNode;if(c||b==null){filterTable.className="ms-unselectedtitle";filterTable.onclick=null;filterTable.oncontextmenu=null;filterTable.onmouseout=null}else{if(a==null)a=window.event;if(a!=null){var d=typeof a.toElement!="undefined"&&a.toElement!=null?a.toElement:a.relatedTarget;if(b!=null&&d!=null&&IsContained(d,b))return}b.onclick=null;b.oncontextmenu=null;b.onmouseout=null;RemoveCtxImg(b)}if(c&&filterImageCell!=null&&filterImageCell.childNodes.length>0){filterImageCell.childNodes[0].style.visibility="hidden";filterImageCell.className=""}resetFilterMenuState()}}function _OnFocusFilter(a){if(window.location.href.search(new RegExp("[\\?&]Filter=1"))!=-1)return false;if(!IsFilterMenuEnabled(a))return false;a.onfocusout=OnMouseOutFilter;a.onkeydown=PopFilterMenu;var b=a.getAttribute("FilterString");if(b!=null)filterStr=b;var c=FindSTSMenuTable(a,"CTXNum");if(c==null)return false;OnMouseOverFilter(c);return false}function PopFilterMenu(a){var b;if(a==null)a=window.event;if(browseris.nav6up)b=a.which;else b=a.keyCode;if(!IsFilterMenuOn()&&(a.shiftKey&&b==13||a.altKey&&b==40)){var c=Boolean(a.srcElement)?a.srcElement:a.target;if(!IsFilterMenuEnabled(c))return true;var d=FindSTSMenuTable(c,"CTXNum");if(d==null)return false;OnMouseOverFilterDeferCall(d);CreateFilterMenu(a);return false}else return true}function CreateFilterMenu(b){if(filterTable==null||filterTable.tagName=="TABLE"&&filterImageCell==null)return true;var a=filterTable.tagName=="DIV"?filterTable.parentNode:filterTable,c=FindCtxImg(a);c!=null&&c.shown==false&&ShowCtxImg(c,true,a);if(b==null)b=window.event;bIsFilterMenuShown=true;window.origBodyOnClickHandler=document.body.onclick;window.document.body.onclick=null;currentFilterMenu=CMenu("filter_menu");loadingFilterMenu=CMenu("filter_menu_loading");currentFilterMenu.setAttribute("CompactMode","true");addSortMenuItems(currentFilterMenu,loadingFilterMenu);if(filterStr==null)addFilterMenuItems(currentFilterMenu,loadingFilterMenu);else addAdHocFilterMenuItems(currentFilterMenu,loadingFilterMenu);if(HasCssClass(a,"ms-headerCellStylePressed")||HasCssClass(a,"ms-headerCellStyleHover")){RemoveCssClassFromElement(a,"ms-headerCellStylePressed");RemoveCssClassFromElement(a,"ms-headerCellStyleHover");AddCssClassToElement(a,"ms-headerCellStyleMenuOpen")}b!=null&&b.stopPropagation!=null&&b.stopPropagation();return false}function GetUrlWithNoSortParameters(e){var a=ajaxNavigate.get_href(),h=new URI(a,{disableEncodingDecodingForLegacyCode:true});h.setFragment("");a=h.getString();var b,f=0,d,g;do{d=e.indexOf("=",f);if(d==-1)return a;b=e.substring(f,d);if(b!="")a=RemoveQueryParameterFromUrl(a,b);if(typeof b=="string"&&b.length>"FilterField".length&&b.substring(0,"FilterField".length)=="FilterField"){var c=b.substring("FilterField".length);a=RemoveQueryParameterFromUrl(a,"FilterValue"+c);a=RemoveQueryParameterFromUrl(a,"FilterLookupId"+c);a=RemoveQueryParameterFromUrl(a,"FilterOp"+c);a=RemoveQueryParameterFromUrl(a,"FilterData"+c)}g=e.indexOf("&",d+1);if(g==-1)return a;f=g+1}while(b!="");return a}function IsFieldNotSortable(a){return a.getAttribute("Sortable")=="FALSE"||a.getAttribute("SortDisable")=="TRUE"||a.getAttribute("FieldType")=="MultiChoice"?true:false}function addSortMenuItems(b,a){if(IsFieldNotSortable(filterTable)){CAMOptFilter(b,a,Strings.STS.L_NotSortable_Text,"","",false,"fmi_ns");CAMSep(b);CAMSep(a);return}var e="",f="",d="",g=GetThemedLocalizedImageUrl("SortUpGlyph.png"),h=GetThemedLocalizedImageUrl("SortDownGlyph.png");if(filterStr==null){var c=ctxFilter.queryString;if(null==c||c=="")c=filterTable.getAttribute("SortFields");else{var z=GetUrlKeyValue("SortField",true,c),w=filterTable.getAttribute("SortFields"),v=GetUrlKeyValue("SortField",true,w);if(z!=v){c=SetUrlKeyValue("SortField",v,false,c);c=SetUrlKeyValue("SortDir",GetUrlKeyValue("SortDir",true,w),false,c)}}var l=new URI(c,{disableEncodingDecodingForLegacyCode:true});if(l.getQuery().length>0)c=l.getQuery();var r=c.indexOf("&SortDir");if(r==-1){CAMOptFilter(b,a,Strings.STS.L_NotSortable_Text,"","",false,"fmi_ns");CAMSep(b);CAMSep(a);return}var q=c.indexOf("&",r+1),t=GetUrlWithNoSortParameters(c);t=RemovePagingArgs(t);l=new URI(t,{disableEncodingDecodingForLegacyCode:true});var k="?"+l.getQuery();if(k.length>1)k+="&";var C=k;if(q<0)q=c.length;k+=c.substr(0,r)+"&SortDir=Asc"+c.substr(q);l.setQuery(k);e="HandleFilter(event, '"+STSScriptEncode(l.getString())+"', 1);";k=C;k+=c.substr(0,r)+"&SortDir=Desc"+c.substr(q);l.setQuery(k);f="HandleFilter(event, '"+STSScriptEncode(l.getString())+"', 1);";if(e.indexOf("?")>=0)e.substr(e.indexOf("?")+1).indexOf("?")>=0;d=filterTable.getAttribute("FieldType");strFieldName=filterTable.getAttribute("Name")}else{var s=" ",j=filterStr.lastIndexOf(s);d=filterStr.substring(j+1);if(d.substring(0,2)=="x:")d=d.substring(2);var o=filterStr.substring(0,j);j=o.lastIndexOf(s);strFieldName=o.substring(j+1);if(strFieldName.substring(0,1)=="@")strFieldName=strFieldName.substring(1);o=filterStr.substring(0,j);j=o.lastIndexOf(s);if(j>0)strFieldName=o.substring(0,j);var B=filterTable.tagName=="TABLE",i=null;if(B){var y=filterTable.childNodes[0],A=y.childNodes[0],x=A.childNodes[0];i=x.childNodes[0];if(i.tagName=="TABLE"){var n=i.childNodes[0];n=n.childNodes[0];n=n.childNodes[1];i=n.childNodes[0]}}else i=filterTable.firstChild;if(i.tagName=="DIV")i=i.childNodes[0];var m=i.href;m=m.replace(/%20/g," ");if(m.indexOf("'ascending'")>0){e=m;f=m.replace("'ascending'","'descending'")}else{f=m;e=m.replace("'descending'","'ascending'")}}d=d.toLowerCase();if(d=="dateTime"){CAMOptFilter(b,a,Strings.STS.L_OldestOnTop_Text,e,g,true,"fmi_asc");CAMOptFilter(b,a,Strings.STS.L_NewestOnTop_Text,f,h,true,"fmi_desc")}else if(d=="integer"||d=="number"||d=="currency"){CAMOptFilter(b,a,Strings.STS.L_SmallestOnTop_Text,e,g,true,"fmi_asc");CAMOptFilter(b,a,Strings.STS.L_LargestOnTop_Text,f,h,true,"fmi_desc")}else if(d=="text"||d=="user"||d=="string"){CAMOptFilter(b,a,Strings.STS.L_AOnTop_Text,e,g,true,"fmi_asc");CAMOptFilter(b,a,Strings.STS.L_ZOnTop_Text,f,h,true,"fmi_desc")}else if(d=="calculated"){var p=filterTable.getAttribute("ResultType");if(p=="Number"||p=="Currency"){CAMOptFilter(b,a,Strings.STS.L_SmallestOnTop_Text,e,g,true,"fmi_asc");CAMOptFilter(b,a,Strings.STS.L_LargestOnTop_Text,f,h,true,"fmi_desc")}else if(p=="dateTime"){CAMOptFilter(b,a,Strings.STS.L_OldestOnTop_Text,e,g,true,"fmi_asc");CAMOptFilter(b,a,Strings.STS.L_NewestOnTop_Text,f,h,true,"fmi_desc")}else if(p=="boolean"){CAMOptFilter(b,a,Strings.STS.L_Ascending_Text,e,g,true,"fmi_asc");CAMOptFilter(b,a,Strings.STS.L_Descending_Text,f,h,true,"fmi_desc")}else{CAMOptFilter(b,a,Strings.STS.L_AOnTop_Text,e,g,true,"fmi_asc");CAMOptFilter(b,a,Strings.STS.L_ZOnTop_Text,f,h,true,"fmi_desc")}}else if(d=="attachments"){CAMOptFilter(b,a,Strings.STS.L_BlanksOnTop_Text,e,g,true,"fmi_asc");CAMOptFilter(b,a,Strings.STS.L_AttachmentsOnTop_Text,f,h,true,"fmi_desc")}else if(d=="lookup"){var u=filterTable.getAttribute("Name");if(u=="Last_x0020_Modified"||u=="Created_x0020_Date"){CAMOptFilter(b,a,Strings.STS.L_OldestOnTop_Text,e,g,true,"fmi_asc");CAMOptFilter(b,a,Strings.STS.L_NewestOnTop_Text,f,h,true,"fmi_desc")}else{CAMOptFilter(b,a,Strings.STS.L_Ascending_Text,e,g,true,"fmi_asc");CAMOptFilter(b,a,Strings.STS.L_Descending_Text,f,h,true,"fmi_desc")}}else{CAMOptFilter(b,a,Strings.STS.L_Ascending_Text,e,g,true,"fmi_asc");CAMOptFilter(b,a,Strings.STS.L_Descending_Text,f,h,true,"fmi_desc")}CAMSep(b);CAMSep(a)}function CAMOptFilter(h,g,d,f,c,b,e){var a;a=CAMOpt(h,d,f,c);a.id=e;if(!b){a.setAttribute("enabled","false");a.disabled=true}a=CAMOpt(g,d,f,c);a.id=e+"_p";if(!b){a.setAttribute("enabled","false");a.disabled=true}}function ShowFilterLoadingMenu(){!bIsFilterDataLoaded&&filterTable!=null&&FilterOMenu(loadingFilterMenu,filterTable)}function IsFieldNotFilterable(a){return a.getAttribute("Filterable")=="FALSE"||a.getAttribute("FilterDisable")=="TRUE"||a.getAttribute("FieldType ")=="Note"||a.getAttribute("FieldType ")=="URL"?true:false}function addFilteringDisabledMenuItem(a){FilterOMenu(a,filterTable);a._onDestroy=OnMouseOutFilter}function addFilterMenuItems(n,k){if(IsFieldNotFilterable(filterTable)){addFilteringDisabledMenuItem(n);return}var e=document.getElementById("FilterIframe"+filterTable.getAttribute("CtxNum"));if(e==null)return;var c=ctxFilter.queryString;if(null==c||c=="")c=e.getAttribute("FilterLink");(c==null||c=="")&&window.alert("Unexpected");if(c=="?"){var r=ajaxNavigate.getParam("InplviewHash"+ctxFilter.view);if(Boolean(r))c+=DecodeHashAsQueryString(r)}var h=escapeProperly(filterTable.getAttribute("Name"));strFilteredValue=null;var a="",d=0,b,f;do{d++;var s=false;b=c.match(new RegExp("FilterField"+String(d)+"=[^&#]*"));if(!Boolean(b))b=c.match(new RegExp("FilterFields"+String(d)+"=[^&#]*"));f=c.match(new RegExp("&FilterValue"+String(d)+"=[^&#]*"));if(!Boolean(f)){f=c.match(new RegExp("&FilterValues"+String(d)+"=[^&#]*"));s=true}if(b!=null&&f!=null){if(strFilteredValue==null){strFilteredValue=getFilterValueFromUrl(b.toString()+f.toString(),h);bIsMultiFilter=s}a=a+"&"+b.toString()+f.toString();var q=c.match(new RegExp("&FilterOp"+String(d)+"=[^&#]*"));if(q!=null)a=a+q.toString();var i=c.match(new RegExp("&FilterLookupId"+String(d)+"=[^&#]*"));if(i!=null)a=a+i.toString();var m=c.match(new RegExp("&FilterData"+String(d)+"=[^&#]*"));if(m!=null)a=a+m.toString();if(i!=null&&m==null&&strFilteredValue!=null){addFilteringDisabledMenuItem(n);return}}}while(null!=b);var p=strFilteredValue!=null,t=StBuildParam(Strings.STS.L_DontFilterBy_Text,filterTable.getAttribute("DisplayName")),u="javascript:HandleFilter(event, '"+STSScriptEncode(FilterFieldV3(ctxFilter.view,h,"",0,ctxFilter.queryString,true))+"')",l;if(p)l=GetThemedImageUrl("DeleteFilterGlyph.png");else l=GetThemedImageUrl("DisabledDeleteFilterGlyph.png");CAMOptFilter(n,k,t,u,l,p,"fmi_clr");var v=CAMOpt(k,Strings.STS.L_Loading_Text,"");v.setAttribute("enabled","false");setTimeout("ShowFilterLoadingMenu()",500);k._onDestroy=OnMouseOutFilter;b=c.match(new RegExp("MembershipGroupId=[^&]*"));if(b!=null)a=a+"&"+b.toString();b=c.match(new RegExp("InstanceID=[^&]*"));if(b!=null)a=a+"&"+b.toString();if(a!=null&&a.length>0){if(ctxFilter.overrideFilterQstring!=null&&ctxFilter.overrideFilterQstring.length>0)a="&"+ReconcileQstringFilters(a.substring(1),ctxFilter.overrideFilterQstring)}else if(ctxFilter.overrideFilterQstring!=null&&ctxFilter.overrideFilterQstring.length>0)a="&"+ctxFilter.overrideFilterQstring;var j="",g;if(ctxFilter!=null&&(g=ctxFilter.clvp)!=null&&g.rootFolder!=null&&g.rootFolder.length>0)j="&RootFolder="+escapeProperlyCore(g.rootFolder,false);else{b=c.match(new RegExp("RootFolder=[^&]*"));if(b!=null)j="&"+b.toString()}var o="";b=a.match(new RegExp("OverrideScope=[^&]*"));if(ctxFilter!=null&&typeof ctxFilter.overrideScope!="undefined"&&b==null)o="&OverrideScope="+escapeProperlyCore(ctxFilter.overrideScope,false);if(browseris.safari){e.src="/_layouts/15/blank.htm";e.style.offsetLeft="-550px";e.style.offsetTop="-550px";e.style.border="0px";e.style.display="block"}e.src=ctxFilter.HttpRoot+"/_layouts/15/filter.aspx?ListId="+ctxFilter.listName+j+o+"&FieldInternalName="+h+"&ViewId="+ctxFilter.view+"&FilterOnly=1&Filter=1"+a;bMenuLoadInProgress=true}function getFilterValueFromUrl(b,f){var a,c,e;a=b.indexOf("=");if(a==-1)return null;c=b.indexOf("&");if(c==-1)return null;if(c500)addFilterOptionMenuItem();else for(var d=i.childNodes,c=1;c",a),l=StBuildParam(Strings.STS.L_DontFilterBy_Text,strFieldName),i,e="",c,f;if(d0){f=b.lastIndexOf('"',c-1);if(f>0)e=b.substring(f+1,c)}}if(d==a-1)i=GetThemedImageUrl("DisabledDeleteFilterGlyph.png");else i=GetThemedImageUrl("DeleteFilterGlyph.png");var g;if(a>0){g=CAMOpt(currentFilterMenu,l,e,i);g.setAttribute("enabled",d==a-1?"false":"true");c=a;var m='