function ULS_core(){if (ULS_core.caller){ULS_core.caller.ULSTeamName = "Windows SharePoint Services 4";ULS_core.caller.ULSFileName = "core.js";}}
function GetXMLHttpRequestObject(){ULS_core();return new XMLHttpRequest}function insertAdjacentElement(a,c,b){ULS_core();if(a.insertAdjacentElement)return a.insertAdjacentElement(c,b);switch(c){case "beforeBegin":return a.parentNode.insertBefore(b,a);break;case "afterBegin":return a.insertBefore(b,a.firstChild);break;case "beforeEnd":return a.appendChild(b);break;case "afterEnd":if(a.nextSibling)return a.parentNode.insertBefore(b,a.nextSibling);else return a.parentNode.appendChild(b)}}function insertAdjacentHTML(a,c,b){ULS_core();if(a.insertAdjacentHTML)return a.insertAdjacentHTML(c,b);var d=a.ownerDocument.createRange();d.setStartBefore(a);var e=d.createContextualFragment(b);return insertAdjacentElement(a,c,e)}function insertAdjacentText(a,c,b){ULS_core();if(a.insertAdjacentText)return a.insertAdjacentText(c,b);var d=document.createTextNode(b);return insertAdjacentElement(a,c,d)}function contains(c,a){ULS_core();var b=false;do{if(b=c==a)break;a=a.parentNode}while(a!=null);return b}function getFirstElementByName(b,c){ULS_core();if(b.name==c)return b;var a=b.firstChild;while(a&&a!="undefined"){var d=getFirstElementByName(a,c);if(d)return d;a=a.nextSibling}}var IsMenuShown=false,itemTableDeferred=null,itemTable=null,imageCell=null,onKeyPress=false,downArrowText=null,currentCtx=null,currentEditMenu=null,currentItemID=null,currentItemAppName=null,currentItemProgId=null,currentItemIcon=null,currentItemOpenControl=null,currentItemFileUrl=null,currentItemFSObjType=null,currentItemContentTypeId=null,currentItemCheckedOutUserId=null,currentItemCheckoutExpires=null,currentItemModerationStatus=null,currentItemUIString=null,currentItemCheckedoutToLocal=null,bIsCheckout=0,currentItemCanModify=null,currentItemPermMaskH=null,currentItemPermMaskL=null,currentItemIsEventsExcp=null,currentItemIsEventsDeletedExcp=null,currentItemContentTypeId=null,UTF8_1ST_OF_2=192,UTF8_1ST_OF_3=224,UTF8_1ST_OF_4=240,UTF8_TRAIL=128,HIGH_SURROGATE_BITS=55296,LOW_SURROGATE_BITS=56320,SURROGATE_6_BIT=64512,SURROGATE_ID_BITS=63488,SURROGATE_OFFSET=65536;function escapeProperlyCoreCore(f,g,h,i){ULS_core();var c="",b="",d=0,k=" \"%<>'&";if(typeof f=="undefined")return "";for(d=0;d<f.length;d++){var a=f.charCodeAt(d),e=f.charAt(d);if(g&&(e=="#"||e=="?")){c+=f.substr(d);break}if(h&&e=="&"){c+=e;continue}if(a<=127){if(i)c+=e;else if(a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||g&&(a>=32&&a<=95)&&k.indexOf(e)<0)c+=e;else if(a<=15)c+="%0"+a.toString(16).toUpperCase();else if(a<=127)c+="%"+a.toString(16).toUpperCase()}else if(a<=2047){b=UTF8_1ST_OF_2|a>>6;c+="%"+b.toString(16).toUpperCase();b=UTF8_TRAIL|a&63;c+="%"+b.toString(16).toUpperCase()}else if((a&SURROGATE_6_BIT)!=HIGH_SURROGATE_BITS){b=UTF8_1ST_OF_3|a>>12;c+="%"+b.toString(16).toUpperCase();b=UTF8_TRAIL|(a&4032)>>6;c+="%"+b.toString(16).toUpperCase();b=UTF8_TRAIL|a&63;c+="%"+b.toString(16).toUpperCase()}else if(d<f.length-1){var a=(a&1023)<<10;d++;var j=f.charCodeAt(d);a|=j&1023;a+=SURROGATE_OFFSET;b=UTF8_1ST_OF_4|a>>18;c+="%"+b.toString(16).toUpperCase();b=UTF8_TRAIL|(a&258048)>>12;c+="%"+b.toString(16).toUpperCase();b=UTF8_TRAIL|(a&4032)>>6;c+="%"+b.toString(16).toUpperCase();b=UTF8_TRAIL|a&63;c+="%"+b.toString(16).toUpperCase()}}return c}function escapeProperly(a){ULS_core();return escapeProperlyCoreCore(a,false,false,false)}function escapeProperlyCore(b,a){ULS_core();return escapeProperlyCoreCore(b,a,false,false)}function escapeUrlForCallback(a){ULS_core();var c=a.indexOf("#"),b=a.indexOf("?");if(c>0&&(b==-1||c<b)){var d=a.substr(0,c);if(b>0)d+=a.substr(b);a=d}return escapeProperlyCoreCore(a,true,false,true)}function PageUrlValidation(a){ULS_core();if(a.substr(0,4)=="http"||a.substr(0,1)=="/"||a.indexOf(":")==-1)return a;else{var L_InvalidPageUrl_Text="Invalid page URL: ";alert(L_InvalidPageUrl_Text);return ""}}function setStatusBarClass(b){ULS_core();var a=document.getElementById("pageStatusBar");if(a)a.className=b}function FFUniqueId(b){ULS_core();var d=0,c=document.getElementById(b),a=b;while(c!=null){a=b+"_"+d;c=document.getElementById(a);d++}return a}function addStatus(d,h,g){ULS_core();var c=document.getElementById("pageStatusBar");if(c!=null){c.setAttribute("aria-live","polite");c.setAttribute("aria-relevant","all");var a=document.createElement("SPAN");if(browseris.ie)a.id=a.uniqueID;else a.id=FFUniqueId(escapeProperly(d));var b=[];b.push("<b>");b.push(d);b.push("</b>&#160;<span id='");b.push(a.id);b.push("_body");b.push("'>");b.push(h);b.push("</span>&#160;&#160;");a.innerHTML=b.join("");a.setAttribute("role","status");if(!g)c.appendChild(a);else{var e=c.getElementsByTagName("SPAN"),f=e.length>0?e[0]:null;if(f!=null)c.insertBefore(a,f);else c.appendChild(a)}c.style.display="block";return a.id}}function removeAllStatus(b){ULS_core();var a=document.getElementById("pageStatusBar");if(a!=null)a.innerHTML="&#160;";if(b&&a!=null)a.style.display="none"}function SelectRibbonTab(b,c){ULS_core();var a=null;try{a=SP.Ribbon.PageManager.get_instance().get_ribbon()}catch(d){}if(!a)_ribbonStartInit(b,false,null);else if(c||a.get_selectedTabId()=="Ribbon.Read")a.selectTabById(b)}var L_Edit_Text="Edit",L_SharepointSearch_Text="Search",L_CreateWebPageDialogWidth_Text="400",L_CreateWebPageDialogHeight_Text="300",g_ExpGroupWPState=new LRUCache;function NotifyBrowserOfAsyncUpdate(){ULS_core();var b="__spAjaxIframe",a=document.getElementById(b);if(a==null){a=document.createElement("IFRAME");a.name=a.id=b;a.width=a.height=0;a.src="about:blank";a.style.display="none";document.body.appendChild(a)}window.frames[b].location.replace("/_layouts/images/blank.gif?"+(new Date).valueOf())}function makeAbsUrl(a){ULS_core();if(a.length>0&&"/"==a.substr(0,1))a=window.location.protocol+"//"+window.location.host+a;return a}function FilterNoteField(b,d,e,j){ULS_core();if(j!=13)return;event.returnValue=false;var a=window.location.href;pagedPart=/&Paged=TRUE&p_[^&]*&PageFirstRow=[^&]*/gi;a=a.replace(pagedPart,"");viewGuid=GetUrlKeyValue("View",true);if(viewGuid==""){a=StURLSetVar2(a,"View",b);viewGuid=b}if(b.toUpperCase()!=viewGuid.toUpperCase()){var g=escapeProperly(b);if(g.toUpperCase()!=viewGuid.toUpperCase()){var k=/\?[^?]*/i,f=a.indexOf("?");if(f!=-1)a=a.replace(k,"?View="+b);else a=a+"?View="+b}}var c=a.match("FilterField([0-9]+)="+d);if(!c){var f=a.indexOf("?");if(f!=-1)a=a+"&";else a=a+"?";i=0;do{i++;FilterArray=a.match("FilterField"+i+"=[^&]*"+"&FilterValue"+i+"=[^&]*")}while(FilterArray);a=a+"FilterField"+i+"="+d+"&FilterValue"+i+"="+escapeProperly(e);a=a.replace("Filter=1&","")}else{filterNo=parseInt(c[1]);var h=a.match("&FilterValue"+filterNo+"=[^&]*");strTemp="&"+c[0]+h[0];strNewFilter="&FilterField"+c[1]+"="+d+"&FilterValue"+c[1]+"="+escapeProperly(e);a=a.replace(strTemp,strNewFilter);a=a.replace("Filter=1&","")}window.location.href=STSPageUrlValidation(a)}function SelectField(b,k){ULS_core();var a=window.location.href,g=window.location.hash,c=false,f=/\#.*/i;a=a.replace(f,"");viewGuid=GetUrlKeyValue("View",true);pageView=GetUrlKeyValue("PageView",true);var h=GetUrlKeyValue("ID",true),e=GetUrlKeyValue("ContentTypeId",true);if(b.toUpperCase()!=viewGuid.toUpperCase()){var i=escapeProperly(b);if(i.toUpperCase()!=viewGuid.toUpperCase()){var f=/\?[^?]*/i,j=a.indexOf("?");if(j!=-1)a=a.replace(f,"?View="+b);else a=a+"?View="+b;c=true}}if(!c&&GetUrlKeyValue("SelectedID")!=""){var d=/&SelectedID=[^&]*/gi;a=a.replace(d,"");d=/\?SelectedID=[^&]*&?/;a=a.replace(d,"?")}a=a+"&SelectedID=";a=a+k;if(c&&pageView!="")a=a+"&PageView="+pageView;if(h!="")a=a+"&ID="+h;if(e!="")a=a+"&ContentTypeId="+e;if(g!="")a=a+g;SubmitFormPost(a);return false}function FilterField(d,b,a,c){ULS_core();return FilterFieldV3(d,b,a,c,false)}function FilterFieldV3(e,k,o,q,u){ULS_core();var a=CanonicalizeUrlEncodingCase(window.location.href),l=new CUrl(a);a=l.query;var b=a.match("[&?]Paged=TRUE[^&]*");if(b){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("[?]Paged=TRUE[^&]*");if(b){var f=a.substr(b["index"]).indexOf("&");if(f!=-1)a=a.substr(0,b["index"]+1)+a.substr(f+b["index"]+1);else a=a.substr(0,b["index"])}else{c=/&Paged=TRUE[^&]*/i;a=a.replace(c,"")}}viewGuid=GetUrlKeyValue("View",true);if(viewGuid==""){a=StURLSetVar2(a,"View",e);viewGuid=e}if(e.toUpperCase()!=viewGuid.toUpperCase()){var t=escapeProperly(e);if(t.toUpperCase()!=viewGuid.toUpperCase()){var v=/\?[^?]*/i,f=a.indexOf("?");if(f!=-1)a=a.replace(v,"?View="+e);else a=a+"?View="+e}}b=a.match("FilterField([0-9]+)="+k+"&");if(!b)if(0==q){a=a.replace("Filter=1&","");a=a.replace("?Filter=1","")}else{var f=a.indexOf("?");if(f!=-1)a=a+"&";else a=a+"?";i=0;do{i++;FilterArray=a.match("FilterField"+i+"=[^&]*")}while(FilterArray);a=a+"FilterField"+i+"="+k+"&FilterValue"+i+"="+escapeProperly(o);a=a.replace("Filter=1&","")}else{filterNo=parseInt(b[1]);var h=a.match("FilterValue"+filterNo+"=[^&]*"),r=a.match("&FilterOp"+filterNo+"=[^&]*"),n=a.match("&FilterLookupId"+filterNo+"=[^&]*"),p=a.match("&FilterData"+filterNo+"=[^&]*"),d="&"+b[0]+h[0];if(0==q){if(a.indexOf(d)==-1)d=b[0]+h[0]+"&";a=a.replace(d,"");if(r)a=a.replace(r[0],"");if(n)a=a.replace(n[0],"");if(p)a=a.replace(p[0],"");j=filterNo+1;FilterArray=a.match("FilterField"+j+"=[^&]*");for(i=filterNo;FilterArray;i++){strNew="FilterField"+i;strOld="FilterField"+j;a=a.replace(strOld,strNew);strNew="FilterValue"+i;strOld="FilterValue"+j;a=a.replace(strOld,strNew);strNew="FilterOp"+i;strOld="FilterOp"+j;a=a.replace(strOld,strNew);strNew="FilterLookupId"+i;strOld="FilterLookupId"+j;a=a.replace(strOld,strNew);strNew="FilterData"+i;strOld="FilterData"+j;a=a.replace(strOld,strNew);j++;FilterArray=a.match("FilterField"+j+"=[^&]*")}a=a.replace("Filter=1&","");a=a.replace("?Filter=1","")}else{var g;if(a.indexOf(d)==-1){d="?"+b[0]+h[0];g="?"}else g="&";var s=g+"FilterField"+b[1]+"="+k+"&FilterValue"+b[1]+"="+escapeProperly(o);a=a.replace(d,s);a=a.replace("Filter=1&","")}}b=a.match("FilterField([0-9]+)=");if(!b)a=a+"&FilterClear=1";else a=a.replace("&FilterClear=1","");l.query=a;a=l.ToString();if(u){var m=a.indexOf("?");m=a.substr(m+1).indexOf("?");if(m>=0)debugger;return a}else SubmitFormPost(a)}function CanonicalizeUrlEncodingCase(c){ULS_core();var b="",a;for(a=0;a<c.length;a++){var d=c.charAt(a);if(d=="%"&&a+2<c.length){b+=d;a++;b+=c.charAt(a).toString().toUpperCase();a++;b+=c.charAt(a).toString().toUpperCase()}else b+=d}return b}function SetControlValue(b,c){ULS_core();var a=document.getElementById(b);if(a!=null)a.value=c}var bValidSearchTerm=false;function SetSearchView(){ULS_core();if(typeof bValidSearchTerm!="undefined")bValidSearchTerm=true}function FV4UI(){ULS_core();return typeof _fV4UI!="undefined"&&_fV4UI}function FV4Dialog(){ULS_core();return typeof _fV4Dialog!="undefined"&&_fV4Dialog}function GroupCollapse(){ULS_core();return typeof _groupCollapse!="undefined"&&_groupCollapse}function HandleFilter(c,b){ULS_core();if(FV4UI()){var a;try{a=typeof inplview.HandleFilterReal}catch(g){a="undefined"}if(a!="undefined")inplview.HandleFilterReal(c,b);else{var f="inplview.HandleFilterReal",d=f.split(".");if(d.length>1){var e=function(){ULS_core();inplview.HandleFilterReal(c,b)};EnsureScript(d[0],a,e)}}return}SubmitFormPost(b)}function SubmitFormPost(b,c){ULS_core();if(typeof MSOWebPartPageFormName!="undefined"){var a=document.forms[MSOWebPartPageFormName];if(null!=a)if(c!=undefined&&c==true||!a.onsubmit||a.onsubmit()!=false){if(window.location.search.match("[?&]IsDlg=1"))b+=b.indexOf("?")==-1?"?IsDlg=1":"&IsDlg=1";a.action=STSPageUrlValidation(b);a.method="POST";if(isPortalTemplatePage(b))a.target="_top";if(!bValidSearchTerm)ClearSearchTerm("");a.submit()}}}function RefreshPageTo(c,b,a){ULS_core();return SubmitFormPost(b,a)}var g_varSkipRefreshOnFocus=0;function RefreshOnFocus(){ULS_core();if(typeof g_varSkipRefreshOnFocus=="undefined"||!g_varSkipRefreshOnFocus)RefreshPage(1)}function RefreshOnFocusForOneRow(){ULS_core();RefreshOnFocus()}function DisableRefreshOnFocus(){ULS_core();g_varSkipRefreshOnFocus=1}function SetWindowRefreshOnFocus(){ULS_core();window.onbeforeunload=DisableRefreshOnFocus;window.onfocus=RefreshOnFocus}function RemoveParametersFromUrl(a){ULS_core();var b=a.indexOf("?");if(b==-1)return a;else return a.substr(0,b)}function GoToPageRelative(a){ULS_core();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(a){ULS_core();var b=RemoveParametersFromUrl(window.location.href),c=RemoveParametersFromUrl(a);if(c.toLowerCase()!=b.toLowerCase())STSNavigate(a);else SubmitFormPost(a)}function HandleFolder(o,d,p,h,e,g,l,j,c,b,a,k,m,i,f,n){ULS_core();if(c&&c!=""||b&&b!=""||a&&a!="")DispEx(o,d,h,e,g,l,j,c,b,a,k,m,i,f,n);else{if(d)CancelEvent(d);EnterFolder(p)}}function GoToDiscussion(b){ULS_core();var c=b.indexOf("?")>=0?"&":"?",a=GetSource();if(a!=null&&a!="")b+=c+"TopicsView="+a;STSNavigate(b)}function EditItemWithCheckoutAlert(h,a,g,b,e,f,d,c){ULS_core();if(CheckoutAlertBeforeNavigate(a,g,b,e,f,d,c))EditItem2(h,a)}function STSNavigateWithCheckoutAlert(a,g,b,e,f,d,c){ULS_core();if(CheckoutAlertBeforeNavigate(a,g,b,e,f,d,c))STSNavigate(a)}function ShowInPopUI(b,a,c){ULS_core();var d=function(){ULS_core();if(a==null&&b.fromRibbon&&b.currentCtx)a=b.currentCtx;if(typeof a!="undefined"&&a!=null&&a.clvp!=null){var d=a.clvp;GetFocusInfo(b,d);d.ShowPopup(c)}else STSNavigate(c)};EnsureScript("inplview",typeof inplview,d)}function TakeOfflineDisabled(e,c,d,b){ULS_core();try{var a=new ActiveXObject("Groove.SiteClientActiveX");if(a!=null&&a.IsOfflineAllowed(e,c,d,b))return false;else return true}catch(f){}return true}function TakeOfflineToClient(sitetemplate,siteurl,listbasetype,listtemplateid,listguid,folderId,viewId){ULS_core();var scope=3,folderGuid="";viewId=viewId.toUpperCase();var ctxNum=g_ViewIdToViewCounterMap[viewId];if(typeof ctxNum=="undefined"||ctxNum==null)return;eval("var ctxT=ctx"+ctxNum+";");if(ctxT==null)return;if(!CanNavigateUp(ctxT)){scope=2;folderGuid=""}else folderGuid=folderId;if(TakeOfflineDisabled(scope,sitetemplate,listbasetype,listtemplateid))return;TakeOfflineToClientReal(scope,sitetemplate,siteurl,listbasetype,listtemplateid,listguid,folderGuid)}function TakeOfflineToClientReal(e,d,i,c,a,h,g){ULS_core();try{if(TakeOfflineDisabled(e,d,c,a))return;var b=new ActiveXObject("Groove.SiteClientActiveX");if(b!=null)b.TakeOffline(e,d,i,c,a,h,g)}catch(f){alert(f.message)}}function EditDocumentProps(Url,bCheckout,bIsCheckedOutToLocal,strDocument,strhttpRoot,ctxNum){ULS_core();if(CheckoutAlertBeforeNavigate(Url,bCheckout,bIsCheckedOutToLocal,strDocument,strhttpRoot,null,null)){eval("var ctxT=ctx"+ctxNum+";");if(ctxT!=null&&ctxT.clvp!=null){var clvp=ctxT.clvp;if(FV4UI()){clvp.ShowPopup(Url);return false}}STSNavigate(Url)}}function CheckoutAlertBeforeNavigate(g,f,d,c,e,a,b){ULS_core();if(typeof a=="undefined"||a==null||a=="")a=currentItemCheckedOutUserId;if((typeof b=="undefined"||b==null||b=="")&&typeof ctx!="undefined")b=ctx.CurrentUserId;if(d=="1"){alert(L_CannotEditPropertyForLocalCopy_Text);return false}if(a!=null&&a!=""&&b!=null&&a!=b){alert(L_CannotEditPropertyCheckout_Text);return false}if(f=="1")if(confirm(L_ConfirmCheckout_Text)){if(c.charAt(0)=="/"||c.substr(0,3).toLowerCase()=="%2f")c=document.location.protocol+"//"+document.location.host+c;return CheckoutviaXmlhttp(e,c)}else return false;return true}function CheckoutviaXmlhttp(c,b){ULS_core();var a,e;a=new XMLHttpRequest;if(a==null)return false;a.open("POST",c+"/_vti_bin/lists.asmx",false);a.setRequestHeader("Content-Type","text/xml; charset=utf-8");a.setRequestHeader("SOAPAction","http://schemas.microsoft.com/sharepoint/soap/CheckOutFile");var d='<?xml version="1.0" encoding="utf-8"?>'+'<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" '+'xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">'+"<soap:Body>"+'<CheckOutFile xmlns="http://schemas.microsoft.com/sharepoint/soap/"><pageUrl>'+b+"</pageUrl></CheckOutFile></soap:Body></soap:Envelope>";a.send(d);if(a.status==200&&a.responseText.indexOf("true")!=0)return true;else return false}var g_ExtensionNotSupportCheckoutToLocal=["ascx","asp","aspx","htm","html","master","odc","exe","bat","com","cmd","onetoc2"],g_ExtensionDefaultForRead=["jpg","jpeg","bmp","png","gif","onetoc2","one","odc"];function FSupportCheckoutToLocal(a){ULS_core();var c=true;if(a==null||a=="")return false;a=a.toLowerCase();var b=0;for(b=0;b<g_ExtensionNotSupportCheckoutToLocal.length;b++)if(a==g_ExtensionNotSupportCheckoutToLocal[b])return false;return true}function FDefaultOpenForReadOnly(a){ULS_core();var c=false;if(a==null||a=="")return true;a=a.toLowerCase();var b=0;for(b=0;b<g_ExtensionDefaultForRead.length;b++)if(a==g_ExtensionDefaultForRead[b])return true;return false}function CheckoutDocument(h,a,e){ULS_core();var c=null,d=true,b=false;if(a.charAt(0)=="/"||a.substr(0,3).toLowerCase()=="%2f")a=document.location.protocol+"//"+document.location.host+a;var g=SzExtension(unescapeProperly(a));if(FSupportCheckoutToLocal(g)&&e=="SharePoint.OpenDocuments.3")c=StsOpenEnsureEx2(e);if(c!=null)try{d=c.CheckoutDocumentPrompt(unescapeProperly(a),false,"");if(d)SetWindowRefreshOnFocus();b=d;if(b||!IsSupportedMacBrowser())return true}catch(i){}if(!b){var f="FileName="+escapeProperly(unescapeProperly(a))+"&Checkout=true";if(window.frameElement!=null&&window.frameElement.commitPopup!=null)f+="&IsDlg=1";NavigateToCheckinAspx(h,f)}return true}function NewItem2(a,b){ULS_core();if(FV4UI()){if(a!=null){var c=function(){ULS_core();var b=CLVPFromEventReal(a);GetFocusInfo(a,b)};EnsureScript("inplview",typeof InitAllClvps,c)}OpenPopUpPage(b,RefreshPage);return false}else NewItem(b)}function NewItem(a){ULS_core();GoToPage(a)}function EditItem2(a,b){ULS_core();if(FV4UI()){if(a!=null){var c=function(){ULS_core();var b=CLVPFromEventReal(a);GetFocusInfo(a,b)};EnsureScript("inplview",typeof InitAllClvps,c)}OpenPopUpPage(b,RefreshPage);return false}EditItem(b)}function EditItem(a){ULS_core();GoToPage(a)}function RefreshPage(h){ULS_core();if(h==1){var b=null;try{b=SP.Ribbon.PageManager.get_instance().get_ribbon().get_selectedTabId()}catch(j){}var f=window.location.href;if(b){var e=f.split("?"),g="?";if(e&&e.length==2){var c=e[1].split("&"),d="";for(var a=0;a<c.length;a++)if(c[a].indexOf("InitialTabId")!=0&&c[a].indexOf("VisibilityContext")!=0){if(d.length!=0)d+="&";d+=c[a]}f=e[0]+"?"+d;g="&"}if(b!="Ribbon.Read")f+=g+"InitialTabId="+escapeProperly(b)+"&VisibilityContext=WSSTabPersistence"}SubmitFormPost(f,true)}else{var i=function(){ULS_core();SetFocusBack(h)};EnsureScript("inplview",typeof InitAllClvps,i)}}function OpenPopUpPageWithTitle(f,b,e,c,d){ULS_core();var g=function(){ULS_core();var a={url:f,args:null,title:d,dialogReturnValueCallback:b,width:e,height:c},g=SP.UI.ModalDialog.showModalDialog(a)},a;try{a=typeof SP.UI.ModalDialog.showModalDialog}catch(h){a="undefined"}EnsureScript("SP.UI.Dialog.js",a,g)}function OpenPopUpPage(d,a,c,b){ULS_core();OpenPopUpPageWithTitle(d,a,c,b,null)}function OpenCreateWebPageDialog(b){ULS_core();var a=parseInt(L_CreateWebPageDialogWidth_Text),c=parseInt(L_CreateWebPageDialogHeight_Text);if(isNaN(a))a=400;if(isNaN(c))a=300;b=StURLSetVar2(b,"Url",window.location.href);OpenPopUpPage(b,null,a,c)}function GoToHistoryLink(b,d){ULS_core();if(b.href==null)return;var c=b.href,f=b.href.indexOf("?")>=0?"&":"?",e=f+"VersionNo="+d,a=GetSource();if(a!=null&&a!="")a="&"+"Source="+a;var c=b.href+e+a;if(isPortalTemplatePage(c))window.top.location=STSPageUrlValidation(c);else window.location=STSPageUrlValidation(c)}function GetGotoLinkUrl(b){ULS_core();if(b.href==null)return null;var d=b.href.indexOf("?")>=0?"&":"?",a=GetSource();if(a!=null&&a!="")a=d+"Source="+a;var c=b.href+a;return c}function GoToLink(b){ULS_core();var a=GetGotoLinkUrl(b);if(a==null)return;if(isPortalTemplatePage(a))window.top.location=STSPageUrlValidation(a);else window.location=STSPageUrlValidation(a)}function GoToLinkOrDialogNewWindow(a){ULS_core();if(a.href==null)return;if(window.location.search.match("[?&]IsDlg=1"))window.open(a.href);else GoToLink(a)}function PreventDefaultNavigation(){ULS_core();var a=window.event;if(a)if(!a.preventDefault)a.returnValue=false;else a.preventDefault()}function EditLink2(elm,ctxNum){ULS_core();var fn=function(){ULS_core();var url=GetGotoLinkUrl(elm);if(url==null)return;eval("var ctxT=ctx"+ctxNum+";");if(ctxT!=null&&ctxT.clvp!=null){var clvp=ctxT.clvp;if(FV4UI()){PreventDefaultNavigation();clvp.ShowPopup(url);return false}}GoToLink(elm)};EnsureScript("inplview",typeof inplview,fn)}function EditLink(b,c){ULS_core();if(FV4UI()){var a;try{a=typeof inplview.EditLink2}catch(g){a="undefined"}if(a!="undefined")inplview.EditLink2(b,c);else{var f="inplview.EditLink2",d=f.split(".");if(d.length>1){var e=function(){ULS_core();inplview.EditLink2(b,c)};EnsureScript(d[0],a,e)}}}else GotoLink(b)}function GoBack(a){ULS_core();window.location.href=unescapeProperly(GetSource(a))}function ReplyItem(a,b,d,c){ULS_core();if(b.length>=504){var L_ReplyLimitMsg_Text="Cannot reply to this thread. The reply limit has been reached.";alert(L_ReplyLimitMsg_Text)}else{a+="?Threading="+b;a+="&Guid="+d;a+="&Subject="+c;GoToPage(a)}}function GoBacktoCurrentIssue(a,b){ULS_core();a+="?ID="+b;GoToPage(a)}function CatchCreateError(){ULS_core();return true}function ExportToDatabase(c,d,e,b){ULS_core();var L_NoWSSClient_Text="To export a list, you must have a Windows SharePoint Services-compatible application and Microsoft Internet Explorer 6.0 or greater.",L_ExportDBFail_Text="Export to database failed. To export a list, you must have a Windows SharePoint Services-compatible application.";if(browseris.ie5up&&browseris.win32)try{var a;a=new ActiveXObject("SharePoint.ExportDatabase");if(!a){alert(L_NoWSSClient_Text);return}a.SiteUrl=makeAbsUrl(c);a.ListID=d;a.ViewID=e;a.DoExport(b);a=null}catch(f){alert(L_ExportDBFail_Text);return}else alert(L_NoWSSClient_Text)}function ExportList(a){ULS_core();var L_ExportListSpreadsheet_Text="To export a list, you must have a Windows SharePoint Services-compatible application.";if(IsSupportedMacBrowser()){if(fSSImporter&&SSImporterObj.IqyExportEnabled){var b=SSImporterObj.IqyExport(makeAbsUrl(a));if(!b)window.location.href=STSPageUrlValidation(makeAbsUrl(a))}else if(confirm(L_ExportListSpreadsheet_Text))window.location.href=STSPageUrlValidation(makeAbsUrl(a))}else if(fSSImporter&&SSImporterObj.IqyImportEnabled()||confirm(L_ExportListSpreadsheet_Text))window.location.href=STSPageUrlValidation(makeAbsUrl(a))}function ExportDiagram(k,d,j,e,g,f){ULS_core();try{objDiagramLaunch=new ActiveXObject("DiagramLaunch.DiagramLauncher");var b="",h=k,c=f,a=d,i=j;objDiagramLaunch.CreateDiagram(b,h,c,a,e,g,i)}catch(l){var L_DiagramLaunchFail_Text="Unable to create diagram.";alert(L_DiagramLaunchFail_Text)}delete objDiagramLaunch}function OpenTasks(k,d,j,e,g,f){ULS_core();try{objProjectTaskLaunch=new ActiveXObject("TaskLaunch.TaskLauncher");var b="",h=k,c=f,a=d,i=j;objProjectTaskLaunch.OpenTasks(b,h,c,a,e,g,i)}catch(l){var L_OpenTasksFail_Text="Unable to open tasks.";alert(L_OpenTasksFail_Text)}delete objProjectTaskLaunch}var ListCtrlObj,fListControl=false,fListErrorShown=false,L_EditInGrid_Text="The list cannot be displayed in Datasheet view for one or more of the following reasons: \n\n- A datasheet component compatible with Windows SharePoint Services is not installed.\n- Your Web browser does not support ActiveX controls. \n- Support for ActiveX controls is disabled.";function CatchListCreateError(){ULS_core();alert(L_EditInGrid_Text);fListErrorShown=true;return false}function EnsureListControl(){ULS_core();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)fListControl=true}}ListCtrlObj=null;return fListControl}var L_NoQuestion_Text="The survey contains no questions.",L_NoVoteAllowed_Text="You are not allowed to respond again to this survey.";function IsVoteOK(a){ULS_core();if(1==a)alert(L_NoQuestion_Text);else if(2==a)alert(L_NoVoteAllowed_Text);else return true}function hasHighChar(b){ULS_core();var a=0;for(a=0;a<b.length;a++)if(b.charCodeAt(a)>127)return true;return false}function RemoveOnlyPagingArgs(a){ULS_core();var e=/&*Paged=TRUE/gi;a=a.replace(e,"");var b=/&*PagedPrev=TRUE/gi;a=a.replace(b,"");var d=/&p_[^&]*/gi;a=a.replace(d,"");var f=/&PageFirstRow=[^&]*/gi;a=a.replace(f,"");var c=/&PageLastRow=[^&]*/gi;a=a.replace(c,"");return a}function RemovePagingArgs(a){ULS_core();a=RemoveOnlyPagingArgs(a);var c=/\?Filter=1&*/gi;a=a.replace(c,"?");var d=/&Filter=1/gi;a=a.replace(d,"");var b=/\?$/;a=a.replace(b,"");return a}function ClearSearchTerm(a){ULS_core();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){ULS_core();var a=document.forms["frmSiteSearch"];if(a==null)if(typeof MSOWebPartPageFormName!="undefined")a=document.forms[MSOWebPartPageFormName];if(a!=null){var e=a.elements["SearchString"].value;if(e==L_SharepointSearch_Text){a.elements["SearchString"].value="";return true}b=b+"?k="+escapeProperly(e);var d=a.elements["SearchScope"];if(d!=null){var c=d.value;if(c)b=b+"&u="+escapeProperly(c)}a.action=b;a.submit()}return false}function ShowGridUrlInHTML(a){ULS_core();if(a.indexOf("?")>0)a=a+"&";else a=a+"?";a=a+"ShowInGrid=HTML";return a}function SearchOnBlur(){ULS_core();var a=document.forms[0];if(a.elements["idSearchString"].value==""){a.elements["idSearchString"].value=L_SharepointSearch_Text;a.elements["idSearchString"].style.color="#71869c";a.elements["idSearchString"].style.fontStyle="italic"}}function SearchOnFocus(){ULS_core();var a=document.forms[0];if(a.elements["idSearchString"].value==L_SharepointSearch_Text)a.elements["idSearchString"].value="";a.elements["idSearchString"].style.fontStyle="normal";a.elements["idSearchString"].style.color="#000"}function SubmitSearch(){ULS_core();SubmitSearchForView("")}function SubmitSearchForView(e){ULS_core();var a=document.forms[0],c="SearchString"+e,d=a.elements[c].value;if(""==d){var L_Enter_Text="Please enter one or more search words.";alert(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){ULS_core();if(a!=null){var c,b;if(browseris.ie){c=a.keyCode;b=a.altKey||a.ctrlKey}else{c=a.which;b=a.modifers&(a.ALT_MASK|a.CONTROL_MASK)}if(c==13&&!b)return true}return false}function SearchViewKeyDown(a){ULS_core();if(IsKeyDownSubmit(event))SubmitSearchForView(a)}function SearchKeyDown(b,a){ULS_core();if(IsKeyDownSubmit(b)){SubmitSearchRedirect(a);return false}return true}function AlertAndSetFocus(b,a){ULS_core();a.focus();a.select();window.alert(b)}function AlertAndSetFocusForDropdown(b,a){ULS_core();a.focus();window.alert(b)}function setElementValue(c,b){ULS_core();var a=document.getElementsByName(c).item(0);if(a==null)return false;a.value=b;return true}function GetMultipleSelectedText(b){ULS_core();if(b){var a;a="";for(var c=0;c<b.options.length;c++)if(b.options[c].selected)a+=","+b.options[c].text;if(a.length>0)a=a.substring(1);return a}else return ""}function GetCBSelectedValues(c){ULS_core();if(c==null)return;var a={};a.strList="";a.fAllChecked=true;for(var d=0;d<c.elements.length;d++){var b=c.elements[d];if(b.type=="checkbox"&&!b.disabled)if(b.checked){if(a.strList!="")a.strList+=",";a.strList+=b.value}else a.fAllChecked=false}return a}var fNewDoc=false,fNewDoc2=false,fNewDoc3=false,L_EditDocumentProgIDError_Text="'Edit Document' requires a Windows SharePoint Services-compatible application and Microsoft Internet Explorer 6.0 or greater.",L_EditDocumentRuntimeError_Text="The document could not be opened for editing.  A Windows SharePoint Services compatible application could not be found to edit the document.",L_SPDesignerDownloadWindow_Text="Microsoft Office Sharepoint Designer",SPDesignerDownloadUrl="http://r.office.microsoft.com/r/rlidBrowserToSPD",SPDesignerProgID="SharePoint.WebPartPage.Document",L_SPDesignerDownloadWindowWidth_Text="720",L_SPDesignerDownloadWindowHeight_Text="480";function editDocumentWithProgID(a,b){ULS_core();if(fNewDoc){if(a.charAt(0)=="/"||a.substr(0,3).toLowerCase()=="%2f")a=document.location.protocol+"//"+document.location.host+a;if(!fNewDoc2&&!fNewDoc3){if(!EditDocumentButton.EditDocument(a,b))alert(L_EditDocumentRuntimeError_Text)}else if(!EditDocumentButton.EditDocument2(window,a,b))alert(L_EditDocumentRuntimeError_Text)}else alert(L_EditDocumentProgIDError_Text)}function EditSite(b){ULS_core();var b=document.location.protocol+"//"+document.location.host+b,a=StsOpenEnsureEx("SharePoint.OpenDocuments.3");if(a!=null){if(!a.EditDocument3(window,b,false,SPDesignerProgID))OpenPopUpPageWithTitle(SPDesignerDownloadUrl,null,L_SPDesignerDownloadWindowWidth_Text,L_SPDesignerDownloadWindowHeight_Text,L_SPDesignerDownloadWindow_Text)}else OpenPopUpPageWithTitle(SPDesignerDownloadUrl,null,L_SPDesignerDownloadWindowWidth_Text,L_SPDesignerDownloadWindowHeight_Text,L_SPDesignerDownloadWindow_Text);window.onfocus=RefreshOnNextFocus}function editDocumentWithProgID2(d,b,g,f,e,c){ULS_core();var a=editDocumentWithProgIDNoUI(d,b,g,f,e,c);if(a==1){if(b==SPDesignerProgID)OpenPopUpPageWithTitle(SPDesignerDownloadUrl,null,L_SPDesignerDownloadWindowWidth_Text,L_SPDesignerDownloadWindowHeight_Text,L_SPDesignerDownloadWindow_Text);else alert(L_EditDocumentRuntimeError_Text);window.onfocus=RefreshOnNextFocus}else if(a==2)alert(L_EditDocumentProgIDError_Text)}function editDocumentWithProgIDNoUI(a,c,d,h,k,i){ULS_core();var b,l,g=false;d=d.replace(/(?:\.\d+)$/,"");if(a.charAt(0)=="/"||a.substr(0,3).toLowerCase()=="%2f")a=document.location.protocol+"//"+document.location.host+a;var j=SzExtension(unescapeProperly(a));if(FSupportCheckoutToLocal(j))try{b=StsOpenEnsureEx2(d+".3");if(b!=null){if(h=="1"){if(!b.CheckoutDocumentPrompt(a,true,c))return 1}else{if(i=="1")g=true;if(!b.EditDocument3(window,a,g,c))return 1}var f=false;f=b.PromptedOnLastOpen();if(f)window.onfocus=RefreshOnNextFocus;else SetWindowRefreshOnFocus();return}}catch(e){}if(h=="1")if(confirm(L_ConfirmCheckout_Text))NavigateToCheckinAspx(k,"FileName="+escapeProperly(unescapeProperly(a))+"&Checkout=true");else return;b=StsOpenEnsureEx2(d);if(b!=null){try{if(!b.EditDocument2(window,a,c))return 1;window.onfocus=RefreshOnNextFocus;return}catch(e){}try{window.onfocus=null;if(SzExtension(a)=="ppt"&&c=="")c="PowerPoint.Slide";if(!b.EditDocument(a,c))return 1;SetWindowRefreshOnFocus();return}catch(e){return 2}}return 1}function RefreshOnNextFocus(){ULS_core();SetWindowRefreshOnFocus()}function createNewDocumentWithProgID2Ex(h,d,c,f,e,g){ULS_core();var b=CLVPFromEvent(h),a=c;if(b!=null)a=b.GetSaveLocation(a);createNewDocumentWithProgID2(d,a,f,e,g)}function createNewDocumentWithProgID2(b,a,e,d,c){ULS_core();if(!createNewDocumentWithProgIDCore(b,a,e,c,false))createNewDocumentWithProgIDCore(b,a,d,c,true)}function createNewDocumentWithProgIDEx(g,d,c,e,f){ULS_core();var b=CLVPFromEvent(g),a=c;if(b!=null)a=b.GetSaveLocation(a);createNewDocumentWithProgID(d,a,e,f)}function createNewDocumentWithProgID(b,a,c,d){ULS_core();createNewDocumentWithProgIDCore(b,a,c,d,true)}function createNewDocumentWithProgIDCore(d,c,e,h,g){ULS_core();var a,L_NewDocumentRuntimeError_Text,L_NewDocumentError_Text,b=false;if(h)var L_NewDocumentRuntimeError_Text=L_NewFormLibTb1_Text,L_NewDocumentError_Text=L_NewFormLibTb2_Text;else var L_NewDocumentRuntimeError_Text=L_NewDocLibTb1_Text,L_NewDocumentError_Text=L_NewDocLibTb2_Text;try{a=StsOpenEnsureEx2(e+".2");if(!a.CreateNewDocument2(window,d,c))alert(L_NewDocumentRuntimeError_Text);b=a.PromptedOnLastOpen();if(b)window.onfocus=RefreshOnNextFocus;else SetWindowRefreshOnFocus();return true}catch(f){}try{a=StsOpenEnsureEx2(e+".1");window.onfocus=null;if(!a.CreateNewDocument(d,c))alert(L_NewDocumentRuntimeError_Text);SetWindowRefreshOnFocus();return true}catch(f){if(g)alert(L_NewDocumentError_Text)}}function createNewDocumentWithRedirect2(i,f,d,g,h,e,c){ULS_core();var b=CLVPFromEvent(i),a=d;if(b!=null)a=b.GetSaveLocation(a);createNewDocumentWithRedirect(f,a,g,h,e,c)}function createNewDocumentWithRedirect(f,b,c,g,e,a){ULS_core();if(IsClientAppInstalled(c)&&a!=1){var d=c.replace(/(?:\.\d+)$/,"");createNewDocumentWithProgID(f,b,d,g)}else STSNavigate(e+"&SaveLocation="+makeAbsUrl(escapeProperly(b))+"&Source="+GetSource()+"&DefaultItemOpen="+a)}if(typeof ExpandBody=="undefined"){var preventSafariParseError=true;function ExpandBody(c,b){ULS_core();var a=document.forms[MSOWebPartPageFormName];a.CAML_Expand.value=a.CAML_Expand.value.concat(c);a.action=a.action.concat("#"+b);a.submit();return false}}if(typeof CollapseBody=="undefined"){var preventSafariParseError=true;function CollapseBody(c,d){ULS_core();var a=document.forms[MSOWebPartPageFormName],b=new RegExp("{","g");c=c.replace(b,"\\{");b=new RegExp("}","g");c=c.replace(b,"\\}");b=new RegExp(c,"g");a.CAML_Expand.value=a.CAML_Expand.value.replace(b,"");a.CAML_ShowOriginalEmailBody.value=a.CAML_ShowOriginalEmailBody.value.replace(b,"");a.action=a.action.concat("#"+d);a.submit();return false}}if(typeof ShowQuotedText=="undefined"){var preventSafariParseError=true;function ShowQuotedText(c,b){ULS_core();var a=document.forms[MSOWebPartPageFormName];a.CAML_ShowOriginalEmailBody.value=a.CAML_ShowOriginalEmailBody.value.concat(c);if(a.action.indexOf("#")>0)a.action=a.action.substr(0,a.action.indexOf("#"));a.action=a.action.concat("#"+b);a.submit();return false}}if(typeof HideQuotedText=="undefined"){var preventSafariParseError=true;function HideQuotedText(b,d){ULS_core();var a=document.forms[MSOWebPartPageFormName],c=new RegExp("{","g");b=b.replace(c,"\\{");c=new RegExp("}","g");b=b.replace(c,"\\}");c=new RegExp(b,"g");a.CAML_ShowOriginalEmailBody.value=a.CAML_ShowOriginalEmailBody.value.replace(c,"");if(a.action.indexOf("#")>0)a.action=a.action.substr(0,a.action.indexOf("#"));a.action=a.action.concat("#"+d);a.submit();return false}}function LRUCache(){ULS_core();this.state=[];this.ageStack=[];this.count=0}function LRUCache_Add(a,b){ULS_core();if(!a)return;oldAge=a.state[b];if(oldAge!=null)a.ageStack[oldAge]=null;else a.count++;age=a.ageStack.length;a.state[b]=age;a.ageStack.push(b)}function LRUCache_Remove(a,b){ULS_core();if(!a)return;age=a.state[b];if(age!=null){a.ageStack[age]=null;a.state[b]=null;a.count--}}function AddGroupToCookie(c){ULS_core();var a=ExpGroupFetchWebPartID(c);if(a==null)return;LRUCache_Add(g_ExpGroupWPState,a);if(g_ExpGroupTable[a]==null)g_ExpGroupTable[a]=new LRUCache;var b=ExpGroupFetchGroupString(c);if(b==null)return;LRUCache_Add(g_ExpGroupTable[a],b);ExpGroupRenderCookie()}function RemoveGroupFromCookie(d){ULS_core();var a=ExpGroupFetchWebPartID(d);if(a==null)return;if(g_ExpGroupTable[a]==null)return;LRUCache_Add(g_ExpGroupWPState,a);var c=ExpGroupFetchGroupString(d);if(c==null)return;var b;for(b in g_ExpGroupTable[a].state)if(g_ExpGroupTable[a].state[b]!=null&&b.substring(0,c.length)==c)LRUCache_Remove(g_ExpGroupTable[a],b);ExpGroupRenderCookie()}function ExpGroupRenderCookie(){ULS_core();if(!g_ExpGroupWPState)return;var c=ExpGroupWPListName+"=",a=0,d;for(d=g_ExpGroupWPState.ageStack.length-1;d>=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+=escape(ExpGroupCookieDelimiter);c+=escape(b)}else if(g_ExpGroupTable[b].count==0)DeleteCookie(ExpGroupCookiePrefix+b);else if(a<ExpGroupMaxWP){a++;ExpGroupRenderCookieForWebPart(b);if(a>1)c+=escape(ExpGroupCookieDelimiter);c+=escape(b)}}if(a==0)DeleteCookie(ExpGroupWPListName);else document.cookie=c}function ExpGroupRenderCookieForWebPart(a){ULS_core();if(!g_ExpGroupTable[a].ageStack)return;var d=ExpGroupCookiePrefix+a+"=",e=true,b;for(b=g_ExpGroupTable[a].ageStack.length-1;b>=0;b--)if(g_ExpGroupTable[a].ageStack[b]!=null){var f=g_ExpGroupTable[a].ageStack[b],c="";if(!e)c+=escape(ExpGroupCookieDelimiter);c+=escape(f);if(d.length+c.length<=ExpGroupMaxCookieLength){d+=c;e=false}}document.cookie=d+";"}function ExpGroupOnPageLoad(a){ULS_core();flag=document.getElementById("GroupByColFlag");if(flag!=null){g_ExpGroupNeedsState=true;ExpGroupParseCookie(a)}}function ExpGroupParseCookie(e){ULS_core();var c=GetCookie(ExpGroupWPListName);if(c==null)return;g_ExpGroupParseStage=true;var d=c.split(ExpGroupCookieDelimiter),b;for(b=d.length-1;b>=0;b--){var a=d[b];LRUCache_Add(g_ExpGroupWPState,a);if(g_ExpGroupTable[a]==null)if(document.getElementById("GroupByCol"+a)!=null)ExpGroupParseCookieForWebPart(a,e)}g_ExpGroupParseStage=false;if(g_ExpGroupQueue.length>0)ExpGroupFetchData(g_ExpGroupQueue.shift(),e)}function ExpGroupParseCookieForWebPart(d,l){ULS_core();var k=GetCookie(ExpGroupCookiePrefix+d);if(k==null)return;var m=k.split(ExpGroupCookieDelimiter),a;g_ExpGroupTable[d]=new LRUCache;for(a=m.length-1;a>=0;a--){var h=m[a];LRUCache_Add(g_ExpGroupTable[d],h)}var c=[],n=document.getElementById("GroupByCol"+d).parentNode;tbodyTags=n.getElementsByTagName("TBODY");for(a=0;a<tbodyTags.length;a++){var h=tbodyTags[a].getAttribute("groupString");if(h!=null){var i=tbodyTags[a].id;if(i==null)continue;var b=i.substring(4,i.length);if(g_ExpGroupTable[d].state[h]!=null&&c[b]==null){ExpCollGroup(b,"img_"+b,l);c[b]=true;tbody=document.getElementById("tbod"+b+"_");if(tbody!=null){isLoaded=tbody.getAttribute("isLoaded");if(isLoaded=="false")g_ExpGroupQueue.push(b)}}}}var e;for(e in c){var j=e.indexOf("_");if(j!=e.length-1&&j!=-1){var f=e.substring(0,j+1);if(c[f]==null){var g=ExpGroupFetchGroupString(f);if(g!=null){LRUCache_Add(g_ExpGroupState,g);ExpCollGroup(f,"img_"+f,l);c[g]=true}}}}}function ExpGroupBy(e){ULS_core();if(browseris.w3c&&!browseris.ie)document.all=document.getElementsByTagName("*");docElts=document.all;numElts=docElts.length;images=e.getElementsByTagName("IMG");img=images[0];srcPath=img.src;index=srcPath.lastIndexOf("/");imgName=srcPath.slice(index+1);var b="auto";if(imgName=="plus.gif"){b="";img.src="/_layouts/images/minus.gif"}else{b="none";img.src="/_layouts/images/plus.gif"}oldName=img.name;img.name=img.alt;img.alt=oldName;spanNode=img;while(spanNode!=null){spanNode=spanNode.parentNode;if(spanNode!=null&&spanNode.id!=null&&spanNode.id.length>5&&spanNode.id.substr(0,5)=="group")break}parentNode=spanNode;while(parentNode!=null){parentNode=parentNode.parentNode;if(parentNode!=null&&parentNode.tagName=="TABLE")break}lastNode=null;if(parentNode!=null){lastNode=parentNode.lastChild;if(lastNode!=null&&lastNode.tagName=="TBODY")lastNode=lastNode.lastChild;if(lastNode!=null&&lastNode.tagName=="TR"&&lastNode.lastChild!=null)lastNode=lastNode.lastChild}for(var c=0;c<numElts;c++){var a=docElts.item(c);if(a==spanNode)break}ID=spanNode.id.slice(5);displayStyle=b;for(var d=c+1;d<numElts;d++){var a=docElts.item(d);if(a.id.length>5&&a.id.substr(0,5)=="group"){curID=a.id.slice(5);if(curID<=ID)return}parentNode=a;while(parentNode!=null){parentNode=parentNode.parentNode;if(parentNode==spanNode)break}if(parentNode==spanNode)continue;if(a.id!=null&&a.id.substring(0,5)=="group")b=displayStyle;if(a.id!=null&&a.id.substring(0,8)=="footer"+ID)b=displayStyle;if(displayStyle!="none"&&a!=img&&a.tagName=="IMG"&&a.src!=null)if(a.src.slice(a.src.length-25)=="/_layouts/images/plus.gif")b="none";else if(a.src.slice(a.src.length-26)=="/_layouts/images/minus.gif")b="";if(a.tagName==spanNode.tagName&&a.id!="footer")a.style.display=b;if(a.tagName=="TABLE"&&lastNode==null||a==lastNode)break}}function SzExtension(a){ULS_core();var c=new String(a),b=/^.*\.([^\.]*)$/;return c.replace(b,"$1").toLowerCase()}function SzServer(a){ULS_core();var c=new String(a),b=/^([^:]*):\/\/([^\/]*).*$/;return c.replace(b,"$1://$2")}var v_stsOpenDoc=null,v_strStsOpenDoc=null;function StsOpenEnsureEx(a){ULS_core();if(v_stsOpenDoc==null||v_strStsOpenDoc!=a)if(window.ActiveXObject)try{v_stsOpenDoc=new ActiveXObject(a);v_strStsOpenDoc=a}catch(b){v_stsOpenDoc=null;v_strStsOpenDoc=null}return v_stsOpenDoc}var v_stsOpenDoc2=null,v_strStsOpenDoc2=null;function StsOpenEnsureEx2(a){ULS_core();if(v_stsOpenDoc2==null||v_strStsOpenDoc2!=a)if(window.ActiveXObject)try{v_stsOpenDoc2=new ActiveXObject(a);v_strStsOpenDoc2=a}catch(c){v_stsOpenDoc2=null;v_strStsOpenDoc2=null}else if(IsSupportedMacBrowser()){var b=CreateMacPlugin();if(b!=null){v_stsOpenDoc2=b;v_strStsOpenDoc2="SharePoint.MacPlugin"}}return v_stsOpenDoc2}function DispDocItem(b,a){ULS_core();return DispDocItemEx(b,"FALSE","FALSE","FALSE",a)}function DispDocItemExWithServerRedirect(j,d,h,f,g,i,c,a){ULS_core();var b=a!=null&&a!="";if(b){a=a.substring(1);b=a!=""}if(b)if(c==1){var e=a+"&Source="+GetSource()+"&DefaultItemOpen="+c;if(window.location.search.match("[?&]IsDlg=1"))window.frameElement.navigateParent(e);else STSNavigate(e);d.cancelBubble=true;d.returnValue=false;return false}return DispDocItemEx(j,h,f,g,i)}var L_OpenDocumentLocalError_Text="This document was being edited offline, but there is no application configured to open the document from SharePoint.  The document can only be opened for reading.";function DispDocItemEx(e,c,a,b,d){ULS_core();return DispDocItemExWithEvent(e,null,c,a,b,d)}function DispDocItemExWithEvent(f,i,p,m,o,a){ULS_core();itemTable=FindSTSMenuTable(f,"CTXName");if((!browseris.ie||!browseris.win32)&&!IsSupportedMacBrowser()){if(browseris.ie)event.cancelBubble=false;var k=f.href;if(window.location.search.match("[?&]IsDlg=1"))window.frameElement.navigateParent(k);else STSNavigate(k);return false}var d,c,g,b=true,s=itemTable!=null?GetAttributeFromItemTable(itemTable,"Ext","FileType"):"",j="",r=document.getElementById("FileDialogViewTable");if(r!=null){if(browseris.ie){event.cancelBubble=false;event.returnValue=false}return true}c=itemTable!=null?GetAttributeFromItemTable(itemTable,"Url","ServerUrl"):"";if(c==null||c=="")c=f.href;else c=SzServer(f.href)+c;g=SzExtension(c);if(currentItemProgId==null&&itemTable!=null)currentItemProgId=GetAttributeFromItemTable(itemTable,"Type","HTMLType");if(currentItemProgId!=null)j=currentItemProgId;if(FDefaultOpenForReadOnly(g)){if(a.indexOf("SharePoint.OpenDocuments")>=0)a="SharePoint.OpenDocuments.3"}else if(!FSupportCheckoutToLocal(g))a="";if(currentItemCheckedOutUserId==null&&itemTable!=null)currentItemCheckedOutUserId=itemTable.COUId;if(currentItemCheckedoutToLocal==null&&itemTable!=null)currentItemCheckedoutToLocal=GetAttributeFromItemTable(itemTable,"COut","IsCheckedoutToLocal ");if(currentItemCheckedOutUserId!=null&&currentItemCheckedOutUserId!=""&&currentItemCheckedOutUserId==ctx.CurrentUserId&&(a==""||a.indexOf("SharePoint.OpenDocuments")>=0)&&FSupportCheckoutToLocal(g)||a=="SharePoint.OpenDocuments")a="SharePoint.OpenDocuments.3";var h=2;if(a!=""&&HasRights(16,0)){if(a.indexOf(".3")>=0)h=3;d=StsOpenEnsureEx2(a);if(d==null&&h==3){a=a.replace(".3",".2");d=StsOpenEnsureEx2(a);h=2}}if(d!=null)if(h==2||itemTable==null&&currentItemCheckedOutUserId==null||ctx.isVersions==1&&(itemTable==null||itemTable.isMostCur=="0")){try{if(currentItemCheckedOutUserId!=null&&currentItemCheckedOutUserId!=""&&(currentItemCheckedOutUserId==ctx.CurrentUserId||ctx.CurrentUserId==null))if(currentItemCheckedoutToLocal=="1"){alert(L_OpenDocumentLocalError_Text);b=false}else b=d.EditDocument2(window,c,j);else b=d.ViewDocument2(window,c,j)}catch(l){b=false}if(b)window.onfocus=RefreshOnNextFocus}else{var e=0;if(currentItemCheckedOutUserId!="")if(currentItemCheckedOutUserId!=ctx.CurrentUserId&&ctx.CurrentUserId!=null)e=1;else if(currentItemCheckedoutToLocal==null||currentItemCheckedoutToLocal!="1")e=2;else e=4;else if(!HasRights(0,4)||!HasRights(512,0)||FDefaultOpenForReadOnly(g))e=1;else if(ctx.isForceCheckout==true)e=3;try{b=d.ViewDocument3(window,c,e,j)}catch(l){b=false}if(b){var n=d.PromptedOnLastOpen();if(n)window.onfocus=RefreshOnNextFocus;else SetWindowRefreshOnFocus()}}else if(currentItemCheckedoutToLocal=="1")alert(L_OpenDocumentLocalError_Text);if((d==null||!b)&&!IsSupportedMacBrowser()){if(p=="TRUE"&&m=="TRUE"&&o=="TRUE"){if(itemTable==null)return b;if(browseris.ie){event.cancelBubble=true;event.returnValue=false}var q=new Function("return "+itemTable.getAttribute("CTXName")+".HttpRoot;"),k=q()+"/_layouts"+"/htmltrverify.aspx?doc="+escapeProperly(c);if(window.location.search.match("[?&]IsDlg=1"))window.frameElement.navigateParent(k);else GoToPage(k)}else if(window.location.search.match("[?&]IsDlg=1"))window.frameElement.navigateParent(f.href);else GoToPage(f.href);return}d=null;if(browseris.ie){event.cancelBubble=true;event.returnValue=false}else if(IsSupportedMacBrowser()){if(b){if(i.preventDefault)i.preventDefault();if(i.stopPropagation)i.stopPropagation()}return true}return b}function DispDocItemEx2(e,b,i,f,h,l,j,a,c){ULS_core();var n=false,m=c!=null&&c!="",g=IsClientAppInstalled(a)&&HasRights(16,0);if(m)if(j==1||!g){var d=c+"&Source="+GetSource()+"&DefaultItemOpen="+j;if(window.location.search.match("[?&]IsDlg=1"))window.frameElement.navigateParent(d);else STSNavigate(d);b.cancelBubble=true;b.returnValue=false;return false}else if(g)if(a==""||a.indexOf("SharePoint.OpenDocuments")>=0)return DispDocItemExWithEvent(e,b,i,f,h,l);else{if(!ViewDoc(e.href,a)){var k=editDocumentWithProgIDNoUI(e.href,currentItemProgId,a,false,ctx.HttpRoot,"0");if(k==1||k==2){var d=c+"&Source="+GetSource();if(window.location.search.match("[?&]IsDlg=1"))window.frameElement.navigateParent(d);else STSNavigate(d)}}b.cancelBubble=true;b.returnValue=false;return false}return DispDocItemExWithEvent(e,b,i,f,h,a)}function DispDocItemExWithOutContext(o,n,e,a,d,i,g,m,k,b,h,j,f,c,l){ULS_core();DispEx(o,n,e,a,d,i,g,m,k,b,h,j,f,c,l)}function DispEx(p,b,g,d,f,k,i,o,m,a,j,l,h,e,c){ULS_core();var n=document.getElementById("FileDialogViewTable");if(n!=null){b.cancelBubble=false;b.returnValue=false;return true}if(typeof ctx=="undefined"||ctx==null)ctx=new ContextInfo;ctx.CurrentUserId=l;if(h=="1")ctx.isForceCheckout=true;else ctx.isForceCheckout=false;currentItemCheckedOutUserId=j;currentItemCheckedoutToLocal=e;currentItemProgId=m;if(c!=null&&c!="")SetCurrentPermMaskFromString(c,null);b.cancelBubble=true;if(a!=null&&a!="")a=a.substring(1);return DispDocItemEx2(p,b,g,d,f,k,i,o,a)}function IsClientAppInstalled(a){ULS_core();var b=null;if(a!="")b=StsOpenEnsureEx2(a);return b!=null}function ViewDoc(d,c){ULS_core();var b=StsOpenEnsureEx2(c),a=false;if(b!=null)try{a=b.ViewDocument2(window,d)}catch(e){a=false}return a}function PortalPinToMyPage(a,c,b){ULS_core();a.action=c+"_vti_bin/portalapi.aspx?Cmd=PinToMyPage";a.ReturnUrl.value=window.location.href;a.ListViewUrl.value=MakeMtgInstanceUrl(a.ListViewUrl.value,b);a.submit()}function PortalPinToMyPage(a,g,e,f,b,d,h,c){ULS_core();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){ULS_core();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 StURLSetVar2(a,c,g){ULS_core();var b=c+"="+g,e=new CUrl(a),a=e.query,f=a.indexOf("?");if(f!=-1){var d=a.indexOf("?"+c+"=",f);if(d==-1){d=a.indexOf("&"+c+"=",f);if(d!=-1)b="&"+b}else b="?"+b;if(d!=-1){var h=new RegExp("[&?]"+c+"=[^&]*","");a=a.replace(h,b)}else a=a+"&"+b}else a=a+"?"+b;e.query=a;return e.ToString()}function RemoveQueryParameterFromUrl(a,c){ULS_core();var d=new RegExp("[&?]"+c+"=[^&]*","");a=a.replace(d,"");if(a.indexOf("?")==-1){var b=a.indexOf("&");if(b!=-1)a=a.substring(0,b)+"?"+a.substring(b+1)}return a}function MoveToViewDate(c,b,d){ULS_core();if(FV4UI()&&typeof _fV4Calendar!="undefined"&&_fV4Calendar){var e=function(){ULS_core();var a;if(d)a=SP.UI.ApplicationPages.CalendarInstanceRepository.lookupInstance(d);else a=SP.UI.ApplicationPages.CalendarInstanceRepository.firstInstance();if(a)if(b!=null)a.moveToViewType(b);else a.moveToDate(c)};AjaxCalendarCall(e)}else{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){ULS_core();var a;try{a=typeof SP.UI.ApplicationPages.CalendarInstanceRepository}catch(c){a="undefined"}EnsureScript("SP.js",a,b)}function MoveToDate(a,b){ULS_core();MoveToViewDate(a,null,b)}function MoveToToday(){ULS_core();MoveToViewDate("",null)}function MoveView(a){ULS_core();MoveToViewDate(null,a)}function ClickDay(a){ULS_core();MoveToDate(a)}function GetIframe(){ULS_core();return null}function GetMonthView(c){ULS_core();var b=window.location.href,a=document.getElementById("ExpandedWeeksId");if(a!=null)a.value=c;else return;SubmitFormPost(b,true)}function NewItemDT(a,c,b){ULS_core();if(a==null)return;if(b!=null)a=StURLSetVar2(a,"CalendarTime",b);if(c!=null)a=StURLSetVar2(a,"CalendarDate",c);NewItem(a,false)}function ClickTime(b,a){ULS_core();NewItemDT(b,null,a)}function NewItemDay(b,a){ULS_core();NewItemDT(b,a,null)}function HasValidUrlPrefix(b){ULS_core();var a=b.toLowerCase();if(-1==a.search("^http://")&&-1==a.search("^https://"))return false;return true}function ScrollToAnchorInInnerScrollPane(l,i,k){ULS_core();try{var m=document.getElementById(l),b=document.getElementById(m[i].value);if(typeof b=="undefined"||b==null)throw"";var d=b.parentNode.previousSibling;if(typeof d!="undefined"&&d!=null){var h=d.previousSibling,e=h.firstChild;if(typeof e!="undefined"&&e!=null&&e.hasChildNodes())b=h;else b=d}else throw""}catch(o){var f=null,j=document.anchors.length;for(var g=0;g<j;g++){f=document.anchors[g];var n=f.href;if(n.search(k)!=-1){b=f;break}}}if(typeof b!="undefined"&&b!=null){var c=b.parentNode;while(c!=null&&c.tagName!="TABLE")c=c.parentNode;if(typeof c!="undefined"&&c!=null){var a=c.parentNode;while(a!=null&&(a.tagName!="DIV"||a.style.overflow!="auto"))a=a.parentNode;if(typeof a!="undefined"&&a!=null){var p=b.offsetLeft;a.scrollLeft=p;a.scrollTop=c.offsetTop-a.clientHeight+c.offsetHeight}}}}function FilterChoice(e,d,C,s){ULS_core();var a,h=0,g=false,l="",u=e.id,t=e.name,j="",q="",B=d.choices,c=B.split("|"),x=AbsLeft(d),y=AbsTop(d)+d.offsetHeight,A=d.optHid,v=c.length-1,m=-1,p=false,o="";if(e!=null&&e.selectedIndex>=0){g=true;o=e.options[e.selectedIndex].innerText}for(a=0;a<c.length;a=a+2){var b=c[a];while(a<v-1&&c[a+1].length==0){b=b+"|";a++;if(a<v-1)b=b+c[a+1];a++}var k=c[a+1],i=b.toLocaleLowerCase(),z=C.toLocaleLowerCase();if(s.length!=0)g=true;if(i.indexOf(z)==0){var n=s.toLocaleLowerCase();if(n.length!=0&&i.indexOf(n)==0&&j.length==0)g=false;if(i.length>20)p=true;if(!g||i==o){l+='<option selected value="'+k+'">'+STSHtmlEncode(b)+"</option>";g=true;j=b;q=k;m=a}else l+='<option value="'+k+'">'+STSHtmlEncode(b)+"</option>";h++}}var r=' ondblclick="HandleOptDblClick()" onkeydown="HandleOptKeyDown()"',f="";if(p)f='<select tabIndex="-1" ctrl="'+d.id+'" name="'+t+'" id="'+u+'"'+r;else f='<select class="ms-lookuptypeindropdown" tabIndex="-1" ctrl="'+d.id+'" name="'+t+'" id="'+u+'"'+r;if(h==0)f+=' style="display:none;position:absolute;z-index:2;left:'+x+"px;top:"+y+'px" onfocusout="OptLoseFocus(this)"></select>';else f+=' style="position:absolute;z-index:2;left:'+x+"px;top:"+y+'px"'+' size="'+(h<=8?h:8)+'"'+(h==1?'multiple="true"':"")+' onfocusout="OptLoseFocus(this)">'+l+"</select>";e.outerHTML=f;var w=document.getElementById(A);if(m!=0||c[1]!="0")w.value=q;else w.value="0";if(m!=0||c[1]!="0")return j;else return ""}function OptLoseFocus(a){ULS_core();var b=document.getElementById(a.ctrl);if(a.selectedIndex>=0)SetCtrlFromOpt(b,a);a.style.display="none"}function SetCtrlMatch(b,a){ULS_core();var c=document.getElementById(b.optHid);c.value=a.options[a.selectedIndex].value;if(c.value!=0)b.match=a.options[a.selectedIndex].innerText;else b.match=""}function AbsLeft(c){ULS_core();var b=c.offsetLeft,a=c.offsetParent;while(a!=null&&a.tagName!="BODY"){b+=a.offsetLeft;a=a.offsetParent}if(a!=null)b+=a.offsetLeft;return b}function AbsTop(c){ULS_core();var b=c.offsetTop,a=c.offsetParent;while(a!=null&&a.tagName!="BODY"){b+=a.offsetTop;a=a.offsetParent}if(a!=null)b+=a.offsetTop;return b}function SetCtrlFromOpt(a,b){ULS_core();var c=document.getElementById(a.optHid);c.value=b.options[b.selectedIndex].value;if(b.options[b.selectedIndex].value==0){a.value="";a.match=""}else{a.value=b.options[b.selectedIndex].innerText;a.match=a.value}}function HandleOptDblClick(){ULS_core();var a=event.srcElement,b=document.getElementById(a.ctrl);SetCtrlFromOpt(b,a);SetCtrlMatch(b,a);a.style.display="none"}function HandleOptKeyDown(){ULS_core();var a=event.srcElement,b=document.getElementById(a.ctrl),c=event.keyCode;switch(c){case 13:case 9:SetCtrlFromOpt(b,a);event.returnValue=false;a.style.display="none";return}return}function EnsureSelectElement(c,b){ULS_core();var a=document.getElementById(b);if(a==null){a=document.createElement("SELECT");c.parentNode.appendChild(a);a.outerHTML='<select id="'+b+'" ctrl="'+c.id+'" class="ms-lookuptypeindropdown" name="'+b+'" style="display:none" onfocusout="OptLoseFocus(this)"></select>';FilterChoice(a,c,c.value,"")}return document.getElementById(b)}function HandleKey(){ULS_core();var g=event.keyCode,b=event.srcElement,c=b.value,a=EnsureSelectElement(b,b.opt),d=false,f,e;switch(g){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();e=b.match.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<a.options.length-1){a.selectedIndex=a.selectedIndex+1;SetCtrlMatch(b,a);event.returnValue=false;return}d=true}if(d);b.match=FilterChoice(a,b,c,"")}function ShowDropdown(b){ULS_core();var a=document.getElementById(b),d=a.value,c=EnsureSelectElement(a,a.opt);a.match=FilterChoice(c,a,"",a.value);a.focus()}function HandleChar(){ULS_core();var a=event.srcElement,b=a.value,d=document.getElementById(a.opt),c=event.keyCode;if(c==13)return;b=b+String.fromCharCode(c).toLocaleLowerCase();a.match=FilterChoice(d,a,b,"")}function HandleLoseFocus(){ULS_core();var b=event.srcElement,a=document.getElementById(b.opt);if(a!=null&&a.style.display!="none"&&document.activeElement!=a)OptLoseFocus(a)}function HandleChange(){ULS_core();var a=event.srcElement,c=a.value,b=document.getElementById(a.opt);a.match=FilterChoice(b,a,c,"")}function IsSafeHref(a){ULS_core();return a.match(new RegExp("^http://","i"))||a.match(new RegExp("^https://","i"))||a.match(new RegExp("^ftp://","i"))||a.match(new RegExp("^file://","i"))||a.match(new RegExp("^mailto:","i"))||a.match(new RegExp("^news:","i"))||a.match(new RegExp("^/","i"))||a.match(new RegExp("^\\\\\\\\","i"))}var L_RelativeUrlError_Text="Addresses that start from the current page might not display correctly. You must enter the complete URL or an address that starts from the current server.",L_UnknownProtocolUrlError_Text="Hyperlinks must begin with http://, https://, mailto:, news:, ftp://, file://, or \\\\. Check the address and try again.",L_UrlTooLongError_Text="The URL for the location must be no longer than 256 characters without the query parameters. The query parameters start at the question mark (?).";function IsSafeHrefAlert(a,b){ULS_core();if(a.match("^[^?]{257}")){alert(L_UrlTooLongError_Text);return false}else if(IsSafeHref(a))return true;else if(a.match("^[a-zA-Z]*:")){alert(L_UnknownProtocolUrlError_Text);return false}else if(true==b)return true;else{alert(L_RelativeUrlError_Text);return false}}var deleteInstance=0;function DeleteItemConfirmation(){ULS_core();var a="";if(typeof ItemIsCopy!="undefined")if(ItemIsCopy)a=L_NotifyThisIsCopy_Text;if(cascadeDeleteWarningMessage!="")a+=cascadeDeleteWarningMessage;if(recycleBinEnabled==1&&deleteInstance!=1)a+=L_STSRecycleConfirm_Text;else a+=L_STSDelConfirm_Text;return confirm(a)}function DeleteInstanceConfirmation(){ULS_core();deleteInstance=1;return DeleteItemConfirmation()}function CancelMultiPageConfirmation(b){ULS_core();var L_DeletePartialResponse1_text="A partial survey response has been saved.  Click OK to delete the partial survey response. If you want to continue this survey later click Cancel.  Your partial response can be found in the All Responses survey view.\n\nDo you want to send this partial response to the site Recycle Bin?",L_DeletePartialResponse2_text="A partial survey response has been saved.  Click OK to delete the partial survey response. If you want to continue this survey later click Cancel.  Your partial response can be found in the All Responses survey view.\n\nDo you want to delete the partial response?",a="";if(recycleBinEnabled==1)a=L_DeletePartialResponse1_text;else a=L_DeletePartialResponse2_text;if(confirm(a)==true)return true;else STSNavigate(b);return false}function RestoreItemVersionConfirmation(){ULS_core();var L_Version_Restore_Confirm_Text="You are about to replace the current version with the selected version.",a=L_Version_Restore_Confirm_Text;return confirm(a)}function DeleteItemVersionConfirmation(a){ULS_core();var L_Version_Delete_Confirm_Text="Are you sure you want to delete this version?",L_Version_Recycle_Confirm_Text="Are you sure you want to send this version to the site Recycle Bin?";if(a)return confirm(L_Version_Recycle_Confirm_Text);else return confirm(L_Version_Delete_Confirm_Text)}function DeleteUserInfoItemConfirmation(){ULS_core();var L_User_Delete_Confirm_Text="You are about to delete this user.",a=L_User_Delete_Confirm_Text;return confirm(a)}function UnlinkCopyConfirmation(){ULS_core();return confirm(L_ConfirmUnlinkCopy_Text)}function Discuss(a){ULS_core();var L_IE5upRequired_Text="'Discuss' requires a Windows SharePoint Services-compatible application and Microsoft Internet Explorer 6.0 or greater.";if(browseris.ie5up&&browseris.win32)window.parent.location.href=a;else alert(L_IE5upRequired_Text)}var g_AdditionalNavigateHierarchyQString="";function GetAdditionalNavigateHierarchyQString(){ULS_core();return g_AdditionalNavigateHierarchyQString}function SetAdditionalNavigateHierarchyQString(a){ULS_core();g_AdditionalNavigateHierarchyQString=a}function ProcessDefaultNavigateHierarchy(g,e,d,b,c,j,i,h,f){ULS_core();if(typeof _spCustomNavigateHierarchy=="function")_spCustomNavigateHierarchy(g,e,d,b,c,j);else if(c==false)top.location=b;else{var a=document.createElement("INPUT");a.type="hidden";a.name="_spTreeNodeClicked";a.value=d;i.appendChild(a);var k="?RootFolder="+escapeProperly(b)+h+"&"+g_AdditionalNavigateHierarchyQString;SubmitFormPost(f+k);return false}}function ParseMultiColumnValue(b,d){ULS_core();var f=[];if(d==null)d=";#";var o=d.charCodeAt(0),n=d.charCodeAt(1);if(b==null||b.length==0)return f;var h=d.charAt(0),m=h+h,k=new RegExp(m,"g"),j=d.charAt(0),c=0;if(b.substr(0,2)==d)c=2;var a=c,g=false,i=b.length;while(a<i){var l=b.indexOf(h,a);if(l>=0){a=l;a++;if(b.charCodeAt(a)==n){if(a-1>c){var e=b.substr(c,a-c-1);if(g)e=e.replace(k,j);f.push(e);g=false}else f.push("");a++;c=a;continue}else if(b.charCodeAt(a)==o){a++;g=true;continue}else throw"ArgumentException"}else a=i}if(a>c){var e=b.substr(c,a-c);if(g)e=e.replace(k,j);f.push(e)}return f}function ConvertMultiColumnValueToString(f,b,c){ULS_core();if(b==null)b=";#";if(c==null)c=true;var h=b.charAt(0),i=h+h,j=new RegExp(b.charAt(0),"g"),g=false,d="";for(var e=0;e<f.length;e++){var a=f[e];if(a!=null&&a.length>0)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=null,httpFolderSource=null,httpFolderDiv=null;function NavigateHttpFolderCore(){ULS_core();if(httpFolderDiv==null){httpFolderDiv=document.createElement("DIV");document.body.appendChild(httpFolderDiv);httpFolderDiv.onreadystatechange=NavigateHttpFolderCore;httpFolderDiv.addBehavior("#default#httpFolder")}if(httpFolderDiv.readyState=="complete"){httpFolderDiv.onreadystatechange=null;try{var a=document.frames.item(httpFolderTarget);if(a!=null)a.document.body.innerText=L_WebFoldersRequired_Text}catch(c){}var b=false;try{var d="";d=httpFolderDiv.navigateFrame(httpFolderSource,httpFolderTarget);if(d=="OK")b=true}catch(c){}if(!b&&0==httpFolderSource.search("http://[a-zA-Z0-9-.]+(:80)?/")){var e=httpFolderSource.replace(/http:\/\/([a-zA-Z0-9\-\.]+)(:80)?[\/]/,"//$1/").replace(/[\/]/g,"\\");try{var a=document.frames.item(httpFolderTarget);if(a!=null){a.onload=null;a.document.location.href=e;b=true}}catch(c){}}if(!b)alert(L_WebFoldersError_Text)}}function NavigateHttpFolder(a,b){ULS_core();if("/"==a.charAt(0))a=document.location.protocol+"//"+document.location.host+a;httpFolderSource=a;httpFolderTarget=b;NavigateHttpFolderCore()}function NavigateHttpFolderIfSupported(b,a){ULS_core();if(a=="_blank")if(SupportsNavigateHttpFolder())NavigateHttpFolder(b,a);else alert(L_WebFoldersError_Text);else alert(L_NoExplorerView_Text)}function SupportsNavigateHttpFolder(){ULS_core();return browseris.ie5up&&browseris.win32}function AutoIndexForRelationshipsConfirmation(){ULS_core();var L_Lookup_AutoIndexForRelationships_Confirm_Text="To enable relationship behaviors on this column, it needs to be indexed. Do you want this column to be indexed?",a=L_Lookup_AutoIndexForRelationships_Confirm_Text;return confirm(a)}function addNotification(d,i,h,e){ULS_core();var b=document.getElementById("notificationArea");if(b!=null){b.setAttribute("aria-live","polite");b.setAttribute("aria-relevant","all");var a=document.createElement("div");if(browseris.ie)a.id=a.uniqueID;else a.id=FFUniqueId(escapeProperly(d));if(h)a.title=h;if(e){var c=document.createElement("a");c.href="javascript:;";c.onclick=function(){ULS_core();e();removeNotification(a.id);return false};c.innerHTML=d;a.appendChild(c)}else a.innerHTML=d;if(!i){var k=new Date;a.setAttribute("expires",k.valueOf()+3000);var g=b.getAttribute("timerSet");if(g==null||g=="false"){var j=window.setInterval(retireNotification,1500);b.setAttribute("timerSet",j)}}a.setAttribute("role","alert");var f=document.getElementById("s4-mainarea");if(f){var l=AbsTop(f);b.style.top=l+1+"px"}b.appendChild(a);return a.id}return null}function retireNotification(){ULS_core();var a=document.getElementById("notificationArea"),f=a.getElementsByTagName("DIV"),b,k,j=new Date,i=j.valueOf(),c=[],e=true;for(b=0;b<f.length;b++){var d=f[b],g=d.getAttribute("expires");if(g!=null)if(i>g)c.push(d);else e=false}while(c.length>0){var d=c.pop();a.removeChild(d)}if(e){var h=a.getAttribute("timerSet");a.setAttribute("timerSet","false");window.clearInterval(h)}}function removeNotification(c){ULS_core();var b=document.getElementById("notificationArea");if(b!=null){var a=document.getElementById(c);if(a!=null)b.removeChild(a)}}function updateStatus(c,a){ULS_core();var b=c+"_body",d=document.getElementById(b);d.innerHTML=a}function removeStatus(c){ULS_core();var a=document.getElementById(c);if(a!=null){a.parentNode.removeChild(a);var b=document.getElementById("pageStatusBar");if(b.getElementsByTagName("SPAN").length==0)b.style.display="none"}}function SetHomePage2(d){ULS_core();if(!window.confirm(SP.Res.confirmWelcomePage))return;var e=new SP.ClientContext,c=e.get_web().get_rootFolder(),a="";if(d.length>0){var a=(new CUrl(document.URL)).path,b=a.indexOf("//");a=a.substr(b+2);b=a.indexOf("/");a=a.substr(b);a=unescapeProperly(a);a=a.substr(d.length);if(a.indexOf("/")==0)a=a.substr(1);var b=a.indexOf("?");if(b>0)a=a.substr(0,b)}c.set_welcomePage(a);c.update();var f=STSHtmlEncode(SP.Res.sending),g=addNotification(f,true);e.executeQuery(function(){ULS_core();removeNotification(g);addNotification(STSHtmlEncode(SP.Res.pageIsSiteHomePage),false)})}function SetHomePage(b){ULS_core();var a=function(){ULS_core();SetHomePage2(b)};if(typeof SP!="undefined")EnsureScript("SP.js",typeof SP.ClientContext,a);else EnsureScript("SP.js",typeof SP,a)}function SendUrlToMobile(c,b){ULS_core();var a=new SP.ClientContext;SP.Utilities.MobileUtility.sendPageUrlToLogonUser(a,c,b);var d=SP.Res.sending,e=addNotification(d,true);a.executeQuery(function(){ULS_core();removeNotification(e)})}function SendEmail(c){ULS_core();var b=SP.PageContextInfo.get_webServerRelativeUrl(),a;try{a=typeof SP.Ribbon.EMailLink.openMailerWithUrl}catch(g){a="undefined"}if(a!="undefined")SP.Ribbon.EMailLink.openMailerWithUrl(document.title,c,b);else{var f="SP.Ribbon.EMailLink.openMailerWithUrl",d=f.split(".");if(d.length>1){var e=function(){ULS_core();SP.Ribbon.EMailLink.openMailerWithUrl(document.title,c,b)};EnsureScript(d[0],a,e)}}}function TryCopyStringToClipboard(b){ULS_core();if(window.clipboardData&&clipboardData.setData)clipboardData.setData("Text",b);else{netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");var c=Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString);if(!c)return false;c.data=b;var a=Components.classes["@mozilla.org/widget/transferable;1"].createInstance(Components.interfaces.nsITransferable);if(!a)return false;a.addDataFlavor("text/unicode");a.setTransferData("text/unicode",c,b.length*2);var d=Components.interfaces.nsIClipboard,e=Components.classes["@mozilla.org/widget/clipboard;1"].getService(d);if(!e)return false;e.setData(a,null,d.kGlobalClipboard)}return true}function CopyStringToClipboard(c){ULS_core();var a=false;try{a=TryCopyStringToClipboard(c)}catch(b){a=false}if(!a)alert(SP.Res.clipboardNoAccess)}function CopyPageAddressToClipboard(){ULS_core();CopyStringToClipboard(window.location.href)}function showViewSelector(b,c){ULS_core();if(window.event){window.event.returnValue=false;window.event.cancelBubble=true}var d=function(){ULS_core();SP.Application.UI.ViewSelectorMenuBuilder.showMenu(b,c)},a;try{a=typeof SP.Application.UI.ViewSelectorMenuBuilder.showMenu}catch(e){a="undefined"}EnsureScript("SP.js",a,d)}function ChangeLayoutMode(b,c){ULS_core();var a;try{a=typeof browserScript.MSOLayout_ChangeLayoutMode}catch(g){a="undefined"}if(a!="undefined")browserScript.MSOLayout_ChangeLayoutMode(b,c);else{var f="browserScript.MSOLayout_ChangeLayoutMode",d=f.split(".");if(d.length>1){var e=function(){ULS_core();browserScript.MSOLayout_ChangeLayoutMode(b,c)};EnsureScript(d[0],a,e)}}}function OpenWebPartMenu(b,c,d,e,f){ULS_core();var a;try{a=typeof browserScript.MSOWebPartPage_OpenMenu}catch(j){a="undefined"}if(a!="undefined")browserScript.MSOWebPartPage_OpenMenu(b,c,d,e,f);else{var i="browserScript.MSOWebPartPage_OpenMenu",g=i.split(".");if(g.length>1){var h=function(){ULS_core();browserScript.MSOWebPartPage_OpenMenu(b,c,d,e,f)};EnsureScript(g[0],a,h)}}return true}function WebPartMenuKeyboardClick(b,d,e,c){ULS_core();if(c!=null)b.event=c;var a;try{a=typeof browserScript.MSOMenu_KeyboardClick}catch(i){a="undefined"}if(a!="undefined")browserScript.MSOMenu_KeyboardClick(b,d,e);else{var h="browserScript.MSOMenu_KeyboardClick",f=h.split(".");if(f.length>1){var g=function(){ULS_core();browserScript.MSOMenu_KeyboardClick(b,d,e)};EnsureScript(f[0],a,g)}}}function ShowToolPane2Wrapper(b,c,d){ULS_core();var a;try{a=typeof browserScript.MSOTlPn_ShowToolPane2Wrapper}catch(h){a="undefined"}if(a!="undefined")browserScript.MSOTlPn_ShowToolPane2Wrapper(b,c,d);else{var g="browserScript.MSOTlPn_ShowToolPane2Wrapper",e=g.split(".");if(e.length>1){var f=function(){ULS_core();browserScript.MSOTlPn_ShowToolPane2Wrapper(b,c,d)};EnsureScript(e[0],a,f)}}}function ChangeWebPartPageView(b){ULS_core();var a;try{a=typeof browserScript.MSOLayout_ToggleView}catch(f){a="undefined"}if(a!="undefined")browserScript.MSOLayout_ToggleView(b);else{var e="browserScript.MSOLayout_ToggleView",c=e.split(".");if(c.length>1){var d=function(){ULS_core();browserScript.MSOLayout_ToggleView(b)};EnsureScript(c[0],a,d)}}}function EnsureSelectionHandlerOnFocusDeferred(d,c,b){ULS_core();var a=c;while(a.tagName!="TABLE")a=a.parentNode;EnsureSelectionHandlerDeferred(d,a,b)}function ChangeWikiPageMode(b){ULS_core();var a;try{a=typeof ribbon.ChangeWikiPageMode}catch(f){a="undefined"}if(a!="undefined")ribbon.ChangeWikiPageMode(b);else{var e="ribbon.ChangeWikiPageMode",c=e.split(".");if(c.length>1){var d=function(){ULS_core();ribbon.ChangeWikiPageMode(b)};EnsureScript(c[0],a,d)}}}function EnsureSelectionHandlerDeferred(evt,tab,ctxNum){ULS_core();if(!FV4UI()){tab.onmouseover=null;return}eval("var ctxCur=ctx"+ctxNum+";");ctxInitItemState(ctxCur);var i,rows=tab.rows;for(i=0;i<rows.length;i++){var r=rows[i];if(HasCssClass(r,"ms-viewheadertr")){var c=r.cells[0];if(c){var cbx=c.getElementsByTagName("INPUT")[0];if(cbx!=null){ctxCur.SelectAllCbx=cbx;ctxCur.TableCbxFocusHandler=cbx.onfocus;cbx.onfocus=null;cbx.title=L_SelectAll}}}var iid=r.getAttribute("iid");if(iid!=null){if(ItemIsCurrentlySelected(ctxCur,iid))ctxCur.CurrentSelectedItems++;if(ItemIsCurrentlyVisible(r)){ctxCur.TotalListItems++;ctxCur.LastSelectableRowIdx=i}if(r.cells.length>0){c=r.cells[0];var itmCbx=c.getElementsByTagName("INPUT")[0];if(itmCbx&&!itmCbx._setup){itmCbx._setup=true;var tt=TooltipOfRow(r);if(tt!=null)itmCbx.title=tt;itmCbx.onfocus=HoverItemRow;itmCbx.onclick=ToggleItemRowSelection;c.onclick=ToggleItemRowSelection}}r.onmouseover=HoverItemRow;r.onmouseout=OutItemRow;if(r.getAttribute("automode")==null)r.onclick=SingleItemSelect}}HoverItemRow(evt);ctxCur.TableMouseoverHandler=tab.onmouseover;tab.onmouseover=null;if(tab.getAttribute("handleDeleteInit")==null){tab.setAttribute("handleDeleteInit","true");$addHandler(tab,"keydown",function(a){ULS_core();HandleItemDelete(a,ctxNum)})}}function ItemIsSelectable(a){ULS_core();if(!a||!ItemHasiid(a)||!ItemIsCurrentlyVisible(a))return false;return true}function ItemIsCurrentlyVisible(a){ULS_core();if(!a||!a.parentNode)return false;if(GetCurrentEltStyle(a.parentNode,"display")=="none"||GetCurrentEltStyle(a,"display")=="none")return false;return true}function ItemIsCurrentlySelected(b,c){ULS_core();if(!b||!c)return false;var a=GetSelectedItemsDict(b);if(a==null||a[c]==null)return false;return true}function ItemHasiid(a){ULS_core();if(!a||a.getAttribute("iid")==null)return false;return true}function ItemHoverClass(a){ULS_core();if(HasCssClass(a,"s4-itm-selected"))return "s4-itm-selHover";return "s4-itm-hover"}function UnhoverItemRow(c){ULS_core();if(c==null)c=window.event;var a=GetEventSrcElement(c),d=_v_trLastHover,b=d;while(a!=null&&a.tagName!="TABLE")a=a.parentNode;while(b!=null&&b.tagName!="TABLE")b=b.parentNode;if(a==b)RemoveCssClassFromElement(d,ItemHoverClass(d))}function HandleItemDelete(ei,ctxNum){ULS_core();if(ei.keyCode==Sys.UI.Key.del){eval("var ctxCur=ctx"+ctxNum+";");var defd;try{defd=typeof inplview.DeleteSelectedItems}catch(e){defd="undefined"}if(defd!="undefined")inplview.DeleteSelectedItems(ctxCur);else{var str="inplview.DeleteSelectedItems",rg=str.split(".");if(rg.length>1){var fnd=function(){ULS_core();inplview.DeleteSelectedItems(ctxCur)};EnsureScript(rg[0],defd,fnd)}}return false}}function GetItemRow2(b){ULS_core();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}if(a!=null&&a.nodeType==1&&a.tagName=="TR")return a;return null}function GetItemRow(a){ULS_core();if(a==null)a=window.event;var b=GetEventSrcElement(a);return GetItemRow2(b)}function TooltipOfRow(d){ULS_core();var c=d.cells,a=0;for(a=0;a<c.length;a++){var e=c[a];if(HasCssClass(e,"ms-vb-title"))return e.innerText}var b=d.getAttribute("iid");if(b!=null){var f=b.split(",");if(f.length>2)return ""+f[1]}return null}function AddAutoModeTag(g,e,f){ULS_core();var a=document.createElement("A");a.className="s4-itm-inlineedit";var c=e;while(c.tagName!="TABLE")c=c.parentNode;var d=c.getAttribute("inlineedit");if(d!=null)a.href=d.replace("{@ID}","{"+IdFromRow(e)+"}");var b=document.createElement("IMG");b.src=f;b.border=0;b.alt=L_Edit_Text;a.appendChild(b);g.appendChild(a)}function CbxOfItemRow(a){ULS_core();var c=null;if(a!=null)if(a.cells.length>0){var b=a.cells[0];c=b.getElementsByTagName("INPUT")[0];if(a.cells.length>1){b=a.cells[1];if(b.innerHTML==""&&b.width=="1%"){b.onclick=ClickToEdit;AddAutoModeTag(b,a,"/_layouts/images/edititem.gif")}}}return c}function ClickToEdit(a){ULS_core();var d=GetItemRow(a);if(d!=null&&d.cells.length>1){c=d.cells[1];var e=c.firstChild;if(e!=null){var b=e.firstChild;if(b!=null&&b.tagName=="IMG")b.src="/_layouts/images/spinnyrefresh.gif"}}if(window.event)window.event.cancelBubble=true;else if(a!=null)a.stopPropagation()}var _v_trLastHover=null;function HoverItemRow(b){ULS_core();var a=GetItemRow(b);if(a!=null)AddCssClassToElement(a,ItemHoverClass(a));CbxOfItemRow(a);if(window.event)window.event.cancelBubble=true;else b.stopPropagation();if(_v_trLastHover!=null&&a!=_v_trLastHover)RemoveCssClassFromElement(_v_trLastHover,ItemHoverClass(_v_trLastHover));_v_trLastHover=a}function GetToElement(a){ULS_core();if(a==null)return window.event.toElement;else return a.relatedTarget}function OutItemRow(c){ULS_core();var b=GetItemRow(c),a=GetToElement(c);if(a!=null)a=GetItemRow2(a);if(b!=null&&(a==null||a!=b))RemoveCssClassFromElement(b,ItemHoverClass(b));if(window.event)window.event.cancelBubble=true;else c.stopPropagation()}function Log(b){ULS_core();var a=document.createElement("DIV");a.innerHTML=b;document.body.appendChild(a)}function ToggleAllItems(a,b,c){ULS_core();if(a==null)a=window.event;MenuHtc_hide();ToggleAllItems2(b,c,b.checked);if(window.event)window.event.cancelBubble=true;else a.stopPropagation();return false}function ToggleAllItems2(cbx,ctxNum,f){ULS_core();eval("var ctxCur=ctx"+ctxNum+";");var tb=cbx;while(tb.tagName!="TABLE")tb=tb.parentNode;var rows=tb.rows;if(ctxCur.TotalListItems==0){cbx.checked=false;return}var i,lastIdx=ctxCur.LastSelectableRowIdx;for(i=1;i<lastIdx;i++){var r=rows[i],iid=r.getAttribute("iid");if(iid!=null)if(!f||ItemIsCurrentlyVisible(r))ToggleItemRowSelection2(ctxCur,r,f,false)}ToggleItemRowSelection2(ctxCur,rows[lastIdx],f,true)}function GetCurrentEltStyle(b,c){ULS_core();if(b.currentStyle)return b.currentStyle[c];else if(window&&window.getComputedStyle){var a=window.getComputedStyle(b,null);if(a&&a.getPropertyValue)return a.getPropertyValue(c)}else return null}function DeselectCollapsedGroup(e,b){ULS_core();if(!b)return;var c=b.rows,a=GetLastSelectableRowIdx(b,ItemHasiid);if(c&&a!=-1){for(var d=0;d<a;d++){var f=c[d];if(ItemHasiid(f))ToggleItemRowSelection2(e,f,false,false)}ToggleItemRowSelection2(e,c[a],false,true)}}function HandleSingleGroupByRow(a,b,d){ULS_core();if(!a||!b)return;var c=b.getAttribute("iid");if(c==null)return;if(!d){a.TotalListItems--;if(ItemIsCurrentlySelected(a,c))ToggleItemRowSelection2(a,b,false,true)}else a.TotalListItems++}function RefreshCommandUI(){ULS_core();if(typeof SP.Ribbon!="undefined"&&SP.Ribbon&&SP.Ribbon.PageManager){var a=SP.Ribbon.PageManager.get_instance();if(a)a.get_commandDispatcher().executeCommand(Commands.CommandIds.ApplicationStateChanged,null)}}function OnItemSelectionChanged(e,a,c){ULS_core();var b=e;if(FV4UI()){var d=function(){ULS_core();var d=[];if(typeof _ribbon!="undefined"&&_ribbon)if(c)b.clvp.EnsureEcbInfo(RefreshCommandUI,d,a);else b.clvp.EnsureEcbInfo(null,null,a)};EnsureScript("inplview",typeof InitAllClvps,d)}}function IdFromRow(c){ULS_core();var b=c.getAttribute("iid"),a=b.split(",");return a[1]}function CtxFromRow(tr){ULS_core();var iid=tr.getAttribute("iid"),rgiid=iid.split(","),ctxNum=rgiid[0];eval("var ctxCur=ctx"+ctxNum+";");return ctxCur}function GroupNameFromRow(c){ULS_core();var a=c.parentNode.id;if(a==null||a=="")return null;var b=a.substr(4,a.length-6);return b==""?null:b}function GroupStringFromGroupName(a){ULS_core();if(a==null||a=="")return null;var c=document.getElementById("titl"+a+"_");if(c==null)return null;var b=c.getAttribute("groupString");return b==""?null:b}function SingleItemSelect(b){ULS_core();if(b==null)b=window.event;var g=GetEventSrcElement(b);if(g!=null&&ElementContainsLink(g))return;if(clearECBMenu(g)){CancelEvent(b);return false}var a=GetItemRow(b),e=a;while(e.tagName!="TABLE")e=e.parentNode;var h=e.rows,c=CtxFromRow(a),i=a.getAttribute("iid"),k=i.split(","),f=false;if(!ItemIsCurrentlySelected(c,i)){f=true;if(CountSelectedItems(c)>0){var d;for(d=0;d<h.length;d++){var j=h[d];if(ItemIsSelectable(j))ToggleItemRowSelection2(c,j,false,false)}}}RemoveCssClassFromElement(a,ItemHoverClass(a));ToggleItemRowSelection2(c,a,f,true);AddCssClassToElement(a,ItemHoverClass(a));UpdateSelectAllCbx(c,f);CancelEvent(b);return true}function ElementContainsLink(a){ULS_core();if(a.tagName=="A")return true;if((a.tagName=="IMG"||a.tagName=="SPAN")&&a.parentNode.tagName=="A")return true;return false}function clearECBMenu(c){ULS_core();if(g_menuHtc_lastMenu==null)return false;if(c!=null){var b=c;while(b!=null&&b.tagName!="TD")b=b.parentNode;var a=GetItemRow2(b);MenuHtc_hide();if(a!=null){if(!HasCssClass(a,ItemHoverClass(a))){AddCssClassToElement(a,ItemHoverClass(a));CbxOfItemRow(a);if(_v_trLastHover!=null&&a!=_v_trLastHover)RemoveCssClassFromElement(_v_trLastHover,ItemHoverClass(_v_trLastHover));_v_trLastHover=a}if(tdHasEcbMenu(b))OnChildItem(b)}}return true}function tdHasEcbMenu(d){ULS_core();var a;for(a=0;a<d.childNodes.length;a++){var b=d.childNodes[a];if(b.nodeType==1&&b.tagName=="DIV"){var c=b.getAttribute("CTXName");if(c!=null&&c!="")return true}}return false}function ToggleItemRowSelection(b){ULS_core();if(b==null)b=window.event;MenuHtc_hide();var a=GetItemRow(b),d=CtxFromRow(a);RemoveCssClassFromElement(a,ItemHoverClass(a));var c=!(HasCssClass(a,"s4-itm-selected")||HasCssClass(a,"s4-itm-selHover"));ToggleItemRowSelection2(d,a,c,true);AddCssClassToElement(a,ItemHoverClass(a));UpdateSelectAllCbx(d,c);if(window.event)window.event.cancelBubble=true;else b.stopPropagation();return true}function ToggleItemRowSelection2(b,a,f,e){ULS_core();var d=a.getAttribute("iid"),c=d.split(",");if(c[1]=="")return;SelectListItem(b,d,c,a,f,true);OnItemSelectionChanged(b,GroupNameFromRow(a),e);return true}function UpdateSelectAllCbx(a,c){ULS_core();if(!a||!a.SelectAllCbx)return;a.SelectAllCbx.checked=false;if(c){var d=CountTotalItems(a),b=CountSelectedItems(a);if(b==d&&b>0)a.SelectAllCbx.checked=true}}function SelectListItem(a,b,f,e,c,g){ULS_core();var d=CbxOfItemRow(e);if(typeof a.dictSel=="undefined"||!g)a.dictSel=[];if(c){AddCssClassToElement(e,"s4-itm-selected");if(a.dictSel[b]==null){a.CurrentSelectedItems++;a.dictSel[b]={id:f[1],fsObjType:f[2]}}}else{RemoveCssClassFromElement(e,"s4-itm-selected");if(a.dictSel[b]!=null){delete a.dictSel[b];a.CurrentSelectedItems--}}d.checked=c;if(c)d.style.display="inline";else d.style.display=""}function GetSelectedItemsDict(a){ULS_core();if(a!=null&&a.dictSel!=null)return a.dictSel;return null}function CountTotalItems(a){ULS_core();if(a.TotalListItems==null)a.TotalListItems=0;return a.TotalListItems}function CountSelectedItems(a){ULS_core();if(a.CurrentSelectedItems==null)a.CurrentSelectedItems=0;return a.CurrentSelectedItems}function GetLastSelectableRowIdx(c,d){ULS_core();if(!c||!d)return;var a,b=c.rows;for(a=b.length-1;a>=0;a--){var e=b[a];if(d(e))return a}return -1}function UpdateCtxLastSelectableRow(a,c){ULS_core();if(!a||!c)return;a.LastSelectableRowIdx=0;var b=GetLastSelectableRowIdx(c,ItemIsSelectable);if(b!=-1)a.LastSelectableRowIdx=b}function callOpenBreadcrumbMenu(a,e,f,c,d){ULS_core();if(!a)var a=window.event;a.cancelBubble=true;if(a.stopPropagation)a.stopPropagation();var g=function(){ULS_core();SP.UI.PopoutMenu.createPopoutMenuInstanceAndLaunch(e,f,c,d)},b;try{b=typeof SP.UI.PopoutMenu.createPopoutMenuInstanceAndLaunch}catch(h){b="undefined"}EnsureScript("SP.js",b,g)}function HasCssClass(d,f,e){ULS_core();var c=d.className;if(c==null)return false;var b=c.split(" "),a;for(a=0;a<b.length;a++)if(b[a]==f){if(e){b.splice(a,1);d.className=b.join(" ")}return true}return false}function AddCssClassToElement(a,b){ULS_core();var c=a.className;if(c!=null){if(!HasCssClass(a,b))a.className=a.className+" "+b}else a.className=b}function RemoveCssClassFromElement(b,a){ULS_core();HasCssClass(b,a,true)}function CUrl(b){ULS_core();var c=b.indexOf("?"),a=b.indexOf("#");if(a>=0&&a<c)a=-1;this.path=b;this.query="";this.hash="";if(c>=0){this.path=b.substr(0,c);if(a>=c)this.query=b.substr(c,a-c);else this.query=b.substr(c)}if(a>=0){if(c<0)this.path=b.substr(0,a);this.hash=b.substr(a)}}CUrl.prototype.ToString=CUrlToString;function CUrlToString(){ULS_core();var a=this.path+this.query+this.hash;return a}function LaunchCreateHandler(b){ULS_core();if(typeof __CreateHandler!="undefined"&&__CreateHandler!=null){var a=__CreateHandler(b);return a}return true}if(FV4UI()){if(_spBodyOnLoadFunctionNames!=null&&typeof _spBodyOnLoadFunctionNames!="undefined")_spBodyOnLoadFunctionNames.push("FixRibbonAndWorkspaceDimensions");AddEvtHandler(window,"onresize",FixRibbonAndWorkspaceDimensionsForResize)}function setInnerText(a,b){ULS_core();var c=a.ownerDocument;if(c.createTextNode){var d=c.createTextNode(b);a.innerHTML="";a.appendChild(d)}else a.innerText=b}function QstringStruct(g){ULS_core();this.nonFilterParams={};this.filterParams={};var e=g.split("&"),c;for(c=0;c<e.length;c++){var a=e[c].split("=");if(a.length==2)if(a[0].search("^Filter")!=-1){var d=a[0].match("[0-9]*$"),b;if(typeof this.filterParams[d]!="undefined")b=this.filterParams[d];else{b={};this.filterParams[d]=b}var f=a[0].match("^Filter[^0-9]*");b[f]=a[1]}else this.nonFilterParams[a[0]]=a[1]}}QstringStruct.prototype.toString=QstringStructToString;function QstringStructToString(){ULS_core();var c=[],e=1;for(var d=0;d<this.filterParams.length;d++){var f=this.filterParams[d];for(var b in f){var a=[];a.push(b);a.push(e);a.push("=");a.push(f[b]);c.push(a.join(""))}e++}for(var b in this.nonFilterParams){var a=[];a.push(b);a.push("=");a.push(this.nonFilterParams[b]);c.push(a.join(""))}return "?"+c.join("&")}function ReconcileQstringFilters(j,k){ULS_core();var b=[];b.push(new QstringStruct(j));b.push(new QstringStruct(k));var f=[];for(var c=0;c<b.length;c++)for(var d in b[c].nonFilterParams){var a=[];a.push(d);a.push("=");a.push(b[c].nonFilterParams[d]);f.push(a.join(""))}var h=1,g={};for(var c=0;c<b.length;c++)for(var i in b[c].filterParams){var e=b[c].filterParams[i];if(typeof g[e.FilterField]=="undefined"){for(var d in e){var a=[];a.push(d);a.push(h);a.push("=");a.push(e[d]);f.push(a.join(""))}h++;g[e.FilterField]=e}}return f.join("&")}cGCMinimumWidth=400;cGCMinimumHeight=200;cGCMaxGCResizeCount=10;var glGCObjectHeight=0,glGCObjectWidth=0;glGCResizeCounter=0;function TestGCObject(a){ULS_core();if(browseris.ie55up&&typeof a=="undefined"||a==null||a.object==null)return false;return true}function GCComputeSizing(e){ULS_core();if(TestGCObject(e)){var g=document.documentElement.currentStyle.direction=="rtl",d=document.compatMode=="BackCompat"?document.documentElement.scrollWidth:document.documentElement.clientWidth,f=document.compatMode=="BackCompat"?document.documentElement.scrollHeight:document.documentElement.clientHeight,b=0,c=0;if(g){b=-180;c=120}else{b=32;c=-2}var a=e.parentElement;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.parentElement.offsetLeft;c+=e.parentElement.offsetTop;glGCObjectHeight=f-c;if(glGCObjectHeight>f)glGCObjectHeight=f;if(glGCObjectHeight<cGCMinimumHeight)glGCObjectHeight=cGCMinimumHeight;if(g)glGCObjectWidth=d+b;else glGCObjectWidth=d-b;if(glGCObjectWidth>d)glGCObjectWidth=d;if(glGCObjectWidth<cGCMinimumWidth)glGCObjectWidth=cGCMinimumWidth}}function GCResizeGridControl(a){ULS_core();if(TestGCObject(a)){var c=glGCObjectHeight,b=glGCObjectWidth;GCComputeSizing(a);if(c!=glGCObjectHeight)a.height=glGCObjectHeight;if(b!=glGCObjectWidth)a.width=glGCObjectWidth}}function GCWindowResize(a){ULS_core();if(TestGCObject(a)){glGCResizeCounter=0;GCResizeGridControl(a)}}function GCOnResizeGridControl(a){ULS_core();if(TestGCObject(a))if(glGCResizeCounter<cGCMaxGCResizeCount){glGCResizeCounter++;GCResizeGridControl(a)}}function GCActivateAndFocus(a){ULS_core();if(TestGCObject(a)){a.SetActive;a.Focus}}function GCNavigateToNonGridPage(){ULS_core();var a=window.location.href;gridPart=a.match("ShowInGrid=");if(gridPart){gridSet=/ShowInGrid=\w*/;a=a.replace(gridSet,"")}var b=a.indexOf("?");if(b!=-1){var c=a.indexOf("?",b+1);if(c!=-1)a=a.slice(0,c);a=a+"&"}else a=a+"?";a=a+"ShowInGrid=False";document.location.replace(STSPageUrlValidation(a))}function GCAddNewColumn(a,b){ULS_core();if(TestGCObject(a)){var h=window.location.href,e=a.Name,g=a.SelectedColumnUniqueName,i=a.RightToLeft,f=a.ViewGUID,c="FldNew.aspx",d=a.ServerTemplate;if(d=="102")c="QstNew.aspx";b=b+"/_layouts/"+c+"?List="+e+"&View="+f+"&Source="+h+"&RelativeToField="+g+"&LTR="+i;window.location=b}}function GCEditDeleteColumn(a,b){ULS_core();if(TestGCObject(a)){var g=window.location.href,f=a.SelectedColumnUniqueName,e=a.Name,c="FldEdit.aspx",d=a.ServerTemplate;if(d=="102")c="QstEdit.aspx";b=b+"/_layouts/"+c+"?List="+e+"&Field="+f+"&Source="+g;window.location=b}}var objGCGlobal=null;function GCShowTaskPane(){ULS_core();if(objGCGlobal!=null){objGCGlobal.DisplayTaskPane=true;objGCGlobal=null}}function GCShowHideTaskPane(a){ULS_core();if(TestGCObject(a)){var b=a.DisplayTaskPane;a.DisplayTaskPane=!b;if(!b){objGCGlobal=a;window.setTimeout("GCShowTaskPane()",5)}}}function GCShowHideTotalsRow(a){ULS_core();if(TestGCObject(a)){var b=a.DisplaySheetTotals;a.DisplaySheetTotals=!b}}function GCGridNewRow(a){ULS_core();if(TestGCObject(a))a.SelectNewRow()}function GCRefresh(a){ULS_core();if(TestGCObject(a))a.Refresh()}function GCNewFolder(a){ULS_core();if(TestGCObject(a))a.NewFolder()}var L_Edit_Text="Edit",L_ViewItem_Text="View Item",L_EditItem_Text="Edit Item",L_EditSeriesItem_Text="Edit Series",L_DeleteItem_Text="Delete Item",L_DeleteDocItem_Text="Delete",L_ViewProperties_Text="View Properties",L_EditProperties_Text="Edit Properties",L_ViewResponse_Text="View Response",L_EditResponse_Text="Edit Response",L_DeleteResponse_Text="Delete Response",L_Subscribe_Text="Alert Me",L_CustomizeNewButton_Text="Change New Button Order",L_Review_Text="Send for Review",L_EditIn_Text="Edit in ^1",L_EditInApplication_Text="Edit Document",L_Checkin_Text="Check In",L_Checkout_Text="Check Out",L_DiscardCheckou_Text="Discard Check Out",L_CreateDWS_Text="Create Document Workspace",L_PublishBack_Text="Publish to Source Location",L_Versions_Text="Version History",L_WorkOffline_Text="Connect to Client",L_Reply_Text="Reply",L_ExportContact_Text="Export Contact",L_ExportEvent_Text="Export Event",L_Reschedule_Text="Rescheduling Options",L_Move_Text="Move",L_Keep_Text="Keep",L_Delete_Text="Delete",L_Open_Text="Open",L_SiteSettings_Text="Change Site Settings",L_ManageUsers_Text="Manage Users",L_DeleteSite_Text="Delete Site",L_SiteStorage_Text="Manage Site Storage",L_MngPerms_Text="Manage Permissions",L_Settings_Text="Settings",L_Remove_Text="Remove from this list",L_ModerateItem_Text="Approve/reject",L_PublishItem_Text="Publish a Major Version",L_CancelPublish_Text="Cancel Approval",L_UnPublishItem_Text="Unpublish this version",L_DownloadOriginal_Text="Download Picture",L_EditVersion_Text="Edit",L_EditInOIS_Text="Edit Picture",L_Workflows_Text="Workflows",L_OpenMenu_Text="Open Menu",L_Send_Text="Send To",L_ExistingCopies_Text="Existing Copies",L_OtherLocation_Text="Other Location",L_GoToSourceItem_Text="Go to Source Item",L_NotifyThisIsCopy_Text="This item was copied from another location and may be receiving updates from there.  You should make sure that the source stops sending updates or this item may get recreated.\n\n",L_SendToEmail_Text="E-mail a Link",L_DownloadACopy_Text="Download a Copy",L_DocTran_Text="Convert Document",L_AddToMyLinks_Text="Add to My Links",L_AddToCategory_Text="Submit to Portal Area",L_VS_DownArrow_Text="Select a View",L_ModifyView="Modify this view",L_CreateView="Create a new view",L_SubmitFileCopyWarning_Text="Are you sure you want to copy this document to ^1?",L_SubmitFileMoveWarning_Text="Are you sure you want to move this document to ^1?",L_SubmitFileLinkWarning_Text="Are you sure you want to move this document to ^1? A link will be created to the destination document.",SubmitFileConfirmation=[];SubmitFileConfirmation["Copy"]=L_SubmitFileCopyWarning_Text;SubmitFileConfirmation["Move"]=L_SubmitFileMoveWarning_Text;SubmitFileConfirmation["Link"]=L_SubmitFileLinkWarning_Text;var L_ItemGone="This item is no longer available.  It may have been deleted by another user.  Click 'OK' to refresh the page.",L_ActivateSolution_Text="Activate",L_DeactivateSolution_Text="Deactivate",L_UpgradeSolution_Text="Upgrade";function CUIInfo(a,c,b){ULS_core();a.CUICommand=c;a.CUIEnabledCommands=b}function resetExecutionState(){ULS_core();IsMenuShown=false;itemTable=null;imageCell=null;onKeyPress=false;currentCtx=null;currentEditMenu=null;currentItemID=null;downArrowText=null;resetItemGlobals()}function resetItemGlobals(){ULS_core();currentItemAppName=null;currentItemProgId=null;currentItemIcon=null;currentItemOpenControl=null;currentItemModerationStatus=null;currentItemUIString=null;currentItemCheckedoutToLocal=null;currentItemCanModify=null;currentItemFileUrl=null;currentItemFSObjType=null;currentItemContentTypeId=null;currentItemCheckedOutUserId=null;currentItemCheckoutExpires=null;currentItemPermMaskH=null;currentItemPermMaskL=null;currentItemIsEventsExcp=null;currentItemIsEventsDeletedExcp=null}function IsMenuEnabled(){ULS_core();return browseris.ie55up||browseris.nav6up||browseris.safari125up}function GetSelectedElement(a,c,b){ULS_core();while(a!=null&&a.tagName!=c&&(b==null||a.tagName!=b))a=a.parentNode;return a}function setupMenuContext(a){ULS_core();currentCtx=a}function setupMenuContextName(strCtx){ULS_core();try{eval("var ctx="+strCtx+";")}catch(e){eval("var ctx=g_ctxDict['"+strCtx+"'];")}setupMenuContext(ctx)}function FindSTSMenuTable(a,c){ULS_core();var b=a.getAttribute(c);while(a!=null&&(b==null||b=="")){a=GetSelectedElement(a.parentNode,"TABLE","DIV");if(a!=null)b=a.getAttribute(c)}return a}function OnLinkDeferCall(a){ULS_core();if(!IsMenuEnabled())return false;a.onfocusout=OutItem;a.onkeydown=PopMenu;var b=FindSTSMenuTable(a,"CTXName");if(b==null)return false;OnItem(b);return false}function StartDeferItem(a){ULS_core();if(a!=itemTable){itemTableDeferred=a;var c=a.tagName=="TABLE";if(c){a.onmouseout=EndDeferItem;a.onclick=DeferredOnItem;a.oncontextmenu=DeferredOnItem}else{var b=a.parentNode;b.onmouseout=EndDeferItem;b.oncontextmenu=DeferredOnItem}}}function IsAjaxMenu(d){ULS_core();var a=d.getAttribute("eventtype");if(a!=null&&(a==5||a==3||a==4))return false;var c=d.className;if(c!=null&&c.length>0){var b=c.split(" ");if(b!=null&&b.length>1&&b[b.length-1]=="itx")return true}return false}function DeferredOnItem(b){ULS_core();var a=itemTableDeferred;if(a!=null){MenuHtc_hide();OnItem(a);if(IsAjaxMenu(a))CreateAjaxMenu(b);else CreateMenu(b);return false}}function EndDeferItem(){ULS_core();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 GetFirstChildElement(b){ULS_core();for(var a=0;a<b.childNodes.length;a++)if(b.childNodes[a].nodeType==1)return b.childNodes[a];return null}function GetLastChildElement(b){ULS_core();for(var a=b.childNodes.length-1;a>=0;a--)if(b.childNodes[a].nodeType==1)return b.childNodes[a];return null}function CreateCtxImg(c,h){ULS_core();var a=FindCtxImg(c);if(a!=null&&a.shown==true)return a;if(a==null){a=document.createElement("DIV");a.className="s4-ctx";var b=[];b.push("<span>\u00a0</span>");b.push("<a onfocus='");if(c.tagName=="TD")b.push("OnChildItem(this.parentNode.parentNode); return false;'");else if(c.tagName=="TH")b.push("OnChildColumn(this.parentNode.parentNode); return false;'");else b.push("return false;'");b.push("href='javascript:;' onclick='PopMenuFromChevron(event); return false;' title='");b.push(L_OpenMenu_Text+"'></a>");b.push("<span>\u00a0</span>");a.innerHTML=b.join("");delete b;c.appendChild(a)}if(typeof a.shown=="undefined"){var f=a.getElementsByTagName("SPAN");for(var d=0;d<f.length;d++)if(browseris.ie&&browseris.iever==6)f[d].style.lineHeight="1px";var e=a.getElementsByTagName("A")[0];e.onfocusout=h;var g='<img style="visibility:hidden;" src="/_layouts/images/downarrwwhite.png" alt="'+L_OpenMenu_Text+'"/>';e.innerHTML=g}ShowCtxImg(a,true,c);return a}function FindCtxImg(e){ULS_core();var d=null,a,c=e.childNodes;for(a=0;a<c.length;a++){var b=c[a];if(b.nodeType==1&&b.className.indexOf("s4-ctx")!=-1){d=b;break}}return d}function RemoveCtxImg(b){ULS_core();var a=FindCtxImg(b);if(a!=null)ShowCtxImg(a,false,b)}function ShowCtxImg(a,d,e){ULS_core();var c=null,b=null;if(a!=null)c=a.getElementsByTagName("A")[0];if(c!=null)b=c.getElementsByTagName("IMG")[0];if(b!=null)if(d==true){PositionCtxImg(a,e);b.style.visibility="visible";a.className+=" s4-ctx-show";a.shown=true}else{b.style.visibility="hidden";a.className="s4-ctx";a.shown=false}}function PositionCtxImg(a,b){ULS_core();var d=AbsTop(b)-AbsTop(a.offsetParent),c=AbsLeft(b)-AbsLeft(a.offsetParent);if(!IsElementRtl(b))c=c+b.offsetWidth-17;if(browseris.nav)a.style.top=d+1+"px";else if(browseris.ie)a.style.top=d+1+"px";else if(browseris.safari)a.style.top=d+4+"px";a.style.left=c+"px";a.style.height=b.offsetHeight-2+"px";a.style.lineHeight=a.style.height}function IsInCtxImg(a){ULS_core();while(a!=null&&a.tagName!="TD"&&a.tagName!="BODY"&&a.className.indexOf("s4-ctx")==-1)a=a.parentNode;if(a!=null&&a.className.indexOf("s4-ctx")!=-1)return a;return null}function OnItemDeferCall(g){ULS_core();if(!IsMenuEnabled())return false;if(IsMenuOn()){StartDeferItem(g);return false}if(itemTable==g)return;if(itemTable!=null)OutItem();itemTable=g;currentItemID=GetAttributeFromItemTable(itemTable,"ItemId","Id");var b=itemTable.tagName=="TABLE",j=new Function("setupMenuContextName('"+itemTable.getAttribute("CTXName")+"');");j();var i=currentCtx,h=IsAjaxMenu(itemTable);if(b){if(browseris.nav6up)itemTable.className="ms-selectedtitlealternative";else itemTable.className="ms-selectedtitle";if(h)itemTable.className=itemTable.className+" itx"}var a=itemTable.parentNode;while(a.tagName!="TD"&&a.tagName!="BODY")a=a.parentNode;var f=null;if(!b)f=CreateCtxImg(a,OutItem);if(browseris.ie5up&&!browseris.ie55up){itemTable.onclick=EditMenuDefaultForOnclick;itemTable.oncontextmenu=EditMenuDefaultForOnclick}else{var c=h?CreateAjaxMenu:CreateMenu;if(b){itemTable.onclick=c;itemTable.oncontextmenu=c}else{if(f!=null)f.onclick=c;a.oncontextmenu=c}}if(b)itemTable.onmouseout=OutItem;else a.onmouseout=OutItem;if(b){var e;e=GetFirstChildElement(GetFirstChildElement(itemTable));if(e!=null)imageCell=GetLastChildElement(e);if(i.listTemplate==200){if(itemTable.getAttribute("menuType")=="Orphaned")downArrowText=L_Reschedule_Text}else downArrowText=L_Edit_Text;var d=GetFirstChildElement(imageCell);d.src=i.imagesPath+"downarrwwhite.png";d.alt=downArrowText;d.style.visibility="visible";imageCell.className="ms-menuimagecell"}return false}function OutItem(b){ULS_core();if(!IsMenuOn()&&itemTable!=null){var e=itemTable.tagName=="TABLE";if(e){if(IsAjaxMenu(itemTable))itemTable.className="ms-unselectedtitle itx";else itemTable.className="ms-unselectedtitle";itemTable.onclick=null;itemTable.oncontextmenu=null;itemTable.onmouseout=null}else{var a=itemTable.parentNode,c=null;if(b==null)b=window.event;if(b!=null){c=b.toElement!=null?b.toElement:b.relatedTarget;if(a!=null&&c!=null&&IsContained(c,a))return true}if(a!=null){a.onclick=null;a.oncontextmenu=null;a.onmouseout=null;RemoveCtxImg(a);var d=GetItemRow2(a),f=GetItemRow2(c);if(d!=null&&d!=f)RemoveCssClassFromElement(d,ItemHoverClass(d))}}if(e&&imageCell!=null){GetFirstChildElement(imageCell).style.visibility="hidden";imageCell.className=""}resetExecutionState()}}function IsContained(a,d){ULS_core();if(a==d)return true;var c=d.getElementsByTagName(a.tagName);for(var b=0;b<c.length;b++)if(a==c[b])return true;return false}function IsMenuOn(){ULS_core();if(!IsMenuShown)return false;var a=false;a=MenuHtc_isOpen(currentEditMenu);if(!a)IsMenuShown=false;return a}function PopMenuFromChevron(b){ULS_core();if(b==null)b=window.event;var e=b.srcElement?b.srcElement:b.target,a=e.parentNode;while(a.tagName!="TD"&&a.tagName!="TH"&&a.tagName!="BODY")a=a.parentNode;if(a.tagName=="TD"){var d=a.getElementsByTagName("DIV")[0];if(d!=null)OnItemDeferCall(d)}else if(a.tagName=="TH"){var c=a.getElementsByTagName("DIV")[0];if(c!=null)OnMouseOverFilterDeferCall(c)}return false}function PopMenu(a){ULS_core();if(!IsMenuEnabled())return true;if(a==null)a=window.event;var b;if(a==null)return true;if(browseris.nav6up)b=a.which;else b=a.keyCode;if(!IsMenuOn()&&(a.shiftKey&&b==13||a.altKey&&b==40)){onKeyPress=true;var d=a.srcElement?a.srcElement:a.target,c=FindSTSMenuTable(d,"CTXName");if(c==null)return false;OnItemDeferCall(c);if(IsAjaxMenu(c))CreateAjaxMenu(a);else CreateMenu(a);onKeyPress=false;return false}else return true}function CreateMenuEx(e,a,d){ULS_core();if(a==null)return;IsMenuShown=true;document.body.onclick="";var b;b=BuildMenu(e);currentEditMenu=b;a.onmouseout=null;var c=a.tagName=="DIV"?a.parentNode:a;OMenu(b,c,null,null,-1);if(itemTable!=null&&itemTable.tagName!="DIV")itemTable=GetSelectedElement(a,"TABLE","DIV");if(c.tagName=="TD")c.onclick=SingleItemSelect;b._onDestroy=OutItem;if(d!=null)d.cancelBubble=true;return false}function BuildMenuWithInit(a){ULS_core();resetItemGlobals();setDocType();currentItemID=GetAttributeFromItemTable(itemTable,"ItemId","Id");currentItemCheckedOutUserId=itemTable.COUId;currentItemCheckedoutToLocal=GetAttributeFromItemTable(itemTable,"COut","IsCheckedoutToLocal ");currentItemModerationStatus=GetAttributeFromItemTable(itemTable,"MS","MStatus");return BuildMenu(a)}function BuildMenu(a){ULS_core();var b=CMenu(currentItemID+"_menu");if(!b)return;else if(a.isVersions)AddVersionMenuItems(b,a);else if(a.listTemplate==121)AddSolutionsCatalogMenuItems(b,a);else if(a.listBaseType==1)AddDocLibMenuItems(b,a);else if(a.listTemplate==200)AddMeetingMenuItems(b,a);else AddListMenuItems(b,a);InsertFeatureMenuItems(b,a);return b}function CreateAjaxMenu(b){ULS_core();if(!IsContextSet())return;if(b==null)b=window.event;var c=b.srcElement?b.srcElement:b.target;if(itemTable==null||itemTable.tagName=="TABLE"&&imageCell==null||onKeyPress==false&&!IsInCtxImg(c)&&(c.tagName=="A"||c.parentNode.tagName=="A"))return;var a=itemTable,d=a.parentNode;if(d!=null&&d.getAttribute("creatingAjax")==1)return;a.parentNode.setAttribute("creatingAjax","1");var e=currentCtx,f=function(c,b){ULS_core();a.parentNode.replaceChild(b,a);b.onclick=a.onclick;if(b.childNodes.length>0&&a.childNodes.length>0&&a.childNodes[0].onclick!=null)b.childNodes[0].onclick=a.childNodes[0].onclick;b.onmousehover=OnItem;OnItemDeferCall(b);CreateMenuEx(c,b,null);b.parentNode.removeAttribute("creatingAjax")};FetchEcbInfo(e,itemTable.id,itemTable.tagName,f);b.cancelBubble=true;return false}function FetchEcbInfo(ctx,id,tagName,fnCallback){ULS_core();var rg=[],str=escapeUrlForCallback(ctx.HttpRoot);rg.push(str);if(str[str.length-1]!="/")rg.push("/");rg.push("_layouts/inplview.aspx?Cmd=Ctx&List=");rg.push(ctx.listName);if(ctx.view!=null){rg.push("&View=");rg.push(ctx.view)}rg.push("&ViewCount=");rg.push(ctx.ctxId);if(typeof ctx.isXslView!="undefined"&&ctx.isXslView){rg.push("&Field=");if(itemTable!=null)rg.push(GetAttributeFromItemTable(itemTable,"Field","Field"));else rg.push("LinkFilename")}rg.push("&ID=");rg.push(id);rg.push("&ListViewPageUrl=");var curl=new CUrl(document.URL);str=curl.path;rg.push(str);var strUrl=rg.join(""),req;if(window.XMLHttpRequest)req=new XMLHttpRequest;else req=new ActiveXObject("Microsoft.XMLHTTP");req.open("GET",strUrl,true);req.onreadystatechange=function(){ULS_core();if(req.readyState!=4)return;if(req.status==601)alert(req.responseText);else{var strInner=req.responseText,div=document.createElement("DIV");div.style.visibility="hidden";div.innerHTML=strInner;document.body.appendChild(div);var tabs=div.getElementsByTagName(tagName),tab,i;eval("ctx"+ctx.ctxId+".clvp=ctx.clvp;");for(i=0;i<tabs.length;i++){tab=tabs[i];if(tab.id==id)break}if(i==tabs.length)tab=null;if(tab!=null)fnCallback(ctx,tab);else{alert(L_ItemGone);RefreshPage(1)}document.body.removeChild(div)}};req.send(null)}function CreateMenu(a){ULS_core();if(!IsContextSet())return;var c=currentCtx;if(a==null)a=window.event;var b=a.srcElement?a.srcElement:a.target;if(itemTable==null||itemTable.tagName=="TABLE"&&imageCell==null||onKeyPress==false&&!IsInCtxImg(b)&&(b.tagName=="A"||b.parentNode.tagName=="A"))return;return CreateMenuEx(c,itemTable,a)}function AddSendSubMenu(x,a){ULS_core();strDisplayText=L_Send_Text;var v=GetAttributeFromItemTable(itemTable,"Url","ServerUrl"),d,l,f;if(currentItemFileUrl!=null){l=unescapeProperly(currentItemFileUrl);d=escapeProperly(l);f=SzExtension(l);if(f!=null&&f!="")f=f.toLowerCase()}var i=itemTable.getAttribute("SRed"),w=itemTable.getAttribute("DefaultIO"),o=currentItemProgId!="SharePoint.WebPartPage.Document"&&(i==null||i==""||HasRights(0,32))&&f!="aspx",p=HasRights(16,0),n=currentItemFSObjType!=1&&a.listBaseType==1&&(i==null||i==""||HasRights(0,32));if(!o&&!p&&!n)return;var c=CASubM(x,strDisplayText,"","",400);CUIInfo(c,"SendTo",["SendTo","PopulateSendToMenu"]);c.IsSubMenu=true;c.id="ID_Send";var b;if(o){if(typeof a.SendToLocationName!="undefined"&&a.SendToLocationName!=null&&a.SendToLocationName!=""&&typeof a.SendToLocationUrl!="undefined"&&a.SendToLocationUrl!=null&&a.SendToLocationUrl!=""){strAction="STSNavigate('"+a.HttpRoot+"/_layouts/copy.aspx?"+"SourceUrl="+d+"&Source="+GetSource()+"&FldUrl="+escapeProperly(a.SendToLocationUrl)+"')";b=CAMOpt(c,a.SendToLocationName,strAction,"");CUIInfo(b,"SendToRecommendedLocation",["SendToRecommendedLocation"])}if(typeof itemTable.getAttribute("HCD")!="undefined"&&itemTable.getAttribute("HCD")=="1"){strDisplayText=L_ExistingCopies_Text;strAction="STSNavigate('"+a.HttpRoot+"/_layouts/updatecopies.aspx?"+"SourceUrl="+d+"&Source="+GetSource()+"')";strImagePath=a.imagesPath+"existingLocations.gif";b=CAMOpt(c,strDisplayText,strAction,strImagePath);b.id="ID_ExistingCopies";CUIInfo(b,"SendToExistingCopies",["SendToExistingCopies"])}strDisplayText=L_OtherLocation_Text;strAction="NavigateToSendToOtherLocationV4(event, '"+a.HttpRoot+"/_layouts/copy.aspx?"+"SourceUrl="+d+"&Source="+GetSource()+"')";strImagePath=a.imagesPath+"sendOtherLoc.gif";b=CAMOpt(c,strDisplayText,strAction,strImagePath);b.id="ID_OtherLocation";CUIInfo(b,"SendToOtherLocation",["SendToOtherLocation"]);if(a.OfficialFileNames!=null&&a.OfficialFileNames!=""){var m=a.OfficialFileNames.split("__HOSTSEPARATOR__");if(m!=null)for(var k=0;k<m.length;k++){var u=m[k],g=u.split(",");strDisplayText=g[0];var t=0,s="Copy";if(g.length==3){strDisplayText=g[0].replace(/%2c/g,",").replace(/%25/g,"%");t=g[1];s=g[2]}strAction='if(confirm("'+StBuildParam(SubmitFileConfirmation[s],STSScriptEncode(strDisplayText))+"\")!=0) STSNavigate('"+a.HttpRoot+"/_layouts/SendToOfficialFile.aspx?"+"ID="+escapeProperly(strDisplayText)+"&Index="+t+"&SourceUrl="+d+"&Source="+GetSource()+"')";strImagePath="";b=CAMOpt(c,strDisplayText,strAction,strImagePath);var q="SendToOfficialFile"+k;CUIInfo(b,q,[q])}}CAMSep(c)}if(p){strDisplayText=L_SendToEmail_Text;var v=GetAttributeFromItemTable(itemTable,"Url","ServerUrl"),h=a.HttpRoot.substr(0);if(h[h.length-1]!="/")h+="/";var r=-1,j="";r=h.substring(8).indexOf("/")+8;j=h.substr(0,r)+escapeProperlyCore(unescapeProperly(v),true);var e=itemTable.getAttribute("SRed");if(e!=null&&e!=""&&e!="1"&&w==1)if(e.substring(0,1)!="1")j=e;else j=e.substring(1);strAction="javascript:SendEmail('"+j+"')";strImagePath=a.imagesPath+"gmailnew.gif";b=CAMOpt(c,strDisplayText,strAction,strImagePath);CUIInfo(b,"EmailLink",["EmailLink"]);b.id="ID_SendToEmail"}if(n){if(a.listTemplate!=109&&a.listTemplate!=119)AddWorkspaceMenuItem(c,a);if(a.listTemplate!=119){strAction="STSNavigate('"+a.HttpRoot+"/_layouts/download.aspx?"+"SourceUrl="+d+"&Source="+GetSource()+"&FldUrl="+escapeProperly(a.SendToLocationUrl)+"')";b=CAMOpt(c,L_DownloadACopy_Text,strAction,"");CUIInfo(b,"DownloadCopy",["DownloadCopy"]);b.id="ID_DownloadACopy"}}}function AddDocTransformSubMenu(l,h){ULS_core();if(typeof rgDocTransformers=="undefined"||rgDocTransformers==null)return;var b=null,c=GetAttributeFromItemTable(itemTable,"Url","ServerUrl"),d;if(currentItemFileUrl!=null)d=escapeProperly(unescapeProperly(currentItemFileUrl));var g=c.lastIndexOf(".");if(g>0){var j=c.substring(g+1,c.length).toLowerCase(),a,e=false;for(a=0;a<rgDocTransformers.length;a++)if(rgDocTransformers[a].ConvertFrom==j){var f=GetAttributeFromItemTable(itemTable,"CId","ContentTypeId"),k=new RegExp("/|"+f+"|/");if(f&&!k.test(rgDocTransformers[a].ExcludedContentTypes)){if(!e){b=CASubM(l,L_DocTran_Text,h.imagesPath+"ConvertDocument.gif",L_DocTran_Text,500);b.IsSubMenu=true;b.Id="ID_ConvertDocument";e=true}strAction="STSNavigate('"+h.HttpRoot+"/_layouts/"+escapeProperlyCore(rgDocTransformers[a].TransformUIPage,true)+"?"+"FileName="+d+"&TID="+rgDocTransformers[a].Id+"&Source="+GetSource()+"')";var i;i=CAMOpt(b,rgDocTransformers[a].Name,strAction,"");i.Id="ID_Transform"+rgDocTransformers[a].Id}}}}function AddMeetingMenuItems(d,b){ULS_core();if(itemTable.getAttribute("menuType")=="Orphaned"){var a,c=GetAttributeFromItemTable(itemTable,"ItemId","Id");strDisplayText=L_Move_Text;strAction="GoToMtgMove('"+b.listUrlDir+"',"+c+",'"+itemTable.getAttribute("DateTime")+"','"+itemTable.getAttribute("DateTimeISO")+"')";strImagePath="";a=CAMOpt(d,strDisplayText,strAction,strImagePath);a.id="ID_Move";strDisplayText=L_Keep_Text;strAction="MtgKeep('"+b.HttpPath+"','"+b.listName+"',"+c+")";strImagePath="";a=CAMOpt(d,strDisplayText,strAction,strImagePath);a.id="ID_Keep";strDisplayText=L_Delete_Text;strAction="MtgDelete('"+b.HttpPath+"','"+b.listName+"',"+c+")";strImagePath=b.imagesPath+"delitem.gif";a=CAMOpt(d,strDisplayText,strAction,strImagePath);a.id="ID_Delete"}}function AddListMenuItems(c,a){ULS_core();if(typeof Custom_AddListMenuItems!="undefined")if(Custom_AddListMenuItems(c,a))return;if(currentItemFileUrl==null)currentItemFileUrl=GetAttributeFromItemTable(itemTable,"Url","ServerUrl");var d;if(currentItemFileUrl!=null)d=escapeProperly(unescapeProperly(currentItemFileUrl));var f=currentItemID;if(currentItemIsEventsExcp==null){currentItemIsEventsExcp=false;currentItemIsEventsDeletedExcp=false;currentItemEvtType=itemTable.getAttribute("EventType");if(currentItemEvtType!=null&&(currentItemEvtType==2||currentItemEvtType==3||currentItemEvtType==4)){currentItemIsEventsExcp=true;if(currentItemEvtType==3)currentItemIsEventsDeletedExcp=true;if(currentItemID.indexOf(".")!=-1)f=currentItemID.split(".")[0]}}var b;if(a.listBaseType==3&&a.listTemplate==108){strDisplayText=L_Reply_Text;if(itemTable.getAttribute("Ordering").length>=504){var L_ReplyLimitMsg_Text="Cannot reply to this thread. The reply limit has been reached.";strAction="alert('"+L_ReplyLimitMsg_Text+"')"}else strAction="STSNavigate('"+a.newFormUrl+"&Threading="+escapeProperly(itemTable.getAttribute("Ordering"))+"&Guid="+escapeProperly(itemTable.getAttribute("ThreadID"))+"&Subject="+escapeProperly(itemTable.getAttribute("Subject"))+"&Source="+GetSource()+"')";strImagePath=a.imagesPath+"reply.gif";b=CAMOpt(c,strDisplayText,strAction,strImagePath,null,100);b.id="ID_Reply"}AddSharedNamespaceMenuItems(c,a);var e=itemTable.getAttribute("CId");if(e!=null&&e.indexOf("0x0106")==0&&HasRights(16,0)){strDisplayText=L_ExportContact_Text;strAction="STSNavigate('"+a.HttpPath+"&Cmd=Display&CacheControl=1&List="+a.listName+"&ID="+currentItemID+"&Using="+escapeProperly(a.listUrlDir)+"/vcard.vcf"+"')";strImagePath=a.imagesPath+"exptitem.gif";b=CAMOpt(c,strDisplayText,strAction,strImagePath,null,350);CUIInfo(b,"ExportContact",["ExportContact"]);b.id="ID_ExportContact"}CAMSep(c);if(a.verEnabled==1)AddVersionsMenuItem(c,a,d);if(a.isModerated==true&&HasRights(0,16)&&HasRights(0,4)&&HasRights(0,135168)&&a.listBaseType!=4&&currentItemID.indexOf(".0.")<0){strDisplayText=L_ModerateItem_Text;strAction="NavigateToApproveRejectAspx(event, '"+a.HttpRoot+"/_layouts/approve.aspx?List="+a.listName+"&ID="+f+"&Source="+GetSource()+"')";strImagePath=a.imagesPath+"apprj.gif";b=CAMOpt(c,strDisplayText,strAction,strImagePath,null,850);CUIInfo(b,"Moderate",["Moderate"]);b.id="ID_ModerateItem"}CAMSep(c);AddWorkflowsMenuItem(c,a);if(currentItemID.indexOf(".0.")<0&&HasRights(128,0)&&!a.ExternalDataList){strDisplayText=L_Subscribe_Text;strAction="NavigateToSubNewAspxV4(event, '"+a.HttpRoot+"', 'List="+a.listName+"&ID="+currentItemID+"')";strImagePath="";b=CAMOpt(c,strDisplayText,strAction,strImagePath,null,1100);b.id="ID_Subscribe";CUIInfo(b,"Subscribe",["Subscribe"])}CAMSep(c);AddManagePermsMenuItem(c,a,a.listName,currentItemID);if(currentItemID.indexOf(".0.")<0&&HasRights(0,8)&&!currentItemIsEventsExcp){if(a.listBaseType==4)strDisplayText=L_DeleteResponse_Text;else strDisplayText=L_DeleteItem_Text;strAction="DeleteListItem()";strImagePath=a.imagesPath+"delitem.gif";b=CAMOpt(c,strDisplayText,strAction,strImagePath,null,1170);CUIInfo(b,"Delete",["Delete"]);b.id="ID_DeleteItem";CUIInfo(b,"Delete",["Delete"])}if(currentItemFSObjType==1&&a.ContentTypesEnabled&&a.listTemplate!=108){strDisplayText=L_CustomizeNewButton_Text;strAction="STSNavigate('"+a.HttpRoot+"/_layouts/ChangeContentTypeOrder.aspx?List="+a.listName+"&RootFolder="+d+"&Source="+GetSource()+"')";strImagePath="";b=CAMOpt(c,strDisplayText,strAction,strImagePath,null,1200);CUIInfo(b,"ChangeNewButton",["ChangeNewButton"]);b.id="ID_CustomizeNewButton"}}function ReplaceUrlTokens(b,d){ULS_core();if(b==null||b==undefined||b==""){b="";return b}b=b.replace(/{Source}/g,GetSource());if(currentItemID!=null)b=b.replace(/{ItemId}/g,currentItemID);var a=null,c=null,f=b.indexOf("?");if(-1!=f&&f+2<b.length){a=b.substr(f+1);c=b.substr(0,f+1)}else c=b;if(currentItemFileUrl!=null){if(null!=a){var e=escapeProperly(unescapeProperly(currentItemFileUrl));a=a.replace(/{ItemUrl}/g,e)}c=c.replace(/{ItemUrl}/g,currentItemFileUrl)}if(d.HttpRoot!=null){if(null!=a){var e=escapeProperly(unescapeProperly(d.HttpRoot));a=a.replace(/{SiteUrl}/g,e)}c=c.replace(/{SiteUrl}/g,d.HttpRoot)}if(d.listName!=null){if(null!=a){var e=escapeProperly(d.listName);a=a.replace(/{ListId}/g,e)}c=c.replace(/{ListId}/g,d.listName)}if(d.listUrlDir!=null){if(null!=a){var e=escapeProperly(unescapeProperly(d.listUrlDir));a=a.replace(/{ListUrlDir}/g,e)}c=c.replace(/{ListUrlDir}/g,d.listUrlDir)}if(null==a)return c;else return c+a}function InsertFeatureMenuItems(p,c){ULS_core();CAMSep(p);var f=GetAttributeFromItemTable(itemTable,"Ext","FileType"),h=GetAttributeFromItemTable(itemTable,"Type","HTMLType"),e=GetAttributeFromItemTable(itemTable,"CId","ContentTypeId"),i=null,l=null;if(c!=null){i=c.listTemplate;if(null!=c.listName&&0<c.listName.length)l=c.listName.toLowerCase()}if(f)f=f.toLowerCase();if(h)h=h.toLowerCase();if(e)e=e.toLowerCase();var x,n=document.getElementById("ECBItems");if(n!=null){var o=n.childNodes[0];for(var j=0;j<o.childNodes.length;j++){var a=o.childNodes[j],s=parseInt(GetInnerText(a.childNodes[3])),t=parseInt(GetInnerText(a.childNodes[4])),g=GetInnerText(a.childNodes[5]),b=GetInnerText(a.childNodes[6]),d=false;if(b){b=b.toLowerCase();if(g=="FileType")d=f==b.toLowerCase();else if(g=="ProgId")d=h==b.toLowerCase();else if(g=="ContentType")d=e&&e.indexOf(b.toLowerCase())==0;else if(g=="List")if(null!=i&&i==b)d=true;else if(null!=l&&l==b)d=true}if(d&&HasRights(s,t)){var w=a.childNodes[0],q=a.childNodes[1],u=a.childNodes[2],y=parseInt(GetInnerText(a.childNodes[7])),r=GetInnerText(w),m=ReplaceUrlTokens(GetInnerText(u),c),k;if(m.substr(0,11)=="javascript:")k=m;else k="STSNavigate('"+STSScriptEncode(m)+"')";var v=ReplaceUrlTokens(GetInnerText(q),c);x=CIMOpt(p,r,k,v,null,y)}}}}function GetRootFolder2(c){ULS_core();var a=GetUrlKeyValue("RootFolder",false);if(c.clvp!=null&&c.clvp.rootFolder!=null)a=c.clvp.rootFolder;if(a==""||bValidSearchTerm){var b;if(itemTable)b=GetAttributeFromItemTable(itemTable,"DRef","FileDirRef");if(b!=null&&b!="")a="/"+b;else a=c.listUrlDir}return a}function GetRootFolder(b){ULS_core();var a=GetRootFolder2(b);return "&RootFolder="+escapeProperly(a)}function HasRights(a,b){ULS_core();if(currentItemPermMaskH==null){if(itemTable==null)return true;var c=GetAttributeFromItemTable(itemTable,"Perm","PermMask");if(c==null)return true;var d=itemTable.getAttribute("Author");SetCurrentPermMaskFromString(c,d)}if(!currentItemCanModify&&(EqualRights(a,b,0,4)||EqualRights(a,b,0,8)||EqualRights(a,b,1073741824,0)))return false;return (b&currentItemPermMaskL)==b&&(a&currentItemPermMaskH)==a}function EqualRights(a,c,b,d){ULS_core();return a==b&&c==d}function SetCurrentPermMaskFromString(b,c){ULS_core();var a=b.length;if(a<=10){currentItemPermMaskH=0;currentItemPermMaskL=parseInt(b)}else{currentItemPermMaskH=parseInt(b.substring(2,a-8),16);currentItemPermMaskL=parseInt(b.substring(a-8,a),16)}currentItemCanModify=c==null||HasRights(0,2048)||ctx.CurrentUserId==c||ctx.CurrentUserId==null||ctx.WriteSecurity==1}var SYSTEM_ACCOUNT_ID=1073741823;function AddSharedNamespaceMenuItems(c,a){ULS_core();var f=GetRootFolder(a);setupMenuContext(a);if(currentItemFileUrl==null)currentItemFileUrl=GetAttributeFromItemTable(itemTable,"Url","ServerUrl");if(currentItemFSObjType==null)currentItemFSObjType=GetAttributeFromItemTable(itemTable,"OType","FSObjType");if(currentItemContentTypeId==null)currentItemContentTypeId=GetAttributeFromItemTable(itemTable,"CId","ContentTypeId");if(currentItemModerationStatus==null)currentItemModerationStatus=GetAttributeFromItemTable(itemTable,"MS","MStatus");if(currentItemCheckedOutUserId==null)currentItemCheckedOutUserId=itemTable.getAttribute("COUId");if(currentItemCheckedoutToLocal==null)currentItemCheckedoutToLocal=GetAttributeFromItemTable(itemTable,"COut","IsCheckedoutToLocal ");if(currentItemCheckedoutToLocal!=1)currentItemCheckedoutToLocal=0;var h=currentItemCheckedOutUserId==SYSTEM_ACCOUNT_ID&&a.CurrentUserId!=SYSTEM_ACCOUNT_ID;bIsCheckout=0;if(a.isForceCheckout==true&&currentItemCheckedOutUserId==""&&currentItemFSObjType!=1)bIsCheckout=1;var g;if(currentItemFileUrl!=null)g=escapeProperly(unescapeProperly(currentItemFileUrl));var b;if(119!=a.listTemplate){if(a.listBaseType==1)strDisplayText=L_ViewProperties_Text;else if(a.listBaseType==4)strDisplayText=L_ViewResponse_Text;else strDisplayText=L_ViewItem_Text;var e=a.displayFormUrl+"&ID="+currentItemID+"&Source="+GetSource()+f;if(301==a.listTemplate)strAction="EditItem('"+e+"')";else strAction="EditItem2(event, '"+e+"')";strImagePath="";b=CAMOpt(c,strDisplayText,strAction,strImagePath,null,200);CUIInfo(b,"ViewProperties",["ViewProperties"]);if(a.listBaseType==1)b.id="ID_ViewProperties";else b.id="ID_ViewItem";var d=true;if(a.listBaseType==1)d=HasRights(512,0);if(HasRights(0,4)&&d&&!h&&!currentItemIsEventsDeletedExcp){if(a.listBaseType==1)strDisplayText=L_EditProperties_Text;else if(a.listBaseType==4)strDisplayText=L_EditResponse_Text;else strDisplayText=L_EditItem_Text;if(a.listBaseType==1)strAction="EditItemWithCheckoutAlert(event, '"+a.editFormUrl+"&ID="+currentItemID+"&Source="+GetSource()+f+"',"+bIsCheckout+",'"+currentItemCheckedoutToLocal+"','"+STSScriptEncode(currentItemFileUrl)+"','"+a.HttpRoot+"')";else strAction="EditItem2(event, '"+a.editFormUrl+"&ID="+currentItemID+"&Source="+GetSource()+"')";strImagePath=a.imagesPath+"edititem.gif";b=CAMOpt(c,strDisplayText,strAction,strImagePath,null,220);if(a.listBaseType==1){b.id="ID_EditProperties";CUIInfo(b,"EditProperties",["EditProperties"])}else{b.id="ID_EditItem";CUIInfo(b,"EditProperties",["EditProperties"])}if(a.listTemplate==106&&currentItemID.indexOf(".0.")>0){var j=currentItemID.indexOf(".0."),i=currentItemID.substr(0,j);strDisplayText=L_EditSeriesItem_Text;strAction="STSNavigate('"+a.editFormUrl+"&ID="+i+"&Source="+GetSource()+"')";strImagePath=a.imagesPath+"recurrence.gif";b=CAMOpt(c,strDisplayText,strAction,strImagePath,null,230);CUIInfo(b,"EditSeriesItem",["EditSeriesItem"]);b.id="ID_EditSeriesItem"}}}}function AddSolutionsCatalogMenuItems(a,h){ULS_core();if(HasRights(0,4))if(currentItemFSObjType!=1){var c=false,b=GetAttributeFromItemTable(itemTable,"Url",null);if(b.length>4){var i=b.substr(b.length-4).toLowerCase();if(i==".wsp"){var f=GetAttributeFromItemTable(itemTable,"SolutionHash",null),g=GetAttributeFromItemTable(itemTable,"Hash",null),e=GetAttributeFromItemTable(itemTable,"SolutionItemID",null),d=GetAttributeFromItemTable(itemTable,"Status",null),j=GetAttributeFromItemTable(itemTable,"id",null);if(d=="")AddSolutionMenuActivate(a);else if(f==g){if(j==e)if(d=="1"){c=true;AddSolutionMenuDeactivate(a)}else AddSolutionMenuActivate(a)}else AddSolutionMenuUpgrade(a)}}if(!c)AddSolutionMenuDelete(a,h)}}function AddSolutionMenuHelper(i,d,f,e,g,b,c){ULS_core();var a,h="if(event){event.currentItemID="+currentItemID+';}RunSolutionOperation(event, "'+f+'")';a=CAMOpt(i,d,h,e,null,g);CUIInfo(a,b,[b]);a.id=c}function AddSolutionMenuActivate(a){ULS_core();if(window.SPUserCanManageSolutions==true)AddSolutionMenuHelper(a,L_ActivateSolution_Text,"ACT","",1210,"ActivateSolution","ID_ActivateSolution")}function AddSolutionMenuDeactivate(a){ULS_core();if(window.SPUserCanManageSolutions==true)AddSolutionMenuHelper(a,L_DeactivateSolution_Text,"DEA","",1220,"DeactivateSolution","ID_DeactivateSolution")}function AddSolutionMenuUpgrade(a){ULS_core();if(window.SPUserCanManageSolutions==true)AddSolutionMenuHelper(a,L_UpgradeSolution_Text,"UPG","",1230,"UpgradeSolution","ID_UpgradeSolution")}function AddSolutionMenuDelete(e,b){ULS_core();var a,c;currentItemFileUrl=GetAttributeFromItemTable(itemTable,"Url","ServerUrl");if(currentItemFileUrl!=null)c=escapeProperly(unescapeProperly(currentItemFileUrl));strDisplayText=L_DeleteDocItem_Text;var d="false";if(typeof itemTable.getAttribute("CSrc")!="undefined"&&itemTable.getAttribute("CSrc")!=null&&itemTable.getAttribute("CSrc")!="")d="true";strAction="DeleteDocLibItem('"+b.HttpPath+"&Cmd=Delete&List="+b.listName+"&ID="+currentItemID+"&owsfileref="+c+"&NextUsing="+GetSource()+"',"+d+")";strImagePath=b.imagesPath+"delitem.gif";a=CAMOpt(e,strDisplayText,strAction,strImagePath,null,310);a.id="ID_DeleteDocItem";CUIInfo(a,"Delete",["Delete"])}function RunSolutionOperation(b,g){ULS_core();if(!b&&!IsContextSet())return;var d=currentCtx?currentCtx:b.currentCtx,e=currentItemID?currentItemID:b.currentItemID,f=d.listUrlDir,i=GetSource(),a=f+"/Forms/Activate.aspx?"+"Op="+g+"&ID="+e+"&Source="+i;if(d.listBaseType==1)a=a+GetRootFolder(d);var h=function(){ULS_core();var a=window.location.href,b=a.indexOf("#");if(b==-1)window.location.href=a;else window.location.href=a.substring(0,b)},j=function(){ULS_core();var b={url:a,args:null,width:650,height:450,dialogReturnValueCallback:h},c=SP.UI.ModalDialog.showModalDialog(b)},c;try{c=typeof SP.UI.ModalDialog.showModalDialog}catch(k){c="undefined"}EnsureScript("SP.UI.Dialog.js",c,j)}function AddDocLibMenuItems(c,a){ULS_core();if(typeof Custom_AddDocLibMenuItems!="undefined")if(Custom_AddDocLibMenuItems(c,a))return;var j=GetRootFolder(a),b;AddSharedNamespaceMenuItems(c,a);CAMSep(c);var d;if(currentItemFileUrl!=null)d=escapeProperly(unescapeProperly(currentItemFileUrl));var f=itemTable.getAttribute("SRed"),e=HasRights(512,0),g=currentItemCheckedOutUserId==SYSTEM_ACCOUNT_ID&&a.CurrentUserId!=SYSTEM_ACCOUNT_ID;if(HasRights(0,4)&&HasRights(16,0)&&e&&!g&&currentItemFSObjType!=1&&(f==null||f==""||HasRights(0,32)))if(a.isWebEditorPreview==0&&a.listBaseType==1)if(a.listTemplate==109&&itemTable.getAttribute("IsImage")=="1"){strDisplayText=L_EditInOIS_Text;strAction="EditSingleImage('"+currentItemID+"')";strImagePath=a.imagesPath+"oisweb.gif";b=CAMOpt(c,strDisplayText,strAction,strImagePath,null,260);b.id="ID_EditInOIS";CUIInfo(b,"EditDocument",["EditDocument"])}else{setDocType();if(currentItemAppName!=""&&currentItemOpenControl!=""){strDisplayText="";if(currentItemAppName!=" ")strDisplayText=StBuildParam(L_EditIn_Text,currentItemAppName);else{var i=StsOpenEnsureEx2(currentItemOpenControl+".3");if(i!=null)strDisplayText=L_EditInApplication_Text}if(strDisplayText!=""){strAction="editDocumentWithProgID2('"+currentItemFileUrl+"', '"+currentItemProgId+"', '"+currentItemOpenControl+"', '"+bIsCheckout+"', '"+a.HttpRoot+"', '"+currentItemCheckedoutToLocal+"')";strImagePath=a.imagesPath+currentItemIcon;b=CAMOpt(c,strDisplayText,strAction,strImagePath,null,260);b.id="ID_EditIn_"+currentItemAppName;CUIInfo(b,"EditDocument",["EditDocument"])}}}CAMSep(c);if(HasRights(0,4))if(currentItemFSObjType!=1)if(a.listBaseType==1)AddCheckinCheckoutMenuItem(c,a,d);if((a.verEnabled==1||a.isModerated)&&currentItemFSObjType!=1)AddVersionsMenuItem(c,a,d);if(HasRights(0,4))if(a.isModerated==true&&HasRights(0,16)&&((currentItemModerationStatus==2||!a.EnableMinorVersions)&&currentItemCheckedOutUserId==""||currentItemFSObjType==1)){strDisplayText=L_ModerateItem_Text;strAction="NavigateToApproveRejectAspx(event, '"+a.HttpRoot+"/_layouts/approve.aspx?List="+a.listName+"&ID="+currentItemID+"&Source="+GetSource()+GetRootFolder(a)+"')";strImagePath=a.imagesPath+"apprj.gif";b=CAMOpt(c,strDisplayText,strAction,strImagePath,null,850);CUIInfo(b,"Moderate",["Moderate"]);b.id="ID_ModerateItem"}CAMSep(c);AddWorkflowsMenuItem(c,a);if(currentItemFSObjType!=1){if(a.PortalUrl!=null){strDisplayText=L_AddToMyLinks_Text;strAction="Portal_Tasks('PinToMyPage')";strImagePath="";b=CAMOpt(c,strDisplayText,strAction,strImagePath,null,1000);CUIInfo(b,"AddToMyLinks",["AddToMyLinks"]);b.id="ID_AddToMyLinks"}}else if(a.listBaseType==1&&HasRights(16,0))AddWorkOfflineMenuItem(c,a,currentItemFileUrl);if(HasRights(128,0)){strDisplayText=L_Subscribe_Text;strAction="NavigateToSubNewAspxV4(event, '"+a.HttpRoot+"', 'List="+a.listName+"&ID="+currentItemID+"')";strImagePath="";b=CAMOpt(c,strDisplayText,strAction,strImagePath,null,1100);CUIInfo(b,"Subscribe",["Subscribe"]);b.id="ID_Subscribe"}if(currentItemFSObjType!=1){AddSendSubMenu(c,a);AddGotoSourceItemMenuItem(c,a,itemTable,currentItemFSObjType);AddDocTransformSubMenu(c,a)}if(currentItemFSObjType!=1&&a.listTemplate==109&&typeof DownloadOriginalImage=="function"){strAction="DownloadOriginalImage("+currentItemID+")";strImagePath=a.imagesPath+"download.gif";strDisplayText=L_DownloadOriginal_Text;b=CAMOpt(c,strDisplayText,strAction,strImagePath,null,550);CUIInfo(b,"DownloadOriginalImage",["DownloadOriginalImage"]);b.id="ID_DownloadOriginal"}CAMSep(c);AddManagePermsMenuItem(c,a,a.listName,currentItemID);if(HasRights(0,8)&&e&&!g){strDisplayText=L_DeleteDocItem_Text;var h="false";if(typeof itemTable.getAttribute("CSrc")!="undefined"&&itemTable.getAttribute("CSrc")!=null&&itemTable.getAttribute("CSrc")!="")h="true";strAction="DeleteDocLibItem('"+a.HttpPath+"&Cmd=Delete&List="+a.listName+"&ID="+currentItemID+"&owsfileref="+d+"&NextUsing="+GetSource()+"',"+h+")";strImagePath=a.imagesPath+"delitem.gif";b=CAMOpt(c,strDisplayText,strAction,strImagePath,null,1180);b.id="ID_DeleteDocItem";CUIInfo(b,"Delete",["Delete"])}if(currentItemFSObjType==1&&a.ContentTypesEnabled&&a.listTemplate!=108){strDisplayText=L_CustomizeNewButton_Text;strAction="STSNavigate('"+a.HttpRoot+"/_layouts/ChangeContentTypeOrder.aspx?List="+a.listName+"&RootFolder="+d+"&Source="+GetSource()+"')";strImagePath="";b=CAMOpt(c,strDisplayText,strAction,strImagePath,null,1200);CUIInfo(b,"ChangeNewButton",["ChangeNewButton"]);b.id="ID_CustomizeNewButton"}}function AddManagePermsMenuItem(e,a,c,d){ULS_core();if(!HasRights(1073741824,0)||currentItemIsEventsExcp||a.ExternalDataList)return;strDisplayText=L_MngPerms_Text;strAction="NavigateToManagePermsPage('"+a.HttpRoot+"', '"+c+"','"+d+"')";strImagePath=a.imagesPath+"manageperm.gif";var b=CAMOpt(e,strDisplayText,strAction,strImagePath,null,1160);b.id="ID_MngPerms";CUIInfo(b,"ManagePermissions",["ManagePermissions"])}function AddGotoSourceItemMenuItem(e,d,a,c){ULS_core();if(c!=1&&typeof a.getAttribute("CSrc")!="undefined"&&a.getAttribute("CSrc")!=null&&a.getAttribute("CSrc")!=""){strDisplayText=L_GoToSourceItem_Text;strAction="NavigateToSourceItem('"+a.getAttribute("CSrc")+"')";strImagePath=d.imagesPath+"goToOriginal.gif";var b=CAMOpt(e,strDisplayText,strAction,strImagePath,null,440);b.id="ID_GoToSourceItem";CUIInfo(b,"GotoSourceItem",["GotoSourceItem"])}}function CheckoutSingleItemFromECB(b,c){ULS_core();var a;try{a=typeof inplview.CheckOutSingleItem}catch(g){a="undefined"}if(a!="undefined")inplview.CheckOutSingleItem(b,c);else{var f="inplview.CheckOutSingleItem",d=f.split(".");if(d.length>1){var e=function(){ULS_core();inplview.CheckOutSingleItem(b,c)};EnsureScript(d[0],a,e)}}}function AddCheckinCheckoutMenuItem(d,a,c){ULS_core();var b;if(!HasRights(0,4))return;if(!HasRights(512,0))return;if(currentItemCheckedOutUserId==SYSTEM_ACCOUNT_ID&&a.currentUserId!=SYSTEM_ACCOUNT_ID)return;if(currentItemCheckedOutUserId==null)currentItemCheckedOutUserId=itemTable.getAttribute("COUId");if(currentItemCheckedOutUserId!=""){if(currentItemCheckedOutUserId==a.CurrentUserId||a.CurrentUserId==null||HasRights(0,256)){strDisplayText=L_Checkin_Text;if(!FV4UI())strAction="NavigateToCheckinAspx('"+a.HttpRoot+"', 'List="+a.listName+"&FileName="+c+"')";else strAction="CheckInSingleItemFromECB_Stub(event, currentCtx, itemTable)";strImagePath=a.imagesPath+"checkin.gif";b=CAMOpt(d,strDisplayText,strAction,strImagePath,null,300);b.id="ID_Checkin";CUIInfo(b,"CheckIn",["CheckIn"]);strDisplayText=L_DiscardCheckou_Text;strAction="UnDoCheckOut('"+a.HttpRoot+"', '"+c+"')";strImagePath=a.imagesPath+"unchkout.gif";b=CAMOpt(d,strDisplayText,strAction,strImagePath,null,310);b.id="ID_DiscardCheckou";CUIInfo(b,"DiscardCheckOut",["DiscardCheckOut"])}}else{strDisplayText=L_Checkout_Text;if(currentItemOpenControl=="")setDocType();var h="";if(a.listTemplate!=109)h=currentItemOpenControl+".3";var g=itemTable.getAttribute("SRed");if(g==null||g==""||HasRights(0,32)){if(!FV4UI())strAction="CheckoutDocument('"+a.HttpRoot+"', '"+c+"', '"+h+"')";else strAction="CheckoutSingleItemFromECB(currentCtx, itemTable)";strImagePath=a.imagesPath+"checkout.gif";b=CAMOpt(d,strDisplayText,strAction,strImagePath,null,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 i=currentItemUIString%512;if((currentItemModerationStatus==1||currentItemModerationStatus==3)&&a.isModerated||!a.isModerated&&i!=0){strDisplayText=L_PublishItem_Text;strAction="PublishMajorVersion(event, '"+a.HttpRoot+"', 'List="+a.listName+"&FileName="+c+"&Publish=true')";strImagePath=a.imagesPath+"pubmajor.gif";b=CAMOpt(d,strDisplayText,strAction,strImagePath,null,320);CUIInfo(b,"Publish",["Publish"]);b.id="ID_PublishItem"}else{var f,e=false;if(!a.isModerated||currentItemModerationStatus==0){strDisplayText=L_UnPublishItem_Text;f="ID_UnPublishItem";strImagePath=a.imagesPath+"unpub.gif"}else{strDisplayText=L_CancelPublish_Text;f="ID_CancelPublish";strImagePath=a.imagesPath+"unapprv.gif";e=true}strAction="UnPublish('"+a.HttpRoot+"', 'FileName="+c+"&UnPublish=true',"+e+")";b=CAMOpt(d,strDisplayText,strAction,strImagePath,null,330);if(e)CUIInfo(b,"CancelApproval",["CancelApproval"]);else CUIInfo(b,"Unpublish",["Unpublish"]);b.id=f}}}}function AddWorkflowsMenuItem(h,a){ULS_core();if(a.WorkflowsAssociated&&HasRights(0,4)){var e=GetAttributeFromItemTable(itemTable,"CId","ContentTypeId");if(e==null||e.substr(0,8)!="0x010801"){var f=a.imagesPath+"workflows.gif",b,c=(""+currentItemID).indexOf(".0.");if(c>0)b=currentItemID.substr(0,c);else b=currentItemID;var g="STSNavigate('"+a.HttpRoot+"/_layouts/Workflow.aspx?ID="+b+"&List="+a.listName+"&Source="+GetSource()+"')",d=CAMOpt(h,L_Workflows_Text,g,f,null,900);CUIInfo(d,"ViewWorkflows",["ViewWorkflows"]);d.id="ID_Workflows"}}}function AddWorkspaceMenuItem(d,b){ULS_core();var a,c=GetAttributeFromItemTable(itemTable,"SUrl","SourceUrl");if(c!=null&&c!=""&&c!="%20"){if(HasRights(0,135168)){strAction="STSNavigate('"+b.HttpRoot+"/_layouts/publishback.aspx?list="+b.listName+"&item="+currentItemID+GetRootFolder(b)+"')";a=CAMOpt(d,L_PublishBack_Text,strAction,"",null,1140);CUIInfo(a,"PublishBack",["PublishBack"]);a.id="ID_PublishBack"}}else if(HasRights(0,8388608)&&HasRights(0,135168)&&HasRights(0,67108864)){strAction="STSNavigate('"+b.HttpRoot+"/_layouts/createws.aspx?list="+b.listName+"&item="+currentItemID+GetRootFolder(b)+"')";a=CAMOpt(d,L_CreateDWS_Text,strAction,"",null,1140);CUIInfo(a,"CreateDocumentWorkspace",["CreateDocumentWorkspace"]);a.id="ID_CreateDWS"}}function AddVersionsMenuItem(f,a,e){ULS_core();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;strDisplayText=L_Versions_Text;strAction="NavigateToVersionsAspxV4(event, '"+a.HttpRoot+"', 'list="+a.listName+"&ID="+b+"&FileName="+e+"')";strImagePath=a.imagesPath+"versions.gif";var c=CAMOpt(f,strDisplayText,strAction,strImagePath,null,800);CUIInfo(c,"ViewVersions",["ViewVersions"]);c.id="ID_Versions"}function AddWorkOfflineMenuItem(d,a,c){ULS_core();strDisplayText=GetStssyncAppNameForType("documents",L_WorkOffline_Text,strImagePath);if(strDisplayText){var b="";if(a.SiteTitle!=null)b=STSScriptEncode(b);strAction="javascript:ExportHailStorm('documents','"+a.HttpRoot+"','"+a.listName+"','"+b+"','"+a.ListTitle+"','"+STSScriptEncode(a.listUrlDir)+"','','"+STSScriptEncode(unescapeProperly(a.listUrlDir))+"'";strAction+=",'"+STSScriptEncode(unescapeProperly(c))+"','"+currentItemID+"')";strImagePath=GetStssyncIconPath(a.imagesPath+"tbsprsht.gif",a.imagesPath);menuOption=CAMOpt(d,strDisplayText,strAction,strImagePath);CUIInfo(menuOption,"ConnectFolderToClient",["ConnectFolderToClient"]);menuOption.id="ID_WorkOffline"}}function AddVersionMenuItems(b,a){ULS_core();if(typeof AddVersionMenuItemsCore=="function")AddVersionMenuItemsCore(b,a)}function NavigateToApproveRejectAspx(b,a){ULS_core();if(FV4UI())ShowInPopUI(b,currentCtx,a);else STSNavigate(a)}function PublishMajorVersion(d,b,c){ULS_core();var a=b+"/_layouts"+"/Checkin.aspx?"+c+"&Source="+GetSource();if(FV4UI())ShowInPopUI(d,currentCtx,a);else SubmitFormPost(a)}function NavigateToSubNewAspx(a,b){ULS_core();STSNavigate(a+"/_layouts/SubNew.aspx?"+b+"&Source="+GetSource())}function NavigateToSubNewAspxV4(d,b,c){ULS_core();var a=b+"/_layouts/SubNew.aspx?"+c+"&Source="+GetSource();if(FV4UI())ShowInPopUI(d,currentCtx,a);else STSNavigate(a)}function NavigateToVersionsAspx(a,b){ULS_core();STSNavigate(a+"/_layouts/Versions.aspx?"+b+"&Source="+GetSource())}function NavigateToVersionsAspxV4(d,b,c){ULS_core();var a=b+"/_layouts/Versions.aspx?"+c+"&Source="+GetSource();if(FV4UI())ShowInPopUI(d,currentCtx,a);else STSNavigate(a)}function NavigateToSendToOtherLocationV4(b,a){ULS_core();if(FV4UI())ShowInPopUI(b,currentCtx,a);else STSNavigate(a)}var L_UndoCheckoutWarning_Text="If you discard your check out, you will lose all changes made to the document.  Are you sure you want to discard your check out?",L_UnPublishWarning_Text=" Are you sure you want to unpublish this version of the document?",L_CancleApproval_TEXT=" Are you sure that you want to cancel the approval of this document?";function UnDoCheckOut(f,c){ULS_core();try{var b=null,e=SzExtension(unescapeProperly(c));if(FSupportCheckoutToLocal(e))b=StsOpenEnsureEx2("SharePoint.OpenDocuments.3");if(b!=null){var a=unescapeProperly(c);if(a.charAt(0)=="/")a=document.location.protocol+"//"+document.location.host+a;var d=b.DiscardLocalCheckout(a);if(d)SetWindowRefreshOnFocus();if(d||!IsSupportedMacBrowser())return}else if(!confirm(L_UndoCheckoutWarning_Text))return}catch(g){}NavigateToCheckinAspx(f,"FileName="+c+"&DiscardCheckout=true")}function UnPublish(c,d,b){ULS_core();var a=L_UnPublishWarning_Text;if(b)a=L_CancleApproval_TEXT;if(!confirm(a))return;NavigateToCheckinAspx(c,d)}function NavigateToCheckinAspx(a,b){ULS_core();SubmitFormPost(a+"/_layouts"+"/Checkin.aspx?"+b+"&Source="+GetSource())}function CheckInSingleItemFromECB_Stub(c,b,d){ULS_core();var a;try{a=typeof inplview.CheckInSingleItemFromECB}catch(h){a="undefined"}if(a!="undefined")inplview.CheckInSingleItemFromECB(c,b,d);else{var g="inplview.CheckInSingleItemFromECB",e=g.split(".");if(e.length>1){var f=function(){ULS_core();inplview.CheckInSingleItemFromECB(c,b,d)};EnsureScript(e[0],a,f)}}}function NavigateToManagePermsPage(a,c,b){ULS_core();NavigateToManagePermsPageEx(a,c,b,false)}function NavigateToManagePermsPageEx(c,a,d,f){ULS_core();var e=",LISTITEM",b=c+"/_layouts/User.aspx?obj="+a+","+d+e+"&List="+a+"&Source="+GetSource();if(f)window.frameElement.navigateParent(b);else STSNavigate(b)}function NavigateToSourceItem(a){ULS_core();var c=a.match(/[^\/]*\/\/[^\/]*/g),b=c[0];a=escapeProperly(a);STSNavigate(b+"/_layouts/copyutil.aspx?GoToDispForm=1&Use=url&ItemUrl="+a)}function setDocType(){ULS_core();var a;a=GetAttributeFromItemTable(itemTable,"Icon","DocIcon").split("|");currentItemIcon=a[0];currentItemAppName=a[1];currentItemOpenControl=a[2];currentItemProgId=GetAttributeFromItemTable(itemTable,"Type","HTMLType")}function DeleteListItem(){ULS_core();if(!IsContextSet())return;var a=currentCtx,c=currentItemID,d=currentItemFSObjType,b=L_STSRecycleConfirm_Text;if(!a.RecycleBinEnabled||a.ExternalDataList)b=L_STSDelConfirm_Text;if(a.HasRelatedCascadeLists&&a.CascadeDeleteWarningMessage!=null)b=a.CascadeDeleteWarningMessage+b;if(confirm(b))SubmitFormPost(a.HttpPath+"&Cmd=Delete&List="+a.listName+"&ID="+c+"&NextUsing="+GetSource())}function DeleteDocLibItem(d,e){ULS_core();if(!IsContextSet())return;var b=currentCtx,g=currentItemID,f=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?L_STSRecycleConfirm2_Text:L_STSDelConfirm2_Text;else a=b.RecycleBinEnabled?L_STSRecycleConfirm1_Text:L_STSDelConfirm1_Text}else a=b.RecycleBinEnabled?L_STSRecycleConfirm_Text:L_STSDelConfirm_Text;if(b.HasRelatedCascadeLists&&b.CascadeDeleteWarningMessage!=null)a=b.CascadeDeleteWarningMessage+a;if(e&&currentItemFSObjType!=1)a=L_NotifyThisIsCopy_Text+a;if(confirm(a))SubmitFormPost(d)}function EditMenuDefaultForOnclick(){ULS_core();if(!IsContextSet())return;var a=currentCtx;if(a.isVersions)STSNavigate(itemTable.getAttribute("verUrl"));else if(a.listTemplate==200){var b=currentItemID;MtgNavigate(b)}else EditListItem()}function EditListItem(){ULS_core();if(event.srcElement.tagName=="A"||event.srcElement.parentNode.tagName=="A")return;if(!IsContextSet())return;var b=currentCtx,a=b.editFormUrl+"&ID="+currentItemID+"&Source="+GetSource();if(b.listBaseType==1)a=a+GetRootFolder(b);STSNavigate2(event,a)}function DoNavigateToTemplateGallery(a,b){ULS_core();document.cookie="MSOffice_AWS_DefSaveLoc="+a;STSNavigate(b)}function Portal_Tasks(j){ULS_core();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(false==setElementValue("ListViewURL",e))a=a+"&ListViewURL="+escapeProperly(e);if(false==setElementValue("ListTitle",i))a=a+"&ListTitle="+escapeProperly(i);if(false==setElementValue("ListDescription",""))a=a+"&ListDescription=";if(false==setElementValue("ReturnUrl",window.location.href))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(){ULS_core();if(currentCtx==null)return false;else if(currentCtx.isExplictLogin)return true;else if(currentCtx.HttpPath==null||currentItemID==null)return false;return true}function ChangeContentType(d){ULS_core();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){ULS_core();if(typeof navBarHelpOverrideKey!="undefined")return HelpWindowKey(navBarHelpOverrideKey);if(a!=null)HelpWindowKey(a);else HelpWindowKey("HelpHome")}function HelpWindowHelper(c){ULS_core();var a;if(typeof c=="undefined")a="?Lcid="+L_Language_Text;else a="?Lcid="+L_Language_Text+c;var b;if(typeof ctx=="undefined"||ctx==null)if(typeof currentCtx!="undefined"&&currentCtx!=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)b=ctx.HttpRoot+"/_layouts/help.aspx";else{b="/_layouts/help.aspx";a=a+"&Source="+escapeProperly(window.location.href)}var d=window.open(b+a,"STSHELP","height=500,location=no,menubar=no,resizable=yes,scrollbars=no,status=no,toolbar=no,width=475");d.focus()}function HelpWindowKey(a){ULS_core();if(a!=null)HelpWindowHelper("&Key="+a+"&ShowNav=true");else HelpWindowHelper("&Key=HelpHome&ShowNav=true")}function HelpWindowUrl(a){ULS_core();HelpWindowHelper("&Url="+a)}function HelpWindow(){ULS_core();HelpWindowKey("HelpHome")}var L_EmptySlideShow_Text="No pictures found in the library. Add pictures and try again.",L_NotOurView_Text="This operation cannot be completed within current view. Please select another view and try again.";function IsImgLibJssLoaded(){ULS_core();if(typeof fImglibJssLoaded!="undefined")return fImglibJssLoaded;return false}function EditSelectedImages(){ULS_core();if(!IsImgLibJssLoaded()){alert(L_NotOurView_Text);return}_EditSelectedImages()}function DeleteImages(){ULS_core();if(!IsImgLibJssLoaded()){alert(L_NotOurView_Text);return}_DeleteImages()}function SendImages(){ULS_core();if(!IsImgLibJssLoaded()){alert(L_NotOurView_Text);return}_SendImages()}function DownloadImages(){ULS_core();if(!IsImgLibJssLoaded()){alert(L_NotOurView_Text);return}_DownloadImages()}function MtgToggleTimeZone(){ULS_core();var b=document.getElementById("TimeZoneSection"),a=document.getElementById("TimeZoneLink"),L_ShowTZ_Text="Show time zone",L_HideTZ_Text="Hide time zone";if(b.style.display=="none"){b.style.display="";a.innerHTML="&lt;&lt;";a.title=L_HideTZ_Text;SetCookie("MtgTimeZone","1","")}else{b.style.display="none";a.innerHTML="&gt;&gt;";a.title=L_ShowTZ_Text;SetCookie("MtgTimeZone","0","")}}function GetPageUrl(a){ULS_core();return unescapeProperly(a?g_webUrl:g_pageUrl)}function MtgNavigate(a){ULS_core();if(a==g_instanceId)return;var b=!g_fPageGlobal;window.location.href=GetPageUrl(b)+"?InstanceID="+a+"&"+g_thispagedata}function GoToMtgMove(d,c,b,a){ULS_core();window.location.href=d+"/movetodt.aspx"+"?FromInstanceID="+c+"&FromInstanceDate="+escapeProperly(b)+"&FromInstanceDateISO="+escapeProperly(a)+"&Source="+escapeProperly(window.location.href)}function MtgKeep(b,c,a){ULS_core();var L_MtgKeepConfirm_Text="The information for this meeting date does not match the information in your calendar and scheduling program. If you keep this meeting date, it will continue to appear in the Meeting Series list in the workspace.";if(confirm(L_MtgKeepConfirm_Text))SubmitFormPost(b+"&Cmd=MtgKeep&List="+escapeProperly(c)+"&EditInstanceID="+a+"&NextUsing="+escapeProperly(window.location.href))}function MtgDelete(c,d,a){ULS_core();var L_MtgDeleteConfirm_Text="This meeting date and the content associated with it will be deleted from the workspace.";if(confirm(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 SetCookie(b,a,c){ULS_core();document.cookie=b+"="+a+";path="+c}function SetAsLastTabVisited(){ULS_core();if(typeof g_pageUrl!="undefined"&&typeof g_webUrl!="undefined")SetCookie("MtgLastTabVisited",escapeProperly(unescapeProperly(g_pageUrl)),escapeProperlyCore(unescapeProperly(g_webUrl),true))}function MtgDeletePageConfirm(){ULS_core();var L_DeleteGlobalConfirm_Text="This page will be deleted from all meetings associated with this workspace.  ",L_DeleteConfirm_Text="Are you sure you want to delete this page?",a;if(document.getElementById("MtgTlPart_PageType").value=="MtgTlPart_LocalPage")a=L_DeleteConfirm_Text;else a=L_DeleteGlobalConfirm_Text+L_DeleteConfirm_Text;return confirm(a)}function MtgRedirect(){ULS_core();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){ULS_core();if(c!="undefined"&&c!=""){var b=a.indexOf("?");if(b==-1||a.indexOf("InstanceID=",b)==-1)a=a+(b==-1?"?":"&")+"InstanceID="+c}return a}function commonShowModalDialog(p,b,c,n){ULS_core();if(document.getElementById("__spPickerHasReturnValue")!=null)document.getElementById("__spPickerHasReturnValue").value="";if(document.getElementById("__spPickerReturnValueHolder")!=null)document.getElementById("__spPickerReturnValueHolder").value="";commonModalDialogReturnValue.clear();var h;if(window.showModalDialog&&!browseris.safari125up){h=window.showModalDialog(p,n,b);if(c)invokeModalDialogCallback(c,h)}else{var m=500,l=550,q="yes";if(!b)b="width="+m+",height="+l;else{function s(){ULS_core();return []}function d(a,b,c){ULS_core();a.push(b);a[b]=c}function r(b){ULS_core();var c=[];for(var a=0;a<b.length;a++)c.push(b[a]);return c}var a=s(),j,f;if(b.search(/^(\s*\w+\s*:\s*.+?\s*)(;\s*\s*\w+\s*:\s*.+?\s*)*(;\s*)?$/)!=-1){j=/^\s*(\w+)\s*:\s*(.+?)\s*$/;f=b.split(/\s*;\s*/)}else{j=/^\s*(\w+)\s*=\s*(.+?)\s*$/;f=b.split(/\s*,\s*/)}for(var o in f){var g=j.exec(f[o]);if(g&&g.length==3)d(a,g[1].toLowerCase(),g[2])}if(!a["width"])d(a,"width",a["dialogwidth"]||m);if(!a["height"])d(a,"height",a["dialogheight"]||l);if(!a["scrollbars"])d(a,"scrollbars",a["scroll"]||q);b="";var i=r(a);for(var k in i){if(b)b+=",";b+=i[k]+"="+a[i[k]]}}var e=window.open(p,"_blank",b+",modal=yes,dialog=yes");e.dialogArguments=n;window.onfocus=function(){ULS_core();var a=document.getElementById("__spPickerHasReturnValue")!=null&&document.getElementById("__spPickerHasReturnValue").value=="1"||commonModalDialogReturnValue.isSet();if(e&&!e.closed&&!a)e.focus();else{window.onfocus=null;if(c)invokeModalDialogCallback(c,h)}};if(!browseris.ie)if(window.frameElement!=null)window.fndlgClose=c}return h}function invokeModalDialogCallback(b,a){ULS_core();if(typeof a!="undefined"&&a!=null)b(a);else if(commonModalDialogReturnValue.isSet()){a=commonModalDialogReturnValue.get();b(a);commonModalDialogReturnValue.clear()}else if(document.getElementById("__spPickerHasReturnValue")!=null&&document.getElementById("__spPickerHasReturnValue").value=="1"&&document.getElementById("__spPickerReturnValueHolder")!=null){a=document.getElementById("__spPickerReturnValueHolder").value;b(a)}return a}function setModalDialogReturnValue(a,b){ULS_core();if(a.opener!=null&&typeof b=="string"&&a.opener.document.getElementById("__spPickerHasReturnValue")!=null&&a.opener.document.getElementById("__spPickerReturnValueHolder")!=null){a.opener.document.getElementById("__spPickerHasReturnValue").value="1";a.opener.document.getElementById("__spPickerReturnValueHolder").value=b}else setModalDialogObjectReturnValue(a,b);if(a.opener!=null&&a.opener.fndlgClose!=null)a.opener.fndlgClose(b)}function setModalDialogObjectReturnValue(a,b){ULS_core();if(a.showModalDialog)a.returnValue=b;if(a.opener!=null)a.opener.commonModalDialogReturnValue.set(b)}function CommonGlobalDialogReturnValue(){ULS_core();var a=false,b=null;this.set=function(a){ULS_core();if(typeof a!="undefined"){this.retVal=a;this.hasRetval=true}};this.isSet=function(){ULS_core();return this.hasRetval};this.get=function(){ULS_core();if(this.hasRetval)return this.retVal};this.clear=function(){ULS_core();this.hasRetval=false;this.retVal=null}}var commonModalDialogReturnValue=new CommonGlobalDialogReturnValue;function commonModalDialogOpen(e,a,c,d){ULS_core();var f=function(){ULS_core();a.url=e;a.dialogReturnValueCallback=c;a.args=d;var b=SP.UI.ModalDialog.showModalDialog(a);b.get_frameElement().commonModalDialogClose=commonModalDialogClose},b;try{b=typeof SP.UI.ModalDialog.showModalDialog}catch(g){b="undefined"}EnsureScript("SP.UI.Dialog.js",b,f)}function commonModalDialogClose(b,c){ULS_core();var a=window.top.g_childDialog;if(a){a.set_returnValue(c);a.close(b)}}function commonModalDialogGetArguments(){ULS_core();var a=window.top.g_childDialog;if(a&&typeof a.get_args!="undefined")return a.get_args();return null}function ShowPopupDialog(a){ULS_core();ShowPopupDialogWithCallback(a,PopupDialogCallback)}function ShowPopupDialogWithCallback(b,c){ULS_core();var d=function(){ULS_core();if(FV4UI()){var a={};a.url=b;a.width=720;a.height=480;a.dialogReturnValueCallback=c;var d=SP.UI.ModalDialog.showModalDialog(a);d.get_frameElement().commonModalDialogClose=commonModalDialogClose}else STSNavigate(b)},a;try{a=typeof SP.UI.ModalDialog.showModalDialog}catch(e){a="undefined"}EnsureScript("SP.UI.Dialog.js",a,d)}function PopupDialogCallback(a){ULS_core();if(a==1)STSNavigate(window.top.location.href)}var filterTable=null,bIsFilterMenuShown=false,bIsFilterDataLoaded=false,filterImageCell=null,currentFilterMenu=null,loadingFilterMenu=null,ctxFilter=null,bIsFilterKeyPress=false,filterStr=null,strFieldName="",bMenuLoadInProgress=false,strFilteredValue=null,fnOnFilterMouseOut=null,L_NotSortable_Text="This column type cannot be sorted",L_NotFilterable_Text="This column type cannot be filtered",L_AOnTop_Text="A on Top",L_ZOnTop_Text="Z on Top",L_SmallestOnTop_Text="Smallest on Top",L_LargestOnTop_Text="Largest on Top",L_OldestOnTop_Text="Oldest on Top",L_NewestOnTop_Text="Newest on Top",L_AttachmentsOnTop_Text="Attachments on Top",L_BlanksOnTop_Text="Blanks on Top",L_Ascending_Text="Ascending",L_Descending_Text="Descending",L_DontFilterBy_Text="Clear Filter from ^1",L_Loading_Text="Loading....",L_FilterMode_Text="Show Filter Choices",L_OpenMenu_Text="Open Menu";function resetFilterMenuState(){ULS_core();if(bMenuLoadInProgress)return;bIsFilterMenuShown=false;bIsFilterDataLoaded=false;filterTable=null;filterImageCell=null;currentFilterMenu=null;loadingFilterMenu=null;ctxFilter=null;bIsFilterKeyPress=false;if(fnOnFilterMouseOut!=null)fnOnFilterMouseOut();fnOnFilterMouseOut=null}function setupFilterMenuContext(a){ULS_core();ctxFilter=a}function IsFilterMenuOn(){ULS_core();if(!bIsFilterMenuShown)return false;var a=false;a=MenuHtc_isOpen(currentFilterMenu)||MenuHtc_isOpen(loadingFilterMenu);if(!a)bIsFilterMenuShown=false;return a}function IsFilterMenuEnabled(){ULS_core();return true}function OnMouseOverFilterDeferCall(a){ULS_core();if(!IsFilterMenuEnabled())return false;if(IsFilterMenuOn()||bMenuLoadInProgress)return false;if(window.location.href.search("[?&]Filter=1")!=-1)return false;if(a.FilterDisable=="TRUE")return false;if(IsFieldNotFilterable(a)&&IsFieldNotSortable(a))return false;if(filterTable==a)return;if(filterTable!=null)OnMouseOutFilter();filterTable=a;var e=filterTable.tagName=="TABLE",f=new Function("setupFilterMenuContext(ctx"+filterTable.getAttribute("CtxNum")+");");f();if(e){filterTable.className="ms-selectedtitle";filterTable.onclick=CreateFilterMenu;filterTable.oncontextmenu=CreateFilterMenu;filterTable.onmouseout=OnMouseOutFilter}else{var b=filterTable.parentNode;b.onclick=CreateFilterMenu;b.oncontextmenu=CreateFilterMenu;b.onmouseout=OnMouseOutFilter;CreateCtxImg(b,OnMouseOutFilter)}if(e){var d=filterTable.childNodes[0].childNodes[0];filterImageCell=d.childNodes[d.childNodes.length-1];var c=filterImageCell.childNodes[0];c.src=ctxFilter.imagesPath+"menudark.gif";c.alt=L_OpenMenu_Text;c.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(b){ULS_core();if(!IsFilterMenuOn()&&filterTable!=null&&!bMenuLoadInProgress){var c=filterTable.tagName=="TABLE",a=filterTable.parentNode;if(c||a==null){filterTable.className="ms-unselectedtitle";filterTable.onclick="";filterTable.oncontextmenu="";filterTable.onmouseout=""}else{if(b==null)b=window.event;if(b!=null){var d=b.toElement!=null?b.toElement:b.relatedTarget;if(a!=null&&d!=null&&IsContained(d,a))return}a.onclick="";a.oncontextmenu="";a.onmouseout="";RemoveCtxImg(a)}if(c&&filterImageCell!=null&&filterImageCell.childNodes.length>0){filterImageCell.childNodes[0].style.visibility="hidden";filterImageCell.className=""}resetFilterMenuState()}}function OnFocusFilter(a){ULS_core();if(window.location.href.search("[?&]Filter=1")!=-1)return false;if(!IsFilterMenuEnabled())return false;a.onfocusout=OnMouseOutFilter;a.onkeydown=PopFilterMenu;var b=FindSTSMenuTable(a,"CTXNum");if(b==null)return false;OnMouseOverFilter(b);return false}function PopFilterMenu(a){ULS_core();if(!IsFilterMenuEnabled())return true;if(a==null)a=window.event;var b;if(browseris.nav6up)b=a.which;else b=a.keyCode;if(!IsFilterMenuOn()&&(a.shiftKey&&b==13||a.altKey&&b==40)){var d=a.srcElement?a.srcElement:a.target,c=FindSTSMenuTable(d,"CTXNum");if(c==null)return false;OnMouseOverFilterDeferCall(c);CreateFilterMenu(a);return false}else return true}function CreateFilterMenu(a){ULS_core();if(filterTable==null||filterTable.tagName=="TABLE"&&filterImageCell==null)return true;if(a==null)a=window.event;bIsFilterMenuShown=true;window.document.body.onclick="";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);a.cancelBubble=true;return false}function GetUrlWithNoSortParameters(d){ULS_core();var a=window.location.href,g=new CUrl(a);g.hash="";a=g.ToString();var c,e=0,b,f;do{b=d.indexOf("=",e);if(b==-1)return a;c=d.substring(e,b);if(c!="");a=RemoveQueryParameterFromUrl(a,c);f=d.indexOf("&",b+1);if(f==-1)return a;e=f+1}while(c!="");return a}function IsFieldNotSortable(a){ULS_core();if(a.getAttribute("Sortable")=="FALSE"||a.getAttribute("SortDisable")=="TRUE"||a.getAttribute("FieldType")=="MultiChoice")return true;return false}function addSortMenuItems(b,a){ULS_core();if(IsFieldNotSortable(filterTable)){CAMOptFilter(b,a,L_NotSortable_Text,"","",false,"fmi_ns");CAMSep(b);CAMSep(a);return}var c="",e="",d="",f="/_layouts/"+L_Language_Text+"/images/SORTAZLang.gif",g="/_layouts/"+L_Language_Text+"/images/SORTZALang.gif";if(filterStr==null){var i=filterTable.getAttribute("SortFields"),l=new CUrl(i);if(l.query.length>0)i=l.query.substr(1);var q=i.indexOf("&SortDir");if(q==-1){CAMOptFilter(b,a,L_NotSortable_Text,"","",false,"fmi_ns");CAMSep(b);CAMSep(a);return}var p=i.indexOf("&",q+1),s=GetUrlWithNoSortParameters(i);s=RemovePagingArgs(s);l=new CUrl(s);var h=l.query;if(h.length>1)h+="&";else if(h.length==0)h+="?";var w=h;if(p<0)p=i.length;h+=i.substr(0,q)+"&SortDir=Asc"+i.substr(p);l.query=h;c="HandleFilter(event, '"+STSScriptEncode(l.ToString())+"');";h=w;h+=i.substr(0,q)+"&SortDir=Desc"+i.substr(p);l.query=h;e="HandleFilter(event, '"+STSScriptEncode(l.ToString())+"');";if(c.indexOf("?")>=0)if(c.substr(c.indexOf("?")+1).indexOf("?")>=0)debugger;var d=filterTable.getAttribute("FieldType");strFieldName=filterTable.getAttribute("Name")}else{var r=" ",k=filterStr.lastIndexOf(r);d=filterStr.substring(k+1);if(d.substring(0,2)=="x:")d=d.substring(2);var n=filterStr.substring(0,k);k=n.lastIndexOf(r);strFieldName=n.substring(k+1);if(strFieldName.substring(0,1)=="@")strFieldName=strFieldName.substring(1);n=filterStr.substring(0,k);k=n.lastIndexOf(r);if(k>0)strFieldName=n.substring(0,k);var v=filterTable.tagName=="TABLE",j=null;if(v){var u=filterTable.childNodes[0].childNodes[0],j=u.childNodes[0].childNodes[0];if(j.tagName=="TABLE")j=j.childNodes[0].childNodes[0].childNodes[1].childNodes[0]}else j=filterTable.firstChild;if(j.tagName=="DIV")j=j.childNodes[0];var m=j.href;m=m.replace(/%20/g," ");if(m.indexOf("'ascending'")>0){c=m;e=m.replace("'ascending'","'descending'")}else{e=m;c=m.replace("'descending'","'ascending'")}}d=d.toLowerCase();if(d=="dateTime"){CAMOptFilter(b,a,L_OldestOnTop_Text,c,f,true,"fmi_asc");CAMOptFilter(b,a,L_NewestOnTop_Text,e,g,true,"fmi_desc")}else if(d=="integer"||d=="number"||d=="currency"){CAMOptFilter(b,a,L_SmallestOnTop_Text,c,f,true,"fmi_asc");CAMOptFilter(b,a,L_LargestOnTop_Text,e,g,true,"fmi_desc")}else if(d=="text"||d=="user"||d=="string"){CAMOptFilter(b,a,L_AOnTop_Text,c,f,true,"fmi_asc");CAMOptFilter(b,a,L_ZOnTop_Text,e,g,true,"fmi_desc")}else if(d=="calculated"){var o=filterTable.getAttribute("ResultType");if(o=="Number"||o=="Currency"){CAMOptFilter(b,a,L_SmallestOnTop_Text,c,f,true,"fmi_asc");CAMOptFilter(b,a,L_LargestOnTop_Text,e,g,true,"fmi_desc")}else if(o=="dateTime"){CAMOptFilter(b,a,L_OldestOnTop_Text,c,f,true,"fmi_asc");CAMOptFilter(b,a,L_NewestOnTop_Text,e,g,true,"fmi_desc")}else if(o=="boolean"){CAMOptFilter(b,a,L_Ascending_Text,c,f,true,"fmi_asc");CAMOptFilter(b,a,L_Descending_Text,e,g,true,"fmi_desc")}else{CAMOptFilter(b,a,L_AOnTop_Text,c,f,true,"fmi_asc");CAMOptFilter(b,a,L_ZOnTop_Text,e,g,true,"fmi_desc")}}else if(d=="attachments"){CAMOptFilter(b,a,L_BlanksOnTop_Text,c,f,true,"fmi_asc");CAMOptFilter(b,a,L_AttachmentsOnTop_Text,e,g,true,"fmi_desc")}else if(d=="lookup"){var t=filterTable.getAttribute("Name");if(t=="Last_x0020_Modified"||t=="Created_x0020_Date"){CAMOptFilter(b,a,L_OldestOnTop_Text,c,f,true,"fmi_asc");CAMOptFilter(b,a,L_NewestOnTop_Text,e,g,true,"fmi_desc")}else{CAMOptFilter(b,a,L_Ascending_Text,c,f,true,"fmi_asc");CAMOptFilter(b,a,L_Descending_Text,e,g,true,"fmi_desc")}}else{CAMOptFilter(b,a,L_Ascending_Text,c,f,true,"fmi_asc");CAMOptFilter(b,a,L_Descending_Text,e,g,true,"fmi_desc")}CAMSep(b);CAMSep(a)}function CAMOptFilter(h,g,d,f,c,b,e){ULS_core();var a;a=CAMOpt(h,d,f,c);a.id=e;if(!b)a.setAttribute("enabled","false");a=CAMOpt(g,d,f,c);a.id=e+"_p";if(!b)a.setAttribute("enabled","false")}function ShowFilterLoadingMenu(){ULS_core();if(!bIsFilterDataLoaded&&filterTable!=null)FilterOMenu(loadingFilterMenu,filterTable)}function getFilterQueryParam(){ULS_core();var d=document.getElementById("FilterIframe"+filterTable.getAttribute("CtxNum"));if(d==null)return;var e=d.getAttribute("FilterLink"),f=escapeProperly(filterTable.getAttribute("Name")),b="",c=0,a;do{c++;a=e.match("FilterField"+c+"=[^&]*"+"&FilterValue"+c+"=[^&]*");if(a!=null)b=b+"&"+a}while(a);return b}function IsFieldNotFilterable(a){ULS_core();if(a.getAttribute("Filterable")=="FALSE"||a.getAttribute("FilterDisable")=="TRUE"||a.getAttribute("FieldType ")=="Note"||a.getAttribute("FieldType ")=="URL")return true;return false}function addFilterMenuItems(g,k){ULS_core();var h;if(IsFieldNotFilterable(filterTable)){h=CAMOpt(g,L_NotFilterable_Text,"");h.setAttribute("enabled","false");FilterOMenu(g,filterTable);g._onDestroy=OnMouseOutFilter;return}var d=document.getElementById("FilterIframe"+filterTable.getAttribute("CtxNum"));if(d==null)return;var c=d.getAttribute("FilterLink");if(!c||c=="")c=CanonicalizeUrlEncodingCase(window.location.href);var i=escapeProperly(filterTable.getAttribute("Name"));strFilteredValue=null;var a="",e=0,b,f;do{e++;b=c.match("FilterField"+e+"=[^&#]*");f=c.match("&FilterValue"+e+"=[^&#]*");if(b!=null&&f!=null){if(strFilteredValue==null)strFilteredValue=getFilterValueFromUrl(b.toString()+f.toString(),i);a=a+"&"+b+f;var q=c.match("&FilterOp"+e+"=[^&]*");if(q!=null)a=a+q;var n=c.match("&FilterLookupId"+e+"=[^&]*");if(n!=null)a=a+n;var o=c.match("&FilterData"+e+"=[^&]*");if(o!=null)a=a+o}}while(b);var p=strFilteredValue!=null;strDisplayText=StBuildParam(L_DontFilterBy_Text,filterTable.getAttribute("DisplayName"));var r="javascript:HandleFilter(event, '"+STSScriptEncode(FilterFieldV3(ctxFilter.view,i,"",0,true))+"')",l;if(p)l=ctxFilter.imagesPath+"FILTEROFF.gif";else l=ctxFilter.imagesPath+"FILTEROFFDISABLED.gif";CAMOptFilter(g,k,strDisplayText,r,l,p,"fmi_clr");h=CAMOpt(k,L_Loading_Text,"");h.setAttribute("enabled","false");setTimeout("ShowFilterLoadingMenu()",500);k._onDestroy=OnMouseOutFilter;b=c.match("MembershipGroupId=[^&]*");if(b!=null)a=a+"&"+b;b=c.match("InstanceID=[^&]*");if(b!=null)a=a+"&"+b;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="";if(ctxFilter!=null&&ctxFilter.clvp!=null&&ctxFilter.clvp.rootFolder!=null&&ctxFilter.clvp.rootFolder.length>0)j="&RootFolder="+escapeProperlyCore(ctxFilter.clvp.rootFolder,true);else{b=c.match("RootFolder=[^&]*");if(b!=null)j="&"+b}var m="";if(ctxFilter!=null&&typeof ctxFilter.overrideScope!="undefined")m="&OverrideScope="+escapeProperlyCore(ctxFilter.overrideScope);if(browseris.safari){d.src="/_layouts/blank.htm";d.style.offsetLeft="-550px";d.style.offsetTop="-550px";d.style.display="block"}d.src=ctxFilter.HttpRoot+"/_layouts/filter.aspx?ListId="+ctxFilter.listName+j+m+"&FieldInternalName="+i+"&ViewId="+ctxFilter.view+"&FilterOnly=1&Filter=1"+a;bMenuLoadInProgress=true}function getFilterValueFromUrl(b,f){ULS_core();var a,c,e;a=b.indexOf("=");if(a==-1)return;c=b.indexOf("&");if(c==-1)return;if(c<a)return;b=CanonicalizeUrlEncodingCase(b);e=b.substring(a+1,c);if(e==f){var d;a=b.indexOf("=",c+1);if(a==-1)return;d=b.substr(a+1);d=unescapeProperly(d);return d}return null}function OnIframeLoad(){ULS_core();bMenuLoadInProgress=false;if(filterTable!=null&&filterTable.getAttribute("Name")!=null){var c=null;c=document.getElementById("FilterIframe"+filterTable.getAttribute("CtxNum"));if(c!=null){var a=null,e=filterTable.getAttribute("Name");if(c.contentDocument)a=c.contentDocument;else if(c.contentWindow&&c.contentWindow.document)a=c.contentWindow.document;else if(c.document)a=c.document;if(a!=null){var g=a.getElementById("diidFilterCustomTable");if(g!=null&&(a.parentWindow&&a.parentWindow.CustomPopulateFilterMenu!=null||a.defaultView&&a.defaultView.CustomPopulateFilterMenu!=null))if(a.parentWindow)a.parentWindow.CustomPopulateFilterMenu(currentFilterMenu,g,"FilterIframe"+filterTable.getAttribute("CtxNum"),ctxFilter.view,e);else a.defaultView.CustomPopulateFilterMenu(currentFilterMenu,g,"FilterIframe"+filterTable.getAttribute("CtxNum"),ctxFilter.view,e);else{var h=a.getElementById("diidFilter"+e);e=escapeProperly(e);if(h!=null){var i=h.childNodes.length;if(i>500)addFilterOptionMenuItem();else{var d=h.childNodes;for(var b=1;b<i;b++){var f;if(d[b].innerText)f=d[b].innerText;else if(d[b].textContent)f=d[b].textContent;else f=d[b].innerHTML;var j="javascript:HandleFilter(event, '"+STSScriptEncode(FilterFieldV3(ctxFilter.view,e,d[b].value,b,true))+"')",k=CAMOpt(currentFilterMenu,f,j);if(strFilteredValue!=null&&strFilteredValue==d[b].value)k.setAttribute("checked","true")}}}else addFilterOptionMenuItem()}bIsFilterDataLoaded=true;if(loadingFilterMenu!=null)loadingFilterMenu._onDestroy=null;if(currentFilterMenu!=null){currentFilterMenu._onDestroy=OnMouseOutFilter;FilterOMenu(currentFilterMenu,filterTable)}}}}}function addFilterOptionMenuItem(){ULS_core();var a=window.location.href;a=StURLSetVar2(a,"Filter","1");a=StURLSetVar2(a,"View",ctxFilter.view);a="javascript:SubmitFormPost('"+a+"')";CAMOpt(currentFilterMenu,L_FilterMode_Text,a)}function OnMouseOverAdHocFilterDeferCall(f,e){ULS_core();filterStr=e;if(IsFilterMenuOn())return false;if(filterTable!=null)OnMouseOutFilter();filterTable=f;var d=filterTable.tagName=="TABLE";if(d){filterTable.className="ms-selectedtitle";filterTable.onclick=CreateFilterMenu;filterTable.oncontextmenu=CreateFilterMenu;filterTable.onmouseout=OnMouseOutFilter}else{var a=filterTable.parentNode;a.onclick=CreateFilterMenu;a.oncontextmenu=CreateFilterMenu;a.onmouseout=OnMouseOutFilter;CreateCtxImg(a,OnMouseOutFilter)}if(d){var c=filterTable.childNodes[0].childNodes[0];filterImageCell=c.childNodes[c.childNodes.length-1];var b=filterImageCell.childNodes[0];b.src="/_layouts/images/menudark.gif";b.alt=L_OpenMenu_Text;b.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 addAdHocFilterMenuItems(c,a){ULS_core();var b=CAMOpt(a,L_Loading_Text,"");b.setAttribute("enabled","false");FilterOMenu(a,filterTable);a._onDestroy=OnMouseOutFilter;DoCallBack("__filter={"+filterStr+"}")}function UpdateFilterCallback(b){ULS_core();var i="</OPTION>",a=-1;a=b.indexOf(i,a+1);var c=b.lastIndexOf(">",a),l=StBuildParam(L_DontFilterBy_Text,strFieldName),h,e="";if(c<a-1){var d=b.lastIndexOf('"',a);if(d>0){var g=b.lastIndexOf('"',d-1);if(g>0)e=b.substring(g+1,d)}}if(c==a-1)h="/_layouts/images/FILTEROFFDISABLED.gif";else h="/_layouts/images/FILTEROFF.gif";if(a>0){var j=CAMOpt(currentFilterMenu,l,e,h);j.setAttribute("enabled",c==a-1?"false":"true");var d=a,m='<OPTION href="';a=b.indexOf(i,a+8);while(a>0){c=b.indexOf(m,d+8);c=b.indexOf('"',c+20);if(c>0&&c<a){var k=b.indexOf(">",c),f=b.substring(k+1,a),e="";d=b.lastIndexOf('"',c);if(d>0){var g=b.lastIndexOf('"',d-1);if(g>0){e=b.substring(g+1,d);e=e.replace(/&amp;/g,"&")}}if(f.length>40)f=f.substring(0,40)+"...";if(f.length>0){var j=CAMOpt(currentFilterMenu,f,e);if(k>c+1)j.setAttribute("checked","true")}}d=a;a=b.indexOf(i,a+8)}}else{var j=CAMOpt(currentFilterMenu,L_NotFilterable_Text,"");j.setAttribute("enabled","false");FilterOMenu(currentFilterMenu,filterTable);return}loadingFilterMenu._onDestroy=null;FilterOMenu(currentFilterMenu,filterTable);currentFilterMenu._onDestroy=OnMouseOutFilter}function FilterOMenu(c,a){ULS_core();if(a==null)return;var b=a.tagName=="DIV"?a.parentNode:a;OMenu(c,b,null,null,-1)}function OnClickFilter(d,b){ULS_core();if(FV4UI()){if(browseris.ie){b.cancelBubble=true;b.returnValue=false}else b.stopPropagation();var c;try{c=typeof inplview.OnClickFilterV4}catch(b){c="undefined"}if(c!="undefined")inplview.OnClickFilterV4(d);else{var i="inplview.OnClickFilterV4",g=i.split(".");if(g.length>1){var h=function(){ULS_core();inplview.OnClickFilterV4(d)};EnsureScript(g[0],c,h)}}return false}var e=FindSTSMenuTable(d,"CTXNum");if(e!=null&&e.getAttribute("SortFields")!=null){var f=e.getAttribute("SortFields"),a=GetUrlWithNoSortParameters(f);a=RemovePagingArgs(a);if(a.indexOf("?")<0)a+="?";else a+="&";SubmitFormPost(a+f)}if(!bIsFileDialogView)b.cancelBubble=true;return false}function ToggleSelectionAllUsers(b){ULS_core();var a=document.getElementById("spToggleUserSelectionCheckBox_"+b.toString());if(a!=null){var h="spUserSelectionCheckBox_"+b.toString(),e=document.getElementsByName(h);a.checked=!a.checked;for(var d=0;d<e.length;d++){var g=e[d];g.checked=a.checked}var f="cbxUserSelectAll"+b.toString(),c=document.getElementById(f);if(c!=null)if(a.checked)c.src="/_layouts/images/checkall.gif";else c.src="/_layouts/images/unchecka.gif"}}function UserSelectionOnClick(j,c){ULS_core();var g="cbxUserSelectAll"+c.toString(),b=document.getElementById(g),a=document.getElementById("spToggleUserSelectionCheckBox_"+c.toString());if(!j.checked){if(a!=null)a.checked=false;if(b!=null)b.src="/_layouts/images/unchecka.gif"}else{var i="spUserSelectionCheckBox_"+c.toString(),f=document.getElementsByName(i),e=true;for(var d=0;d<f.length;d++){var h=f[d];if(!h.checked){e=false;break}}if(e){if(b)b.src="/_layouts/images/checkall.gif";if(a)a.checked=true}}}var g_menuCounter=0,g_oSelRw=null,g_iEntityEditorLineHeight=16,g_EntityEditorHiddenEntityKeyId="HiddenEntityKey",g_EntityEditorHiddenEntityDisplayTextId="HiddenEntityDisplayText",g_EntityEditorShowEntityDisplayTextInTextBox="ShowEntityDisplayTextInTextBox",g_EntityEditorDownLevelId="downlevelTextBox",g_EntityEditorUpLevelId="upLevelDiv",g_EntityEditorHiddenId="hiddenSpanData",g_EntityEditorCheckNamesId="checkNames",g_EntityEditorOuterTableId="OuterTable",g_EntityEditorErrorLabelId="errorLabel",g_EntityEditorResultTableId="resultTable",g_EntityEditorResultTableAttrEditorId="EditorControlClientId";function onKeyDownRw(h,d,e,g,a){ULS_core();if(!a)a=window.event;var b=a.keyCode;if(a.shiftKey&&b==13||a.altKey&&b==40){onClickRw(true,false);canEvt(a);return}if(g==false){if(b!=8&&b!=46&&b!=37&&b!=39&&b!=9)canEvt(a);else if(autoPostBackEnabled(h))schedulePostBack();PickerAdjustHeight(d,e)}else{PickerAdjustHeight(d,e);if(a.ctrlKey&&b==75||!a.ctrlKey&&!a.altKey&&!a.shiftKey&&b==13){canEvt(a);var f=getSubControlID(d,g_EntityEditorCheckNamesId),c=document.getElementById(f);if(c)if(c.click)c.click();else FFClick(c)}}}function onKeyUpRw(a){ULS_core();copyUplevelToHidden(a)}function onMouseDownRw(){ULS_core();if(event.button==2)g_oSelRw=document.selection.createRange()}function onContextMenuSpnRw(){ULS_core();var a=g_oSelRw,b=document.selection.createRange();if(a.text=="")ret=onClickRw(false,false);else if(a.inRange(b))a.select();else onClickRw(false,false);return false}function canEvt(a){ULS_core();if(a==null)a=event;a.returnValue=false;a.cancelBubble=true}function copyUplevelToHidden(b){ULS_core();if(document.getElementById(b)==null)return;updateControlValue(b);var c=document.getElementById(getSubControlID(b,g_EntityEditorUpLevelId)),d=document.getElementById(getSubControlID(b,g_EntityEditorHiddenId)),a=c.childNodes;for(i=0;i<a.length;i++)if(a[i].tagName!="SPAN"&&a[i].nodeType!=3)if(a[i].tagName=="A"){var e=document.body.createTextRange();e.moveToElementText(a[i]);e.execCommand("Unlink")}else{var g=document.createTextNode(a[i].innerText);a[i].replaceNode(g)}if(EntityEditor_UseContentEditableControl)d.value=c.innerHTML;else{var f=document.getElementById(getSubControlID(b,g_EntityEditorDownLevelId));d.value=f.value}}function getUplevel(b){ULS_core();if(EntityEditor_UseContentEditableControl){var c=document.getElementById(getSubControlID(b,g_EntityEditorUpLevelId)),a=c.childNodes;for(i=0;i<a.length;i++)if(a[i].tagName!="SPAN"&&a[i].nodeType!=3){var e=document.createTextNode(a[i].innerText);a[i].replaceNode(e)}return c.innerHTML}var d=document.getElementById(getSubControlID(b,g_EntityEditorDownLevelId));return d.value}function EntityEditorHasData(a){ULS_core();if(EntityEditor_UseContentEditableControl){var d=document.getElementById(getSubControlID(a,g_EntityEditorUpLevelId)),c=d.childNodes;if(c.length>0)return true}else{var b=document.getElementById(getSubControlID(a,g_EntityEditorDownLevelId));if(b.value!=null&&b.value.length>0)return true}return false}function EEDecodeSpecialChars(b){ULS_core();var a=b.replace(/&quot;/g,'"');a=a.replace(/&gt;/g,">");a=a.replace(/&lt;/g,"<");a=a.replace(/&#39;/g,"'");a=a.replace(/&amp;/g,"&");return a}function onClickRw(r,n){ULS_core();var a=document.selection.createRange(),e=a.parentElement(),b=null;if(e.tagName=="SPAN"&&e.id=="content")b=e.parentElement;else if(e.tagName=="SPAN"&&e.id.substring(0,4)=="span"&&!n)b=e;if(b!=null){a.moveToElementText(b);var k="character";if(a.htmlText.indexOf("span"+a.text)==-1)a.moveStart(k,-1);a.select();a.moveEnd(k,1);g_oSelRw=a;var j=b.children("divEntityData"),o=j.getAttribute("isresolved");if(o=="False"){var g=b;if(g.getBoundingClientRect().right>g.parentElement.getBoundingClientRect().right)g=g.parentElement;var c=b.parentElement.id.replace("_upLevelDiv",""),h=j.getAttribute("key"),d=DeferCall("CMenu","Entity_Menu"+g_menuCounter);g_menuCounter++;var f=null;if(matches[c]!=null&&matches[c][h]!=null)f=matches[c][h];var i=document.getElementById(c),l=i.getAttribute("MoreItemsText"),q=i.getAttribute("RemoveText"),m=i.getAttribute("NoMatchesText");if(f==null||f.childNodes.length==0)CAMOpt(d,m);else for(x=0;x<f.childNodes.length;x++){var p=f.childNodes[x];CAMOpt(d,p.getAttribute("DisplayText"),"EEReplace('"+STSScriptEncode(c)+"', '"+STSScriptEncode(h)+"', "+x+");")}CAMSep(d);CAMOpt(d,q,"EERemove();");CAMOpt(d,l,"EEShowMore('"+STSScriptEncode(c)+"', '"+STSScriptEncode(h)+"');");OMenu(d,g,null,null,-1)}}}function EEShowMore(b,a){ULS_core();DeferCall("__Dialog__"+b,a)}function EEReplace(a,e,f){ULS_core();var c=matches[a][e].childNodes[f],d=ConvertEntityToSpan("",c);g_oSelRw.pasteHTML(d);PickerAdjustHeight(a,g_maxheight[a]);var b=document.getElementById(getSubControlID(a,"downlevelTextBox"));if(b!=null&&autoPostBackEnabled(b))schedulePostBack()}function EERemove(){ULS_core();g_oSelRw.select();document.selection.clear()}var g_maxheight=[];function EntityEditorSetWaitCursor(b){ULS_core();if(document.getElementById(b)==null)return;var a=document.getElementById(getSubControlID(b,g_EntityEditorOuterTableId));if(a!=null)a.style.cursor="wait"}function EntityEditorClearWaitCursor(b){ULS_core();if(document.getElementById(b)==null)return;var a=document.getElementById(getSubControlID(b,g_EntityEditorOuterTableId));if(a!=null)a.style.cursor=""}function EntityEditorHandleCheckNameResult(b,a){ULS_core();EntityEditorClearWaitCursor(a);EntityEditorCallback(b,a)}function EntityEditorHandleCheckNameError(c,b){ULS_core();EntityEditorClearWaitCursor(b);var a=document.getElementById(getSubControlID(b,g_EntityEditorErrorLabelId));if(a)a.innerHTML=STSHtmlEncode(c)}function GetEntities(b){ULS_core();var a;if(document.implementation&&document.implementation.createDocument)a=(new DOMParser).parseFromString(b,"text/xml");else{a=new ActiveXObject("Microsoft.XMLDOM");a.async=false;a.loadXML(b)}var c=a.documentElement;return c}function EntityEditorCallback(result,ctx,preventAutoPostBack){ULS_core();if(document.getElementById(ctx)==null)return;var editor=document.getElementById(ctx),errorControl=document.getElementById(getSubControlID(ctx,"errorLabel")),entities=GetEntities(result),separator=entities.getAttribute("Separator");if(separator==null)separator=String.fromCharCode(0);var append=entities.getAttribute("Append"),maxHeight=entities.getAttribute("MaxHeight");g_maxheight[ctx]=maxHeight;var spanData="",downlevelData="";if(append=="False")errorControl.innerHTML=STSHtmlEncode(entities.getAttribute("Error"));var x;for(x=0;x<entities.childNodes.length;x++){var entity=entities.childNodes[x];spanData+=ConvertEntityToSpan(ctx,entity);if(x==0&&editor.getAttribute(g_EntityEditorShowEntityDisplayTextInTextBox)=="1"){downlevelData+=entity.getAttribute("DisplayText");document.getElementById(getSubControlID(ctx,g_EntityEditorHiddenEntityKeyId)).value=entity.getAttribute("Key");document.getElementById(getSubControlID(ctx,g_EntityEditorHiddenEntityDisplayTextId)).value=entity.getAttribute("DisplayText")}else downlevelData+=entity.getAttribute("Key");if(spanData!=""&&x+1!=entities.childNodes.length){spanData+=separator+" ";downlevelData+=separator+" "}}var uplevel=document.getElementById(getSubControlID(ctx,g_EntityEditorUpLevelId)),hiddenSpan=document.getElementById(getSubControlID(ctx,g_EntityEditorHiddenId)),downlevel=document.getElementById(getSubControlID(ctx,g_EntityEditorDownLevelId)),shouldPostBack=(preventAutoPostBack==null||!preventAutoPostBack)&&autoPostBackEnabled(uplevel),shouldNotifyChange=uplevel.innerHTML!=spanData;if(append=="True"&&uplevel.innerHTML!=""){uplevel.innerHTML+=separator+" "+spanData;hiddenSpan.value+=separator+" "+spanData;downlevel.value+=separator+" "+downlevelData}else{shouldPostBack=shouldPostBack&&uplevel.innerHTML!=spanData&&spanData.indexOf("ms-entity-resolved")!=-1;downlevel.value=downlevelData;uplevel.innerHTML=spanData;hiddenSpan.value=spanData}if(shouldNotifyChange&&!shouldPostBack&&downlevel.onvaluesetfrompicker)if(typeof downlevel.onvaluesetfrompicker=="function")downlevel.onvaluesetfrompicker();else eval(downlevel.onvaluesetfrompicker);updateControlValue(ctx);PickerAdjustHeight(ctx,maxHeight);if(shouldPostBack)schedulePostBack();var cbScript=editor.getAttribute("EEAfterCallbackClientScript");if(cbScript!=null&&cbScript!="")if(preventAutoPostBack==undefined||preventAutoPostBack==false){var timeoutScript=cbScript+"('"+STSScriptEncode(ctx)+"', '"+STSScriptEncode(result)+"')";setTimeout(timeoutScript,500)}}function updateControlValue(a){ULS_core();if(document.getElementById(a)==null)return;var b=document.getElementById(getSubControlID(a,g_EntityEditorUpLevelId)),c=document.getElementById(a);c.value=b.innerHTML!=""?"true":"";CheckOk(a)}function CheckOk(a){ULS_core();var c=document.getElementById(a);if(c==null)return;var b=false;if(c.getAttribute("allowEmpty")=="1")b=true;var d=document.getElementById(getSubControlID(a,g_EntityEditorUpLevelId));if(d.innerHTML!=""){if(self.enableOK!=null)enableOK()}else if(self.disableOK!=null&&!b)disableOK()}var matches=[];function ConvertEntityToSpan(g,d){ULS_core();if(matches[g]==null)matches[g]=[];var e=d.getAttribute("Key"),f=d.getAttribute("DisplayText"),i=d.getAttribute("IsResolved"),h=d.getAttribute("Description"),j="ms-entity-unresolved";if(i=="True")j="ms-entity-resolved";var a="<span id='span"+STSHtmlEncode(e)+"' tabindex='-1' contentEditable='false' class='"+j+"' ";a+="title='"+STSHtmlEncode(h)+"'>";a+="<div style='display:none;' id='divEntityData' ";a+="key='"+STSHtmlEncode(e)+"' displaytext='"+STSHtmlEncode(f)+"' isresolved='"+STSHtmlEncode(i)+"' ";a+="description='"+STSHtmlEncode(h)+"'>";var k=EntityEditor_SelectSingleNode(d,"MultipleMatches");matches[g][e]=k;var c=EntityEditor_SelectSingleNode(d,"ExtraData");if(c){var b;if(c.firstChild)b=c.firstChild.xml;if(!b)b=c.innerXml||c.innerHTML;if(!b&&document.implementation&&document.implementation.createDocument){var l=new XMLSerializer;b=l.serializeToString(c.firstChild)}if(!b)b="";a+="<div data='"+STSHtmlEncode(b)+"'></div>"}else a+="<div data=''></div>";a+="</div>";a+="<span id='content' tabindex='-1' contenteditable onmousedown='onMouseDownRw();' onContextMenu='onContextMenuSpnRw();' >";if(f!="")a+=STSHtmlEncode(f);else a+=STSHtmlEncode(e);a+="</span></span>";return a}function PickerAdjustHeight(a,c){ULS_core();var f=document.getElementById(a);if(f==null)return;var b=document.getElementById(getSubControlID(a,g_EntityEditorDownLevelId)),e=document.getElementById(getSubControlID(a,g_EntityEditorUpLevelId)),d=b.rows;PickerAdjustHeight2(b,d,c);PickerAdjustHeight2(e,d,c)}function PickerAdjustHeight2(c,f,h){ULS_core();var g=h;if(c!=null){var a=c.scrollHeight,d=c.clientHeight,e=c.offsetHeight;if(a==0){a=13;d=14;e=18}var b=g*g_iEntityEditorLineHeight;a=a<f*g_iEntityEditorLineHeight?f*g_iEntityEditorLineHeight:a;if(d!=a&&(a<=b||d<b))c.style.height=e+(a>b?b:a)-d;else if(d>b)c.style.height=b}}function docopy(){ULS_core();var a=document.selection.createRange();window.clipboardData.setData("Text",a.text);window.event.returnValue=false;return false}function dopaste(){ULS_core();var a=document.selection.createRange();window.event.returnValue=false;a.text=window.clipboardData.getData("Text");return false}function getSubControlID(b,a){ULS_core();return b+"_"+a}var nav4=window.Event?true:false,selected=new Array(0),lastSelected;function PickerDialogSetClearState(){ULS_core();selected=new Array(0);lastSelected=null;PickerDialogUpdateAddSelectionButton()}function singleselectevent(b){ULS_core();if(!b)b=window.event;var a=null;if(b.srcElement==null)a=b.target.parentNode||b.currentTarget.parentNode;else{a=b.srcElement;if(a.tagName=="TD")a=a.parentElement}while(a.tagName!="TR")a=a.parentNode;addSelection(a,true,true);lastSelected=a;PickerDialogUpdateAddSelectionButton();return false}function singleselecteventPP(b){ULS_core();if(!b)b=window.event;var a=null;if(b.srcElement==null)a=b.target.parentNode||b.currentTarget.parentNode;else{a=b.srcElement;if(a.tagName=="TD")a=a.parentElement}while(a.tagName!="TR")a=a.parentNode;addSelection(a,true,true);lastSelected=a;addSelected_Click();return false}function multiselectevent(b){ULS_core();if(!b)b=window.event;var h=false,j=false;j=b["ctrlKey"];h=b["shiftKey"];var a=null;if(b.srcElement==null)a=b.target.parentNode||b.currentTarget.parentNode;else{a=b.srcElement;if(a.tagName=="TD")a=a.parentElement}while(a.tagName!="TR")a=a.parentNode;if(h==false){if(j==false){setSelectedColor(false);selected=new Array(0)}lastSelected=a;var d=-1;for(i=0;i<selected.length;i++)if(selected[i]==a){d=i;i=selected.length}if(d==-1)selected=selected.concat(new Array(a));else{setSelectedRowColor(selected[d],false);selected.splice(d,1)}}else{setSelectedColor(false);selected=new Array(0);var g;if(nav4)g=a.parentNode;else g=a.parentElement;var f,e,c=g.rows;if(lastSelected==null)lastSelected=c[1];for(i=1;i<c.length;i++){if(c[i]==a)f=i;if(c[i]==lastSelected)e=i;if(f!=null||e!=null)selected=selected.concat(new Array(c[i]));if(f!=null&&e!=null)i=c.length}}setSelectedColor(true);PickerDialogUpdateAddSelectionButton();return false}function setSelectedRowColor(c,d){ULS_core();for(var a=0;a<c.childNodes.length;a++){var b=c.childNodes[a].className;if(d)b="ms-pb-selected";else b="ms-pb";c.childNodes[a].className=b}}function setSelectedColor(a){ULS_core();for(i=0;i<selected.length;i++)setSelectedRowColor(selected[i],a)}function IsSearchResultRow(a){ULS_core();if(a==null||a.className=="ms-pickersearchsummarytr"||a.className=="ms-pickeremptyresulttexttr"||a.className=="ms-pickerresultheadertr")return false;return true}function tableKeyDown(c,d,a){ULS_core();if(c.rows.length<=1)return;if(!a)a=window.event;if(a.ctrlKey&&a.keyCode==65&&d==true){for(x=1;x<c.rows.length;x++)if(IsSearchResultRow(c.rows[x]))addSelection(c.rows[x],false,false);return false}if(a.keyCode==13){addSelected_Click();if(d==false&&selected.length>0&&self.doClickOK!=null&&typeof self.doClickOK=="function")window.setTimeout("doClickOK();",100)}if(a.keyCode==40||a.keyCode==38){var b=c.rows[1];if(a.keyCode==40)if(lastSelected!=null&&IsSearchResultRow(lastSelected.nextSibling))b=lastSelected.nextSibling;if(a.keyCode==38){if(lastSelected!=null&&IsSearchResultRow(lastSelected.previousSibling))b=lastSelected.previousSibling;if(b==c.rows[0])b=c.rows[1]}if(IsSearchResultRow(b)){if(d==true&&a.shiftKey)addSelection(b,false,true);else addSelection(b,true,true);if(b!=null)lastSelected=b;if(d==false)addSelected_Click();return false}}PickerDialogUpdateAddSelectionButton()}function addSelection(a,c,b){ULS_core();if(a==null)return;if(c==true){setSelectedColor(false);selected=new Array(0)}selected=selected.concat(new Array(a));setSelectedColor(true);if(b&&a.focus)a.focus();PickerDialogUpdateAddSelectionButton()}function autoPostBackEnabled(b){ULS_core();var a=b==null?null:b.attributes.getNamedItem("AutoPostBack");return a!=null&&a.value=="1"}function schedulePostBack(){ULS_core();window.setTimeout("__doPostBack('','')",0)}function saveOldEntities(b){ULS_core();var a=document.getElementById(b);if(a!=null&&autoPostBackEnabled(a))a.oldEntities=getEntityKeysFromElement(b)}function postbackIfEntitiesChanged(e){ULS_core();var d=document.getElementById(e);if(d==null)return false;var a=d.oldEntities;d.oldEntities=null;var c=getEntityKeysFromElement(e),b=false;if(autoPostBackEnabled(d))if(a==null&&c!=null||a!=null&&c==null||a.length!=c.length)b=true;else for(i=0;!b&&i<a.length;i++)if(a[i]!=c[i])b=true;if(b)schedulePostBack()}function getEntityKeysFromElement(g){ULS_core();var c=document.getElementById(g),d=[],f=0;for(x=0;c!=null&&x<c.childNodes.length;x++){var b=c.childNodes[x];if(b.attributes!=null){var e=b.attributes.getNamedItem("class");if(e!=null&&e.value=="ms-entity-resolved"){var a=b.children("divEntityData");if(a!=null&&a.getAttribute("key")!=null){d[f]=a.getAttribute("key");f++}}}}return d.sort()}function EntityEditor_SelectSingleNode(b,a){ULS_core();if(document.implementation&&document.implementation.createDocument){var c=b.getElementsByTagName(a);if(c.length>0)return c[0];return null}else return b.selectSingleNode(a)}function PickerDialogCallbackContext(){ULS_core();this.queryTextBoxElementId=null;this.resultTableId=null;this.errorElementId=null;this.htmlMessageElementId=null;this.queryButtonElementId=null}function PickerDialogSetFocusDelay(a,b){ULS_core();setTimeout("if (document.getElementById('"+a+"') !=null) { try {document.getElementById('"+a+"').focus(); } catch(e) {} }",b)}function PeoplePickerDialogHandleQueryResult(e,a){ULS_core();var b=ParseMultiColumnValue(e),d=parseInt(b[0]),f=document.getElementById(a.errorElementId);f.innerHTML=STSHtmlEncode(b[1]);Microsoft.SharePoint.ApplicationPages.GenericPicker.renderSearchTree(b[3]);var c=document.getElementById(a.queryButtonElementId);if(c!=null)SetControlDisabledStatus(c,false);if(d>0)PickerDialogSetFocusDelay(a.resultTableId+"_row0_Link",200);else PickerDialogSetFocusDelay(a.queryTextBoxElementId,200);i=0}function PickerDialogHandleQueryResult(h,a){ULS_core();var b=ParseMultiColumnValue(h),g=parseInt(b[0]),j=document.getElementById(a.errorElementId);j.innerHTML=STSHtmlEncode(b[1]);var f=document.getElementById(a.htmlMessageElementId);f.innerHTML=b[2];var e=document.getElementById(a.queryButtonElementId);if(e!=null)SetControlDisabledStatus(e,false);var d=document.getElementById(a.resultTableId),c;if(nav4)c=d.parentNode;else c=d.parentElement;c.innerHTML=b[3];if(g>0)PickerDialogSetFocusDelay(a.resultTableId+"_row0_Link",200);else PickerDialogSetFocusDelay(a.queryTextBoxElementId,200);i=0}function PickerDialogHandleQueryError(g,a){ULS_core();var h=document.getElementById(a.errorElementId);h.innerHTML=STSHtmlEncode(g);var f=document.getElementById(a.htmlMessageElementId);f.innerHTML="";var d=document.getElementById(a.queryButtonElementId);if(d!=null)SetControlDisabledStatus(d,false);var c=document.getElementById(a.resultTableId),b;if(nav4)b=c.parentNode;else b=c.parentElement;b.innerHTML="<table id='"+a.resultTableId+"' width='100%' height='100%'>  "+" <tr>                                                              "+"    <td>                                                           "+"    </td>                                                          "+" </tr>                                                             "+"</table>";var e=document.getElementById(a.queryTextBoxElementId);try{e.focus()}catch(i){}}function PickerDialogShowWait(b){ULS_core();var a=document.getElementById(b.errorElementId);if(a!=null)a.innerHTML="";a=document.getElementById(b.htmlMessageElementId);if(a!=null)a.innerHTML="";a=document.getElementById(b.queryButtonElementId);if(a!=null)SetControlDisabledStatus(a,true);var c=document.getElementById(b.resultTableId);if(c!=null){var d;if(nav4)d=c.parentNode;else d=c.parentElement;var L_GearToolTip_TEXT="Searching...",L_PleaseWait_TEXT="Searching...";d.innerHTML="<table id='resultTable' class='ms-pickerwait'>"+" <tr>                                                              "+"    <td width='100%' height='100%' align='center' valign='middle'> "+"         <table width='100%'>                                      "+"            <tr>                                                   "+"                <td align='center' valign='middle' class='ms-descriptiontext'>                "+"                    <img alt='"+L_PleaseWait_TEXT+"'src='/_layouts/images/hig_progcircle_loading24.gif' >"+L_PleaseWait_TEXT+"                </td>                                              "+"            </tr>                                                  "+"        </table>                                                   "+"    </td>                                                          "+" </tr>                                                             "+"</table>"}}function PickerResultsMultiSelectOnDblClick(a){ULS_core();while(a.tagName!="TR")a=a.parentNode;var b=document.getElementById(g_EntityEditorResultTableId),d=a.getAttribute("entityXml"),c=b.getAttribute(g_EntityEditorResultTableAttrEditorId);EntityEditorCallback(d,c)}function PickerResultsSingleSelectOnClick(a){ULS_core();while(a.tagName!="TR")a=a.parentNode;var b=document.getElementById(g_EntityEditorResultTableId),d=a.getAttribute("entityXml"),c=b.getAttribute(g_EntityEditorResultTableAttrEditorId);EntityEditorCallback(d,c)}function PickerResultsSingleSelectOnDblClick(a){ULS_core();while(a.tagName!="TR")a=a.parentNode;var b=document.getElementById(g_EntityEditorResultTableId),d=a.getAttribute("entityXml"),c=b.getAttribute(g_EntityEditorResultTableAttrEditorId);EntityEditorCallback(d,c);if(self.doClickOK!=null&&typeof self.doClickOK=="function")doClickOK()}function PickerResultsMultiSelectOnNameClick(b){ULS_core();var a=b;while(a.tagName!="TR")a=a.parentNode;PickerResultsMultiSelectOnDblClick(a);return true}function PickerResultsSingleSelectOnNameClick(b){ULS_core();var a=b;while(a.tagName!="TR")a=a.parentNode;PickerResultsSingleSelectOnDblClick(a);return true}function PickerResultsNameOnFocus(b){ULS_core();var a=b;while(a.tagName!="TR")a=a.parentNode;addSelection(a,true,false);lastSelected=a}function PickerResultsNameOnKeyDown(b,a){ULS_core();if(a!=null&&a.keyCode==13)return false;return true}function initPageRequestManagerForDFWP(){ULS_core();var a=Sys.WebForms.PageRequestManager.getInstance();a.add_beginRequest(hideMRBForRequest)}function hideMRBForRequest(d,c){ULS_core();var a=c.get_postBackElement();if(a==undefined)return;else if(a.value==undefined||a.value=="")return;var b=$get(a.value);if(b==undefined||b==null)return;hideMRB(b.parentElement)}function hideMRB(b){ULS_core();if(b==undefined||b==null)return;var a=b.all;for(i=0;i<a.length;i++)if(a[i].tagName=="IMG"){regEx=new RegExp("ManualRefresh","i");if(a[i].id!=undefined&&regEx.test(a[i].id)){hideElement(a[i]);break}}}function hideElement(a){ULS_core();if(a==null||a==undefined)return;a.style.visibility="hidden";a.style.display="none"}function MSOWebPartPage_GetLocalizedStrings(){ULS_core();var L_ResetPagePersonalizationDialog_TXT="You are about to reset all personalized Web Parts to their shared values and delete any private Web Parts. Click OK to complete this operation. Click Cancel to keep your personalized Web Part settings and private Web Parts.",L_ResetPartPersonalizationDialog_TXT="Resetting this Web Part will cause you to lose any changes you made.  Are you sure you want to do this? To reset this Web Part, click OK. To keep your changes, click Cancel.",L_RemoveConnection_TXT="Are you sure you want to remove the connection between the %0 Web Part and the %1 Web Part? To remove the connection, click OK. To keep the connection, click Cancel.",L_ExportPersonalization_TXT="This Web Part Page has been personalized. As a result, one or more Web Part properties may contain confidential information. Make sure the properties contain information that is safe for others to read. After exporting this Web Part, view properties in the Web Part description file (.webpart or .dwp) by using a text editor, such as Microsoft Notepad.",L_GetPropertiesFailure_ERR="Cannot retrieve properties at this time.",L_SaveDirtyParts_TXT="Changes have been made to the contents of one or more Web Parts on this page. To save the changes, press OK.  To discard the changes, press Cancel.",L_ToolPaneWidenToolTip_TXT="Widen",L_ToolPaneShrinkToolTip_TXT="Narrow",L_ToolPartExpandToolTip_TXT="Expand Toolpart: %0",L_ToolPartCollapseToolTip_TXT="Collapse Toolpart: %0",L_WebPartBackgroundColor_TXT="Web Part Background Color",L_TransparentTooltip_TXT="Transparent Web Part Background Color",L_InvalidURLPath_ERR="The URL is not valid for the %0 property. Check the URL spelling and path and try again.",L_InvalidFolderPath_ERR="The path to the folder is not valid for the %0 property. Check the path name and try again.",L_InvalidFilePath_ERR="The path to the file or folder is not valid. Check the path and try again.",L_FileOrFolderUnsupported_ERR="The current browser does not support links to files or folders. To specify a link to a file or folder, you must use Microsoft Internet Explorer 5.0 or later",L_Link_TXT="Link",L_TransparentLiteral_TXT="Transparent",L_ContentEditorSaveFailed_ERR="Cannot save your changes.",L_AccessDenied_ERR="Access Denied saving Web Part properties: either the Web Part is embedded directly in the page, or you do not have sufficient permissions to save properties.",L_NoInitArgs_ERR="Cannot create or modify the connection. One of the Web Parts does not have any data fields.",L_PageNotYetSaved_ERR="page not yet saved",a={};a.ResetPagePersonalizationDialogText=L_ResetPagePersonalizationDialog_TXT;a.ResetPartPersonalizationDialogText=L_ResetPartPersonalizationDialog_TXT;a.RemoveConnection=L_RemoveConnection_TXT;a.ExportPersonalizationDialogText=L_ExportPersonalization_TXT;a.GetPropertiesFailure=L_GetPropertiesFailure_ERR;a.SaveDirtyPartsDialogText=L_SaveDirtyParts_TXT;a.ToolPaneWidenToolTip=L_ToolPaneWidenToolTip_TXT;a.ToolPaneShrinkToolTip=L_ToolPaneShrinkToolTip_TXT;a.ToolPartExpandToolTip=L_ToolPartExpandToolTip_TXT;a.ToolPartCollapseToolTip=L_ToolPartCollapseToolTip_TXT;a.WebPartBackgroundColor=L_WebPartBackgroundColor_TXT;a.TransparentTooltip=L_TransparentTooltip_TXT;a.InvalidURLPath=L_InvalidURLPath_ERR;a.InvalidFolderPath=L_InvalidFolderPath_ERR;a.InvalidFilePath=L_InvalidFilePath_ERR;a.FileOrFolderUnsupported=L_FileOrFolderUnsupported_ERR;a.Link=L_Link_TXT;a.TransparentLiteral=L_TransparentLiteral_TXT;a.ContentEditorSaveFailed=L_ContentEditorSaveFailed_ERR;a.AccessDenied=L_AccessDenied_ERR;a.NoInitArgs=L_NoInitArgs_ERR;a.PageNotYetSaved=L_PageNotYetSaved_ERR;return a}var MSOStrings=MSOWebPartPage_GetLocalizedStrings(),L_AccessibleMenu_Text="Menu";function FNEmpWz(a){ULS_core();return a&&a!=""}function AChld(b,a){ULS_core();if(b&&a)b.appendChild(a)}function AImg(a,c,b){ULS_core();if(!a)return;if(FNEmpWz(c))a.setAttribute("iconSrc",c);if(FNEmpWz(b))a.setAttribute("iconAltText",b);else a.setAttribute("iconAltText","")}function CMenu(b){ULS_core();var a=document.getElementById(b);if(a){a._initialized=false;a._oContents=null;a.innerHTML="";return a}a=document.createElement("MENU");if(!a)return null;if(b)a.id=b;a.className="ms-SrvMenuUI";AChld(document.body,a);return a}function CMItm(b){ULS_core();var a=document.createElement("SPAN");if(!a)return null;a.setAttribute("type",b);return a}function SetInnerText(a,b){ULS_core();if(document.createTextNode!=null){var c=document.createTextNode(b);a.innerHTML="";a.appendChild(c)}else a.innerText=b}function CMOpt(f,g,e,d,c,b){ULS_core();var a=CMItm("option");if(!a)return null;a.setAttribute("text",f);a.setAttribute("onMenuClick",g);if(b)a.setAttribute("description",b);AImg(a,e,d);if(FNEmpWz(c))a.setAttribute("sequence",c);return a}function CAMOpt(h,f,g,e,c,d,b){ULS_core();var a=CMOpt(f,g,e,c,d,b);if(!a)return null;AChld(h,a);return a}function CIMOpt(c,h,i,g,f,d){ULS_core();var a=CMOpt(h,i,g,f,d);if(!a)return null;for(var b=0;b<c.childNodes.length;b++){var e=c.childNodes[b].getAttribute("sequence");if(e)if(e>d){c.childNodes[b].parentNode.insertBefore(a,c.childNodes[b]);return a}}AChld(c,a);return a}function CMSep(){ULS_core();var a=CMItm("separator");SetInnerText(a,"");return a}function CAMSep(b){ULS_core();var a=CMSep();if(!a)return null;AChld(b,a);return a}function CSubM(f,e,d,c,b){ULS_core();var a=CMItm("submenu");if(!a)return null;a.setAttribute("text",f);if(b)a.setAttribute("description",b);AImg(a,e,d);if(FNEmpWz(c))a.setAttribute("sequence",c);return a}function CASubM(g,f,e,c,d,b){ULS_core();var a=CSubM(f,e,c,d,b);if(!a)return null;AChld(g,a);return a}function FRdy(a){ULS_core();if(!a)return false;if(a.readyState==null)return true;switch(a.readyState){case "loaded":case "interactive":case "complete":return true;default:return false}}function OMenu(a,e,c,d,b){ULS_core();if(typeof a=="string")a=document.getElementById(a);if(a)OMenuInt(a,e,c,d,b);return false}function OMenuInt(a,e,b,d,c){ULS_core();if(a&&!MenuHtc_isOpen(a)||a&&b)MenuHtc_show(a,e,b,d,c)}function OMenuEvnt(){ULS_core();var a=event.srcElement;if(a&&FRdy(document)&&FRdy(a)){var e=a.getAttribute("relativeTo"),c=a.getAttribute("forceRefresh"),d=a.getAttribute("flipTop"),b=a.getAttribute("yOffsetTop");if(e!=null)a.removeAttribute("relativeTo");if(c!=null)a.removeAttribute("forceRefresh");if(d!=null)a.removeAttribute("flipTop");if(b!=null)a.removeAttribute("yOffsetTop");a.onreadystatechange=null;OMenuInt(a,e,c,d,b)}}var kfnDisableEvent=new Function("return false"),g_menuHtc_lastMenu=null,g_uniqueNumber=0,g_MenuEndOfDOM=false;function RenderECBBackwardCompatibilityMode(a){ULS_core();g_MenuEndOfDOM=a}function IsAccessibilityFeatureEnabledProxy(){ULS_core();if(typeof IsAccessibilityFeatureEnabled!="undefined")return IsAccessibilityFeatureEnabled();return false}function MenuHtc_show(oMaster,oParent,fForceRefresh,fFlipTop,yOffset){ULS_core();if(!(browseris.ie55up||browseris.nav6up||browseris.safari125up))return false;MenuHtc_hide();MenuHtc_init(oMaster);oMaster._oParent=oParent;oMaster._fIsRtL=IsElementRtl(oMaster._oParent);if((browseris.ie||browseris.nav)&&IsAccessibilityFeatureEnabledProxy()){var menu=null;if(oParent.foa!=null){menu=byid(oParent.foa);if(menu==null)menu=eval(oParent.foa)}if(menu!=null&&menu.onblur!=null)menu.onblur();RenderAccessibleMenu(oMaster,fForceRefresh);g_menuHtc_lastMenu=oMaster}else{SetBodyEventHandlers(null);AssureId(oParent);var result=ShowRoot(oMaster,oParent,fForceRefresh,fFlipTop,yOffset);g_menuHtc_lastMenu=oMaster;if(!(typeof _fV4UI!="undefined"&&_fV4UI))NavigateToMenu(oMaster);SetBodyEventHandlers(HandleDocumentBodyClick)}if(browseris.ie)if(window.event!=null)window.event.cancelBubble=true;return false}function MenuHtc_hide(){ULS_core();ClearTimeOutToHideMenu();var a=g_menuHtc_lastMenu;if(a!=null)if(a._accessibleMenu!=null)CloseAccessibleMenu(a);else HideMenu(a);g_menuHtc_lastMenu=null}function MenuHtc_isOpen(a){ULS_core();if(!a||!a._initialized)return false;var b=IsOpen(a);return b}function MenuHtc_item(a,c,b){ULS_core();MenuHtc_init(a);var d=GetItem(a,c,b);return d}function TrapMenuClick(a){ULS_core();if(a!=null)a.cancelBubble=true;return false}function SetBodyEventHandlers(a){ULS_core();document.body.onclick=a}function HandleDocumentBodyClick(){ULS_core();if(g_menuHtc_lastMenu!=null){var a=g_menuHtc_lastMenu;if(a!=null)HideMenu(a)}return false}function GetEventPopup(b){ULS_core();var a=GetEventSrcElement(b);while(a!=null){if(a.master!=null)return a;a=a.parentNode}return null}function GetUniqueNumber(){ULS_core();g_uniqueNumber++;return g_uniqueNumber}function MenuHtc_init(a){ULS_core();if(a._initialized)return;a._initialized=true;a._wzPrefixID="mp"+GetUniqueNumber();if(a.id==null)a.id=a._wzPrefixID+"_id";a._nLevel=0;a._arrPopup=[];a._arrSelected=[];if(typeof a._onDestroy=="undefined")a._onDestroy=null;a._fLargeIconMode=false;a._fCompactItemsWithoutIcons=false}function PrepContents(a){ULS_core();a._fLargeIconMode=a.getAttribute("largeIconMode")=="true";a._fCompactItemsWithoutIcons=a.getAttribute("CompactMode")=="true";if(!browseris.safari){a._oContents=document.createElement("span");a._oContents.style.display="none";var b=a.innerHTML;if(b.indexOf("<IE:MENUITEM ")<0&&b.indexOf("<MENUITEM ")>=0){b="<?XML:NAMESPACE PREFIX=IE />"+b;b=b.replace(/<MENUITEM/g,"<IE:MENUITEM");b=b.replace(/<\/MENUITEM/g,"</IE:MENUITEM")}a._oContents.innerHTML=b}else{a._oContents=a.cloneNode(true);a._oContents.style.display="none"}if(a._fLargeIconMode)if(a._fIsRtL)a._wzMenuStyle="ms-MenuUILargeRtL";else a._wzMenuStyle="ms-MenuUILarge";else if(a._fIsRtL)a._wzMenuStyle="ms-MenuUIRtL";else a._wzMenuStyle="ms-MenuUI";a._wzChkMrkPath="/_layouts/images/ChkMrk.gif";a._wzMArrPath="/_layouts/images/MArr.gif";a._wzMArrPathRtL="/_layouts/images/MArrRtL.gif"}function FixUpMenuStructure(h){ULS_core();var f=h._oRoot.childNodes,e=null,a=null;for(var c=0;c<f.length;c++){var b=f[c];if(b.nodeType!=1)continue;var d=false,i=b.style!=null&&b.style.display=="none",j=FIsIHidden(b);if(i||j)d=true;else if(FIsIType(b,"separator"))if(a!=null||c==0)d=true;else a=b;else{var g=b.getAttribute("menuGroupId");if(g!=e&&a==null&&c!=0){var a=document.createElement("ie:menuitem");a.setAttribute("type","separator");h._oRoot.insertBefore(a,b)}else if(FIsIType(b,"submenu")&&a!=null){b.parentNode.removeChild(a);a=null}else a=null;e=g}if(d){b.parentNode.removeChild(b);c--}}if(a!=null)a.parentNode.removeChild(a)}function IsElementRtl(a){ULS_core();while(a!=null&&a.tagName!=null){var b=a.getAttribute("dir");if((b==null||b=="")&&a.style!=null)b=a.style.direction;if(b=="rtl")return true;else if(b=="ltr")return false;a=a.parentNode}return false}function AdjustScrollPosition(c,d,b){ULS_core();var a=c;while(a!=null&&a!=d&&a!=c.offsetParent&&a.tagName!=null&&a.tagName.toLowerCase()!="body"&&a.tagName.toLowerCase()!="html"){if(a.scrollWidth>a.clientWidth&&a.offsetWidth>=a.clientWidth&&a.clientWidth!=0)if(!IsElementRtl(a)){if(a.scrollLeft>0)b.x-=a.scrollLeft}else b.x+=a.scrollWidth-a.offsetWidth-a.scrollLeft;if(a.scrollTop>0)b.y-=a.scrollTop;a=a.parentNode}}function MenuHtc_GetElementPosition(c,f){ULS_core();var b={};b.x=0;b.y=0;b.width=0;b.height=0;if(c.offsetParent){var a=c;while(a!=null&&a!=f){b.x+=a.offsetLeft;b.y+=a.offsetTop;AdjustScrollPosition(a,f,b);var e=a.tagName.toLowerCase();if(e!="table"&&e!="body"&&e!="html"&&e!="div"&&a.clientTop&&a.clientLeft){b.x+=a.clientLeft;b.y+=a.clientTop}if(browseris.ie&&e=="td"){if(a.runtimeStyle.borderTopStyle!="none"||a.currentStyle.borderTopStyle!="none"){var d;if(a.runtimeStyle.borderTopWidth!="")d=parseInt(a.runtimeStyle.borderTopWidth);else d=parseInt(a.currentStyle.borderTopWidth);if(!isNaN(d))b.y+=d}if(a.runtimeStyle.borderLeftStyle!="none"||a.currentStyle.borderLeftStyle!="none"){var d;if(a.runtimeStyle.borderLeftWidth!="")d=parseInt(a.runtimeStyle.borderLeftWidth);else d=parseInt(a.currentStyle.borderLeftWidth);if(!isNaN(d))b.x+=d}}a=a.offsetParent}}else if(c.offsetLeft||c.offsetTop){b.x=c.offsetLeft;b.y=c.offsetTop}else{if(c.x)b.x=c.x;if(c.y)b.y=c.y}if(c.offsetWidth&&c.offsetHeight){b.width=c.offsetWidth;b.height=c.offsetHeight}else if(c.style&&c.style.pixelWidth&&c.style.pixelHeight){b.width=c.style.pixelWidth;b.height=c.style.pixelHeight}return b}function MenuTag(b,a){ULS_core();this.tagName=b;this.className=a}function CreateMenuTag(a){ULS_core();if(a.tagName!=null){var b=document.createElement(a.tagName);if(a.className!=null)b.className=a.className;return b}return null}function TransferEventToMenu(b,c){ULS_core();var a;if(browseris.ie)a={srcElement:b,keyCode:c.keyCode};else a={target:b,which:c.which};PopupKeyDown(a)}function MenuHtcInternal_Show(c,b,z,n){ULS_core();var e={};if(!(typeof _fV4UI!="undefined"&&_fV4UI)){e.popup=new MenuTag("div","ms-MenuUIPopupBody");e.inner=new MenuTag("div",null);e.section=new MenuTag("table",null);e.menubody=new MenuTag("tbody",null)}else{e.popup=new MenuTag("div","ms-MenuUIPopupBody ms-MenuUIPopupScreen");e.inner=new MenuTag("div","ms-MenuUIPopupInner");e.section=new MenuTag("div",null);e.menubody=new MenuTag("ul","ms-MenuUIUL")}var a=c._arrPopup[c._nLevel],k,g,i;if(!c._oContents)PrepContents(c);if(!c._oContents||IsOpen(c))return;if(!a&&!c._oRoot){c._nLevel=0;c._oRoot=c._oContents}g=c._nLevel==0;n=n&&g;if(!a){a=CreateMenuTag(e.popup);if(browseris.ie||browseris.safari)a.title="";else if(browseris.nav)a.title=" ";c._arrPopup[c._nLevel]=a;a.isMenu=true;a.master=c;a.level=c._nLevel;i=CreateMenuTag(e.inner);var h=CreateMenuTag(e.section),j=CreateMenuTag(e.menubody);i.isInner=true;a.style.position="absolute";if(c._fIsRtL)a.setAttribute("dir","rtl");else a.setAttribute("dir","ltr");a.style.visibility="hidden";i.style.overflow="visible";h.className=c._wzMenuStyle;if(!(typeof _fV4UI!="undefined"&&_fV4UI)){h.cellSpacing=0;h.cellPadding=0}h.appendChild(j);i.appendChild(h);a.appendChild(i);if(!(typeof _fV4UI!="undefined"&&_fV4UI)||g_MenuEndOfDOM==true)document.body.appendChild(a);else if(b.tagName=="TABLE")b.parentNode.appendChild(a);else b.appendChild(a);FixUpMenuStructure(c);var x=0,y=c._oRoot.childNodes.length;for(k=0;k<y;k++){var p=c._oRoot.childNodes[k];if(p.nodeType!=1)continue;if(!FIsIType(p,"label")){var v=CreateMenuItem(c,p,MakeID(c,c._nLevel,x));if(v)j.appendChild(v);x++}}if(typeof _fV4UI!="undefined"&&_fV4UI&&!c._fLargeIconMode){var f=0,o=j.getElementsByTagName("a"),t=null,m=0;for(var l=0;l<o.length;l++){m=o[l].childNodes[1].offsetWidth;if(m>f){t=l;f=m}}f=0;var u=o[t];for(var q=0;q<u.childNodes.length;q++)f+=u.childNodes[q].offsetWidth;f+=16+5;j.style.width=f+"px";h.style.width=f+2+"px"}a.oncontextmenu=kfnDisableEvent;a.ondragstart=kfnDisableEvent;a.onselectstart=kfnDisableEvent;if(b._onmouseover==null)b._onmouseover=b.onmouseover;if(b._onmouseout==null)b._onmouseout=b.onmouseout;if(b._onmousedown==null)b._onmousedown=b.onmousedown;if(b._onclick==null)b._onclick=b.onclick;if(b._oncontextmenu==null)b._oncontextmenu=b.oncontextmenu;if(typeof _fV4UI!="undefined"&&_fV4UI&&g)if(b._onkeydown==null)b._onkeydown=b.onkeydown;if(browseris.nav){a.onkeypress=function(){ULS_core();return false};a.onkeyup=function(){ULS_core();return false};a.onkeydown=function(a){ULS_core();PopupKeyDown(a);a.cancelBubble=true;return false};a.onmousedown=function(a){ULS_core();TrapMenuClick(a);return false};a.onmouseover=function(a){ULS_core();PopupMouseOver(a);return false};a.onmouseout=function(a){ULS_core();PopupMouseLeave(a);return false};a.onclick=function(a){ULS_core();PopupMouseClick(a);TrapMenuClick(a);return false};b.onmouseover=function(a){ULS_core();PopupMouseOverParent(a);return false};b.onmouseout=function(a){ULS_core();PopupMouseLeaveParent(a);return false};b.onmousedown=function(a){ULS_core();TrapMenuClick(a);return false};b.onclick=function(a){ULS_core();TrapMenuClick(a);return false};b.oncontextmenu=function(a){ULS_core();TrapMenuClick(a);return false};if(typeof _fV4UI!="undefined"&&_fV4UI&&g)b.onkeydown=function(b){ULS_core();TransferEventToMenu(a,b);return false}}else{a.onkeydown=new Function("PopupKeyDown(event); event.cancelBubble=true; return false;");a.onmousedown=new Function("TrapMenuClick(event); return false;");a.onmouseover=new Function("PopupMouseOver(event); return false;");a.onmouseout=new Function("PopupMouseLeave(event); return false;");a.onclick=new Function("PopupMouseClick(event); TrapMenuClick(event); return false;");b.onmouseover=new Function("PopupMouseOverParent(event); return false;");b.onmouseout=new Function("PopupMouseLeaveParent(event); return false;");b.onmousedown=new Function("TrapMenuClick(event); return false;");b.onclick=new Function("TrapMenuClick(event); return false;");b.oncontextmenu=new Function("TrapMenuClick(event); return false;");if(typeof _fV4UI!="undefined"&&_fV4UI&&g)b.onkeydown=function(){ULS_core();TransferEventToMenu(a,event);return false}}if(g){var s=c.getAttribute("onunloadtext");if(s)a.onunload=new Function(s)}}else{var w=c._arrSelected[c._nLevel];if(w)UnselectItem(w)}c._arrSelected[c._nLevel]=null;var d;if(browseris.ie){var r=document.body.scrollLeft;d=document.createElement("iframe");AssureId(d);d.src="/_layouts/blank.htm";d.style.position="absolute";d.style.display="none";d.scrolling="no";d.frameBorder="0";if(!(typeof _fV4UI!="undefined"&&_fV4UI)||g_MenuEndOfDOM==true)document.body.appendChild(d);else if(b.tagName=="TABLE")b.parentNode.appendChild(d);else b.appendChild(d);a.style.zIndex=103;a._backgroundFrameId=d.id;if(r!=document.body.scrollLeft)document.body.scrollLeft=r}SetMenuPosition(c,b,a,i,n,g);a.style.visibility="visible";if(browseris.ie){SetBackFrameSize(null,a);a.onresize=new Function("SetBackFrameSize(event, null);");d.style.display="block";d.style.zIndex=101}}function SetMenuPosition(I,L,a,f,K,y){ULS_core();var h=window.screen.width,k=window.screen.height;if(self.innerHeight){h=self.innerWidth;k=self.innerHeight}else if(document.documentElement&&document.documentElement.clientHeight){h=document.documentElement.clientWidth;k=document.documentElement.clientHeight}else if(document.body){h=document.body.clientWidth;k=document.body.clientHeight}var b=a.scrollWidth+a.offsetWidth-a.clientWidth,e=a.scrollHeight+a.offsetHeight-a.clientHeight,G=false,w=false;if(b>h-50){G=true;b=h-50}if(I._fCompactItemsWithoutIcons&&e>=375){w=true;e=375}if(e>=k-50){w=true;e=k-50}if(!G&&!w)f.style.overflow="visible";else if(browseris.ie){if(G){a.style.width=b+"px";f.style.width=b+"px";f.style.overflowX="scroll"}else{f.style.width=b+"px";f.style.overflowX="visible"}if(w){a.style.height=e+"px";f.style.height=e+"px";f.style.overflowY="scroll"}else{f.style.height=e+"px";f.style.overflowY="visible"}}else{a.style.height=e+"px";f.style.height=e+"px";a.style.width=b+"px";f.style.width=b+"px";f.style.overflow="auto"}b=a.scrollWidth+a.offsetWidth-a.clientWidth;e=a.scrollHeight+a.offsetHeight-a.clientHeight;var z=0,x=h,c=0,N=0,m=0,r=L;if(browseris.safari)if(r.tagName=="TR"&&r.childNodes.length>0)r=r.childNodes[0];var s=MenuHtc_GetElementPosition(r);c=s.x;m=s.y;var j;if(y){j=s.width;m+=s.height;m-=1}else j=s.width+1;var M=!K&&!document.body.getAttribute("flipped"),v,D,A,B;if(!I._fIsRtL){var t,p;if(y){A=c;t=c+b;p=c+j-b}else{A=c+j;t=c+j+b;p=c-b}B=p;v=t>x&&p>z;D=!(p<z&&t<x)}else{var o,u;if(y){o=c+j-b;u=c+b;B=c}else{o=c-b;u=c+j+b;B=c+j}A=o;v=o<z&&u<x;D=!(u>x&&o>z)}var H=M?v:D,C=H?B:A,i,l;if(browseris.nav){i=window.pageXOffset;l=window.pageYOffset}else{var q=document.body.parentElement;if(!IsElementRtl(document.body)){i=document.body.scrollLeft;i+=q.scrollLeft}else{i=-document.body.scrollWidth+document.body.offsetWidth+document.body.scrollLeft;i+=-q.scrollWidth+q.offsetWidth+q.scrollLeft}l=document.body.scrollTop;l+=q.scrollTop}if(b>=h)C=i;else if(C-i+b>=h)C=i+h-b;var n;if(e>=k)n=l;else if(m+e-l>=k)n=l+k-e;else n=m;if(browseris.safari)n+=window.pageYOffset;else n+=document.documentElement.scrollTop;a.setAttribute("flipped",K?H&&v:H);var d=Math.max(C,i),g=Math.max(n,l);if(browseris.safari)g-=window.pageYOffset;else g-=document.documentElement.scrollTop;if(typeof _fV4UI!="undefined"&&_fV4UI&&g_MenuEndOfDOM==false)if(!y){if(I._fIsRtL)if(browseris.ie)d=d-c;else d=d-c+2;else d=d-c+1;g=g-m+L.offsetTop-1}else if(a.offsetParent!=null&&a.offsetParent.tagName.toLowerCase()!="body"){var E,F,J=MenuHtc_GetElementPosition(a.offsetParent);E=J.x;F=J.y;if(browseris.ie){g=g-F-2;d=d-E}else{g=g-F;d=d-E}d=d<0?0:d}a.style.left=d+"px";a.style.top=g+"px";a.LeftForBackIframe=d;a.TopForBackIframe=g}function SetBackFrameSize(e,a){ULS_core();if(a==null)a=GetEventSrcElement(e);var d=a.scrollWidth+a.offsetWidth-a.clientWidth,c=a.scrollHeight+a.offsetHeight-a.clientHeight,b=document.getElementById(a._backgroundFrameId);b.style.left=a.LeftForBackIframe+"px";b.style.top=a.TopForBackIframe+"px";b.style.width=d+"px";b.style.height=c+"px"}function HideMenu(a,c){ULS_core();ClearTimeOutToHideMenu();if(c==null)c=0;if(c==2){if(a._onDestroy!=null){a._onDestroy();a._onDestroy=null}return}if(IsOpen(a)&&!IsAccessibilityFeatureEnabledProxy()){if(a._oParent!=null){a._oParent.onclick=a._oParent._onclick;a._oParent.onmouseover=a._oParent._onmouseover;a._oParent.onmouseout=a._oParent._onmouseout;a._oParent.onmousedown=a._oParent._onmousedown;a._oParent.oncontextmenu=a._oParent._oncontextmenu;if(typeof _fV4UI!="undefined"&&_fV4UI)a._oParent.onkeydown=a._oParent._onkeydown}SetBodyEventHandlers(null);UpdateLevel(a,0);var b=a._arrPopup[0];if(b!=null){var d=document.getElementById(b._backgroundFrameId);if(d!=null)d.parentNode.removeChild(d);if(b.parentNode!=null)b.parentNode.removeChild(b);a._arrPopup[0]=null;if(c==0)if(a._onDestroy!=null){a._onDestroy();a._onDestroy=null}}g_menuHtc_lastMenu=null;RenderECBBackwardCompatibilityMode(false)}}function IsOpen(a){ULS_core();if(a._accessibleMenuInProgress||a._accessibleMenu&&!a._accessibleMenu.closed)return true;if(!a._arrPopup)return false;var b=a._arrPopup[a._nLevel];return b}function FindLabel(d){ULS_core();var a=d?d.childNodes:null;if(a)for(var b=0;b<a.length;b++){var c=a[b];if(c.nodeType!=1)continue;if(FIsIType(c,"label"))return c}return null}function ShowRoot(a,b,f,d,e){ULS_core();UpdateLevel(a,0);if(f){a._oContents=null;a._oRoot=null;a._nLevel=0;a._arrPopup=[];a._arrSelected=[]}else a._oRoot=a._oContents;var c=0;if(b)c+=b.offsetHeight;if(browseris.safari)if(b.tagName=="TR"&&b.childNodes.length>0)c+=b.childNodes[0].offsetTop+b.childNodes[0].offsetHeight-b.offsetTop;if(e)c+=e;d=d!=false;MenuHtcInternal_Show(a,b,c,d)}function ShowSubMenu(a,c,b){ULS_core();if(!b)return;if(b.submenuRoot==null)return;UpdateLevel(a,c);a._oRoot=b.submenuRoot;a._nLevel=a._nLevel+1;MenuHtcInternal_Show(a,b,-1)}function ShowSubMenuEvnt(c){ULS_core();var a=document.getElementById(c),b=a._arrPopup[a._nLevel];if(b){b.removeAttribute("timeoutID");ShowSubMenu(a,a._nLevel,a._arrSelected[a._nLevel])}}function SetShowSubMenuEvnt(a){ULS_core();var b=a._arrPopup[a._nLevel];if(b){ClearTimeOut("timeoutID");document.body.setAttribute("timeoutID",window.setTimeout(new Function("ShowSubMenuEvnt('"+a.id+"');"),100))}}function ClearTimeOut(a){ULS_core();var b=document.body.getAttribute(a);if(b!=null)window.clearTimeout(b);document.body.removeAttribute(a)}function ClearShowSubMenuEvnt(){ULS_core();ClearTimeOut("timeoutID")}function GetEventSrcItem(c,d){ULS_core();var b=null;if(!(typeof _fV4UI!="undefined"&&_fV4UI))b="tr";else b="li";for(var a=d;a&&!FIStringEquals(a.tagName,"body");a=a.parentNode)if(FIStringEquals(a.tagName,b)&&a.id.substring(0,c._wzPrefixID.length)==c._wzPrefixID)return a;return null}function UpdateLevel(a,d){ULS_core();var b;while(a._nLevel>d){b=a._arrPopup[a._nLevel];if(b){ClearShowSubMenuEvnt(b);var c=document.getElementById(b._backgroundFrameId);if(c!=null)c.parentNode.removeChild(c);b.parentNode.removeChild(b)}a._arrPopup[a._nLevel]=null;a._arrSelected[a._nLevel]=null;a._oRoot=a._oRoot.parentNode;a._nLevel--}b=a._arrPopup[a._nLevel];if(b)ClearShowSubMenuEvnt(b)}function PopupMouseOver(e){ULS_core();var d=GetEventPopup(e);if(d!=null){var a=d.master,c=d.level;if(c<0)return;var b=GetEventSrcItem(a,GetEventSrcElement(e));if(b)if(b!=a._arrSelected[c]){if(FIsIType(b,"separator"))return;ToggleMenuItem(a,c,b);if(FIsIType(b,"submenu"))EngageSelection(a,true,true,false)}else if(c<a._nLevel)UnselectCurrentOption(a);ClearTimeOutToHideMenu()}}function PopupMouseLeave(b){ULS_core();var a;a=GetEventPopup(b);if(a!=null){UnselectCurrentOption(a.master);SetTimeOutToHideMenu()}return false}function PopupMouseOverParent(){ULS_core();if(g_menuHtc_lastMenu!=null){ClearTimeOutToHideMenu();if(g_menuHtc_lastMenu._oParent!=null&&g_menuHtc_lastMenu._oParent._onmouseover!=null&&typeof g_menuHtc_lastMenu._oParent._onmouseover=="function")g_menuHtc_lastMenu._oParent._onmouseover()}}function PopupMouseLeaveParent(){ULS_core();if(g_menuHtc_lastMenu!=null){if(g_menuHtc_lastMenu._oParent!=null&&g_menuHtc_lastMenu._oParent._onmouseout!=null&&typeof g_menuHtc_lastMenu._oParent._onmouseout=="function")g_menuHtc_lastMenu._oParent._onmouseout();SetTimeOutToHideMenu()}}function ClearTimeOutToHideMenu(){ULS_core();if(document.body.getAttribute("HideMenuTimeOut")!=null)ClearTimeOut("HideMenuTimeOut")}function SetTimeOutToHideMenu(){ULS_core();ClearTimeOut("HideMenuTimeOut");document.body.setAttribute("HideMenuTimeOut",window.setTimeout(MenuHtc_hide,1500))}function PopupMouseClick(a){ULS_core();var g=GetEventPopup(a),b=g.master,c=g.level;if(c<0)return;var h=b._arrSelected[c],e=GetEventSrcItem(b,GetEventSrcElement(a));if(h!=e)if(e)b._arrSelected[c]=e;UpdateLevel(b,c);var d,f;if(browseris.nav){f=a&&a.target&&a.target.className=="hierarchy";d=a&&a.target&&a.target.getAttribute("onExpand")}else{f=a&&a.srcElement&&a.srcElement.className=="hierarchy";d=a&&a.srcElement&&a.srcElement.getAttribute("onExpand")}EngageSelection(b,true,false,false,f,d)}function PopupKeyDown(c){ULS_core();var d=GetEventPopup(c),b=d.master,f=d.level;if(f<0)return;var a=GetEventKeyCode(c),e=c.shiftKey;if(b._fIsRtL)if(a==37)a=39;else if(a==39)a=37;if(a==9)a=!e?40:38;ClearShowSubMenuEvnt(d);switch(a){case 38:MoveMenuSelection(b,-1);break;case 40:MoveMenuSelection(b,1);break;case 37:case 27:CloseCurrentLevel(b,a==27);break;case 39:case 13:EngageSelection(b,a==13,false,true)}c.returnValue=false}function SetNewId(a){ULS_core();a.id="msomenuid"+GetUniqueNumber();return a.id}function AssureId(a){ULS_core();if(a.id==null||a.id=="")a.id="msomenuid"+GetUniqueNumber();return a.id}function NavigateToMenu(c){ULS_core();var b=null;b=c._arrPopup[c._nLevel].firstChild;AssureId(b);try{var a=b.firstChild.firstChild.firstChild;if(!(typeof _fV4UI!="undefined"&&_fV4UI))a.tabIndex=0;else a=a.getElementsByTagName("A")[0];if(a!=null)if(a.setActive!=null)a.setActive();else if(a.focus!=null)a.focus()}catch(d){}}function ExecuteOnClick(fnOnClick,oMaster){ULS_core();try{if(browseris.safari)if(FIStringEquals(typeof fnOnClick,"string"))eval("var document=window.document; {"+fnOnClick+"}");else fnOnClick();else{if(FIStringEquals(typeof fnOnClick,"string"))fnOnClick=new Function("event","var document=window.document; {"+fnOnClick+"}");var oTemp=window.document.body.appendChild(window.document.createElement("span"));oTemp.master=oMaster;oTemp.onclick=fnOnClick;var evt,ctx=null;if(typeof currentCtx!="undefined"&&currentCtx!=null)ctx=currentCtx;else if(typeof ctxFilter!="undefined"&&ctxFilter!=null)ctx=ctxFilter;if(browseris.ie)evt={srcElement:oTemp,fakeEvent:1,currentCtx:ctx};else evt={target:oTemp,fakeEvent:1,currentCtx:ctx};oTemp.onclick(evt);oTemp.parentNode.removeChild(oTemp)}}catch(e){}}function EngageSelection(oMaster,fDoSelection,fDelayExpandSM,fEnterSM,fExpand,fCommand){ULS_core();var oItem=oMaster._arrSelected[oMaster._nLevel];if(!oItem||oItem.optionDisabled)return;if(FIsIType(oItem,"submenu"))if(fDelayExpandSM)SetShowSubMenuEvnt(oMaster);else{ShowSubMenu(oMaster,oMaster._nLevel,oItem);if(fEnterSM)MoveMenuSelection(oMaster,1)}else if(fDoSelection){var fEnabled=oItem.getAttribute("enabled");if(fEnabled!="false")if(!fExpand){var fnOnClick=oItem.getAttribute("onMenuClick");if(fnOnClick){HideMenu(oMaster,1);ExecuteOnClick(fnOnClick,oMaster);HideMenu(oMaster,2)}}else eval(fCommand)}}function CloseCurrentLevel(oMaster,fAllowHideRoot){ULS_core();if(oMaster._nLevel>0){UpdateLevel(oMaster,oMaster._nLevel-1);var obj=oMaster._arrSelected[oMaster._nLevel];if(obj!=null&&obj.onclick!=null)obj.onclick=obj._onclick;if(obj!=null)if(!(typeof _fV4UI!="undefined"&&_fV4UI)){if(browseris.nav){obj=obj.firstChild.firstChild.firstChild.firstChild.firstChild.nextSibling.firstChild.firstChild;if(obj.focus!=null)obj.focus()}else if(obj.focus!=null)obj.focus()}else{obj=obj.getElementsByTagName("a")[0];if(obj!=null)if(obj.setActive!=null)obj.setActive();else if(obj.focus!=null)obj.focus()}}else if(fAllowHideRoot){HideMenu(oMaster);var oParent=oMaster._oParent;while(oParent!=null&&oParent.tagName=="SPAN"&&oParent.getAttribute("contentEditable")=="true")oParent=oParent.parentElement;if(oParent!=null){var focusElement=oParent,foastr=oParent.getAttribute("foa");if(foastr!=null){var foa=null;foa=eval(foastr);if(foa==null)foa=byid(foastr);if(foa!=null)focusElement=foa}else if(focusElement.tagName!="A"){var anchorList=focusElement.getElementsByTagName("a"),anchorListLen=anchorList.length;if(anchorListLen>0)focusElement=anchorList[anchorListLen-1]}if(focusElement!=null)if(focusElement.setActive!=null)focusElement.setActive();else if(focusElement.focus!=null)focusElement.focus()}}}function UnselectCurrentOption(a){ULS_core();if(a._nLevel>=0){var b=a._arrSelected[a._nLevel];if(FIsIType(b,"option")){UnselectItem(b);a._arrSelected[a._nLevel]=null}}}function MakeID(a,c,b){ULS_core();return a._wzPrefixID+"_"+c+"_"+b}function GetItem(a,b,c){ULS_core();var d=a._arrPopup[b];return d?document.getElementById(MakeID(a,b,c)):null}function MoveMenuSelection(b,g){ULS_core();var a=-1,d=b._oRoot.childNodes.length,f=b._arrSelected[b._nLevel];if(f){var e=f?f.id:null;if(e){var i=parseInt(e.substring(e.lastIndexOf("_")+1,e.length));a=(i+d+g)%d}}if(a<0)a=g>0?0:d-1;var c,h=a;do{c=GetItem(b,b._nLevel,a);a=(a+d+g)%d}while(a!=h&&(!c||c.style.display=="none"||!(FIsIType(c,"option")||FIsIType(c,"submenu"))));ToggleMenuItem(b,b._nLevel,c)}function ToggleMenuItem(f,g,a){ULS_core();var b=f._arrSelected[g];if(!a||b&&a.id==b.id)return;if(b){UnselectItem(b);b.onkeydown=null;b.onmousedown=null;b.onmouseover=null;b.onmouseout=null;b.oncontextmenu=null}UpdateLevel(f,g);SelectItem(a);f._arrSelected[g]=a;if(!(typeof _fV4UI!="undefined"&&_fV4UI)){a.tabIndex=0;if(a.setActive!=null)a.setActive();else if(a.focus!=null)a.focus()}else{var e=a.firstChild.firstChild;if(e!=null)if(e.setActive!=null)e.setActive();else if(e.focus!=null)e.focus()}var h=f._arrPopup[g];if(h!=null){var c=h.childNodes[0],d=MenuHtc_GetElementPosition(a,c);if(d.y+d.height-c.scrollTop>c.offsetHeight)c.scrollTop=d.y+d.height-c.offsetHeight;else if(d.y<c.scrollTop)c.scrollTop=d.y}}function SelectItem(b){ULS_core();if(!b)return;if(!(typeof _fV4UI!="undefined"&&_fV4UI)){var a=b.firstChild,d=a.firstChild;if(a.className=="ms-MenuUIItemTableCellCompact")a.className="ms-MenuUIItemTableCellCompactHover";else a.className="ms-MenuUIItemTableCellHover";d.className="ms-MenuUIItemTableHover"}else{var c=b.firstChild;if(c.className.indexOf("ms-MenuUISeparator")==-1)c.className="ms-MenuUIULItemHover"}}function UnselectItem(b){ULS_core();if(!b)return;if(!(typeof _fV4UI!="undefined"&&_fV4UI)){var a=b.firstChild,d=a.firstChild;if(a.className=="ms-MenuUIItemTableCellCompactHover")a.className="ms-MenuUIItemTableCellCompact";else a.className="ms-MenuUIItemTableCell";d.className="ms-MenuUIItemTable"}else{var c=b.firstChild;if(c.className.indexOf("ms-MenuUISeparator")==-1)c.className="ms-MenuUIULItem"}}function SetImageSize(c,b,a){ULS_core();if(a==null)if(c._fLargeIconMode)a=32;else a=16;b.width=a;b.height=a}function CreateMenuOption(g,l,d,D,C){ULS_core();var c={};if(!(typeof _fV4UI!="undefined"&&_fV4UI)){c.icon=new MenuTag("td",null);c.label=new MenuTag("td",null);c.accKey=new MenuTag("td",null);c.arrow=new MenuTag("td",null)}else{c.icon=new MenuTag("span",null);c.label=new MenuTag("span",null);c.accKey=new MenuTag("span",null);c.arrow=new MenuTag("span",null)}var f=null,m=CreateMenuTag(c.icon),b=CreateMenuTag(c.label),i=CreateMenuTag(c.accKey),p=CreateMenuTag(c.arrow);if(!(typeof _fV4UI!="undefined"&&_fV4UI)){l.appendChild(m);l.appendChild(b);l.appendChild(i);l.appendChild(p)}else{f=document.createElement("a");f.className="ms-MenuUIULLink";var F=D+"_"+"Anchor";f.id=F;f.appendChild(m);f.appendChild(b);f.appendChild(i);f.appendChild(p);if(!g._fIsRtL)i.style.cssFloat="left";else i.style.cssFloat="right";i.style.width="auto";f.href="javascript:;";f.setAttribute("onclick","return false;")}if(g._fLargeIconMode)m.className=!g._fIsRtL?"ms-MenuUIIconLarge":"ms-MenuUIIconLargeRtl";else m.className=!g._fIsRtL?"ms-MenuUIIcon":"ms-MenuUIIconRtL";m.align="center";if(g._fCompactItemsWithoutIcons&&!d.getAttribute("iconSrc"))b.className=!g._fIsRtL?"ms-menuuilabelcompact":"ms-menuuilabelcompactRtl";else b.className=!g._fIsRtL?"ms-MenuUILabel":"ms-MenuUILabelRtL";i.className="ms-MenuUIAccessKey";p.className="ms-MenuUISubmenuArrow";if(!g._fLargeIconMode)b.style.whiteSpace="nowrap";m.style.whiteSpace="nowrap";i.style.whiteSpace="nowrap";p.style.whiteSpace="nowrap";p.style.display="none";b.id=d.id;if(d.getAttribute("enabled")=="false"){l.disabled=true;if(!(typeof _fV4UI!="undefined"&&_fV4UI))b.className+=" ms-MenuUIItemTableCellDisabled";else f.disabled=true}var q=null,o=null;if(d.getAttribute("checked")=="true"){q=g._wzChkMrkPath;o="*"}else{q=EvalAttributeValue(d,"iconSrc","iconScript");o=d.getAttribute("iconAltText")}var s;if(C)s=C;else s="";var j=EvalAttributeValue(d,"text","textScript");if(j==null||j==""){var t=d.firstChild;if(t!=null&&t.nodeType==3)j=t.nodeValue}var x=EvalAttributeValue(d,"description","descriptionScript"),h=null;if(!(typeof _fV4UI!="undefined"&&_fV4UI))h=document.createElement("div");if(x!=null&&g._fLargeIconMode){var a=document.createElement("span"),u=document.createTextNode(j),E=document.createElement("br"),n=document.createElement("span"),y=document.createTextNode(x);a.setAttribute("style","white-space:nowrap;");n.className="ms-menuitemdescription";n.setAttribute("style","white-space:normal !important;");if(!(typeof _fV4UI!="undefined"&&_fV4UI)){h.appendChild(a);a.appendChild(u);h.appendChild(E);h.appendChild(n);n.appendChild(y)}else{b.appendChild(a);a.appendChild(u);b.appendChild(E);b.appendChild(n);n.appendChild(y)}}else if(j!=null){var a=document.createElement("span"),r=d.getAttribute("hierarchy");if(r!=null){var k=document.createElement("span");k.setAttribute("style","white-space: nowrap;");var B=d.getAttribute("onExpand");if(B!=null)k.setAttribute("onExpand",B);k.className="hierarchy";if(!(typeof _fV4UI!="undefined"&&_fV4UI)){h.appendChild(k);k.innerHTML=r;a.setAttribute("style","white-space: nowrap;");h.appendChild(a);a.innerHTML=j}else{b.appendChild(k);k.innerHTML=r;a.setAttribute("style","white-space: nowrap;");b.appendChild(a);a.innerHTML=j}}else{var u=document.createTextNode(j);a.setAttribute("style","white-space: nowrap;");if(!(typeof _fV4UI!="undefined"&&_fV4UI))h.appendChild(a);else b.appendChild(a);a.appendChild(u)}}var v=document.createElement("span");v.innerHTML=s;if(!(typeof _fV4UI!="undefined"&&_fV4UI))h.appendChild(v);else b.appendChild(v);var A=D+"_"+"ICON",e=document.createElement("img");e.className="ms-MenuUIULImg";SetImageSize(g,e);m.appendChild(e);e.id=A;if(!(typeof _fV4UI!="undefined"&&_fV4UI)){var w=document.createElement("LABEL");b.appendChild(w);w.htmlFor=A;w.appendChild(h)}if(q){e.src=q;if(o){e.alt=o;e.title=o}else{e.alt="";e.title=""}}else{e.src="/_layouts/images/blank.gif";e.alt="";e.title=""}var z=d.getAttribute("accessKeyText");if(z)i.innerHTML=z;else i.style.display="none";SetIType(l,"option");if(typeof _fV4UI!="undefined"&&_fV4UI)l.appendChild(f)}function CreateMenuSeparator(a,b){ULS_core();if(!(typeof _fV4UI!="undefined"&&_fV4UI)){var d=document.createElement("td"),c=document.createElement("div");b.appendChild(d);d.appendChild(c);if(a._fLargeIconMode)c.className=!a._fIsRtL?"ms-MenuUISeparatorLarge":"ms-MenuUISeparatorLargeRtl";else c.className=!a._fIsRtL?"ms-MenuUISeparator":"ms-MenuUISeparatorRtL";c.innerHTML="&nbsp;"}else{if(a._fLargeIconMode)b.className=!a._fIsRtL?"ms-MenuUISeparatorLarge":"ms-MenuUISeparatorLargeRtl";else b.className=!a._fIsRtL?"ms-MenuUISeparator":"ms-MenuUISeparatorRtL";b.innerHTML="&nbsp;"}SetIType(b,"separator")}function CreateSubmenu(b,d,e,g){ULS_core();var f=FindLabel(e);CreateMenuOption(b,d,e,g,f?f.innerHTML:null);var a=null;if(!(typeof _fV4UI!="undefined"&&_fV4UI)){a=d.childNodes[3];a.style.display="inline"}else{a=d.childNodes[0].childNodes[3];a.style.position="absolute";a.style.display="inline";if(b._fIsRtL)a.style.left="1px";else a.style.right="1px"}var c=document.createElement("img");SetImageSize(b,c,16);a.appendChild(c);c.src=!b._fIsRtL?b._wzMArrPath:b._wzMArrPathRtL;c.alt=!b._fIsRtL?">":"<";c.title="";SetIType(d,"submenu");d.submenuRoot=e}function MergeAttributes(c,b){ULS_core();if(browseris.nav||c.mergeAttributes==null){var e=b.attributes;for(var d=0;d<e.length;d++){var a=e[d];if(a!=null&&a.specified&&a.nodeName!="id"&&a.nodeName!="ID"&&a.nodeName!="name")c.setAttribute(a.nodeName,a.nodeValue)}if(b.getAttribute("type")!=null)c.setAttribute("type",b.getAttribute("type"));if(b.submenuRoot!=null)c.submenuRoot=b.submenuRoot}else c.mergeAttributes(b)}function CreateMenuItem(g,c,h,l){ULS_core();if(FIsIType(c,"label"))return;var k={};if(!(typeof _fV4UI!="undefined"&&_fV4UI))k.menuitem=new MenuTag("tr",null);else k.menuitem=new MenuTag("div","ms-MenuUIULItem");var a=CreateMenuTag(k.menuitem);MergeAttributes(a,c);if(FIsIType(c,"separator"))if(!(typeof _fV4UI!="undefined"&&_fV4UI)){CreateMenuSeparator(g,a);return a}else{var b=document.createElement("li");MergeAttributes(b,a);CreateMenuSeparator(g,a);b.appendChild(a);b.id=h;return b}if(!GetIType(c))SetIType(c,"option");var d=null,f=null,e=null,j=null,b=null;if(!(typeof _fV4UI!="undefined"&&_fV4UI)){d=document.createElement("tr");f=document.createElement("td");e=document.createElement("table");j=document.createElement("tbody");d.appendChild(f);f.appendChild(e);e.appendChild(j);j.appendChild(a);if(g._fCompactItemsWithoutIcons&&!c.getAttribute("iconSrc"))f.className="ms-MenuUIItemTableCellCompact";else f.className="ms-MenuUIItemTableCell";e.className="ms-MenuUIItemTable";e.width="100%";e.cellSpacing=0;e.cellPadding=0;if(a.disabled==true||a.getAttribute("enabled")=="false")f.className+=" ms-MenuUIItemTableCellDisabled"}else{b=document.createElement("li");b.appendChild(a)}if(FIsIType(c,"submenu"))CreateSubmenu(g,a,c,h);else if(FIsIType(c,"option"))CreateMenuOption(g,a,c,h,l);if(a.disabled==true||a.getAttribute("enabled")=="false"){a.disabled=false;a.className+=" ms-MenuUIDisabled";a.disabled=false;for(var i=0;i<a.childNodes.length;i++){if(a.childNodes[i].nodeType!=1)continue;a.childNodes[i].disabled=true}a.optionDisabled=true}if(!(typeof _fV4UI!="undefined"&&_fV4UI)){MergeAttributes(d,a);if(a.optionDisabled!=null)d.optionDisabled=a.optionDisabled;d.id=h;SetIType(d,GetIType(a));return d}else{MergeAttributes(b,a);if(a.optionDisabled!=null)b.optionDisabled=a.optionDisabled;b.id=h;SetIType(b,GetIType(a));return b}}function GetItems(a){ULS_core();if(!a._oContents)PrepContents(a);return a._oContents.childNodes}function GetIType(a){ULS_core();return a?a.getAttribute("type"):null}function FIsIType(b,a){ULS_core();return FIStringEquals(GetIType(b),a)}function SetIType(a,b){ULS_core();if(a)a.setAttribute("type",b)}function FIStringEquals(a,b){ULS_core();return a!=null&&b!=null&&a.toLowerCase()==b.toLowerCase()}function RenderAccessibleMenu(a,c){ULS_core();if(c){a._oContents=null;a._oRoot=null;a._nLevel=0;a._arrPopup=[];a._arrSelected=[]}else a._oRoot=a._oContents;if(!a._oContents)PrepContents(a);if(!a._oContents)return;if(!a._oRoot){a._nLevel=0;a._oRoot=a._oContents}FixUpMenuStructure(a);var d=a._fIsRtL?"rtl":"ltr";g_menuHtc_html="<html dir='"+d+"'><head><title>"+L_AccessibleMenu_Text+"</title></head><body><ul id='root'>";RenderMenuLevel(a,a._oRoot,true);g_menuHtc_html=g_menuHtc_html+"</ul></body></html>";a._accessibleMenuInProgress=true;var b=window.open("/_layouts/blank.htm","_blank","status=no,toolbar=no,menubar=no,location=no");a._accessibleMenu=b;b.document.write(g_menuHtc_html);b.document.close();b.focus()}function CloseAccessibleMenu(a,b){ULS_core();if(b==null)b=0;if(a!=null){if(b==0||b==1)if(a._accessibleMenu!=null){a._accessibleMenu.close();a._accessibleMenu=null}if(b==0||b==2)if(a._onDestroy!=null){a._accessibleMenuInProgress=false;a._onDestroy();a._onDestroy=null}}}function GetMenuItemText(d,b,a){ULS_core();if(a==""){a=EvalAttributeValue(b,"text","textScript");var c=EvalAttributeValue(b,"description","descriptionScript");if(c!=null&&c!=""&&d._fLargeIconMode){if(a!="")a=a+": ";a=a+c}}if(b.getAttribute("checked")=="true")a="* "+a;if(b.title!=null&&b.title!="")a=a+": "+b.title;return a}function GetMenuItemEnabled(a,b){ULS_core();if(!b)return false;if(a.getAttribute("enabled")=="false")return false;if(a.getAttribute("disabled")!=null&&a.getAttribute("disabled")!="")return false;return true}var g_menuHtc_html;function RenderMenuLevel(c,h,g){ULS_core();for(var d=0;d<h.childNodes.length;d++){var a=h.childNodes[d];if(a.nodeType!=1)continue;if(a.style.display=="none")continue;if(FIsIType(a,"option")){var f=GetMenuItemText(c,a,a.innerHTML.trim());if(!GetMenuItemEnabled(a,g))g_menuHtc_html=g_menuHtc_html+'<li><span id="'+a.id+'">'+f+"</span></li>";else g_menuHtc_html=g_menuHtc_html+'<li><a href="#" id="'+a.id+'" '+"onMenuClick"+'="'+a.getAttribute("onMenuClick")+'" onclick="'+"javascript:opener.ExecuteOnAccessibleClick(this.getAttribute('"+"onMenuClick"+"')); return false;"+'">'+f+"</a></li>"}else if(FIsIType(a,"submenu")){var f=GetMenuItemText(c,a,"");g_menuHtc_html=g_menuHtc_html+'<li><span id="'+a.id+'">'+f;for(var e=0;e<a.childNodes.length;e++){var b=a.childNodes[e];if(b.nodeType!=1)continue;if(b.style.display=="none")continue;if(FIsIType(b,"label")){g_menuHtc_html=g_menuHtc_html+" "+b.innerHTML;break}}g_menuHtc_html=g_menuHtc_html+"</span><ul>";RenderMenuLevel(c,a,GetMenuItemEnabled(a,g));g_menuHtc_html=g_menuHtc_html+"</ul></li>"}}}function ExecuteOnAccessibleClick(b){ULS_core();var a=g_menuHtc_lastMenu;if(a!=null){CloseAccessibleMenu(a,1);window.focus();ExecuteOnClick(b,a);CloseAccessibleMenu(a,2)}}function FIsIHidden(oItem){ULS_core();if(oItem){var hiddenFunc=oItem.getAttribute("hidden");if(!hiddenFunc)return false;return eval(hiddenFunc)}else return false}function EvalAttributeValue(oNode,sAttribute1,sAttribute2){ULS_core();var result=oNode.getAttribute(sAttribute2);if(result!=null&&result.toLowerCase().indexOf("javascript:")==0){result=eval(result.substring(11));if(result!=null&&result!="")return result}var result=oNode.getAttribute(sAttribute1);if(result==null)return "";return result}var MMU_chDelim=",",MMU_chDelimEnc="%2c",MMU_postbackPrefix="javascript:__doPostBack(",MMU_chDelim2="%",MMU_chDelim2Enc="%25";function MHash_New(){ULS_core();var a={};a._keys=[];a._values=[];return a}function MHash_Add(a,c,b){ULS_core();a._keys.push(c);a._values.push(b)}function MHash_Count(a){ULS_core();return a._keys.length}function MHash_Keys(a){ULS_core();return a._keys}function MHash_Values(a){ULS_core();return a._values}function MHash_Exists(b,c){ULS_core();for(var a=0;a<b._keys.length;a++)if(b._keys[a]==c)return true;return false}function MHash_Item(b,c){ULS_core();for(var a=0;a<b._keys.length;a++)if(b._keys[a]==c)return b._values[a];return null}var 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");function MMU_EncVal(a){ULS_core();return a.replace(MMU_reDelimDec,MMU_chDelimEnc).replace(MMU_reDelim2Dec,MMU_chDelim2Enc)}function MMU_DecVal(a){ULS_core();return a.replace(MMU_reDelim2Enc,MMU_chDelim2).replace(MMU_reDelimEnc,MMU_chDelim)}function MMU_ParseNV(h){ULS_core();var g=MHash_New(),d=h.split(MMU_chDelim);if(d!=null){var c;for(c=0;c<d.length;c++){var a=d[c],b=a.indexOf("=");if(b==0)continue;var f=null,e=null;if(b<0)f=a;else{f=a.substr(0,b);if(b<a.length-1)e=MMU_DecVal(a.substr(b+1));else e=""}MHash_Add(g,f,e)}}return g}function MMU_ParseNVAttr(a,c){ULS_core();var b=a.getAttribute(c);if(b==null&&a.childNodes.length>0&&a.childNodes[0].nodeType==1)b=a.childNodes[0].getAttribute(c);if(b==null)return MHash_New();return MMU_ParseNV(b)}function MMU_ResetMenuState(f,h,i,g,b){ULS_core();var d;for(d=0;d<f.childNodes.length;d++){var a=f.childNodes[d];if(a.nodeType!=1)continue;var c=a.getAttribute("id");if(a!=null&&c!=null&&c.length>0){if(a.childNodes.length>0){MMU_ResetMenuState(a,h,i,g,b);continue}if(MHash_Exists(i,c))a.style.display="none";else{a.style.display="";var e=a.getAttribute("enabledOverride");if(e!=null&&e.length>0)a.setAttribute("enabled",e,0);else if(MHash_Exists(h,c))a.setAttribute("enabled","false",0);else{a.setAttribute("enabled","true",0);if(MHash_Exists(g,c))a.setAttribute("checked","true",0);else a.setAttribute("checked","false",0)}}MMU_ReplTokValAttr(a,"onMenuClick",b);MMU_ReplTokValAttr(a,"text",b);MMU_ReplTokValAttr(a,"description",b);MMU_ReplTokValVal(a,b)}}}function MMU_ReplTokValAttr(c,b,f){ULS_core();var a=c.getAttribute(b),d=c.getAttribute(b+"_Original");if(a!=null&&d==null&&MHash_Count(f)>0)c.setAttribute(b+"_Original",a,0);else if(a!=null&&d!=null&&a!=d)a=d;if(a==null||a.length<=0)return;var e=MMU_ReplTokVal(a,f);if(e!=a)c.setAttribute(b,e,0)}function MMU_ReplTokValVal(c,e){ULS_core();if(c.nextSibling==null)return;var a=c.nextSibling.nodeValue,b=c.getAttribute("valOrig");if(a!=null&&b==null&&MHash_Count(e)>0){b=a;c.setAttribute("valOrig",b,0)}else if(a!=null&&b!=null&&a!=b)a=b;var d=MMU_ReplTokVal(a,e);if(a!=null&&d!=null&&d!=a)c.nextSibling.nodeValue=d}function MMU_ReplTokVal(a,c){ULS_core();if(a!=null&&a.indexOf("%")>=0&&c!=null&&MHash_Count(c)>0){var d=MHash_Keys(c),e=MHash_Values(c),b;for(b=0;b<d.length;b++){var f=d[b],g=e[b];a=a.replace("%"+f+"%",g)}}return a}var g_MMU_HighlightedEcbTable=null,g_MMU_HighlightedEcbTableOpen=null,g_MMU_OpenTimeoutHandle=null;function MMU_Open(menu,ecbLink,e,fAlignRight,alignId,delay){ULS_core();try{if(menu==null||ecbLink==null)return;if(ecbLink.getAttribute("suppressBubbleIfPostback")!=null&&e!=null&&e.srcElement!=null&&e.srcElement.href!=null&&e.srcElement.href.substr(0,MMU_postbackPrefix.length)==MMU_postbackPrefix){event.cancelBubble=true;return}ClearHighlightedEcbTableOpen();if(fAlignRight==null)fAlignRight=true;MMU_ResetMenuState(menu,MMU_ParseNVAttr(ecbLink,"menuItemsDisabled"),MMU_ParseNVAttr(ecbLink,"menuItemsHidden"),MMU_ParseNVAttr(ecbLink,"menuItemsChecked"),MMU_ParseNVAttr(ecbLink,"menuTokenValues"));var elemAlign=null;if(alignId!=null&&alignId.length>0)elemAlign=document.getElementById(alignId);if(elemAlign==null)elemAlign=document.getElementById(ecbLink.id+"_t");if(elemAlign==null)elemAlign=ecbLink;MMU_EcbHighlight(MMU_GetHighlightElement(ecbLink),true);var openMenuScript="MenuHtc_show(document.getElementById('"+menu.id+"'), document.getElementById('"+elemAlign.id+"'), true, "+fAlignRight+", null);";openMenuScript+="SetEcbMouseOutAndDestroy('"+menu.id+"');";if(delay!=null&&delay>0){openMenuScript+=" g_MMU_OpenTimeoutHandle=null;";g_MMU_OpenTimeoutHandle=window.setTimeout(openMenuScript,delay,"javascript")}else eval(openMenuScript);if(e!=null)e.cancelBubble=true}catch(ex){alert(L_Loading_Error_Text)}}function SetEcbMouseOutAndDestroy(a){ULS_core();if(g_MMU_HighlightedEcbTable!=null){g_MMU_HighlightedEcbTable.onmouseout=null;g_MMU_HighlightedEcbTableOpen=g_MMU_HighlightedEcbTable;document.getElementById(a)._onDestroy=ClearHighlightedEcbTableOpen}}function ClearHighlightedEcbTableOpen(){ULS_core();if(g_MMU_HighlightedEcbTableOpen!=null){MMU_EcbHighlight(g_MMU_HighlightedEcbTableOpen,false);g_MMU_HighlightedEcbTableOpen=null}}function MMU_EcbLinkOnFocusBlurDeferCall(d,c,a){ULS_core();if(a)c.onblur=a?new Function("MMU_EcbLinkOnFocusBlurDeferCall(null, this, false)"):null;if(g_MMU_HighlightedEcbTableOpen!=null)return;var b=document.getElementById(c.id+"_t");if(b!=null)MMU_EcbHighlight(b,a)}function MMU_EcbLinkOnKeyDown(f,b,a){ULS_core();if(a==null){a=window.event;if(a==null)return}var e=b.href!=null&&b.href.length>0;if((a.shiftKey||!e)&&GetEventKeyCode(a)==13||a.altKey&&GetEventKeyCode(a)==40){var c=byid(b.id+"_ti");if(c==null){var d=b.getAttribute("serverclientid");if(d!=null&&d.length>0)c=byid(d+"_ti")}if(c!=null&&c.getAttribute("onclick")!=null)c.onclick();else if(b.getAttribute("onclick")!=null)b.onclick();return false}else return true}function MMU_EcbTableMouseOverOutDeferCall(b,a){ULS_core();if(a){if(b==g_MMU_HighlightedEcbTableOpen)return;b.onmouseout=a?new Function("MMU_EcbTableMouseOverOut(this, false)"):null}MMU_EcbHighlight(b,a)}function MMU_EcbHighlight(a,b){ULS_core();if(a==null&&!b)a=g_MMU_HighlightedEcbTableOpen;if(a==null)return;if(b==null)b=false;var d=a.getAttribute("hoverActive"),c=a.getAttribute("hoverInactive");if(d==null)d="ms-selectedtitle";if(c==null)c="ms-unselectedtitle";if(b){a.className=d;g_MMU_HighlightedEcbTable=a}else a.className=c;var e=a.getAttribute("menuformat"),f=document.getElementById(a.id+"i");if(f!=null&&e!=null&&e=="ArrowOnHover")f.style.visibility=b?"visible":"hidden";if(!b)g_MMU_HighlightedEcbTable=null}function MMU_PopMenuIfShowingDeferCall(b){ULS_core();if(!IsAccessibilityFeatureEnabledProxy()&&g_menuHtc_lastMenu){var a=g_menuHtc_lastMenu.getAttribute("type");if(a&&a=="ServerMenu")b.onclick()}}function MMU_HandleArrowSplitButtonKeyDown(a,c,b){ULS_core();if(!a.shiftKey&&!a.altKey&&!a.ctrlKey&&GetEventKeyCode(a)==13)return;if(b)return MMU_EcbLinkOnKeyDown(byid(c),b,a)}function MMU_HandleArrowOnHoverKeyDown(c,b,a){ULS_core();if(!a.shiftKey&&!a.altKey&&!a.ctrlKey&&GetEventKeyCode(a)==13)return;if(b)return MMU_EcbLinkOnKeyDown(c,b,a)}function MMU_GetHighlightElement(b){ULS_core();var a=null;a=document.getElementById(b.id+"_t");if(a!=null)return a;else return b}function MMU_GetMenuFromClientId(a){ULS_core();return document.getElementById(a)}var g_MMU_theFormActionAtPageLoad=null,g_MMU_theFormActionAtPreMenuOpen=null,g_MMU_Form0ActionAtPageLoad=null,g_MMU_Form0ActionAtPreMenuOpen=null;function MMU_CallbackPreMenuOpen(templateClientId,menuClientId,callbackEventReference,timeoutLength,timeoutMessage,e){ULS_core();try{g_MMU_theFormActionAtPreMenuOpen=theForm!=null?theForm.action:"null";g_MMU_Form0ActionAtPreMenuOpen=document.forms!=null&&document.forms.length>0?document.forms[0].action:"null";var menuTemplate=document.getElementById(templateClientId),menuLink=document.getElementById(menuClientId);if(menuLink.getAttribute("suppressBubbleIfPostback")!=null&&e!=null&&e.srcElement!=null&&e.srcElement.href!=null&&e.srcElement.href.substr(0,MMU_postbackPrefix.length)==MMU_postbackPrefix){event.cancelBubble=true;return}MMU_StopPendingTimerEventsFromCallback();MMU_RemoveCallbackItemsFromMenuTemplate(menuTemplate);var menu=document.getElementById(menuClientId);menu.setAttribute("callbackInProgress","true",0);var loadingMessageMenuItem=CAMOpt(menuTemplate,L_Loading_Text,"null");if(loadingMessageMenuItem!=null){loadingMessageMenuItem.setAttribute("callbackitem","true",0);loadingMessageMenuItem.setAttribute("enabled","false",0)}var callbackContext=templateClientId+";"+menuClientId+";"+timeoutMessage.replace(/;/g,"%semi%").replace(/\'/g,"%quot%");callbackEventReference=callbackEventReference.replace(/__CALLBACKCONTEXT__/g,callbackContext);eval(callbackEventReference);g_MMU_RequestTimeoutTimeoutHandle=window.setTimeout("MMU_CallbackErrHandler('timeout', '"+callbackContext+"')",timeoutLength,"javascript")}catch(ex){alert(L_Loading_Error_Text)}}var g_MMU_RequestTimeoutTimeoutHandle=null;function MMU_RemoveCallbackItemsFromMenuTemplate(b){ULS_core();try{for(var a=0;a<b.childNodes.length;a++){var c=b.childNodes[a];if(c.nodeType==1&&c.getAttribute("callbackitem")=="true"){b.removeChild(c);--a}}}catch(d){alert(L_Loading_Error_Text)}}function MMU_StopPendingTimerEventsFromCallback(){ULS_core();if(g_MMU_OpenTimeoutHandle!=null){window.clearTimeout(g_MMU_OpenTimeoutHandle);g_MMU_OpenTimeoutHandle=null}if(g_MMU_RequestTimeoutTimeoutHandle!=null){window.clearTimeout(g_MMU_RequestTimeoutTimeoutHandle);g_MMU_RequestTimeoutTimeoutHandle=null}}function MMU_UpdateMenuTemplateWithErrorItem(a,b){ULS_core();MMU_RemoveCallbackItemsFromMenuTemplate(a);var c=CAMOpt(a,b,"null");if(loadingMessageMenuItem!=null){loadingMessageMenuItem.setAttribute("callbackitem","true",0);loadingMessageMenuItem.setAttribute("enabled","false",0)}}function MMU_UpdateOpenedMenuWithErrorItem(c,a,b){ULS_core();MMU_UpdateMenuTemplateWithErrorItem(a,b);HideMenu(a);MMU_Open(a,c)}function MMU_CallbackHandler(l,k){ULS_core();MMU_StopPendingTimerEventsFromCallback();var j=MMU_ParseContext(k),c=document.getElementById(j.TemplateClientId);if(c==null){alert(L_Loading_Error_Text);return}var b=document.getElementById(j.MenuClientId);if(b==null){alert(L_Loading_Error_Text);return}var g="",i="",h="",f="",e="",a=l.split(MMU_chDelim);if(a==null||a.length!=5)e=MMU_GenerateErrorMenuItem(L_Loading_Error_Text);else{var d=new RegExp(MMU_chDelimEnc,"g");g=a[0].replace(d,MMU_chDelim);i=a[1].replace(d,MMU_chDelim);h=a[2].replace(d,MMU_chDelim);f=a[3].replace(d,MMU_chDelim);e=a[4].replace(d,MMU_chDelim)}b.setAttribute("menuItemsDisabled",g,0);b.setAttribute("menuItemsHidden",i,0);b.setAttribute("menuItemsChecked",h,0);b.setAttribute("menuTokenValues",f,0);MMU_RemoveCallbackItemsFromMenuTemplate(c);c.innerHTML=c.innerHTML+e;HideMenu(c);MMU_Open(c,b);b.setAttribute("callbackInProgress","",0)}function MMU_CallbackErrHandler(f,e){ULS_core();try{alert(L_Loading_Error_Text);var a=MMU_ParseContext(e),d=document.getElementById(a.TemplateClientId);if(d==null){alert(L_Loading_Error_Text);return}var b=document.getElementById(a.MenuClientId);if(b==null){alert(L_Loading_Error_Text);return}b.setAttribute("callbackInProgress","",0);var c=L_Loading_Error_Text;if(f=="timeout"&&a.TimeoutMessage!=null&&a.TimeoutMessage.length>0)c=a.TimeoutMessage;MMU_UpdateOpenedMenuWithErrorItem(b,d,c)}catch(g){alert(L_Loading_Error_Text)}}function MMU_ParseContext(c){ULS_core();try{var a={},b=c.split(";");a.TemplateClientId=b[0];a.MenuClientId=b[1];a.TimeoutMessage=b[2].replace(/%semi%/g,";").replace(/%quot%/g,"'");return a}catch(d){alert(L_Loading_Error_Text)}}var L_NewFormLibTb3_Text="The document(s) could not be merged.\nThe required application may not be installed properly, or the template for this document library cannot be opened.\n\nPlease try the following:\n1. Check the General Settings for this document library for the name of the template, and install the application necessary for opening the template. If the application was set to install on first use, run the application and then try creating a new document again.\n\n2.  If you have permission to modify this document library, go to General Settings for the library and configure a new template.",L_NewFormLibTb4_Text="Select the document(s) you want to merge, and then click 'Merge Selected Documents' on the toolbar.";function combineDocuments(k,j,g){ULS_core();fNewDoc=false;if(browseris.w3c&&!browseris.ie)document.all=document.getElementsByTagName("*");var a=true,b,c;try{var e=document.all.chkCombine;for(i=0;a&&i<e.length;i++)if(e[i].checked&&a){a=false;b=document.all.chkUrl[i].getAttribute("href");c=document.all.chkProgID[i].getAttribute("href")}}catch(d){}try{if(a&&document.all.chkCombine.checked){a=false;b=document.all.chkUrl.getAttribute("href");c=document.all.chkProgID.getAttribute("href")}}catch(d){}if(!a){var f=false;try{NewDocumentButton=new ActiveXObject(c);fNewDoc=NewDocumentButton!=null}catch(d){}if(!fNewDoc)alert(L_NewFormLibTb3_Text);else{try{f=NewDocumentButton.MergeDocuments(b,document.all.chkCombine,makeAbsUrl(g))}catch(h){}if(!f)alert(L_NewFormLibTb3_Text);else window.onfocus=RefreshOnFocus}}else alert(L_NewFormLibTb4_Text)}var L_NewFormLibTb5_Text="Select the document(s) you want to relink, and then click 'Relink Selected Documents' on the toolbar.",L_NewFormLibTb6_Text="Only 500 documents can be relinked at a time. Modify your selection and then try again.";function repairLinks(e,f,g){ULS_core();if(browseris.w3c&&!browseris.ie)document.all=document.getElementsByTagName("*");var b=0,d=document.all.SubmitRepairDocs;d.value="";var c=document.getElementsByTagName("input");for(var a=0;a<c.length;a++)if(c[a].id=="chkRepair")if(c[a].checked){d.value+=c[a].getAttribute("docID");d.value+=" ";b++}if(b>0&&b<=500){document.all.SubmitRepairRedirectList.value=f;document.all.SubmitRepairRedirectFolder.value=e;document.all.SubmitRepairDocsForm.action=g+"/submitrepair.aspx";document.all.SubmitRepairDocsForm.submit()}else alert(b==0?L_NewFormLibTb5_Text:L_NewFormLibTb6_Text)}function repairAllLinks(a,b,c){ULS_core();if(browseris.w3c&&!browseris.ie)document.all=document.getElementsByTagName("*");document.all.SubmitRepairDocs.value="*";document.all.SubmitRepairRedirectList.value=b;document.all.SubmitRepairRedirectFolder.value=a;document.all.SubmitRepairDocsForm.action=c+"/submitrepair.aspx";document.all.SubmitRepairDocsForm.submit()}function NavigateToManageCopiesPage(a,b){ULS_core();STSNavigate(a+"/_layouts"+"/managecopies.aspx?ItemUrl="+b+"&Source="+GetSource())}var L_ViewVersion_Text="View",L_RestoreVersion_Text="Restore",L_DeleteVersion_Text="Delete",L_DenyVersion_Text="Reject this version",L_UnPublishVersion_Text="Unpublish this version";function AddVersionMenuItemsCore(b,c){ULS_core();if(currentItemID!=null){var f=currentItemID.toString();if(f.indexOf(".0.")>=0)return}if(!HasRights(0,64))return;var a,e=itemTable.getAttribute("isCur"),h=itemTable.getAttribute("Level"),g=itemTable.getAttribute("canViewProperty");if(currentItemFSObjType==null)currentItemFSObjType=GetAttributeFromItemTable(itemTable,"OType","FSObjType");if(g!="0"){a=CAMOpt(b,L_ViewVersion_Text,"javascript:ViewVersion()","");a.id="ID_ViewVersion"}if(HasRights(0,4)){a=CAMOpt(b,L_RestoreVersion_Text,"javascript:RestoreVersion()","");a.id="ID_RestoreVersion"}if(HasRights(0,128)&&e!="1"){a=CAMOpt(b,L_DeleteVersion_Text,"javascript:DeleteVersion()","");a.id="ID_DeleteVersion"}if(HasRights(0,16)&&HasRights(0,4))if((c.isModerated||c.EnableMinorVersions)&&currentItemFSObjType!=1&&(h==1&&e=="1")){var d=L_DenyVersion_Text;if(c.EnableMinorVersions)d=L_UnPublishVersion_Text;a=CAMOpt(b,d,"javascript:TakeOfflineVersion()","");a.id="ID_TakeOfflineVersion"}}function ViewVersion(){ULS_core();if(!IsContextSet())return;STSNavigate(itemTable.getAttribute("verUrl"))}var L_Version_Restore_Confirm_Text="You are about to replace the current version with the selected version.",L_Version_RestoreVersioningOff_Confirm_Text="Versioning is currently disabled. As a result, you are about to overwrite the current version. All changes to this version will be lost.",L_Version_NoRestore_Current_ERR="Cannot restore the current version.";function RestoreVersion(){ULS_core();if(!IsContextSet())return;var a=currentCtx;if(itemTable.getAttribute("isMostCur")!="0")alert(L_Version_NoRestore_Current_ERR);else{var b=a.HttpPath+"&op=Restore&ver="+itemTable.getAttribute("verId");if(confirm(a.verEnabled?L_Version_Restore_Confirm_Text:L_Version_RestoreVersioningOff_Confirm_Text))SubmitFormPost(b)}}var L_Version_NoOffline_NonCurrent_ERR="You can only take offline the current published or approved version",L_Version_unpublish_Confirm_Text="Are you sure you want to unpublish this version of the document?",L_Version_deny_Confirm_Text="Are you sure you want to deny this version of the document?";function TakeOfflineVersion(){ULS_core();if(!IsContextSet())return;var b=currentCtx,a=L_Version_deny_Confirm_Text;if(b.EnableMinorVersions)a=L_Version_unpublish_Confirm_Text;if(itemTable.getAttribute("isCur")!="1"||itemTable.getAttribute("Level")!=1)alert(L_Version_NoOffline_NonCurrent_ERR);else if(confirm(a))SubmitFormPost(b.HttpPath+"&op=TakeOffline")}var L_Version_Delete_Confirm_Text="Are you sure you want to delete this version?",L_Version_Recycle_Confirm_Text="Are you sure you want to send this version to the site Recycle Bin?",L_Version_NoDelete_Current_ERR="You cannot delete the current checked in version, major version, or approved version.";function DeleteVersion(){ULS_core();if(!IsContextSet())return;var a=currentCtx;if(itemTable.getAttribute("isCur")!="0")alert(L_Version_NoDelete_Current_ERR);else{var b=a.HttpPath+"&op=Delete&ver="+itemTable.getAttribute("verId");if(confirm(a.RecycleBinEnabled?L_Version_Recycle_Confirm_Text:L_Version_Delete_Confirm_Text))SubmitFormPost(b)}}var L_Version_DeleteAll_Confirm_Text="Are you sure you want to delete all previous versions associated with this file?",L_Version_RecycleAll_Confirm_Text="Are you sure you want to send all previous versions associated with this file to the site Recycle Bin?",L_Version_DeleteAllMinor_Confirm_Text="Are you sure you want to delete all previous draft versions of this file?",L_Version_RecycleAllMinor_Confirm_Text="Are you sure you want to send all previous draft versions of this file to the site Recycle Bin?",L_Version_NoDeleteAll_None_ERR="There are no previous versions to delete.";function DeleteAllVersions(b,a){ULS_core();if(b<=1)alert(L_Version_NoDeleteAll_None_ERR);else if(confirm(a.RecycleBinEnabled?L_Version_RecycleAll_Confirm_Text:L_Version_DeleteAll_Confirm_Text))SubmitFormPost(a.HttpPath+"&op=DeleteAll")}function DeleteAllMinorVersions(b,a){ULS_core();if(b<=1)alert(L_Version_NoDeleteAll_None_ERR);else if(confirm(a.RecycleBinEnabled?L_Version_RecycleAllMinor_Confirm_Text:L_Version_DeleteAllMinor_Confirm_Text))SubmitFormPost(a.HttpPath+"&op=DeleteAllMinor")}function EditInGrid(b,a){ULS_core();EnsureListControl();if(fListControl){encViewId=escapeProperly(a);strDocUrl=b+"?ShowInGrid=True&View="+encViewId;pageView=GetUrlKeyValue("PageView",true);if(pageView!="")strDocUrl=strDocUrl+"&PageView="+pageView;showWebPart=GetUrlKeyValue("ShowWebPart",true);if(showWebPart!="")strDocUrl=strDocUrl+"&ShowWebPart="+showWebPart;viewId=GetUrlKeyValue("View",true);if(viewId!=""&&(viewId.toUpperCase()==a.toUpperCase()||viewId.toUpperCase()==encViewId.toUpperCase())){rootFolder=GetUrlKeyValue("RootFolder",true);if(rootFolder!="")strDocUrl=strDocUrl+"&RootFolder="+rootFolder}SubmitFormPost(strDocUrl)}else if(!fListErrorShown){alert(L_EditInGrid_Text);fListErrorShown=true}}function ExitGrid(e){ULS_core();var a,b,d,c;a=e;b=GetUrlKeyValue("PageView",true);d=GetUrlKeyValue("View",true);if(d!=""){a=a+"?View="+d;c=GetUrlKeyValue("RootFolder",true);if(c!="")a=a+"&RootFolder="+c;if(b!="")a=a+"&PageView="+b;showWebPart=GetUrlKeyValue("ShowWebPart",true);if(showWebPart!="")a=a+"&ShowWebPart="+showWebPart;a=a+"&ShowInGrid=HTML"}else{a=a+"?ShowInGrid=HTML";if(b!="")a=a+"&PageView="+b;showWebPart=GetUrlKeyValue("ShowWebPart",true);if(showWebPart!="")a=a+"&ShowWebPart="+showWebPart}SubmitFormPost(a)}function AddSilverlightWebPart(d,b,a){ULS_core();var c=new _AddSilverlightWebPartPopupUI(d,b,a);c.show()}function _AddSilverlightWebPartPopupUI(c,b,a){ULS_core();this.item=c;this.zoneNum=b;this.zoneIndex=a}function _AddSilverlightWebPartPopupUI_show(){ULS_core();var b=this,c=function(){ULS_core();var a={};a.url=_spExternalApplicationRegistrationInformation.dialogUrl;a.width=_spExternalApplicationRegistrationInformation.dialogWidth;a.height=_spExternalApplicationRegistrationInformation.dialogHeight;a.dialogReturnValueCallback=Function.createDelegate(b,b.dialogCallback);SP.UI.ModalDialog.showModalDialog(a)},a;try{a=typeof SP.UI.ModalDialog.showModalDialog}catch(d){a="undefined"}EnsureScript("SP.js",a,c)}function _AddSilverlightWebPartPopupUI_dialogCallback(c,a){ULS_core();if(c==1){var b=WPAdder._getHiddenField("wpVal");if(b)if(a.applicationXml)b.value=a.applicationXml;else b.value=a.url;WPAdder.addItemToPage(this.item,this.zoneNum,this.zoneIndex)}}_AddSilverlightWebPartPopupUI.prototype.show=_AddSilverlightWebPartPopupUI_show;_AddSilverlightWebPartPopupUI.prototype.dialogCallback=_AddSilverlightWebPartPopupUI_dialogCallback;function _ConfigSilverlightWebpart(b,a,c,f,d){ULS_core();var e=new _ConfigSilverlightWebpartPopupUI(b,a,c,f,d);e.show()}function _ConfigSilverlightWebpartPopupUI(b,a,c,e,d){ULS_core();this.urlElementId=b;this.appXmlElementId=a;this.dialogUrl=c;this.dialogWidth=e;this.dialogHeight=d}function _ConfigSilverlightWebpartPopupUI_show(){ULS_core();var a=this,c=function(){ULS_core();var b={};b.url=a.dialogUrl;b.width=a.dialogWidth;b.height=a.dialogHeight;var c={};c.url=document.getElementById(a.urlElementId).value;c.applicationXml=document.getElementById(a.appXmlElementId).value;b.args=c;b.dialogReturnValueCallback=Function.createDelegate(a,a.dialogCallback);SP.UI.ModalDialog.showModalDialog(b)},b;try{b=typeof SP.UI.ModalDialog.showModalDialog}catch(d){b="undefined"}EnsureScript("SP.js",b,c)}function _ConfigSilverlightWebpartPopupUI_dialogCallback(c,b){ULS_core();if(c==1){var a=document.getElementById(this.urlElementId);if(a)if(b.url!=null)a.value=b.url;else a.value="";a=document.getElementById(this.appXmlElementId);if(a)if(b.applicationXml!=null)a.value=b.applicationXml;else a.value=""}}_ConfigSilverlightWebpartPopupUI.prototype.show=_ConfigSilverlightWebpartPopupUI_show;_ConfigSilverlightWebpartPopupUI.prototype.dialogCallback=_ConfigSilverlightWebpartPopupUI_dialogCallback;if(typeof NotifyScriptLoadedAndExecuteWaitingJobs=="function")NotifyScriptLoadedAndExecuteWaitingJobs("core.js")