function ULSw7Q(){var o=new Object;o.ULSTeamName="Microsoft SharePoint Foundation";o.ULSFileName="ows.js";return o;}
var IsMenuShown=false,ChevronContainer=null,itemTableDeferred=null,imageCell=null,onKeyPress=false,downArrowText=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,currentItemEvtType=0,currentItemIsEventsExcp=null,currentItemIsEventsDeletedExcp=null,currentItemContentTypeId=null;String.prototype.trim=function(){ULSw7Q:;return this.replace(/^\s\s*/,"").replace(/\s\s*$/,"")};var L_Edit_Text="Edit",L_SharepointSearch_Text="Search this site...",L_CreateWebPageDialogWidth_Text="400",L_CreateWebPageDialogHeight_Text="250",g_MaximumSelectedItemsAllowed=100,L_BulkSelection_TooManyItems="You cannot select more than 100 items at once.",g_ExpGroupWPState=new LRUCache,DocOpen={CLIENT:0,BROWSER:1};function FilterNoteField(b,d,e,j){ULSw7Q:;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){ULSw7Q:;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){ULSw7Q:;return FilterFieldV3(d,b,a,c,false)}function FilterFieldV3(e,k,o,q,u){ULSw7Q:;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","");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&","");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){ULSw7Q:;for(var b="",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){ULSw7Q:;var a=document.getElementById(b);if(a!=null)a.value=c}var bValidSearchTerm=false;function SetSearchView(){ULSw7Q:;if(typeof bValidSearchTerm!="undefined")bValidSearchTerm=true}function GroupCollapse(){ULSw7Q:;return typeof _groupCollapse!="undefined"&&_groupCollapse}function HandleFilter(c,b){ULSw7Q:;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(){ULSw7Q:;inplview.HandleFilterReal(c,b)};EnsureScript(d[0],a,e)}}return}_SubmitFormPost(b)}function _SubmitFormPost(a,d,c){ULSw7Q:;if(typeof MSOWebPartPageFormName!="undefined"){var b=document.forms[MSOWebPartPageFormName];if(null!=b)if(d!=undefined&&d==true||!b.onsubmit||b.onsubmit()!=false){typeof WebForm_OnSubmit=="function"&&WebForm_OnSubmit();if(window.location.search.match("[?&]IsDlg=1"))a+=a.indexOf("?")==-1?"?IsDlg=1":"&IsDlg=1";if(FV4UI())try{currentTabId=SP.Ribbon.PageManager.get_instance().get_ribbon().get_selectedTabId();if(currentTabId){a=StURLSetVar2(a,"InitialTabId",escapeProperly(currentTabId));a=StURLSetVar2(a,"VisibilityContext","WSSTabPersistence")}}catch(e){}if(c!=undefined&&c==true){a=DemoteIntoFormBody(b,a,"owsfileref");a=DemoteIntoFormBody(b,a,"NextUsing")}b.action=STSPageUrlValidation(a);b.method="POST";if(isPortalTemplatePage(a))b.target="_top";!bValidSearchTerm&&_ClearSearchTerm("");b.submit()}}}function DemoteIntoFormBody(e,c,b){ULSw7Q:;var d=GetUrlKeyValue(b,false,c);if(d.length>0){var a=document.createElement("INPUT");if(a!=null){a.setAttribute("type","hidden");a.setAttribute("id",b);a.setAttribute("name",b);a.setAttribute("value",d);e.appendChild(a);return RemoveUrlKeyValue(b,c)}}return c}function RemoveUrlKeyValue(c,a){ULSw7Q:;var b=new RegExp(c+"=[^&]*&");a=a.replace(b,"");b=new RegExp(c+"=[^&]*");a=a.replace(b,"");return a}function _RefreshPageTo(c,b,a){ULSw7Q:;return _SubmitFormPost(b,a)}var g_varSkipRefreshOnFocus=0;function RefreshOnFocus(){ULSw7Q:;(typeof g_varSkipRefreshOnFocus=="undefined"||!g_varSkipRefreshOnFocus)&&_RefreshPage(1)}function RefreshOnFocusForOneRow(){ULSw7Q:;RefreshOnFocus()}function DisableRefreshOnFocus(){ULSw7Q:;g_varSkipRefreshOnFocus=1}function SetWindowRefreshOnFocus(){ULSw7Q:;window.onbeforeunload=DisableRefreshOnFocus;window.onfocus=RefreshOnFocus}function RemoveParametersFromUrl(a){ULSw7Q:;var b=a.indexOf("?");if(b==-1)return a;else return a.substr(0,b)}function _GoToPageRelative(a){ULSw7Q:;if(a.substr(0,4)!="http"&&a.substr(0,1)!="/"){var b=RemoveParametersFromUrl(window.location.href),c=b.lastIndexOf("/");if(c>0)a=b.substring(0,c+1)+a}GoToPage(a)}function _EnterFolder(c){ULSw7Q:;var b=RemoveParametersFromUrl(window.location.href),a=RemoveParametersFromUrl(c),d=a!=null&&a.length>0&&a.charAt(0)=="/"&&a.length<b.length&&b.indexOf(a)==b.length-a.length;if(!d&&a.toLowerCase()!=b.toLowerCase())STSNavigate(c);else _SubmitFormPost(c)}function _HandleFolder(q,c,r,h,d,g,l,j,p,b,a,k,m,i,f,o){ULSw7Q:;var n=b&&b!="",e=a&&a!="";if(n&&e)return DispEx(q,c,h,d,g,l,j,p,b,a,k,m,i,f,o);else{c&&CancelEvent(c);_EnterFolder(r);return false}}function UseDialogsForFormsPages(c){ULSw7Q:;if(!FV4UI())return false;var b=null,a=GetUrlKeyValue("LISTID",false,c.toUpperCase());if(a=="")a=GetUrlKeyValue("LIST",false,c.toUpperCase());if(a!=""&&g_ctxDict!=null)for(var e in g_ctxDict){var d=g_ctxDict[e];if(d.listName.toUpperCase()==a.toUpperCase()){b=d;break}}if(b==null||!b.NavigateForFormsPages)return true;return false}function _EditItemWithCheckoutAlert(c,a,b,d,g,h,f,e){ULSw7Q:;if(CheckoutAlertBeforeNavigate(a,b,d,g,h,f,e))if(b&&UseDialogsForFormsPages(a))NewOrEditV4Core(c,a,true);else _EditItem2(c,a)}function _STSNavigateWithCheckoutAlert(a,g,b,e,f,d,c){ULSw7Q:;CheckoutAlertBeforeNavigate(a,g,b,e,f,d,c)&&STSNavigate(a)}function ShowInPopUI(b,a,c){ULSw7Q:;var d=function(){ULSw7Q:;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 TakeOfflineToClientReal(d,c,h,b,a,g,f){ULSw7Q:;try{if(TakeOfflineDisabled(d,c,b,a))return;g_OfflineClient!=null&&g_OfflineClient.TakeOffline(d,c,h,b,a,g,f)}catch(e){alert(e.message)}}function CheckoutAlertBeforeNavigate(g,f,d,c,e,a,b){ULSw7Q:;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){ULSw7Q:;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){ULSw7Q:;var c=true;if(a==null||a=="")return false;a=a.toLowerCase();for(var b=0,b=0;b<g_ExtensionNotSupportCheckoutToLocal.length;b++)if(a==g_ExtensionNotSupportCheckoutToLocal[b])return false;return true}function FDefaultOpenForReadOnly(a){ULSw7Q:;var c=false;if(a==null||a=="")return true;a=a.toLowerCase();for(var b=0,b=0;b<g_ExtensionDefaultForRead.length;b++)if(a==g_ExtensionDefaultForRead[b])return true;return false}function CheckoutDocument(g,a,e){ULSw7Q:;var d=null,b=true,c=false;if(a.charAt(0)=="/"||a.substr(0,3).toLowerCase()=="%2f")a=document.location.protocol+"//"+document.location.host+a;var f=SzExtension(unescapeProperly(a));if(FSupportCheckoutToLocal(f)&&e=="SharePoint.OpenDocuments.3")d=StsOpenEnsureEx2(e);if(d!=null)try{b=d.CheckoutDocumentPrompt(unescapeProperly(a),false,"");b&&RefreshOnFocus();c=b;if(c||!(IsSupportedMacBrowser()||IsSupportedFirefoxOnWin()))return b}catch(i){}if(!c){var h="FileName="+escapeProperly(unescapeProperly(a))+"&Checkout=true";NavigateToCheckinAspx(g,h)}return true}function NewOrEditV4Core(a,b,c){ULSw7Q:;if(a!=null){var d=function(){ULSw7Q:;var b=CLVPFromEventReal(a);GetFocusInfo(a,b)};EnsureScript("inplview",typeof InitAllClvps,d)}if(c)_OpenPopUpPage(b,RefreshOnDialogClose);else _OpenPopUpPage(b,RefreshPage);return false}function _NewItem2(b,a){ULSw7Q:;if(UseDialogsForFormsPages(a))return NewOrEditV4Core(b,a);else _NewItem(a)}function _NewItem(a){ULSw7Q:;GoToPage(a)}function _EditItem2(b,a){ULSw7Q:;if(UseDialogsForFormsPages(a))return NewOrEditV4Core(b,a);_EditItem(a)}function _EditItem(a){ULSw7Q:;GoToPage(a)}function _CorrectUrlForRefreshPageSubmitForm(){ULSw7Q:;var a=window.location.hash;if(a.indexOf("ServerFilter=")==1){a=a.replace(/-/g,"&").replace(/&&/g,"-");var d=GetUrlKeyValue("RootFolder",true,a),c=GetUrlKeyValue("RootFolder",true);if(""==d&&""!=c)a+="&RootFolder="+c;var b=new CUrl(window.location.href);b.hash="";b.query="?"+a.substr("ServerFilter=".length+1);return b.ToString()}else return window.location.href}function _RefreshPage(a){ULSw7Q:;if(a==1)_SubmitFormPost(_CorrectUrlForRefreshPageSubmitForm());else{var b=function(){ULSw7Q:;SetFocusBack(a)};EnsureScript("inplview",typeof InitAllClvps,b)}}function RefreshOnDialogClose(){ULSw7Q:;_RefreshPage(SP.UI.DialogResult.OK)}function OpenPopUpPageWithTitle(f,b,e,c,d){ULSw7Q:;var g=function(){ULSw7Q:;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){ULSw7Q:;OpenPopUpPageWithTitle(d,a,c,b,null)}function _RemoveQueryStringsAndHash(a){ULSw7Q:;if(a){var b=a.indexOf("#");if(b>=0)a=a.substr(0,b);b=a.indexOf("?");if(b>=0)a=a.substr(0,b)}return a}function _OpenCreateWebPageDialog(a){ULSw7Q:;if(!a&&typeof _spPageContextInfo!="undefined"&&_spPageContextInfo.webServerRelativeUrl){a=_spPageContextInfo.webServerRelativeUrl;if(a.charAt(a.length-1)!="/")a=a+"/";a=a+"_layouts/createwebpage.aspx"}var b=window.location.href;b=_RemoveQueryStringsAndHash(b);a=StURLSetVar2(a,"Url",escapeProperly(b));if(FV4UI()){var d=parseInt(L_CreateWebPageDialogWidth_Text),c=parseInt(L_CreateWebPageDialogHeight_Text);if(isNaN(d))d=400;if(isNaN(c))c=250;_OpenPopUpPage(a,null,d,c)}else GoToPage(a)}function PreventDefaultNavigation(){ULSw7Q:;var a=window.event;if(a)if(!a.preventDefault)a.returnValue=false;else a.preventDefault()}function _EditLink2(a,b){ULSw7Q:;var c=function(){ULSw7Q:;var d=GetGotoLinkUrl(a);if(d==null)return;var c=window["ctx"+b];if(c!=null&&c.clvp!=null){var e=c.clvp;if(FV4UI()&&!c.NavigateForFormsPages){PreventDefaultNavigation();e.ShowPopup(d);return false}}GoToLink(a)};EnsureScript("inplview",typeof inplview,c)}function EditLink(a,b){ULSw7Q:;if(FV4UI())EditLink2(a,b);else GotoLink(a)}function _GoBack(a){ULSw7Q:;window.location.href=unescapeProperly(GetSource(a))}function _ReplyItem(a,b,d,c){ULSw7Q:;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){ULSw7Q:;a+="?ID="+b;GoToPage(a)}function _ExportToDatabase(d,e,f,c){ULSw7Q:;if(g_expDatabase==null){var a=GetCookie("databaseBtnText");if(a!=null&&a!="0")try{g_expDatabase=new ActiveXObject("SharePoint.ExportDatabase")}catch(b){return null}else if(a==null)GetDataBaseInstalled();else return null}if(g_expDatabase!=null){var L_NoWSSClient_Text="To export a list, you must have a Microsoft SharePoint Foundation-compatible application and Microsoft Internet Explorer 7.0 or greater.",L_ExportDBFail_Text="Export to database failed. To export a list, you must have a Microsoft SharePoint Foundation-compatible application.";if(browseris.ie5up&&browseris.win32)try{g_expDatabase.SiteUrl=makeAbsUrl(d);g_expDatabase.ListID=e;g_expDatabase.ViewID=f;g_expDatabase.DoExport(c)}catch(b){alert(L_ExportDBFail_Text);return}else alert(L_NoWSSClient_Text)}}function _ExportList(a){ULSw7Q:;g_ssImporterObj==null&&EnsureSSImporter();if(g_ssImporterObj==null)(g_fSSImporter||GetCookie("EnsureSSImporter")==null)&&EnsureSSImporter(true);var L_ExportListSpreadsheet_Text="To export a list, you must have a Microsoft SharePoint Foundation-compatible application.";if(IsSupportedMacBrowser()){if(g_fSSImporter&&g_ssImporterObj.IqyExportEnabled){var b=g_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(g_fSSImporter&&g_ssImporterObj.IqyImportEnabled()||confirm(L_ExportListSpreadsheet_Text))window.location.href=STSPageUrlValidation(makeAbsUrl(a))}function ExportDiagram(m,f,l,g,i,h){ULSw7Q:;if(g_objDiagramLaunch==null){var a=GetCookie("digInstalled");if(a!=null&&a!="0")try{g_objDiagramLaunch=new ActiveXObject("DiagramLaunch.DiagramLauncher")}catch(b){return null}else if(a==null)GetDiagramLaunchInstalled();else return null}try{var d="",j=m,e=h,c=f,k=l;g_objDiagramLaunch.CreateDiagram(d,j,e,c,g,i,k)}catch(b){var L_DiagramLaunchFail_Text="Unable to create diagram.";alert(L_DiagramLaunchFail_Text)}}function OpenTasks(m,f,l,g,i,h){ULSw7Q:;if(g_objProjectTaskLaunch==null){var a=GetCookie("projInstalled");if(a!=null&&a!="0")try{g_objProjectTaskLaunch=new ActiveXObject("TaskLaunch.TaskLauncher")}catch(b){return null}else if(a==null)GetProjectTaskLaunchInstalled();else return null}if(g_objProjectTaskLaunch!=null)try{var d="",j=m,e=h,c=f,k=l;g_objProjectTaskLaunch.OpenTasks(d,j,e,c,g,i,k)}catch(b){var L_OpenTasksFail_Text="Unable to open tasks.";alert(L_OpenTasksFail_Text)}}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 Microsoft SharePoint Foundation is not installed.\n- Your Web browser does not support ActiveX controls. \n- A component is not properly configured for 32-bit or 64-bit support.";function CatchListCreateError(){ULSw7Q:;alert(L_EditInGrid_Text);fListErrorShown=true;return false}function EnsureListControl(){ULSw7Q:;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){ULSw7Q:;if(1==a)alert(L_NoQuestion_Text);else if(2==a)alert(L_NoVoteAllowed_Text);else return true}function hasHighChar(b){ULSw7Q:;for(var a=0,a=0;a<b.length;a++)if(b.charCodeAt(a)>127)return true;return false}function _ClearSearchTerm(a){ULSw7Q:;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(a){ULSw7Q:;var b=document.forms["frmSiteSearch"];if(b==null)if(typeof MSOWebPartPageFormName!="undefined")b=document.forms[MSOWebPartPageFormName];if(b!=null){var c=b.elements["SearchString"].value.trim();if(c===L_SharepointSearch_Text||c==="")return false;a=a+"?k="+escapeProperly(c);var e=b.elements["SearchScope"];if(e!=null){var d=e.value;if(d)a=a+"&u="+escapeProperly(d)}window.location.href=a}return false}function ShowGridUrlInHTML(a){ULSw7Q:;if(a.indexOf("?")>0)a=a+"&";else a=a+"?";a=a+"ShowInGrid=HTML";return a}function SearchOnBodyLoad(){ULSw7Q:;var a=document.getElementById("idSearchString");if(a!=null&&(a.value.trim()===L_SharepointSearch_Text||a.value.trim()===""))a.className="ms-sharepointsearchtext"}function SearchOnBlur(){ULSw7Q:;var a=document.getElementById("idSearchString");if(a!=null&&a.value.trim()===""){a.value=L_SharepointSearch_Text;a.className="ms-sharepointsearchtext"}}function SearchOnFocus(){ULSw7Q:;var a=document.getElementById("idSearchString");if(a!=null&&a.value.trim()===L_SharepointSearch_Text){a.value="";a.className="ms-searchtext"}}function SubmitSearch(){ULSw7Q:;_SubmitSearchForView("")}function _SubmitSearchForView(e){ULSw7Q:;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){ULSw7Q:;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){ULSw7Q:;IsKeyDownSubmit(event)&&_SubmitSearchForView(a)}function SearchKeyDown(b,a){ULSw7Q:;if(IsKeyDownSubmit(b)){_SubmitSearchRedirect(a);return false}return true}function SearchKeyDownGoSearch(a){ULSw7Q:;if(IsKeyDownSubmit(a)){GoSearch();return false}return true}function _AlertAndSetFocus(b,a){ULSw7Q:;a.focus();a.select();window.alert(b)}function _AlertAndSetFocusForDropdown(b,a){ULSw7Q:;a.focus();window.alert(b)}function setElementValue(c,b){ULSw7Q:;var a=document.getElementsByName(c).item(0);if(a==null)return false;a.value=b;return true}function GetMultipleSelectedText(b){ULSw7Q:;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){ULSw7Q:;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 Microsoft SharePoint Foundation-compatible application and web browser.",L_EditDocumentRuntimeError_Text="The document could not be opened for editing.  A Microsoft SharePoint Foundation compatible application could not be found to edit the document.",L_SPDesignerDownloadWindow_Text="Microsoft SharePoint Designer",SPDesignerDownloadUrl="http://r.office.microsoft.com/r/rlidBrowserToSPD",SPDesignerProgID="SharePoint.WebPartPage.Document";function editDocumentWithProgID(a,b){ULSw7Q:;if(fNewDoc){if(a.charAt(0)=="/"||a.substr(0,3).toLowerCase()=="%2f")a=document.location.protocol+"//"+document.location.host+a;if(!fNewDoc2&&!fNewDoc3)!EditDocumentButton.EditDocument(a,b)&&alert(L_EditDocumentRuntimeError_Text);else!EditDocumentButton.EditDocument2(window,a,b)&&alert(L_EditDocumentRuntimeError_Text)}else alert(L_EditDocumentProgIDError_Text)}function GetSPDDownLoadUrl(){ULSw7Q:;var a=navigator.userLanguage;if(!a)a=navigator.browserLanguage;return SPDesignerDownloadUrl+"?clid="+a}function EditInSPD(a,d){ULSw7Q:;var b=GetSPDDownLoadUrl();if(a.charAt(0)=="/")a=document.location.protocol+"//"+document.location.host+a;var c=StsOpenEnsureEx2("SharePoint.OpenDocuments.3");if(c!=null){if(!c.EditDocument3(window,a,false,SPDesignerProgID))OpenPopUpPageWithTitle(b,null,null,null,L_SPDesignerDownloadWindow_Text);else if(d)window.onfocus=RefreshOnNextFocus}else OpenPopUpPageWithTitle(b,null,null,null,L_SPDesignerDownloadWindow_Text)}function editDocumentWithProgID2(e,b,h,g,f,c){ULSw7Q:;var a=editDocumentWithProgIDNoUI(e,b,h,g,f,c);if(a==1){if(b==SPDesignerProgID){var d=GetSPDDownLoadUrl();OpenPopUpPageWithTitle(d,null,null,null,L_SPDesignerDownloadWindow_Text)}else alert(L_EditDocumentRuntimeError_Text);window.onfocus=RefreshOnNextFocus}else a==2&&alert(L_EditDocumentProgIDError_Text)}function editDocumentWithProgIDNoUI(a,c,d,h,k,i){ULSw7Q:;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;if(d=="SharePoint.OpenXMLDocuments")SetWindowRefreshOnFocus();else 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(){ULSw7Q:;SetWindowRefreshOnFocus()}function createNewDocumentWithProgID2Ex(f,b,a,d,c,e){ULSw7Q:;createNewDocumentWithProgID2(b,a,d,c,e)}function createNewDocumentWithProgID2(b,a,e,d,c){ULSw7Q:;!createNewDocumentWithProgIDCore(b,a,e,c,false)&&createNewDocumentWithProgIDCore(b,a,d,c,true)}function createNewDocumentWithProgIDEx(e,b,a,c,d){ULSw7Q:;createNewDocumentWithProgID(b,a,c,d)}function createNewDocumentWithProgID(b,a,c,d){ULSw7Q:;createNewDocumentWithProgIDCore(b,a,c,d,true)}function createNewDocumentWithProgIDCore(d,c,e,h,g){ULSw7Q:;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");!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;!a.CreateNewDocument(d,c)&&alert(L_NewDocumentRuntimeError_Text);SetWindowRefreshOnFocus();return true}catch(f){g&&alert(L_NewDocumentError_Text)}}function createNewDocumentWithRedirect2(h,d,b,e,f,c,g,a){ULSw7Q:;createNewDocumentWithRedirect(d,b,e,f,c,g,a)}function createNewDocumentWithRedirect(e,a,b,f,d,g,c){ULSw7Q:;if(g)if(IsClientAppInstalled(b))createNewInClient(e,a,b,f);else createNewInBrowser(d,a,c);else if(IsClientAppInstalled(b)&&c!=1)createNewInClient(e,a,b,f);else createNewInBrowser(d,a,c)}function createNewInClient(c,b,d,e){ULSw7Q:;var a=d.replace(/(?:\.\d+)$/,"");createNewDocumentWithProgID(c,b,a,e)}function createNewInBrowser(a,c,b){ULSw7Q:;a=a+"&SaveLocation="+makeAbsUrl(escapeProperly(c));a=AddSourceToUrl(a);a=a+"&DefaultItemOpen="+b;STSNavigate(a)}function LRUCache(){ULSw7Q:;this.state=[];this.ageStack=[];this.count=0}function LRUCache_Add(a,b){ULSw7Q:;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){ULSw7Q:;if(!a)return;age=a.state[b];if(age!=null){a.ageStack[age]=null;a.state[b]=null;a.count--}}function _AddGroupToCookie(c){ULSw7Q:;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){ULSw7Q:;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)g_ExpGroupTable[a].state[b]!=null&&b.substring(0,c.length)==c&&LRUCache_Remove(g_ExpGroupTable[a],b);ExpGroupRenderCookie()}function ExpGroupRenderCookie(){ULSw7Q:;if(!g_ExpGroupWPState)return;for(var c=ExpGroupWPListName+"=",a=0,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){ULSw7Q:;if(!g_ExpGroupTable[a].ageStack)return;for(var d=ExpGroupCookiePrefix+a+"=",e=true,c=g_ExpGroupTable[a].ageStack.length-1;c>=0;c--)if(g_ExpGroupTable[a].ageStack[c]!=null){var f=g_ExpGroupTable[a].ageStack[c],b="";if(!e)b+=escape(ExpGroupCookieDelimiter);b+=escape(f);if(d.length+b.length<=ExpGroupMaxCookieLength){d+=b;e=false}}document.cookie=d+";"}function ExpDataViewGroupOnPageLoad(){ULSw7Q:;ExpGroupOnPageLoad("PageLoad")}function ExpGroupOnPageLoad(a){ULSw7Q:;if(typeof g_ExpGroupSeparateQueuesGlobal!="undefined"&&g_ExpGroupSeparateQueuesGlobal)g_ExpGroupSeparateQueues=true;flag=document.getElementById("GroupByColFlag");if(flag!=null){g_ExpGroupNeedsState=true;ExpGroupParseCookie(a)}}function ExpGroupParseCookie(a){ULSw7Q:;var d=GetCookie(ExpGroupWPListName);if(d==null)return;g_ExpGroupParseStage=true;for(var e=d.split(ExpGroupCookieDelimiter),c=e.length-1;c>=0;c--){var b=e[c];LRUCache_Add(g_ExpGroupWPState,b);if(g_ExpGroupTable[b]==null)document.getElementById("GroupByCol"+b)!=null&&ExpGroupParseCookieForWebPart(b,a)}g_ExpGroupParseStage=false;if(g_ExpGroupSeparateQueues)if(a&&g_ExpGroupXSLTQueue.length>0)ExpGroupFetchData(g_ExpGroupXSLTQueue.shift(),a);else!a&&g_ExpGroupCAMLQueue.length>0&&ExpGroupFetchData(g_ExpGroupCAMLQueue.shift(),a);else g_ExpGroupQueue.length>0&&ExpGroupFetchData(g_ExpGroupQueue.shift(),a)}function ExpGroupParseCookieForWebPart(c,e){ULSw7Q:;var m=GetCookie(ExpGroupCookiePrefix+c);if(m==null)return;var n=m.split(ExpGroupCookieDelimiter),b;g_ExpGroupTable[c]=new LRUCache;for(b=n.length-1;b>=0;b--){var i=n[b];LRUCache_Add(g_ExpGroupTable[c],i)}var d=[],o=document.getElementById("GroupByCol"+c).parentNode;tbodyTags=o.getElementsByTagName("TBODY");for(b=0;b<tbodyTags.length;b++){var i=tbodyTags[b].getAttribute("groupString");if(i!=null){var j=tbodyTags[b].id;if(j==null)continue;var a=j.substring(4,j.length);if(g_ExpGroupSeparateQueues){var p=a.substring(0,a.indexOf("-")),l=g_ctxDict["ctx"+p];if(!l||!l.isXslView&&e||l.isXslView&&!e){g_ExpGroupTable[c]=null;break}}if(g_ExpGroupTable[c].state[i]!=null&&d[a]==null){ExpCollGroup(a,"img_"+a,e);d[a]=true;tbody=document.getElementById("tbod"+a+"_");if(tbody!=null){isLoaded=tbody.getAttribute("isLoaded");if(isLoaded=="false")if(g_ExpGroupSeparateQueues)if(e)g_ExpGroupXSLTQueue.push(a);else g_ExpGroupCAMLQueue.push(a);else g_ExpGroupQueue.push(a)}}}}var f;for(f in d){var k=f.indexOf("_");if(k!=f.length-1&&k!=-1){var g=f.substring(0,k+1);if(d[g]==null){var h=ExpGroupFetchGroupString(g);if(h!=null){LRUCache_Add(g_ExpGroupWPState,h);ExpCollGroup(g,"img_"+g,e);d[h]=true}}}}}function _ExpGroupBy(e){ULSw7Q:;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){ULSw7Q:;var c=new String(a),b=/^.*\.([^\.]*)$/;return c.replace(b,"$1").toLowerCase()}function SzServer(a){ULSw7Q:;var c=new String(a),b=/^([^:]*):\/\/([^\/]*).*$/;return c.replace(b,"$1://$2")}var v_stsOpenDoc=null,v_strStsOpenDoc=null;function NavigateParentOrSelf(b,a){ULSw7Q:;if(b.target=="_top")window.frameElement.navigateParent(a);else STSNavigate(a)}function StsOpenEnsureEx(a){ULSw7Q:;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}function _DispDocItem(b,a){ULSw7Q:;return _DispDocItemEx(b,"FALSE","FALSE","FALSE",a)}function _DispDocItemExWithServerRedirect(f,c,j,g,i,e,k,a){ULSw7Q:;var d=a!=null&&a!="",h=IsClientAppInstalled(e)&&HasRights(16,0);if(d){a=a.substring(1);d=a!=""}if(d)if(k==1||!h){var b=a;b=AddSourceToUrl(b);b=b+"&DefaultItemOpen="+DocOpen.BROWSER;if(window.location.search.match("[?&]IsDlg=1"))window.frameElement.navigateParent(b);else if(c.shiftKey||c.ctrlKey)return true;else NavigateParentOrSelf(f,b);c.cancelBubble=true;c.returnValue=false;return false}return DispDocItemExWithEvent(f,c,j,g,i,e)}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){ULSw7Q:;return DispDocItemExWithEvent(e,null,c,a,b,d)}function DispDocItemExWithEvent(g,e,p,m,o,a){ULSw7Q:;itemTable=FindSTSMenuTable(g,"CTXName");if((!browseris.ie||!browseris.win32)&&!IsSupportedMacBrowser()&&!IsSupportedFirefoxOnWin()){if(browseris.ie)event.cancelBubble=false;var k=g.href;if(window.location.search.match("[?&]IsDlg=1"))window.frameElement.navigateParent(k);else STSNavigate(k);return false}var d,c,h,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=g.href;else c=SzServer(g.href)+c;h=SzExtension(c);if(currentItemProgId==null&&itemTable!=null)currentItemProgId=GetAttributeFromItemTable(itemTable,"Type","HTMLType");if(currentItemProgId!=null)j=currentItemProgId;if(FDefaultOpenForReadOnly(h)){if(a.indexOf("SharePoint.OpenDocuments")>=0)a="SharePoint.OpenDocuments.3"}else if(!FSupportCheckoutToLocal(h))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(h)||a=="SharePoint.OpenDocuments")a="SharePoint.OpenDocuments.3";var i=2;if(a!=""&&HasRights(16,0)){if(a.indexOf(".3")>=0)i=3;d=StsOpenEnsureEx2(a);if(d==null&&i==3){a=a.replace(".3",".2");d=StsOpenEnsureEx2(a);i=2}}if(d!=null)if(i==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 f=0;if(currentItemCheckedOutUserId!="")if(currentItemCheckedOutUserId!=ctx.CurrentUserId&&ctx.CurrentUserId!=null)f=1;else if(currentItemCheckedoutToLocal==null||currentItemCheckedoutToLocal!="1")f=2;else f=4;else if(!HasRights(0,4)||FDefaultOpenForReadOnly(h))f=1;else if(ctx.isForceCheckout==true)f=3;try{b=d.ViewDocument3(window,c,f,j)}catch(l){b=false}if(b){var n=d.PromptedOnLastOpen();if(n)window.onfocus=RefreshOnNextFocus;else SetWindowRefreshOnFocus()}}else currentItemCheckedoutToLocal=="1"&&alert(L_OpenDocumentLocalError_Text);if(d==null||!b){if(p=="TRUE"&&m=="TRUE"&&o=="TRUE"){if(itemTable==null)return b;if(browseris.ie){event.cancelBubble=true;event.returnValue=false}else if(IsSupportedMacBrowser()||IsSupportedFirefoxOnWin()){e.preventDefault&&e.preventDefault();e.stopPropagation&&e.stopPropagation()}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(g.href);else STSNavigate(g.href);return false}if(browseris.ie){event.cancelBubble=true;event.returnValue=false}else if(IsSupportedMacBrowser()||IsSupportedFirefoxOnWin()){if(d!=null&&b){e.preventDefault&&e.preventDefault();e.stopPropagation&&e.stopPropagation()}return true}return b}function DispDocItemEx2(d,a,i,f,h,l,k,c,e){ULSw7Q:;var n=false,m=e!=null&&e!="",g=IsClientAppInstalled(c)&&HasRights(16,0);if(m)if(k==1||!g){var b=e;b=AddSourceToUrl(b);b=b+"&DefaultItemOpen="+DocOpen.BROWSER;if(window.location.search.match("[?&]IsDlg=1"))window.frameElement.navigateParent(b);else if(a.shiftKey||a.ctrlKey)return true;else NavigateParentOrSelf(d,b);a.cancelBubble=true;a.returnValue=false;return false}else if(g)if(c==""||c.indexOf("SharePoint.OpenDocuments")>=0)return DispDocItemExWithEvent(d,a,i,f,h,l);else{if(!ViewDoc(d.href,c)){var j=editDocumentWithProgIDNoUI(d.href,currentItemProgId,c,false,ctx.HttpRoot,"0");if(j==1||j==2){var b=AddSourceToUrl(e);if(window.location.search.match("[?&]IsDlg=1"))window.frameElement.navigateParent(b);else NavigateParentOrSelf(d,b)}}a.cancelBubble=true;a.returnValue=false;return false}return DispDocItemExWithEvent(d,a,i,f,h,c)}function DispDocItemExWithOutContext(o,n,e,a,d,i,g,m,k,b,h,j,f,c,l){ULSw7Q:;DispEx(o,n,e,a,d,i,g,m,k,b,h,j,f,c,l)}function AddSourceToUrl(a){ULSw7Q:;var b=GetSource(),c=a.length+b.length;if(c>1950)return a;else{var d=a.indexOf("?")>=0?"&":"?";return a+d+"Source="+b}}function _VerifyFolderHref(f,e,j,h,g,i,d,a){ULSw7Q:;var c=d!=null&&d!=""&&a!=null&&a!="";if(c){a=a.substring(1);c=a!=""}if(c){var b=a;b=AddSourceToUrl(b);b=b+"&DefaultItemOpen="+DocOpen.BROWSER;f.href=STSPageUrlValidation(b);e.cancelBubble=true;e.returnValue=true;DetachEvent("mousedown",VerifyFolderHref,f)}return false}function _VerifyHref(f,e,h,d,a){ULSw7Q:;var c=a!=null&&a!="",g=IsClientAppInstalled(d)&&HasRights(16,0);if(c){a=a.substring(1);c=a!=""}if(c){if(h==1||!g){var b=a;if(d!=null&&d.startsWith("SharePoint.OpenXMLDocuments"))b=AddSourceToUrl(b);b=b+"&DefaultItemOpen="+DocOpen.BROWSER;f.href=STSPageUrlValidation(b);e.cancelBubble=true;e.returnValue=true}DetachEvent("mousedown",VerifyHref,f)}return false}function _DispEx(p,a,h,e,g,k,c,o,m,b,j,l,i,f,d){ULSw7Q:;if(a.shiftKey||a.ctrlKey)return true;var n=document.getElementById("FileDialogViewTable");if(n!=null){a.cancelBubble=false;a.returnValue=false;return true}if(typeof ctx=="undefined"||ctx==null)ctx=new ContextInfo;ctx.CurrentUserId=l;if(i=="1")ctx.isForceCheckout=true;else ctx.isForceCheckout=false;currentItemCheckedOutUserId=j;currentItemCheckedoutToLocal=f;currentItemProgId=m;if(d!=null&&d!=""){SetCurrentPermMaskFromString(d,null);if(c=="0"&&!HasRights(0,32))c="1"}a.cancelBubble=true;if(b!=null&&b!="")b=b.substring(1);return DispDocItemEx2(p,a,h,e,g,k,c,o,b)}function IsClientAppInstalled(a){ULSw7Q:;var b=null;if(a!="")b=StsOpenEnsureEx2(a);return b!=null}function ViewDoc(d,c){ULSw7Q:;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){ULSw7Q:;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){ULSw7Q:;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){ULSw7Q:;var a=c[b];if(a==null){a=document.createElement("INPUT");a.setAttribute("type","hidden");a.setAttribute("name",b);c.appendChild(a)}a.value=d}function _MoveToViewDate(b,a,c){ULSw7Q:;if(FV4UI()&&typeof _fV4Calendar!="undefined"&&_fV4Calendar){var d=function(){ULSw7Q:;var d;if(c)d=SP.UI.ApplicationPages.CalendarInstanceRepository.lookupInstance(c);else d=SP.UI.ApplicationPages.CalendarInstanceRepository.firstInstance();if(d)if(a!=null)d.moveToViewType(a);else d.moveToDate(b)};AjaxCalendarCall(d)}else MoveToViewDatePostBack(b,a)}function MoveToViewDatePostBack(c,b){ULSw7Q:;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){ULSw7Q:;var a;try{a=typeof SP.UI.ApplicationPages.CalendarInstanceRepository}catch(c){a="undefined"}EnsureScript("SP.js",a,b)}function _MoveToDate(a,b){ULSw7Q:;_MoveToViewDate(a,null,b)}function MoveToToday(){ULSw7Q:;_MoveToViewDate("",null)}function MoveView(a){ULSw7Q:;_MoveToViewDate(null,a)}function _ClickDay(a){ULSw7Q:;_MoveToDate(a)}function GetIframe(){ULSw7Q:;return null}function _GetMonthView(c){ULSw7Q:;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){ULSw7Q:;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){ULSw7Q:;NewItemDT(b,null,a)}function NewItemDay(b,a){ULSw7Q:;NewItemDT(b,a,null)}function ScrollToAnchorInInnerScrollPane(k,h,j){ULSw7Q:;try{var l=document.getElementById(k),b=document.getElementById(l[h].value);if(typeof b=="undefined"||b==null)throw"";var d=b.parentNode.previousSibling;if(typeof d!="undefined"&&d!=null){var e=d.previousSibling;if(typeof e!="undefined"&&e!=null)b=e;else b=d}else throw""}catch(n){for(var f=null,i=document.anchors.length,g=0;g<i;g++){f=document.anchors[g];var m=f.href;if(m.search(j)!=-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 o=b.offsetLeft;a.scrollLeft=o;a.scrollTop=c.offsetTop-a.clientHeight+c.offsetHeight}}}}function FilterChoice(e,d,D,u){ULSw7Q:;var a,h=0,g=false,l="",w=e.id,v=e.name,j="",s="",C=d.choices,c=C.split("|"),z=AbsLeft(d),n=AbsTop(d)+d.offsetHeight,r=document.getElementById("s4-workspace");if(r)n-=AbsTop(r);var B=d.optHid,x=c.length-1,m=-1,q=false,p="";if(e!=null&&e.selectedIndex>=0){g=true;p=e.options[e.selectedIndex].innerText}for(a=0;a<c.length;a=a+2){var b=c[a];while(a<x-1&&c[a+1].length==0){b=b+"|";a++;if(a<x-1)b=b+c[a+1];a++}var k=c[a+1],i=b.toLocaleLowerCase(),A=D.toLocaleLowerCase();if(u.length!=0)g=true;if(i.indexOf(A)==0){var o=u.toLocaleLowerCase();if(o.length!=0&&i.indexOf(o)==0&&j.length==0)g=false;if(i.length>20)q=true;if(!g||i==p){l+='<option selected value="'+k+'">'+STSHtmlEncode(b)+"</option>";g=true;j=b;s=k;m=a}else l+='<option value="'+k+'">'+STSHtmlEncode(b)+"</option>";h++}}var t=' ondblclick="HandleOptDblClick()" onkeydown="HandleOptKeyDown()"',f="";if(q)f='<select tabIndex="-1" ctrl="'+d.id+'" name="'+v+'" id="'+w+'"'+t;else f='<select class="ms-lookuptypeindropdown" tabIndex="-1" ctrl="'+d.id+'" name="'+v+'" id="'+w+'"'+t;if(h==0)f+=' style="display:none;position:absolute;z-index:2;left:'+z+"px;top:"+n+'px" onfocusout="OptLoseFocus(this)"></select>';else f+=' style="position:absolute;z-index:2;left:'+z+"px;top:"+n+'px" size="'+(h<=8?h:8)+'"'+(h==1?'multiple="true"':"")+' onfocusout="OptLoseFocus(this)">'+l+"</select>";e.outerHTML=f;var y=document.getElementById(B);if(m!=0||c[1]!="0")y.value=s;else y.value="0";if(m!=0||c[1]!="0")return j;else return ""}function _OptLoseFocus(a){ULSw7Q:;var b=document.getElementById(a.ctrl);a.selectedIndex>=0&&_SetCtrlFromOpt(b,a);a.style.display="none"}function SetCtrlMatch(b,a){ULSw7Q:;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 _SetCtrlFromOpt(b,a){ULSw7Q:;var c=document.getElementById(b.optHid);c.value=a.options[a.selectedIndex].value;if(a.options[a.selectedIndex].value==0){b.value=a.options[a.selectedIndex].innerText;b.match=""}else{b.value=a.options[a.selectedIndex].innerText;b.match=b.value}}function HandleOptDblClick(){ULSw7Q:;var a=event.srcElement,b=document.getElementById(a.ctrl);_SetCtrlFromOpt(b,a);SetCtrlMatch(b,a);a.style.display="none"}function HandleOptKeyDown(){ULSw7Q:;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 CommitInlineEditChange(tr,cancel){ULSw7Q:;if(tr.cells.length>0){c=tr.cells[0];if(c.width=="1%")eval(cancel==true?c.firstChild.lastChild.href:c.firstChild.firstChild.href);else if(tr.cells.length>1){c=tr.cells[1];if(c.width="1%")eval(cancel==true?c.firstChild.lastChild.href:c.firstChild.firstChild.href)}}}function InlineEditNextTR(tr,nextTr,element,down){ULSw7Q:;if(nextTr!=null){_inlineEditString=tr.getAttribute("automode")+"#";var index=null;while(element!=null&&element.nodeType==1&&element.getAttribute("automode")==null){var siblingCount=0,sibling=element.previousSibling;while(sibling!=null){siblingCount++;sibling=sibling.previousSibling}if(index==null)index=siblingCount;else index=siblingCount+","+index;element=element.parentNode}_inlineEditString+=index;var tab=nextTr;while(tab!=null&&tab.tagName!="TABLE")tab=tab.parentNode;if(tab!=null&&nextTr!=null&&nextTr.getAttribute("iid")!=null){var inlineEditString=tab.getAttribute("inlineedit");if(inlineEditString!=null){inlineEditString=inlineEditString.replace("{@ID}","{"+IdFromRow(nextTr)+"}");inlineEditString=inlineEditString.replace("__cancel;","__commit;dvt_inlineedit={"+_inlineEditString+"};");eval(inlineEditString)}}else if(down==true&&nextTr!=null)if(nextTr.cells.length>0){var inlineEditString=null;c=nextTr.cells[0];if(c.width=="1%")inlineEditString=c.firstChild.href;else if(nextTr.cells.length>1){c=nextTr.cells[1];if(c.width="1%")inlineEditString=c.firstChild.href}if(inlineEditString!=null){inlineEditString=inlineEditString.replace("__cancel;","__commit;dvt_inlineedit={"+_inlineEditString+"};");eval(inlineEditString)}}}}function HandleInlineEditKeyDown(c){ULSw7Q:;var b=event.srcElement;if(b.tagName!="INPUT")return;var e=event.keyCode,a=c.parentNode;switch(e){case 27:CommitInlineEditChange(a,true);break;case 38:var d=a.previousSibling;InlineEditNextTR(a,d,b);break;case 13:case 40:var d=a.nextSibling;InlineEditNextTR(a,d,b,true)}if(window.event)window.event.cancelBubble=true;else c!=null&&c.stopPropagation()}function EnsureSelectElement(c,b){ULSw7Q:;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(){ULSw7Q:;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){ULSw7Q:;var a=document.getElementById(b),d=a.value,c=EnsureSelectElement(a,a.opt);a.match=FilterChoice(c,a,"",a.value);a.focus()}function HandleChar(){ULSw7Q:;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(){ULSw7Q:;var b=event.srcElement,a=document.getElementById(b.opt);a!=null&&a.style.display!="none"&&document.activeElement!=a&&_OptLoseFocus(a)}function HandleChange(){ULSw7Q:;var a=event.srcElement,c=a.value,b=document.getElementById(a.opt);a.match=FilterChoice(b,a,c,"")}function IsSafeHref(a){ULSw7Q:;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("^pnm://","i"))||a.match(new RegExp("^mms://","i"))||a.match(new RegExp("^/","i"))||a.match(new RegExp("^#","i"))||a.match(new RegExp("^\\\\\\\\","i"))}var 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){ULSw7Q:;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_UnknownProtocolUrlError_Text);return false}}function Discuss(a){ULSw7Q:;var L_IE5upRequired_Text="'Discuss' requires a Microsoft SharePoint Foundation-compatible application and Microsoft Internet Explorer 7.0 or greater.";if(browseris.ie5up&&browseris.win32)window.parent.location.href=a;else alert(L_IE5upRequired_Text)}var g_AdditionalNavigateHierarchyQString="";function GetAdditionalNavigateHierarchyQString(){ULSw7Q:;return g_AdditionalNavigateHierarchyQString}function SetAdditionalNavigateHierarchyQString(a){ULSw7Q:;g_AdditionalNavigateHierarchyQString=a}function ProcessDefaultNavigateHierarchy(g,e,d,b,c,j,i,h,f){ULSw7Q:;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){ULSw7Q:;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){ULSw7Q:;if(b==null)b=";#";if(c==null)c=true;for(var h=b.charAt(0),i=h+h,j=new RegExp(b.charAt(0),"g"),g=false,d="",e=0;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(){ULSw7Q:;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){}}!b&&alert(L_WebFoldersError_Text)}}function NavigateHttpFolder(a,b){ULSw7Q:;if("/"==a.charAt(0))a=document.location.protocol+"//"+document.location.host+a;httpFolderSource=a;httpFolderTarget=b;NavigateHttpFolderCore()}function NavigateHttpFolderIfSupported(b,a){ULSw7Q:;if(a=="_blank")if(SupportsNavigateHttpFolder())NavigateHttpFolder(b,a);else alert(L_WebFoldersError_Text);else alert(L_NoExplorerView_Text)}function AutoIndexForRelationshipsConfirmation(){ULSw7Q:;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 SetHomePage2(d){ULSw7Q:;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.executeQueryAsync(function(){ULSw7Q:;removeNotification(g);addNotification(STSHtmlEncode(SP.Res.pageIsSiteHomePage),false)})}function SetHomePage(b){ULSw7Q:;var a=function(){ULSw7Q:;SetHomePage2(b)};if(typeof SP!="undefined")EnsureScript("SP.js",typeof SP.ClientContext,a);else EnsureScript("SP.js",typeof SP,a)}function SendEmail(b){ULSw7Q:;var a;try{a=typeof SP.Ribbon.EMailLink.openMailerWithUrl}catch(f){a="undefined"}if(a!="undefined")SP.Ribbon.EMailLink.openMailerWithUrl(b);else{var e="SP.Ribbon.EMailLink.openMailerWithUrl",c=e.split(".");if(c.length>1){var d=function(){ULSw7Q:;SP.Ribbon.EMailLink.openMailerWithUrl(b)};EnsureScript(c[0],a,d)}}}function TryCopyStringToClipboard(b){ULSw7Q:;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){ULSw7Q:;var a=false;try{a=TryCopyStringToClipboard(c)}catch(b){a=false}!a&&alert(SP.Res.clipboardNoAccess)}function CopyPageAddressToClipboard(){ULSw7Q:;CopyStringToClipboard(window.location.href)}function showViewSelector(b,a,d){ULSw7Q:;if(b==null)b=window.event;CancelEvent(b);a=EnsureValidPositioningElement(b,a);a=AdjustViewSelectorParentInTitleArea(a);var e=function(){ULSw7Q:;SP.Application.UI.ViewSelectorMenuBuilder.showMenu(a,d)},c;try{c=typeof SP.Application.UI.ViewSelectorMenuBuilder.showMenu}catch(f){c="undefined"}EnsureScript("SP.js",c,e)}function EnsureValidPositioningElement(d,c){ULSw7Q:;if(c!=null)return c;var b=GetEventSrcElement(d),a=b;while(a!=null&&a.tagName!="BODY"){if(a.tagName=="TD"&&(a.className=="ms-viewselector"||a.className=="ms-viewselectorhover"))return a;a=a.parentNode}return b}function AdjustViewSelectorParentInTitleArea(a){ULSw7Q:;if(a&&a.className=="ms-ltviewselectormenuheader"&&a.childNodes)for(var d=a.childNodes,c=0;c<d.length;c++){var b=d[c];if(b&&b.id&&b.id.indexOf("ListTitleViewSelectorMenu")>=0)return b}return a}function EnsureCheckoutAndChangeLayoutModeToEdit(f,e,d){ULSw7Q:;var a,c=function(){ULSw7Q:;var a;try{a=typeof browserScript.MSOLayout_ChangeLayoutMode}catch(f){a="undefined"}if(a!="undefined")browserScript.MSOLayout_ChangeLayoutMode(d);else{var e="browserScript.MSOLayout_ChangeLayoutMode",b=e.split(".");if(b.length>1){var c=function(){ULSw7Q:;browserScript.MSOLayout_ChangeLayoutMode(d)};EnsureScript(b[0],a,c)}}},g=function(){ULSw7Q:;var g=a.get_item("CheckoutUser");if(!g){if(confirm(L_ConfirmCheckout_Text)){var b=new SP.ClientContext,d=b.get_web().get_lists().getById(new SP.Guid(f));a=d.getItemById(e);a.get_file().checkOut();b.executeQueryAsync(c)}}else c()},h=function(){ULSw7Q:;var b=new SP.ClientContext,c=b.get_web().get_lists().getById(new SP.Guid(f));a=c.getItemById(e);b.load(a,"CheckoutUser");b.executeQueryAsync(g)},b;try{b=typeof SP.ClientContext}catch(i){b="undefined"}EnsureScript("SP.js",b,h)}function _ChangeLayoutMode(b,c){ULSw7Q:;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(){ULSw7Q:;browserScript.MSOLayout_ChangeLayoutMode(b,c)};EnsureScript(d[0],a,e)}}}function OpenWebPartMenuFromLink(b,a,c,d){ULSw7Q:;while(a!=null&&a.parentNode!=null&&a.tagName!="TD")a=a.parentNode;OpenWebPartMenu(b,a,c,d)}function OpenWebPartMenu(b,c,d,e,f){ULSw7Q:;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(){ULSw7Q:;browserScript.MSOWebPartPage_OpenMenu(b,c,d,e,f)};EnsureScript(g[0],a,h)}}return true}function UpdateWebPartMenuFocus(a,d,c){ULSw7Q:;if(a)a.className=d;var b=null;if(a&&a.childNodes){b=a.childNodes[0];if(b&&b.tagName=="SPAN")b.className=c}}function _WebPartMenuKeyboardClick(e,b,c,d){ULSw7Q:;var a;try{a=typeof browserScript.MSOMenu_KeyboardClick}catch(i){a="undefined"}if(a!="undefined")browserScript.MSOMenu_KeyboardClick(e,b,c,d);else{var h="browserScript.MSOMenu_KeyboardClick",f=h.split(".");if(f.length>1){var g=function(){ULSw7Q:;browserScript.MSOMenu_KeyboardClick(e,b,c,d)};EnsureScript(f[0],a,g)}}}function _ShowToolPane2Wrapper(b,c,d){ULSw7Q:;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(){ULSw7Q:;browserScript.MSOTlPn_ShowToolPane2Wrapper(b,c,d)};EnsureScript(e[0],a,f)}}}function ChangeWebPartPageView(b){ULSw7Q:;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(){ULSw7Q:;browserScript.MSOLayout_ToggleView(b)};EnsureScript(c[0],a,d)}}}function _SetupFixedWidthWebParts(){ULSw7Q:;var a;try{a=typeof browserScript.MSOWebPartPage_SetupFixedWidthWebParts}catch(e){a="undefined"}if(a!="undefined")browserScript.MSOWebPartPage_SetupFixedWidthWebParts();else{var d="browserScript.MSOWebPartPage_SetupFixedWidthWebParts",b=d.split(".");if(b.length>1){var c=function(){ULSw7Q:;browserScript.MSOWebPartPage_SetupFixedWidthWebParts()};EnsureScript(b[0],a,c)}}}function EnsureSelectionHandlerOnFocusDeferred(d,c,b){ULSw7Q:;var a=c;while(a.tagName!="TABLE")a=a.parentNode;EnsureSelectionHandlerDeferred(d,a,b)}function ChangeWikiPageMode(b){ULSw7Q:;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(){ULSw7Q:;ribbon.ChangeWikiPageMode(b)};EnsureScript(c[0],a,d)}}}function EnsureSelectionHandlerDeferred(m,d,i){ULSw7Q:;var b=window["ctx"+i];if(!FV4UI()||!b){d.onmouseover=null;return}ctxInitItemState(b);for(var j=d.rows,g=0;g<j.length;g++){var a=j[g];if(HasCssClass(a,"ms-viewheadertr")){var f=a.cells[0];if(f){var e=f.getElementsByTagName("INPUT")[0];if(e!=null){b.SelectAllCbx=e;b.TableCbxFocusHandler=e.onfocus;e.onfocus=null;e.className="s4-selectAllCbx"}}}var k=a.getAttribute("iid");if(k!=null){var h=false;if(ItemIsCurrentlySelected(b,k)){h=true;b.CurrentSelectedItems++}if(ItemIsCurrentlyVisible(a)){b.TotalListItems++;b.LastSelectableRowIdx=g}if(a.cells.length>0){f=a.cells[0];var c=f.getElementsByTagName("INPUT")[0];if(c){if(!h)c.checked=false;if(!c._setup){c._setup=true;var l=TooltipOfRow(a);if(l!=null)c.title=l;c.onblur=HideItemCbx;c.onfocus=DisplayItemCbx;c.onclick=ToggleItemRowSelection;f.onclick=ToggleItemRowSelection}if(a.getAttribute("automode")==null)a.onclick=SingleItemSelect}UpdateAutoMode(a);AddSpaceToEmptyTDs(a);AddBorderToLastCell(a)}}}b.TableMouseoverHandler=d.onmouseover;d.onmouseover=null;if(d.getAttribute("handleDeleteInit")==null){d.setAttribute("handleDeleteInit","true");$addHandler(d,"keydown",function(a){ULSw7Q:;HandleItemDelete(a,i)})}}function ItemIsSelectable(a){ULSw7Q:;if(!a||!ItemHasiid(a)||!ItemIsCurrentlyVisible(a))return false;return true}function ItemIsCurrentlyVisible(a){ULSw7Q:;if(!a||!a.parentNode)return false;if(GetCurrentEltStyle(a.parentNode,"display")=="none"||GetCurrentEltStyle(a,"display")=="none")return false;return true}function ItemIsCurrentlySelected(b,c){ULSw7Q:;if(!b||!c)return false;var a=GetSelectedItemsDict(b);if(a==null||a[c]==null)return false;return true}function ItemHasiid(a){ULSw7Q:;if(!a||a.getAttribute("iid")==null)return false;return true}function HandleItemDelete(g,d){ULSw7Q:;if(g.keyCode==Sys.UI.Key.del){var b=window["ctx"+d],a;try{a=typeof inplview.DeleteSelectedItems}catch(h){a="undefined"}if(a!="undefined")inplview.DeleteSelectedItems(b);else{var f="inplview.DeleteSelectedItems",c=f.split(".");if(c.length>1){var e=function(){ULSw7Q:;inplview.DeleteSelectedItems(b)};EnsureScript(c[0],a,e)}}return false}}function GetItemRow2(b){ULSw7Q:;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){ULSw7Q:;if(a==null)a=window.event;var b=GetEventSrcElement(a);return GetItemRow2(b)}function TooltipOfRow(d){ULSw7Q:;for(var c=d.cells,a=0,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 AlertCheckOut(){ULSw7Q:;alert(L_MustCheckout_Text)}function UpdateAutoModeImage(a){ULSw7Q:;if(a==null)a=window.event;if(a!=null){var b=a.srcElement!=null?a.srcElement:a.currentTarget;if(b&&b.tagName=="A")if(a.type=="blur")RemoveCssClassFromElement(b,"ms-inlineEditLink");else a.type=="focus"&&AddCssClassToElement(b,"ms-inlineEditLink")}}function AddAutoModeTag(f,e,g){ULSw7Q:;var a=document.createElement("A");a.onblur=UpdateAutoModeImage;a.onfocus=UpdateAutoModeImage;var c=e;while(c.tagName!="TABLE")c=c.parentNode;if(f.getAttribute("requiresCheckout")!=null)a.onclick=AlertCheckOut;else{var d=c.getAttribute("inlineedit");if(d!=null)a.href=d.replace("{@ID}","{"+IdFromRow(e)+"}")}var b=document.createElement("IMG");b.className="s4-itm-inlineedit";b.src=g;b.border=0;b.alt=L_Edit_Text;a.appendChild(b);f.appendChild(a)}function GetItemRowCbx(a){ULSw7Q:;var b=null;if(a!=null&&a.cells&&a.cells.length>0){var c=a.cells[0];b=c.getElementsByTagName("INPUT")[0]}return b}function UpdateAutoMode(b){ULSw7Q:;if(b!=null){var c=CtxFromRow(b);if(!c||!c.InlineEdit)return;if(b.cells&&b.cells.length>0){var a=b.cells[0];if(a.innerHTML==""&&a.width=="1%"){if(a.getAttribute("requiresCheckout")==null)a.onclick=ClickToEdit;AddAutoModeTag(a,b,"/_layouts/images/edititem.gif")}else if(b.cells.length>1){a=b.cells[1];if(a.innerHTML==""&&a.width=="1%"){if(a.getAttribute("requiresCheckout")==null)a.onclick=ClickToEdit;AddAutoModeTag(a,b,"/_layouts/images/edititem.gif")}}}}}function ClickToEdit(a){ULSw7Q:;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 a!=null&&a.stopPropagation()}function HideItemCbx(b){ULSw7Q:;if(b==null)b=window.event;var c=GetItemRow(b),a=GetItemRowCbx(c);if(a&&a.tagName=="INPUT"){a.style.top="";a.style.position="";a.onmouseout=null}}function DisplayItemCbx(b){ULSw7Q:;if(b==null)b=window.event;var c=GetItemRow(b),a=GetItemRowCbx(c);if(a&&a.tagName=="INPUT"){a.style.top="0px";a.style.position="relative";a.onmouseout=HideItemCbx}}function Log(b){ULSw7Q:;var a=document.createElement("DIV");a.innerHTML=b;document.body.appendChild(a)}function _ToggleAllItems(a,b,c){ULSw7Q:;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(b,f,g){ULSw7Q:;var a=window["ctx"+f];if(!a){b.checked=false;return}var c=b;while(c.tagName!="TABLE")c=c.parentNode;var e=c.rows,d=CountTotalItems(a);if(d==0){b.checked=false;return}if(g){if(d>g_MaximumSelectedItemsAllowed){b.checked=false;alert(L_BulkSelection_TooManyItems);return}SelectAllItems(a,e)}else DeselectAllItems(a,e,true)}function SelectAllItems(a,b){ULSw7Q:;if(!a||!b)return;for(var e=a.LastSelectableRowIdx,c=1;c<e;c++){var d=b[c],f=d.getAttribute("iid");if(f!=null)ItemIsCurrentlyVisible(d)&&ToggleItemRowSelection2(a,d,true,false)}ToggleItemRowSelection2(a,b[e],true,true)}function DeselectAllItems(a,d,f){ULSw7Q:;if(!a||!d)return;for(var g=a.LastSelectableRowIdx,c=1;c<=g;c++){var e=d[c],b=e.getAttribute("iid");if(b!=null){var h=b.split(",");SelectListItem(a,b,h,e,false)}}f&&RefreshCommandUI()}function DeselectCollapsedGroup(e,b){ULSw7Q:;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];ItemHasiid(f)&&ToggleItemRowSelection2(e,f,false,false)}ToggleItemRowSelection2(e,c[a],false,true)}}function HandleSingleGroupByRow(a,b,d){ULSw7Q:;if(!a||!b)return;var c=b.getAttribute("iid");if(c==null)return;if(!d){a.TotalListItems--;ItemIsCurrentlySelected(a,c)&&ToggleItemRowSelection2(a,b,false,true)}else a.TotalListItems++}function RefreshCommandUI(){ULSw7Q:;if(IsFullNameDefined("SP.Ribbon.PageManager")){var a=SP.Ribbon.PageManager.get_instance();a&&a.get_commandDispatcher().executeCommand(Commands.CommandIds.ApplicationStateChanged,null)}}function _CommandUIExecuteCommand(b){ULSw7Q:;if(IsFullNameDefined("SP.Ribbon.PageManager")){var a=SP.Ribbon.PageManager.get_instance();a&&a.get_commandDispatcher().executeCommand(b,null)}}function OnItemSelectionChanged(e,a,c){ULSw7Q:;var b=e;if(FV4UI()){var d=function(){ULSw7Q:;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){ULSw7Q:;var b=c.getAttribute("iid"),a=b.split(",");return a[1]}function CtxFromRow(d){ULSw7Q:;var c=d.getAttribute("iid"),b=c.split(","),a=b[0];return window["ctx"+a]}function GroupNameFromRow(d){ULSw7Q:;var b=d.parentNode,a=b.id;if(a==null||a==""){siblingNode=b.previousSibling;if(siblingNode!=null&&siblingNode.childNodes.length==0&&siblingNode.tagName==b.tagName)a=siblingNode.id}if(a==null||a=="")return null;var c=a.substr(4,a.length-6);return c==""?null:c}function GroupStringFromGroupName(a){ULSw7Q:;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(a){ULSw7Q:;if(a==null)a=window.event;var g=GetEventSrcElement(a);if(g!=null&&ElementContainsLink(g))return;if(clearECBMenu(g)){CancelEvent(a);return false}var d=GetItemRow(a),c=d;while(c.tagName!="TABLE")c=c.parentNode;var h=c.rows,b=CtxFromRow(d),i=d.getAttribute("iid"),k=i.split(","),e=false;if(!ItemIsCurrentlySelected(b,i)){e=true;if(CountSelectedItems(b)>0)for(var f=0;f<h.length;f++){var j=h[f];ItemIsSelectable(j)&&ToggleItemRowSelection2(b,j,false,false)}}ToggleItemRowSelection2(b,d,e,true);UpdateSelectAllCbx(b,e);CancelEvent(a);return true}function ElementContainsLink(a){ULSw7Q:;while(a!=null&&a.tagName!="TD"){if(a.tagName=="A")return true;a=a.parentNode}return false}function clearECBMenu(b){ULSw7Q:;if(g_menuHtc_lastMenu==null)return false;if(b!=null){var a=b;while(a!=null&&a.tagName!="TD")a=a.parentNode;var c=GetItemRow2(a);MenuHtc_hide();tdHasEcbMenu(a)&&OnChildItem(a)}return true}function tdHasEcbMenu(d){ULSw7Q:;for(var b=0;b<d.childNodes.length;b++){var a=d.childNodes[b];if(a.nodeType==1&&a.tagName=="DIV"){var c=a.getAttribute("CTXName");if(c!=null&&c!="")return true}}return false}function ToggleItemRowSelection(a){ULSw7Q:;if(a==null)a=window.event;MenuHtc_hide();var c=GetItemRow(a),b=CtxFromRow(c),f=c.getAttribute("iid"),d=!ItemIsCurrentlySelected(b,f);if(d&&CountSelectedItems(b)==g_MaximumSelectedItemsAllowed){var e=GetItemRowCbx(c);e.checked=false;alert(L_BulkSelection_TooManyItems);CancelEvent(a);return true}ToggleItemRowSelection2(b,c,d,true);UpdateSelectAllCbx(b,d);if(window.event)window.event.cancelBubble=true;else a.stopPropagation();return true}function ToggleItemRowSelection2(b,a,f,e){ULSw7Q:;var d=a.getAttribute("iid"),c=d.split(",");if(c[1]=="")return;SelectListItem(b,d,c,a,f);OnItemSelectionChanged(b,GroupNameFromRow(a),e);return true}function UpdateSelectAllCbx(a,c){ULSw7Q:;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,e,c,d){ULSw7Q:;var f=GetItemRowCbx(c);f.checked=d;if(typeof a.dictSel=="undefined")a.dictSel=[];if(d){AddCssClassToElement(c,"s4-itm-selected");if(a.dictSel[b]==null){a.CurrentSelectedItems++;a.dictSel[b]={id:e[1],fsObjType:e[2]}}}else{RemoveCssClassFromElement(c,"s4-itm-selected");if(a.dictSel[b]!=null){delete a.dictSel[b];a.CurrentSelectedItems--}}}function CountTotalItems(a){ULSw7Q:;if(a.TotalListItems==null)a.TotalListItems=0;return a.TotalListItems}function CountSelectedItems(a){ULSw7Q:;if(a.CurrentSelectedItems==null)a.CurrentSelectedItems=0;return a.CurrentSelectedItems}function GetCtxRgiidFromIid(c){ULSw7Q:;if(c==null)return null;var b=c.split(",");if(b.length!=3)return null;if(b[1]=="")return null;var d=b[0],a=window["ctx"+d];if(a==null)return null;if(typeof a.dictSel=="undefined")a.dictSel=[];if(a.CurrentSelectedItems==null)a.CurrentSelectedItems=0;return {ctx:a,rgiid:b}}function SelectListItemNative(b,e){ULSw7Q:;var c=GetCtxRgiidFromIid(b);if(c==null)return false;var a=c.ctx,d=c.rgiid;if(e){if(a.CurrentSelectedItems==g_MaximumSelectedItemsAllowed)return false;if(a.dictSel[b]==null){a.CurrentSelectedItems++;a.dictSel[b]={id:d[1],fsObjType:d[2]}}}else if(a.dictSel[b]!=null){delete a.dictSel[b];a.CurrentSelectedItems--}OnItemSelectionChanged(a,null,true);return true}function DeselectAllListItemsNative(c){ULSw7Q:;var b=GetCtxRgiidFromIid(c);if(b==null)return false;var a=b.ctx;a.dictSel=[];a.CurrentSelectedItems=0;OnItemSelectionChanged(a,null,true);return true}function GetSelectedItemsNative(){ULSw7Q:;var a=GetCurrentCtx();if(a==null||typeof a.dictSel=="undefined")return [];var d=0,b=[];for(var c in a.dictSel){b[d]={id:a.dictSel[c].id,fsObjType:a.dictSel[c].fsObjType};d++}return b}function GetSelectedListNative(){ULSw7Q:;var a=GetCurrentCtx();if(a==null)return null;return a.listName}function GetCurrentCtx(){ULSw7Q:;var c=document.getElementById("_wpSelected");if(c==null)return null;var a=c.getAttribute("value");if(a==null||a=="")return null;a=a.substr(12);c=document.getElementById(a);if(c==null)return null;var b;if(window._spWebPartComponents&&_spWebPartComponents[a]&&_spWebPartComponents[a].storageId)b=_spWebPartComponents[a].storageId;else b=c.getAttribute("WebPartID");if(b==null)return null;b=b.toUpperCase();var d=g_ViewIdToViewCounterMap["{"+b+"}"];if(d==null)return null;var e=window["ctx"+d];return e}function GetLastSelectableRowIdx(c,d){ULSw7Q:;if(!c||!d)return;for(var b=c.rows,a=b.length-1;a>=0;a--){var e=b[a];if(d(e))return a}return -1}function UpdateCtxLastSelectableRow(a,c){ULSw7Q:;if(!a||!c)return;a.LastSelectableRowIdx=0;var b=GetLastSelectableRowIdx(c,ItemIsSelectable);if(b!=-1)a.LastSelectableRowIdx=b}function DeselectAllWPItems(){ULSw7Q:;var a=GetCurrentCtx();if(!a||!a.clvp||!a.clvp.tab)return;var c=a.clvp.tab,b=getSelectAllCbxFromTable(c);if(!b)return;b.checked=false;CountSelectedItems(a)>0&&DeselectAllItems(a,c.rows,false)}function callOpenBreadcrumbMenu(a,g,j,i,c,d,e,f,n,o,h,k){ULSw7Q:;if(!a)var a=window.event;a.cancelBubble=true;a.stopPropagation&&a.stopPropagation();var l=function(){ULSw7Q:;SP.UI.PopoutMenu.createPopoutMenuInstanceAndLaunch(g,j,i,c,d,e,f,n,o,h,k)},b;try{b=typeof SP.UI.PopoutMenu.createPopoutMenuInstanceAndLaunch}catch(m){b="undefined"}EnsureScript("SP.js",b,l)}function HasCssClass(d,f,e){ULSw7Q:;var c=d.className;if(c==null)return false;for(var a=c.split(" "),b=0;b<a.length;b++)if(a[b]==f){if(e){a.splice(b,1);d.className=a.join(" ")}return true}return false}function AddSpaceToEmptyTDs(b){ULSw7Q:;if(browseris.ie7down&&b!=null){if(b.getAttribute("addEmptySpace")==null)b.setAttribute("addEmptySpace","true");else return;for(i=0;i<b.childNodes.length;i++){var a=b.childNodes[i];if(a.nodeType==1&&a.tagName=="TD"&&a.width!="1%")if(a.innerHTML=="")a.innerHTML="&#8203;";else if(a.innerText==""){while(a&&a.nodeType==1&&a.innerHTML!="")a=a.firstChild;if(a&&a.nodeType==1&&a.innerHTML==""&&(a.tagName=="SPAN"||a.tagName=="DIV"||a.tagName=="NOBR"))a.innerHTML="&#8203;"}}}}function AddBorderToLastCell(c){ULSw7Q:;if(c.getAttribute("setEdgeBorder")!=null)return;var a=c.cells;if(a&&a.length>0){if(browseris.ie7down)a[0].className+="";var b=a[a.length-1];if(b)if(b.className!="")b.className+=" ms-vb-lastCell";else b.className="ms-vb-lastCell"}c.setAttribute("setEdgeBorder","true")}function AddCssClassToElement(a,b){ULSw7Q:;var c=a.className;if(c!=null){if(!HasCssClass(a,b))a.className=a.className+" "+b}else a.className=b}function RemoveCssClassFromElement(b,a){ULSw7Q:;HasCssClass(b,a,true)}function AddGallery_TypeOf(c){ULSw7Q:;if(c!=null){var b=typeof c;if(b=="object")if(b.constructor!=null){var a=c.constructor.toString(),d=a.indexOf(" "),e=a.indexOf("("),f=a.substr(d+1,e-d-1);return f}return b}return null}function IsLanguageSupportedInSilverlight(a){ULSw7Q:;if(a==1025||a==1037||a==1054||a==1081)return false;return true}function IsSilverlightInstalled(b){ULSw7Q:;if(b==undefined)b=null;var a=false,m=null;try{var i=null,j=false;if(window.ActiveXObject)try{i=new ActiveXObject("AgControl.AgControl");if(b===null)a=true;else if(i.IsVersionSupported(b))a=true;i=null}catch(l){j=true}else j=true;if(j){var k=navigator.plugins["Silverlight Plug-In"];if(k)if(b===null)a=true;else{var h=k.description;if(h==="1.0.30226.2")h="2.0.30226.2";var c=h.split(".");while(c.length>3)c.pop();while(c.length<4)c.push(0);var e=b.split(".");while(e.length>4)e.pop();var d,g,f=0;do{d=parseInt(e[f]);g=parseInt(c[f]);f++}while(f<e.length&&d===g);if(d<=g&&!isNaN(d))a=true}}}catch(l){a=false}return a}function IsAddGalleryProviderEnabled(c,b){ULSw7Q:;var a;try{if(window.XMLHttpRequest)a=new XMLHttpRequest;else a=new ActiveXObject("Microsoft.XMLHTTP");a.open("HEAD",c+b+".deny.xml",false);a.send();if(a.status==200)return false;else return true}catch(d){return true}}function DownloadSolutionHandler(){ULSw7Q:;LaunchCreateHandler("Provider:AddGallery.OfficeOnlineProvider")&&STSNavigate("http://r.office.microsoft.com/r/rlidSPTemplates")}function SilverlightBasedCreateHandler(a){ULSw7Q:;var k=new Date,f,b,c,i,h;if(typeof _spPageContextInfo!="undefined"){if(_spPageContextInfo.siteServerRelativeUrl){b=_spPageContextInfo.siteServerRelativeUrl;if(b.charAt(b.length-1)!="/")b=b+"/"}else return true;if(_spPageContextInfo.webServerRelativeUrl){c=_spPageContextInfo.webServerRelativeUrl;if(c.charAt(c.length-1)!="/")c=c+"/";f=c+"_layouts/AddGallery.aspx"}else return true;if(_spPageContextInfo.webLanguage)i=_spPageContextInfo.webLanguage;else return true;if(_spPageContextInfo.currentLanguage)h=_spPageContextInfo.currentLanguage;else return true}else return true;if(FV4UI()&&IsSilverlightInstalled("3.0.40624.0")&&IsLanguageSupportedInSilverlight(i)&&IsLanguageSupportedInSilverlight(h)){if(a==null)a="All";if(AddGallery_TypeOf(a)!="string")return true;a=a.toLowerCase();if(a=="page"||a=="publishingpage")return true;var d=[];d=a.split(":");if(d.length==2&&d[0]=="provider")if(!IsAddGalleryProviderEnabled(b+"_layouts/AddGalleryProviders/",d[1]))return true;var g=function(a,b){ULSw7Q:;if(FV4UI()){if(a)if(b)window.location=b;else window.location.reload()}else if(a)window.location=a;else window.location.reload()},j=function(){ULSw7Q:;var i={scope:a,currentWeb:c,currentSiteCollection:b,clickDateTime:k},e=a=="page"?660:1012,d=a=="page"?360:600;if(FV4UI())var j={width:e,height:d,resizable:true,status:false,menubar:false,help:false,url:f,dialogReturnValueCallback:g,args:i},l=SP.UI.ModalDialog.showModalDialog(j);else{var h;if(window.showModalDialog)h="dialogWidth:"+e+"px;dialogHeight:"+d+"px;resizable:yes;status:no;menubar:no;help:no";else h="width="+e+",height="+d+",resizable=yes,status=no,menubar=no,help=no";var m=commonShowModalDialog(f,h,g,i)}},e;try{e=typeof SP.UI.ModalDialog.showModalDialog}catch(l){e="undefined"}EnsureScript("SP.UI.Dialog.js",e,j);return false}return true}function LaunchCreateHandler(a){ULSw7Q:;if(typeof __CreateHandler!="undefined"&&__CreateHandler!=null){var b=__CreateHandler(a);return b}else try{return SilverlightBasedCreateHandler(a)}catch(c){return true}}if(FV4UI()){var isdlg=window.location.search.match("[?&]IsDlg=1");if(_spBodyOnLoadFunctionNames!=null&&typeof _spBodyOnLoadFunctionNames!="undefined"){!isdlg&&_spBodyOnLoadFunctionNames.push("FixRibbonAndWorkspaceDimensions");_spBodyOnLoadFunctionNames.push("SearchOnBodyLoad")}!isdlg&&AddEvtHandler(window,"onresize",FixRibbonAndWorkspaceDimensionsForResize)}function QstringStruct(g){ULSw7Q:;this.nonFilterParams={};this.filterParams={};for(var e=g.split("&"),d=0;d<e.length;d++){var a=e[d].split("=");if(a.length==2)if(a[0].search("^Filter")!=-1){var c=a[0].match("[0-9]*$"),b;if(typeof this.filterParams[c]!="undefined")b=this.filterParams[c];else{b={};this.filterParams[c]=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(){ULSw7Q:;for(var c=[],e=1,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(i,j){ULSw7Q:;var c=[];c.push(new QstringStruct(i));c.push(new QstringStruct(j));for(var f=[],a=0;a<c.length;a++)for(var e in c[a].nonFilterParams)if(a==0||typeof c[0].nonFilterParams[e]=="undefined"&&a==1){var b=[];b.push(e);b.push("=");b.push(c[a].nonFilterParams[e]);f.push(b.join(""))}for(var h=1,g={},a=0;a<c.length;a++)for(var k in c[a].filterParams){var d=c[a].filterParams[k];if(typeof g[d.FilterField]=="undefined"){for(var e in d){var b=[];b.push(e);b.push(h);b.push("=");b.push(d[e]);f.push(b.join(""))}h++;g[d.FilterField]=d}}return f.join("&")}function PageActionClick(){ULSw7Q:;EnsureScript("ribbon",TypeofFullName("SP.Ribbon.PageStateActionButton"),function(){ULSw7Q:;SP.Ribbon.PageStateActionButton.sendCommand()})}function ShowWebPartAdder(a){ULSw7Q:;LoadWPAdderOnDemand();ExecuteOrDelayUntilEventNotified(function(){ULSw7Q:;var b=window.WPAdder;if(b!=null){b._showCategoryColumn(true);b._setZone(a);b.show()}},"_spEventWebPartAdderReady")}var 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){ULSw7Q:;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){ULSw7Q:;return escapeProperlyCoreCore(a,false,false,false)}function escapeProperlyCore(b,a){ULSw7Q:;return escapeProperlyCoreCore(b,a,false,false)}function escapeUrlForCallback(a){ULSw7Q:;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){ULSw7Q:;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 SelectRibbonTab(b,c){ULSw7Q:;var a=null;try{a=SP.Ribbon.PageManager.get_instance().get_ribbon()}catch(d){}if(!a)typeof _ribbonStartInit=="function"&&_ribbonStartInit(b,false,null);else(c||a.get_selectedTabId()=="Ribbon.Read")&&a.selectTabById(b)}function FV4UI(){ULSw7Q:;return typeof _fV4UI!="undefined"&&_fV4UI}var itemTable=null,currentCtx=null,g_OfflineClient=null;function TakeOfflineDisabled(d,b,c,a){ULSw7Q:;try{if(g_OfflineClient==null)if(document.cookie.indexOf("OfflineClientInstalled")==-1){if(IsSupportedMacBrowser())g_OfflineClient=CreateMacPlugin();else g_OfflineClient=new ActiveXObject("SharePoint.OfflineClient");document.cookie="OfflineClientInstalled=1"}else if(GetCookie("OfflineClientInstalled")=="1")if(IsSupportedMacBrowser())g_OfflineClient=CreateMacPlugin();else g_OfflineClient=new ActiveXObject("SharePoint.OfflineClient");if(g_OfflineClient!=null&&g_OfflineClient.IsOfflineAllowed(d,b,c,a))return false;else return true}catch(e){document.cookie="OfflineClientInstalled=0";g_OfflineClient=null}return true}function GoToHistoryLink(b,d){ULSw7Q:;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){ULSw7Q:;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){ULSw7Q:;var a=GetGotoLinkUrl(b);if(a==null)return;if(isPortalTemplatePage(a))window.top.location=STSPageUrlValidation(a);else window.location=STSPageUrlValidation(a)}function GoToLinkOrDialogNewWindow(a){ULSw7Q:;if(a.href==null)return;if(window.location.search.match("[?&]IsDlg=1"))window.open(a.href);else GoToLink(a)}function GoToDiscussion(b){ULSw7Q:;var c=b.indexOf("?")>=0?"&":"?",a=GetSource();if(a!=null&&a!="")b+=c+"TopicsView="+a;STSNavigate(b)}function GetCurrentEltStyle(b,c){ULSw7Q:;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 EEDecodeSpecialChars(b){ULSw7Q:;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 MsFloorTime(d,b,c){ULSw7Q:;var a=d.getTime();if(c)a=a-1;a=b*Math.floor(a/b);return a}function Calendar(d,b,c,g){ULSw7Q:;if(!c)c=new DateOptions;this.dopt=c;var i=1;if(d==null||b==null){var a=StURLGetVar("CalendarDate");if(a!=""){d=a.substr(0,4)-0;var h=a.indexOf("-",5);if(h==-1)b=a.substr(5)-1;else{b=a.substr(5,h-5)-1;i=a.substr(h+1)}}if(a==""||isNaN(c.DateYMD(d,b,1))){var f=this.dopt.Today();d=f.getUTCFullYear();b=f.getUTCMonth();i=f.getUTCDate()}}var e=StURLGetVar("CalendarPeriod");if(e=="week"){this.period="week";this.iperiod=1}else if(e=="day"){this.period="vday";this.iperiod=2}else if(e=="vday"){this.period="vday";this.iperiod=2}else if(e=="month"){this.period="month";this.iperiod=0}else{this.period=c.CalendarPeriod;if(this.period=="week")this.iperiod=1;else if(this.period=="day")this.iperiod=2;else if(this.period=="vday")this.iperiod=2;else this.iperiod=0}this.SetDate(d,b,i);if(this.iperiod==0){this.cchanMin=4;this.cchanMax=4}else if(this.iperiod==1){this.cchanMin=20;this.cchanMax=20}else{this.cchanMin=3;this.cchanMax=100}this.ievtMax=0;this.rgEvt=[];this.fUseDHTML=browseris.ie&&browseris.verIEFull>4&&browseris.win32||browseris.nav6up;this.fDatePicker=false;this.dateDP=null;if(!g)g="cal";this.stObject=g}Calendar.msMinute=1e3*60;Calendar.msHour=Calendar.msMinute*60;Calendar.msDay=Calendar.msHour*24;Calendar.msWeek=Calendar.msDay*7;var L_rgDOW0_Text="Sun",L_rgDOW1_Text="Mon",L_rgDOW2_Text="Tue",L_rgDOW3_Text="Wed",L_rgDOW4_Text="Thur",L_rgDOW5_Text="Fri",L_rgDOW6_Text="Sat";Calendar.rgDOW=[L_rgDOW0_Text,L_rgDOW1_Text,L_rgDOW2_Text,L_rgDOW3_Text,L_rgDOW4_Text,L_rgDOW5_Text,L_rgDOW6_Text];var L_rgDOWLong0_Text="Sunday",L_rgDOWLong1_Text="Monday",L_rgDOWLong2_Text="Tuesday",L_rgDOWLong3_Text="Wednesday",L_rgDOWLong4_Text="Thursday",L_rgDOWLong5_Text="Friday",L_rgDOWLong6_Text="Saturday";Calendar.rgDOWLong=[L_rgDOWLong0_Text,L_rgDOWLong1_Text,L_rgDOWLong2_Text,L_rgDOWLong3_Text,L_rgDOWLong4_Text,L_rgDOWLong5_Text,L_rgDOWLong6_Text];var L_rgDOWDP0_Text="S",L_rgDOWDP1_Text="M",L_rgDOWDP2_Text="T",L_rgDOWDP3_Text="W",L_rgDOWDP4_Text="Th",L_rgDOWDP5_Text="F",L_rgDOWDP6_Text="S";Calendar.rgDOWDP=[L_rgDOWDP0_Text,L_rgDOWDP1_Text,L_rgDOWDP2_Text,L_rgDOWDP3_Text,L_rgDOWDP4_Text,L_rgDOWDP5_Text,L_rgDOWDP6_Text];var L_rgMonths0_Text="January",L_rgMonths1_Text="February",L_rgMonths2_Text="March",L_rgMonths3_Text="April",L_rgMonths4_Text="May",L_rgMonths5_Text="June",L_rgMonths6_Text="July",L_rgMonths7_Text="August",L_rgMonths8_Text="September",L_rgMonths9_Text="October",L_rgMonths10_Text="November",L_rgMonths11_Text="December";Calendar.rgMonths=[L_rgMonths0_Text,L_rgMonths1_Text,L_rgMonths2_Text,L_rgMonths3_Text,L_rgMonths4_Text,L_rgMonths5_Text,L_rgMonths6_Text,L_rgMonths7_Text,L_rgMonths8_Text,L_rgMonths9_Text,L_rgMonths10_Text,L_rgMonths11_Text];var L_MYDATE_Text="^1 ^2",L_YMDATE_Text="^1 ^2",L_MDYDATE_Text="^1 ^2, ^3",L_DMYDATE_Text="^1 ^2, ^3",L_YMDDATE_Text="^1, ^2 ^3",L_MDYDATESameYear_Text="^1 ^2",L_DMYDATESameYear_Text="^1 ^2",L_YMDDATESameYear_Text="^1, ^2 ^3",L_DATE1DATE2_Text="^1 - ^2",L_MDY_DOW_DATE_Text="^4 ^1 ^2, ^3",L_DMY_DOW_DATE_Text="^4 ^1 ^2, ^3",L_YMD_DOW_DATE_Text="^4 ^1, ^2 ^3";Calendar.prototype.StMonthYear=CalStMonthYear;function CalStMonthYear(){ULSw7Q:;var a="";if(this.iperiod!=0)a+='<span style="cursor:pointer;" onmouseover="HighlightText(this, \'red\');" onmouseout="HighlightText(this, \'\');"'+StClickEvent(this.stObject+".MoveMonth(0)")+">";var b="",c="",d="";switch(this.dopt.stDateOrder){case "MDY":case "DMY":c=Calendar.rgMonths[this.mon];d=this.yr;b=L_MYDATE_Text;break;case "YMD":c=this.yr;d=Calendar.rgMonths[this.mon];b=L_YMDATE_Text}a+=StBuildParam(b,c,d);if(this.iperiod!=0)a+="</span>";return a}Calendar.prototype.StDaySpanMonthYear=CalDaySpanMonthYear;function CalDaySpanMonthYear(){ULSw7Q:;var i="",k="",l="",a="",b="",c="",d="",e="",f="",g="",h="";if(this.iperiod!=0)i+='<span style="cursor:pointer;" onmouseover="HighlightText(this, \'red\');" onmouseout="HighlightText(this, \'\');"'+StClickEvent(this.stObject+".MoveMonth(0)")+">";var j=this.dateStart.getUTCFullYear()!=this.dateEnd.getUTCFullYear();switch(this.dopt.stDateOrder){case "MDY":c=Calendar.rgMonths[this.dateStart.getUTCMonth()];d=this.dateStart.getUTCDate();e=this.dateStart.getUTCFullYear();if(j)a=L_MDYDATE_Text;else a=L_MDYDATESameYear_Text;f=Calendar.rgMonths[this.dateEnd.getUTCMonth()];g=this.dateEnd.getUTCDate();h=this.dateEnd.getUTCFullYear();b=L_MDYDATE_Text;break;case "DMY":c=this.dateStart.getUTCDate();d=Calendar.rgMonths[this.dateStart.getUTCMonth()];e=this.dateStart.getUTCFullYear();if(j)a=L_DMYDATE_Text;else a=L_DMYDATESameYear_Text;f=this.dateEnd.getUTCDate();g=Calendar.rgMonths[this.dateEnd.getUTCMonth()];h=this.dateEnd.getUTCFullYear();b=L_DMYDATE_Text;break;case "YMD":c=this.dateStart.getUTCFullYear();d=Calendar.rgMonths[this.dateStart.getUTCMonth()];e=this.dateStart.getUTCDate();if(j)a=L_YMDDATE_Text;else a=L_YMDDATESameYear_Text;f=this.dateEnd.getUTCFullYear();g=Calendar.rgMonths[this.dateEnd.getUTCMonth()];h=this.dateEnd.getUTCDate();b=L_YMDDATE_Text}k=StBuildParam(a,c,d,e);l=StBuildParam(b,f,g,h);i+=StBuildParam(L_DATE1DATE2_Text,k,l);if(this.iperiod!=0)i+="</span>";return i}Calendar.prototype.StDayMonthYear=CalStDayMonthYear;function CalStDayMonthYear(){ULSw7Q:;var e="";e+='<span style="cursor:pointer;" onmouseover="HighlightText(this, \'red\');" onmouseout="HighlightText(this, \'\');"'+StClickEvent(this.stObject+".MoveMonth(0)")+">";var a="",b="",c="",d="",f=Calendar.rgDOWLong[this.dow];switch(this.dopt.stDateOrder){case "MDY":b=Calendar.rgMonths[this.mon];c=this.day;d=this.yr;a=L_MDY_DOW_DATE_Text;break;case "DMY":b=this.day;c=Calendar.rgMonths[this.mon];d=this.yr;a=L_DMY_DOW_DATE_Text;break;case "YMD":b=this.yr;c=Calendar.rgMonths[this.mon];d=this.day;a=L_YMD_DOW_DATE_Text}e+=StBuildParam(a,b,c,d,f);e+="</span>";return e}function alertDate(b,a){ULSw7Q:;alert(b+": yr="+a.getUTCFullYear()+" mon="+(a.getUTCMonth()+1)+" day="+a.getUTCDate())}Calendar.prototype.SetDate=CalSetDate;function CalSetDate(d,c,e){ULSw7Q:;var a=new Date(Date.UTC(d,c,e));this.dateStart=new Date(a.getTime());this.dateEnd=new Date(a.getTime());this.givenDate=new Date(a.getTime());if(this.iperiod==0){this.dateStart.setUTCDate(1);this.dateEnd.setTime(Date.UTC(d,c+1,0))}var b=0;if(this.iperiod!=2){this.dateStart.setUTCDate(this.dateStart.getUTCDate()-(this.dateStart.getUTCDay()-this.dopt.dow+7)%7);b=this.IrwFromDate(this.dateEnd);this.dateEnd.setUTCDate(this.dateEnd.getUTCDate()+b*7-1)}this.irwMax=b+1;if(this.iperiod==1){this.dateEnd.setTime(this.dateStart.getTime()+6*Calendar.msDay);a=new Date(this.dateStart.getTime()+3*Calendar.msDay)}else if(this.iperiod==2)this.dateTodayEnd=new Date(this.dateStart.getTime()+Calendar.msDay-1);this.day=a.getUTCDate();this.mon=a.getUTCMonth();this.yr=a.getUTCFullYear();this.dow=a.getUTCDay()}Calendar.prototype.DayStyle=CalDayStyle;function CalDayStyle(b,d,f,e){ULSw7Q:;var a,c=this.dopt.Today();if(b.getTime()==c.getTime())if(d)a=" style=\"border-color:'#FFD275'; border-bottom-style:solid; border-left-style:solid; border-right-style:solid; border-bottom-width:2pt; border-left-width:2pt; border-right-width:2pt\" ";else if(f)a=" style=\"border-color:'#FFD275'; border-top-style:solid; border-left-style:solid; border-right-style:solid; border-top-width:2pt; border-left-width:2pt; border-right-width:2pt\" ";else a=" style=\"border-color:'#FFD275'; border-left-style:solid; border-right-style:solid; border-left-width:2pt; border-right-width:2pt\" ";else if(!e&&b.getUTCMonth()!=this.mon)a=' BGCOLOR="#e6e6e6"';else a="";return a}Calendar.prototype.AddFullEvent=CalAddFullEvent;function CalAddFullEvent(e,g,i,l,k,h,j){ULSw7Q:;var a,b;if(e=="")return;a=DateOptions.ParseISODate(e);if(g=="")b=new Date(a.getTime());else b=DateOptions.ParseISODate(g);if(b<a)b=new Date(a.getTime());var c=new Date(a.getTime()),d=new Date(b.getTime());if(this.iperiod==2){if(a>this.dateTodayEnd||b<this.dateStart)return;if(c<this.dateStart)c=this.dateStart;var f=Calendar.msHour/3;if(b.getTime()<a.getTime()+f)d=new Date(a.getTime()+f)}h+="&Source="+escapeProperly(window.location.href);var m=new CalEvent(c,d,a,b,i,l,k,h,j);this.AddEvent(m)}Calendar.prototype.AddEvent=CalAddEvent;function CalAddEvent(a){ULSw7Q:;this.rgEvt[this.ievtMax++]=a}Calendar.prototype.AssignChannels=CalAssignChannels;function CalAssignChannels(){ULSw7Q:;var a;this.mpSpan={};this.mpIchan={};this.mpEvents={};var j=false,c,d;if(this.iperiod==2){j=true;c=this.dateStart;d=this.dateTodayEnd;this.mpNoTimeEvents=[];this.mpAllDayEvents=[];var h=this.dopt.WorkDayStartHour-this.dopt.DailyStartHourDelta,i=this.dopt.WorkDayEndHour+this.dopt.DailyEndHourDelta;if(h<0)h=0;if(i>24)i=24;this.minQuarterStart=4*h;this.maxQuarterEnd=4*i-1;for(a=0;a<this.rgEvt.length;a++){evt=this.rgEvt[a];if(evt.actualDateStart>d||evt.actualDateEnd-1<c||evt.actualDateStart<=c&&evt.actualDateEnd>=d)continue;irwMin=this.IrwFromDate(evt.dateStart);if(irwMin<0)irwMin=0;irwMax=this.IrwFromDate(evt.dateEnd);if(irwMax>this.irwMax)irwMax=this.irwMax;if(irwMin<this.irwMax&&irwMax>=0)for(irw=irwMin;irw<=irwMax;irw++){var g=new Date;this.SetDateFromGrid(g,irw,0);if(g<c||g>=d)continue;var k=g.getTime()/(Calendar.msHour/4),b=MsFloorTime(evt.dateStart,Calendar.msHour/4,0)/(Calendar.msHour/4)-k,f=MsFloorTime(evt.dateEnd,Calendar.msHour/4,1)/(Calendar.msHour/4)-k+1;if(f<b)f=b;if(b<this.minQuarterStart)this.minQuarterStart=b;if(f>this.maxQuarterEnd)this.maxQuarterEnd=f;if(b>0&&95-b<2)this.FVdayOverflow=true}}this.minQuarterStart=Math.floor(this.minQuarterStart/4)*4;if(this.minQuarterStart<0)this.minQuarterStart=0;if(this.maxQuarterEnd>95)this.maxQuarterEnd=95;else this.maxQuarterEnd=4*(Math.floor(this.maxQuarterEnd/4)+1)-1}this.iperiod<=1&&this.rgEvt.sort(CalEvtSort);var e=this.dateStart;e.setUTCHours(0,0,0,0);e=e.getTime();for(a=0;a<this.rgEvt.length;a++){evt=this.rgEvt[a];if(j){if(evt.actualDateStart.getTime()==e&&evt.actualDateEnd.getTime()==e){this.mpNoTimeEvents[this.mpNoTimeEvents.length]=evt;continue}if(evt.actualDateStart<=c&&evt.actualDateEnd>=d){this.mpAllDayEvents[this.mpAllDayEvents.length]=evt;continue}}irwMin=this.IrwFromDate(evt.dateStart);if(irwMin<0)irwMin=0;irwMax=this.IrwFromDate(evt.dateEnd);if(irwMax>this.irwMax)irwMax=this.irwMax;if(irwMin<this.irwMax&&irwMax>=0)for(irw=irwMin;irw<=irwMax;irw++)this.PlaceEventInRow(evt,irw)}}function CalEvtSort(a,b){ULSw7Q:;if(a.multiDay^b.multiDay)if(a.multiDay)return -1;else return 1;else if(a.multiDay){var c=a.dateEnd-a.dateStart,d=b.dateEnd-b.dateStart;if(d<c)return -1;else if(d>c)return 1;else return 0}else if(a.dateStart<b.dateStart)return -1;else if(a.dateStart>b.dateStart)return 1;else return 0}Calendar.prototype.PlaceEventInRow=CalPlaceEventInRow;function CalPlaceEventInRow(c,f){ULSw7Q:;var l,j=new Date;this.SetDateFromGrid(j,f,0);if(this.iperiod==2){if(f!=0)return;var k=j.getTime()/(Calendar.msHour/4),d=MsFloorTime(c.dateStart,Calendar.msHour/4,0)/(Calendar.msHour/4)-k,e=MsFloorTime(c.dateEnd,Calendar.msHour/4,1)/(Calendar.msHour/4)-k;if(e<d)e=d;var h,g;if(this.iperiod==2){h=this.minQuarterStart;g=this.maxQuarterEnd}else{h=4*this.dopt.WorkDayStartHour;g=4*this.dopt.WorkDayEndHour-1}if(e>=h&&d<=g){if(this.FVdayOverflow)g=99;d=Math.max(d,h);e=Math.min(e,g);ichan=this.IchanNext(f,d,e);new Span(this,f,d,e,ichan,c)}}else{var i,a,b;i=j.getTime()/Calendar.msDay;a=MsFloorTime(c.dateStart,Calendar.msDay,0)/Calendar.msDay-i;b=MsFloorTime(c.dateEnd,Calendar.msDay,1)/Calendar.msDay-i;if(b<a||c.actualDateEnd.getTime()-c.actualDateStart.getTime()<Calendar.msDay)b=a;if(b>=0&&a<=6){a=Math.max(a,0);b=Math.min(b,6);ichan=this.IchanNext(f,a,b);new Span(this,f,a,b,ichan,c)}}}function Span(a,e,c,h,g,d){ULSw7Q:;this.evt=d;this.cbucket=h-c+1;if(a.iperiod==2){d.ichan=g;d.ihour=c;var f=a.maxQuarterEnd;if(f==95)f=99;d.rowspan=Math.min(this.cbucket,1+f-c)}a.mpSpan[e+"."+c+"."+g]=this;for(bucket=c;bucket<=h;bucket++){a.mpIchan[e+"."+bucket]=g+1;var b=a.mpEvents[e+"."+bucket];if(b==null){b=[];a.mpEvents[e+"."+bucket]=b}b[b.length]=d}}Calendar.prototype.IchanNext=CalIchanNext;function CalIchanNext(c,d,e){ULSw7Q:;for(var b=0,a=d;a<=e;a++)if(this.mpIchan[c+"."+a]!=null)b=Math.max(b,this.mpIchan[c+"."+a]);return b}Calendar.prototype.IrwFromDate=CalIrwFromDate;function CalIrwFromDate(b){ULSw7Q:;var a;a=Math.floor((b.getTime()-this.dateStart.getTime())/Calendar.msWeek);return a}Calendar.prototype.BuildUI=CalBuildUI;function CalBuildUI(){ULSw7Q:;var a=this.StBuild();document.write(a)}Calendar.prototype.StBuild=CalStBuild;function CalStBuild(){ULSw7Q:;this.AssignChannels();if(this.fDatePicker)return this.StBuildPicker();if(!this.fUseDHTML)return this.StDownlevelBuild();return this.StBuildDHTML()}Calendar.prototype.StBuildDHTML=CalStBuildDHTML;function CalStBuildDHTML(){ULSw7Q:;var a,f,h=new Date,l,e,d,g,b,t,n,C,D;t=C=4*this.dopt.WorkDayStartHour;n=4*this.dopt.WorkDayEndHour;D=n-1;if(this.iperiod==2){t=this.minQuarterStart;n=this.maxQuarterEnd+1;if(n==96&&this.FVdayOverflow)n=100}var A='<th style="cursor:pointer;" onmouseover="HighlightText(this, \'red\');" onmouseout="HighlightText(this, \'\');" ';if(this.iperiod==2){g=this.IchanNext(0,t,n);var y=this.mpNoTimeEvents.length,x=this.mpAllDayEvents.length;g=Math.max(g,this.cchanMin);if(this.cchanMax>0)g=Math.min(g,this.cchanMax);a="<table width='100%' class='ms-cal' cellpadding='0' cellspacing='0'>";a+="<tr>"+A+StClickEvent(this.stObject+".MoveDate(-1)")+' class="ms-calhead" style="cursor:pointer;" width="8%">&lt;</th><th width="84%" class="ms-calhead" nowrap>'+this.StDayMonthYear()+"</th>"+A+StClickEvent(this.stObject+".MoveDate(1)")+' class="ms-calhead" style="cursor:pointer;" width="8%">&gt;</th></tr>';if(y>0){a+="</table><table width='100%' class='ms-cal' cellpadding='0' cellspacing='0'>\r";a+="<tr height='0'><td width='"+(this.dopt.AllDayWidth+8)+"pt' /><td/></tr>\r";a+="<tr><td class='ms-CalAllDay' rowspan='"+(y+1)+"'></td><td width='1%' /></tr>";for(i=0;i<y;i++){p=this.mpNoTimeEvents[i];a+="<tr><td class='ms-Vapptsingle' style='border-top:1px solid black; border-left:1px solid black; border-bottom:1px solid black; border-right:1px solid black;' ";a+=" title="+StAttrQuote(p.StTip(this.dopt))+"><nobr>"+StRenderVDayEvt(p,this.dopt,2)+"</nobr></td></tr>\r"}}if(x>0){a+="</table><table width='100%' class='ms-cal' cellpadding='0' cellspacing='0'>\r";a+="<tr height='0'><td width='"+(this.dopt.AllDayWidth+8)+"pt' /><td/></tr>\r";a+="<tr><td class='ms-CalAllDay' rowspan='"+(x+1)+"'>"+this.dopt.L_AllDay_Text+"</td><td width='1%'/></tr>";for(i=0;i<x;i++){p=this.mpAllDayEvents[i];a+="<tr><td class='ms-Vapptsingle' style='border-top:1px solid black; border-left:1px solid black; border-bottom:1px solid black; border-right:1px solid black;' ";a+=" title="+StAttrQuote(p.StTip(this.dopt))+"><nobr>"+StRenderVDayEvt(p,this.dopt,2)+"</nobr></td></tr>\r"}}a+="</table><table width='100%' style='table-layout:fixed' class='ms-vcal' cellpadding='0' cellspacing='0'>\r";a+="<tr height='0'><td width='"+this.dopt.AllDayWidth+"pt' /><td width='8pt' />\r";for(d=1;d<g;d++)a+="<td/>\r";a+="</tr>\r";var w={},m=new Array(n);for(b=t;b<n;b++){m[b]=0;for(d=0;d<g;d++)w[b+"."+d]=0}for(i=0;i<this.rgEvt.length;i++){var p=this.rgEvt[i],b=p.ihour,d=p.ichan,o=p.rowspan,k=d+1;for(c=0;c<o;c++)if(m[b+c]>k)k=m[b+c];for(c=0;c<o;c++){m[b+c]=k;w[b+c+"."+d]=1}}for(i=0;i<this.rgEvt.length;i++){var E=0,c=0;b=this.rgEvt[i].ihour;k=m[b];o=this.rgEvt[i].rowspan;var s=0,B=false;for(c=1;c<o;c++){s=m[b+c];B|=s!=k;if(s>k)k=s}if(!B)continue;for(c=0;c<o;c++)m[b+c]=k}for(i=this.rgEvt.length-1;i>=0;i--){var E=0,c=0;b=this.rgEvt[i].ihour;k=m[b];o=this.rgEvt[i].rowspan;var s=0,B=false;for(c=1;c<o;c++){s=m[b+c];B|=s!=k;if(s>k)k=s}if(!B)continue;for(c=0;c<o;c++)m[b+c]=k}for(b=t;b<n;b++){a+="<tr>\r";if(b%4==0){var r=b/4;if(r==24)r="&nbsp;";else if(this.dopt.f12Hour){r=(b/4+11)%12+1;if(this.dopt.TimeMarkPosn==0)r+=" "+(b/4<12?this.dopt.stAM:this.dopt.stPM);else r=(b/4<12?this.dopt.stAM:this.dopt.stPM)+" "+r}var j="";if(b<C||b>D)j=' BGCOLOR="#e6e6e6" ';if(b!=t||x>0||y>0){a+="<td class='ms-CalHour' rowspan='2'"+j+"><nobr>"+r+"</nobr></td>";a+="<td class='ms-calHour'"+j+">&nbsp;</td>\r"}else{a+="<td class='ms-firstCalHour' rowspan='2'"+j+"><nobr>"+r+"</nobr></td>";a+="<td class='ms-firstCalHour'"+j+">&nbsp;</td>\r"}}else if(b%2==0){a+="<td class='ms-CalHalfHour'"+j+">&nbsp;</td>\r";a+="<td class='ms-calHalfHour'"+j+">&nbsp;</td>\r"}else if(b%4==1)a+="<td class='ms-CalQuarterHour'"+j+">&nbsp;</td>\r";else if(b%4==3){a+="<td class='ms-CalQuarterHour'"+j+">&nbsp;</td>\r";a+="<td class='ms-calQuarterHour'"+j+">&nbsp;</td>\r"}for(d=0;d<g;d++){f=this.mpSpan[0+"."+b+"."+d];if(f!=null){var u="ms-Vappt",o=f.evt.rowspan,v=Math.floor(g/m[b]);if(v>g/this.cchanMin)v=Math.floor(g/this.cchanMin);var z=v-1;if(z>0)for(c=0;c<o;c++){z=v-1;for(jchan=g-1;jchan>d&&z>0;jchan--)if(w[b+c+"."+jchan]==0){w[b+c+"."+jchan]=1;z--}}a+="<td class="+u+" style='border-top:1px solid black; border-left:1px solid black; border-bottom:2px solid black; border-right:2px solid black;' rowspan="+f.evt.rowspan;if(v>1)a+=" colspan="+v;a+=" title="+StAttrQuote(f.evt.StTip(this.dopt))+"><nobr>"+StRenderVDayEvt(f.evt,this.dopt,f.evt.rowspan)+"</nobr></td>\r"}else if(w[b+"."+d]==0)if(b%4==0)if(b!=t||x>0||y>0)a+="<td class='ms-calHour'"+j+">&nbsp;</td>\r";else a+="<td class='ms-firstCalHour'"+j+">&nbsp;</td>\r";else if(b%2==0)a+="<td class='ms-calHalfHour'"+j+">&nbsp;</td>\r";else a+="<td class='ms-calQuarterHour'"+j+">&nbsp;</td>\r"}a+="</tr>\r"}a+="<tr>\r";for(d=-2;d<g;d++)a+="<td class='ms-CalHour'>&nbsp;</td>\r";a+="</tr>\r"}else{var q=this.iperiod==1;a="<table width='100%' class='ms-cal' cellpadding='0' cellspacing='0'>";a+="<tr>"+A+StClickEvent(this.stObject+".MoveDate(-1)")+' class="ms-calhead" style="cursor:pointer;">&lt;</td><td class="ms-calhead" colspan="5">';if(this.iperiod==0)a+=this.StMonthYear();else a+=this.StDaySpanMonthYear();a+="</td>"+A+StClickEvent(this.stObject+".MoveDate(1)")+' class="ms-calhead" style="cursor:pointer;">&gt;</td></tr>';a+="<tr>\r";for(e=0;e<7;e++)a+="<td class='ms-calDOW'>"+Calendar.rgDOW[(e+this.dopt.dow)%7]+"</td>\r";a+="</tr>";for(l=0;l<this.irwMax;l++){g=Math.max(this.IchanNext(l,0,6),this.cchanMin);if(this.cchanMax>0)g=Math.min(g,this.cchanMax);a+="<tr>\r";for(e=0;e<7;e++){this.SetDateFromGrid(h,l,e);a+='<td class="ms-calTop"'+this.DayStyle(h,false,true,q)+'>&nbsp;<span style="cursor:pointer;" onmouseover="HighlightText(this, \'red\');" onmouseout="HighlightText(this, \'\');"'+StClickEvent(this.stObject+".MoveToDay("+h.getUTCFullYear()+","+(h.getUTCMonth()+1)+","+h.getUTCDate()+")")+">"+h.getUTCDate()+"</span>&nbsp;</td>\r"}a+="</tr>\r";for(d=0;d<g;d++){if(this.iperiod==1){a+="<tr>\r";for(e=0;e<7;e++){this.SetDateFromGrid(h,l,e);if(d==g-1&&this.SpanCheck(l,e,d,g))a+="<td class='ms-apptsingle' "+this.DayStyle(h,false,false,q)+">&nbsp;</td>";else{f=this.mpSpan[l+"."+e+"."+d];if(f!=null&&!f.evt.multiDay&&0!=f.evt.actualDateStart.getTime()%Calendar.msDay&&0!=f.evt.actualDateEnd.getTime()%Calendar.msDay){var u="ms-apptsingle"+this.DayStyle(h,false,false,q);a+="<td class="+u+" colspan="+f.cbucket+" title="+StAttrQuote(f.evt.StTip(this.dopt))+"><nobr>";a+=StEvtTime(f.evt,this.dopt,true);a+="&nbsp;</nobr></td>\r";e+=f.cbucket-1}else a+="<td class='ms-calMid'"+this.DayStyle(h,false,false,q)+">&nbsp;</td>\r"}}a+="</tr>\r"}a+="<tr>\r";for(e=0;e<7;e++){this.SetDateFromGrid(h,l,e);if(d==g-1&&this.SpanCheck(l,e,d,g))a+="<td class='ms-apptsingle' "+this.DayStyle(h,false,false,q)+'><span style="cursor:pointer;" onmouseover="HighlightText(this, \'red\');" onmouseout="HighlightText(this, \'\');"'+StClickEvent(this.stObject+".MoveToDay("+h.getUTCFullYear()+","+(h.getUTCMonth()+1)+","+h.getUTCDate()+")")+">"+this.dopt.L_More_Text+"</span></td>\r";else{f=this.mpSpan[l+"."+e+"."+d];if(f!=null){var u="ms-appt";if(!f.evt.multiDay)u="ms-apptsingle"+this.DayStyle(h,false,false,q);a+="<td class="+u+" colspan="+f.cbucket+" title="+StAttrQuote(f.evt.StTip(this.dopt))+"><nobr>"+StURL(f.evt.stURL,f.evt.stTitle)+"</nobr></td>\r";e+=f.cbucket-1}else a+="<td class='ms-calMid'"+this.DayStyle(h,false,false,q)+">&nbsp;</td>\r"}}a+="</tr>\r";a+="<tr>\r";if(d==g-1)u="ms-CalBot";else u="ms-CalSpacer";for(e=0;e<7;e++){this.SetDateFromGrid(h,l,e);a+="<td class="+u+this.DayStyle(h,d==g-1,false,q)+">&nbsp;</td>\r"}a+="</tr>\r"}}}a+="</table>";return a}Calendar.prototype.SpanCheck=CalSpanCheck;function CalSpanCheck(e,a,g,f){ULSw7Q:;var d,b,c;if(this.IchanNext(e,a,a)>f)return true;d=this.mpSpan[e+"."+a+"."+g];if(d!=null){c=d.cbucket+a;if(c>7)c=7;for(b=a+1;b<c;b++)if(this.IchanNext(e,b,b)>f)return true}return false}function StRenderVDayEvt(a,f,e){ULSw7Q:;var b="";b+="<table height='12px' border='0' cellpadding='0' cellspacing='0' style='border-collapse: collapse; padding-right:6px' ><tr>";if(a.rgIcons&&a.rgIcons.length){var c,d=true;for(c in a.rgIcons)if(a.rgIcons[c]&&a.rgIcons[c].indexOf("blank.gif")<0){d=false;break}if(!d){b+="<td valign='top' nowrap>";for(c in a.rgIcons)if(a.rgIcons[c]&&a.rgIcons[c].length)b+=a.rgIcons[c];b+="</td>"}}b+="<td nowrap>"+StURL(a.stURL,a.stTitle)+"</td></tr></table>";if(e>2)b+="<nobr>"+StEvtTime(a,f,false)+"</nobr>";if(e>3&&a.stLocation!=null)b+="<br><nobr>"+STSHtmlEncode(a.stLocation)+"</nobr>";return b}function StEvtTime(a,c,d){ULSw7Q:;var b="";if(d)b+=c.StTime(a.actualDateStart);else b+=c.StBareTime(a.actualDateStart);if(a.actualDateStart.getTime()!=a.actualDateEnd.getTime()&&(MsFloorTime(a.actualDateStart,Calendar.msDay,0)==MsFloorTime(a.actualDateEnd,Calendar.msDay,0)||a.actualDateEnd.getTime()-a.actualDateStart.getTime()<Calendar.msDay)){b+=" - ";if(d)b+=c.StTime(a.actualDateEnd);else b+=c.StBareTime(a.actualDateEnd)}return b}function StClickEvent(a){ULSw7Q:;return 'onclick="'+a+'" ondblclick="'+a+'"'}var L_TodaysDate_Text="Today's date is ^1";Calendar.prototype.StBuildPicker=CalStBuildPicker;function CalStBuildPicker(){ULSw7Q:;var a,c=new Date,d=this.dopt.Today(),f,b,o,e,L_LittleRedDiamond_TXT="&loz;";a='<table ONSELECTSTART="return false;" class="ms-datepicker" cellpadding="2" cellspacing="0" border="1">\r';var i="<td style=\"cursor:pointer;\" onmouseover=\"Highlight(this, 'yellow', 'black');\" onmouseout=\"Highlight(this, '', '');\" ";a+="<tr>"+i+StClickEvent(this.stObject+".MoveMonth(-1)")+' class="ms-dpnextprev">&lt;</td><td class="ms-dphead" colspan="5">'+this.StMonthYear()+"</td>"+i+StClickEvent(this.stObject+".MoveMonth(1)")+' class="ms-dpnextprev">&gt;</td></tr>';a+="<tr>\r";for(b=0;b<7;b++)a+='<td class="ms-dpdow" height="20" width="14%">&nbsp;'+Calendar.rgDOWDP[(b+this.dopt.dow)%7]+"&nbsp;</td>\r";a+="</tr>\r";for(f=0;f<this.irwMax;f++){a+="<tr>\r";for(b=0;b<7;b++){this.SetDateFromGrid(c,f,b);var h=this.mpEvents[f+"."+b],g=h!=null,n=c.getUTCFullYear(),m=c.getUTCMonth(),l=c.getUTCDate();a+=i+StClickEvent(this.stObject+".ClickDay("+n+","+m+","+l+")");if(g){var j="";for(e=0;e<h.length;e++){j+=h[e].StTip(this.dopt);if(e<h.length-1)j+="\r"}a+=" title="+StAttrQuote(j)}a+=' width="14%"'+this.DPDayStyle(c,g)+">&nbsp;"+(g?"<b>":"")+c.getUTCDate()+(g?"</b>":"")+(c.getTime()==d.getTime()?"<font color='red'>"+L_LittleRedDiamond_TXT+"</font>":"&nbsp;");a+="</td>\r"}a+="</tr>\r"}var k="<a href='javascript:"+this.stObject+".SetDate("+d.getUTCFullYear()+","+d.getUTCMonth()+","+d.getUTCDate()+");'>"+this.dopt.StDate(d)+"</a>";a+="<tr><td class='ms-DPFoot' colspan='7'><font color='red'>&loz;</font>"+StBuildParam(L_TodaysDate_Text,k)+"</td></tr>";a+="</table>";return a}Calendar.prototype.MoveDate=CalMoveDate;function CalMoveDate(a){ULSw7Q:;if(this.iperiod==2)this.MoveVDay(a);else if(this.iperiod==1)this.MoveWeek(a);else this.MoveMonth(a)}Calendar.prototype.MoveMonth=CalMoveMonth;function CalMoveMonth(c){ULSw7Q:;var a,b=this.givenDate.getUTCFullYear()*12+this.givenDate.getUTCMonth()+c,d=Math.floor(b/12);b=b%12;if(c!=0)a=StURLSetVar("CalendarDate",d+"-"+St2Digits(b+1)+"-1");else a=StURLSetVar("CalendarDate",d+"-"+St2Digits(b+1)+"-"+this.givenDate.getUTCDate());a=StURLSetVar2(a,"CalendarPeriod","month");this.Post(a)}Calendar.prototype.MoveWeek=CalMoveWeek;function CalMoveWeek(c){ULSw7Q:;var a,b=this.givenDate;b.setUTCDate(this.givenDate.getUTCDate()+7*c);a=StURLSetVar("CalendarDate",b.getUTCFullYear()+"-"+St2Digits(b.getUTCMonth()+1)+"-"+b.getUTCDate());a=StURLSetVar2(a,"CalendarPeriod","week");this.Post(a)}Calendar.prototype.MoveDay=CalMoveDay;Calendar.prototype.MoveVDay=CalMoveDay;function CalMoveDay(c){ULSw7Q:;var a,b=this.givenDate;b.setUTCDate(this.givenDate.getUTCDate()+c);a=StURLSetVar("CalendarDate",b.getUTCFullYear()+"-"+St2Digits(b.getUTCMonth()+1)+"-"+b.getUTCDate());a=StURLSetVar2(a,"CalendarPeriod","day");this.Post(a)}Calendar.prototype.MoveToDay=CalMoveToDay;function CalMoveToDay(d,c,b){ULSw7Q:;var a;a=StURLSetVar("CalendarDate",d+"-"+St2Digits(c)+"-"+b);a=StURLSetVar2(a,"CalendarPeriod","day");this.Post(a)}Calendar.prototype.MoveToToday=CalMoveToToday;function CalMoveToToday(){ULSw7Q:;var a=this.dopt.Today(),b=StURLSetVar("CalendarDate",a.getUTCFullYear()+"-"+St2Digits(a.getUTCMonth()+1)+"-"+a.getUTCDate());this.Post(b)}Calendar.prototype.Post=CalDoPost;function CalDoPost(a){ULSw7Q:;if(this.stViewID&&this.stViewID.length)a=StURLSetVar2(a,"View",this.stViewID);SubmitFormPost(a)}function EditSeries(c){ULSw7Q:;var b="";if(c)b=StSearchVar(c,"ID");else b=StURLGetVar("ID");if(b.length){var d=b.indexOf(".0.");if(d>0){var a="";if(c){a=window.location.href;var e=a.indexOf("?");if(e>0)c+=a.substring(e,a.length);a=StURLSetVar2(c,"ID",b.substr(0,d))}else a=StURLSetVar("ID",b.substr(0,d));window.location.href=a}}}function EditSeriesID(b,c){ULSw7Q:;if(b.length){var a="";if(c){a=window.location.href;var d=a.indexOf("?");if(d>0)c+=a.substring(d,a.length);a=StURLSetVar2(c,"ID",b)}else a=StURLSetVar("ID",b);window.location.href=a}}function StURLSetVar(b,a){ULSw7Q:;return StURLSetVar2(window.location.href,b,a)}function StViewURLSetVar(a,c,b){ULSw7Q:;stUrl=window.location.href;p1=stUrl.lastIndexOf("/");if(p1>0)stUrl=stUrl.substring(0,p1+1)+a;return StURLSetVar2(stUrl,c,b)}function StURLSetVar2(a,c,f){ULSw7Q:;var b=c+"="+f,e=a.indexOf("?");if(e!=-1){var d=a.indexOf("?"+c+"=",e);if(d==-1){d=a.indexOf("&"+c+"=",e);if(d!=-1)b="&"+b}else b="?"+b;if(d!=-1){var g=new RegExp("[&?]"+c+"=[^&]*","");a=a.replace(g,b)}else a=a+"&"+b}else a=a+"?"+b;return a}function StURLGetVar(b){ULSw7Q:;var a=document.location.href;return StSearchVar(a,b)}function StSearchVar(b,d){ULSw7Q:;var f=new RegExp("[?&]"+d+"=","g"),a=b.search(f);if(a==-1)return "";a+=d.length+2;var c=b.indexOf("&",a+1);if(c==-1)c=b.length;var e=b.substring(a,c);return e}function HighlightText(a,b){ULSw7Q:;if(b!=""){a.colorTextSav=a.style.color;a.style.color=b}else a.style.color=a.colorTextSav}function Highlight(a,b,c){ULSw7Q:;if(b!=""){a.colorBackSav=a.style.backgroundColor;a.colorTextSav=a.style.color;a.style.backgroundColor=b;a.style.color=c}else{a.style.backgroundColor=a.colorBackSav;a.style.color=a.colorTextSav}}Calendar.prototype.DPDayStyle=CalDPDayStyle;function CalDPDayStyle(b,c){ULSw7Q:;var a="";if(b.getTime()==this.dateDP.getTime())a+=" class=ms-dpselectedday";else if(b.getUTCMonth()!=this.mon)a+=" class=ms-dpnonmonth";else a+=" class=ms-dpday";if(c)a+=' style:"font-weight: bold;"';return a}Calendar.prototype.StDownlevelBuild=CalStDownlevelBuild;function CalStDownlevelBuild(){ULSw7Q:;var a,f=new Date,d,b,g,c;a='<table cellpadding="2" cellspacing="0" width="100%" border="1">\r';a+='<tr><td class="ms-calhead"><a class="ms-calhead" target="_self" href="javascript:'+this.stObject+'.MoveDate(-1);"><b>&lt;</b></a></td><td class="ms-calhead" colspan="5">'+this.StMonthYear()+'</td><td class="ms-calhead"><a class="ms-calhead" target="_self" href="javascript:'+this.stObject+'.MoveDate(1);"><b>&gt;</b></a></td></tr>';a+="<tr>\r";for(b=0;b<7;b++)a+='<td class="ms-calDOWDown" height="20" width="14%">&nbsp;'+Calendar.rgDOW[(b+this.dopt.dow)%7]+"&nbsp;</td>\r";a+="</tr>\r";for(d=0;d<this.irwMax;d++){a+="<tr>\r";for(b=0;b<7;b++){this.SetDateFromGrid(f,d,b);a+='<td class="ms-calDown" height="80" width="14%"'+this.DayStyle(f)+">&nbsp;"+f.getUTCDate()+"&nbsp;<br>\r";var e=this.mpEvents[d+"."+b];if(e!=null)for(c=0;c<e.length;c++)a+=StURL(e[c].stURL,e[c].stTitle)+"<br>\r";a+="</td>"}a+="</tr>\r"}a+="</table>";return a}Calendar.prototype.SetDateFromGrid=CalSetDateFromGrid;function CalSetDateFromGrid(a,c,b){ULSw7Q:;a.setTime(this.dateStart.getTime()+c*Calendar.msWeek+b*Calendar.msDay)}var L_NoTitle_Text="(No Title)";function CalEvent(a,b,c,d,h,l,e,m,j){ULSw7Q:;this.dateStart=a;this.dateEnd=b;this.actualDateStart=c;this.actualDateEnd=d;this.stLocation=h;this.stDesc=l;this.stTitle=e;if(e.length==0)this.stTitle=L_NoTitle_Text;this.stURL=m;this.rgIcons=j;var n,o,i=MsFloorTime(a,Calendar.msDay,0),k=MsFloorTime(b,Calendar.msDay,1);if(i<k&&d.getTime()-c.getTime()>=Calendar.msDay)this.multiDay=true;else this.multiDay=false;var f=MsFloorTime(a,Calendar.msHour/4,0),g=MsFloorTime(b,Calendar.msHour/4,1);if(f<g)this.multiQuarter=true}CalEvent.prototype.FOverlap=EvtFOverlap;function EvtFOverlap(a){ULSw7Q:;return a.dateStart<=this.dateEnd&&a.dateEnd>=this.dateStart}var L_Tip_Text="^1: ^2";CalEvent.prototype.StTip=EvtStTip;function EvtStTip(c){ULSw7Q:;var a,b=StEvtTime(this,c,true);if(DateOptions.FHasTime(this.actualDateStart)||DateOptions.FHasTime(this.actualDateEnd))a=StBuildParam(L_Tip_Text,b,this.stTitle);else a=this.stTitle;if(!FBlankString(this.stLocation))a+="\r"+this.stLocation;if(!FBlankString(this.stDesc))a+="\r"+this.stDesc;return a}cGCMinimumWidth=400;cGCMinimumHeight=200;cGCMaxGCResizeCount=10;var glGCObjectHeight=0,glGCObjectWidth=0;glGCResizeCounter=0;function GCComputeSizing(e){ULSw7Q:;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){ULSw7Q:;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){ULSw7Q:;if(TestGCObject(a)){glGCResizeCounter=0;GCResizeGridControl(a)}}function GCOnResizeGridControl(a){ULSw7Q:;if(TestGCObject(a))if(glGCResizeCounter<cGCMaxGCResizeCount){glGCResizeCounter++;GCResizeGridControl(a)}}function _GCActivateAndFocus(a){ULSw7Q:;if(TestGCObject(a)){a.SetActive;a.Focus}}function _GCNavigateToNonGridPage(){ULSw7Q:;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){ULSw7Q:;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){ULSw7Q:;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(){ULSw7Q:;if(objGCGlobal!=null){objGCGlobal.DisplayTaskPane=true;objGCGlobal=null}}function GCShowHideTaskPane(a){ULSw7Q:;if(TestGCObject(a)){var b=a.DisplayTaskPane;a.DisplayTaskPane=!b;if(!b){objGCGlobal=a;window.setTimeout("GCShowTaskPane()",5)}}}function GCShowHideTotalsRow(a){ULSw7Q:;if(TestGCObject(a)){var b=a.DisplaySheetTotals;a.DisplaySheetTotals=!b}}function GCGridNewRow(a){ULSw7Q:;TestGCObject(a)&&a.SelectNewRow()}function GCRefresh(a){ULSw7Q:;TestGCObject(a)&&a.Refresh()}function GCNewFolder(a){ULSw7Q:;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="Outlook",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_ServerBusyError="The server is busy.  Please try again later.",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",L_Notification_Delete="Deleting...",L_Notification_CheckIn="Checking In...",L_Notification_CheckOut="Checking Out...",L_Notification_DiscardCheckOut="Discarding Check Out...";function CUIInfo(a,c,b){ULSw7Q:;a.CUICommand=c;a.CUIEnabledCommands=b}function resetExecutionState(){ULSw7Q:;IsMenuShown=false;itemTable=null;imageCell=null;onKeyPress=false;currentCtx=null;currentEditMenu=null;currentItemID=null;downArrowText=null;resetItemGlobals()}function resetItemGlobals(){ULSw7Q:;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(){ULSw7Q:;return browseris.ie55up||browseris.nav6up||browseris.safari125up}function GetSelectedElement(a,c,b){ULSw7Q:;while(a!=null&&a.tagName!=c&&(b==null||a.tagName!=b))a=a.parentNode;return a}function setupMenuContext(a){ULSw7Q:;currentCtx=a}function setupMenuContextName(strCtx){ULSw7Q:;try{eval("var ctx="+strCtx+";")}catch(e){eval("var ctx=g_ctxDict['"+strCtx+"'];")}setupMenuContext(ctx)}function FindSTSMenuTable(a,c){ULSw7Q:;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){ULSw7Q:;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){ULSw7Q:;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){ULSw7Q:;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){ULSw7Q:;var a=itemTableDeferred;if(a!=null){MenuHtc_hide();OnItem(a);if(IsAjaxMenu(a))CreateAjaxMenu(b);else CreateMenu(b);return false}}function EndDeferItem(){ULSw7Q:;var a=itemTableDeferred;if(a!=null){itemTableDeferred=null;var c=a.tagName=="TABLE";if(c){a.onmouseout=null;a.onclick=null;a.oncontextmenu=null}else{var b=a.parentNode;b.onmouseout=null;b.onclick=null;b.oncontextmenu=null}}}function GetLastChildElement(b){ULSw7Q:;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){ULSw7Q:;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"){for(var g=a.getElementsByTagName("SPAN"),i=g.length,e=0;e<i;e++)if(browseris.ie&&browseris.iever==6)g[e].style.lineHeight="1px";var f=a.getElementsByTagName("A")[0];f.onfocusout=h;var d=document.createElement("img");d.style.visibility="hidden";d.src="/_layouts/images/ecbarw.png";d.alt=L_OpenMenu_Text;f.appendChild(d)}ShowCtxImg(a,true,c);return a}function FindCtxImg(f){ULSw7Q:;for(var d=null,c=f.childNodes,e=c.length,b=0;b<e;b++){var a=c[b];if(a.nodeType==1&&a.className.indexOf("s4-ctx")!=-1){d=a;break}}return d}function RemoveCtxImg(b){ULSw7Q:;var a=FindCtxImg(b);a!=null&&ShowCtxImg(a,false,b)}function ShowCtxImg(a,e,d){ULSw7Q:;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(e==true){a.className+=" s4-ctx-show";PositionCtxImg(a,d,b);b.style.visibility="visible";a.shown=true;ChevronContainer=d}else{b.style.visibility="hidden";a.className="s4-ctx";a.shown=false;ChevronContainer=null}}function GetPosition(b){ULSw7Q:;if(b==null)return null;var c=0,d=0,h=0,g=0,j=null,f=null;f=b.offsetParent;var e=b,a=b;while(a.parentNode!=null){a=a.parentNode;if(a.offsetParent!=null){var i=true;if(a.scrollTop&&a.scrollTop>0)d-=a.scrollTop;if(a.scrollLeft&&a.scrollLeft>0)c-=a.scrollLeft}if(a==f){c+=b.offsetLeft;if(a.clientLeft&&a.nodeName!="TABLE")c+=a.clientLeft;d+=b.offsetTop;if(a.clientTop&&a.nodeName!="TABLE")d+=a.clientTop;b=a;if(b.offsetParent==null){if(b.offsetLeft)c+=b.offsetLeft;if(b.offsetTop)d+=b.offsetTop}f=b.offsetParent}}if(e.offsetWidth)h=e.offsetWidth;if(e.offsetHeight)g=e.offsetHeight;return {left:c,top:d,width:h,height:g}}function PositionCtxImg(c,b,h){ULSw7Q:;var i=GetPosition(b),g=GetPosition(c.offsetParent),e=i.top-g.top,d=i.left-g.left;e=e+b.clientTop;var a=c.style;a.top=e+"px";if(!IsElementRtl(b))d=d+b.offsetWidth-c.offsetWidth;a.left=d+"px";var f=b.clientHeight;if(browseris.ie&&document.compatMode=="BackCompat"&h!=null)f-=h.offsetHeight;a.height=f+"px";a.lineHeight=c.style.height;a.margin="0px"}function IsInCtxImg(a){ULSw7Q:;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){ULSw7Q:;if(!IsMenuEnabled())return false;if(IsMenuOn()){StartDeferItem(g);return false}if(itemTable==g)return;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+"menudark.gif";d.alt=downArrowText;d.style.visibility="visible";imageCell.className="ms-menuimagecell"}return false}function OutItem(b){ULSw7Q:;if(!IsMenuOn()&&itemTable!=null){var d=itemTable.tagName=="TABLE";if(d){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)}}if(d&&imageCell!=null){GetFirstChildElement(imageCell).style.visibility="hidden";imageCell.className=""}resetExecutionState()}}function IsContained(a,d){ULSw7Q:;if(a==d)return true;for(var c=d.getElementsByTagName(a.tagName),b=0;b<c.length;b++)if(a==c[b])return true;return false}function IsMenuOn(){ULSw7Q:;if(!IsMenuShown)return false;var a=false;a=MenuHtc_isOpen(currentEditMenu);if(!a)IsMenuShown=false;return a}function PopMenuFromChevron(b){ULSw7Q:;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];d!=null&&OnItemDeferCall(d)}else if(a.tagName=="TH"){var c=a.getElementsByTagName("DIV")[0];c!=null&&OnMouseOverFilterDeferCall(c)}return false}function PopMenu(a){ULSw7Q:;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(f,a,e){ULSw7Q:;if(a==null)return;IsMenuShown=true;document.body.onclick="";var c;c=BuildMenu(f);currentEditMenu=c;a.onmouseout=null;var b=a.tagName=="DIV"?a.parentNode:a,d=FindCtxImg(b);d!=null&&d.shown==false&&ShowCtxImg(d,true,b);OMenu(c,b,null,null,-1);if(itemTable!=null&&itemTable.tagName!="DIV")itemTable=GetSelectedElement(a,"TABLE","DIV");if(b.tagName=="TD")b.onclick=SingleItemSelect;c._onDestroy=OutItem;if(e!=null)e.cancelBubble=true;return false}function BuildMenuWithInit(a){ULSw7Q:;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){ULSw7Q:;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(a){ULSw7Q:;if(!IsContextSet())return;if(a==null)a=window.event;var c=a.srcElement?a.srcElement:a.target;if(itemTable==null||itemTable.tagName=="TABLE"&&imageCell==null||onKeyPress==false&&!IsInCtxImg(c)&&(c.tagName=="A"||c.parentNode.tagName=="A"))return;var b=itemTable,d=b.parentNode;if(d!=null&&d.getAttribute("creatingAjax")==1)return;b.parentNode.setAttribute("creatingAjax","1");var e=currentCtx,f=function(c,a){ULSw7Q:;b.parentNode.replaceChild(a,b);a.onclick=b.onclick;a.onmousehover=OnItem;OnItemDeferCall(a);CreateMenuEx(c,a,null);a.parentNode.removeAttribute("creatingAjax")};FetchEcbInfo(e,itemTable.id,itemTable.tagName,f);a.cancelBubble=true;return false}var nidEcbMenu=null;function FetchEcbInfo(b,f,h,g){ULSw7Q:;var a=[],d=escapeUrlForCallback(b.HttpRoot);a.push(d);d[d.length-1]!="/"&&a.push("/");a.push("_layouts/inplview.aspx?Cmd=Ctx&List=");a.push(b.listName);b.HasRelatedCascadeLists==1&&b.CascadeDeleteWarningMessage==null&&a.push("&CascDelWarnMessage=1");if(b.view!=null){a.push("&View=");a.push(b.view)}a.push("&ViewCount=");a.push(b.ctxId);if(typeof b.isXslView!="undefined"&&b.isXslView){a.push("&IsXslView=TRUE");a.push("&Field=");if(itemTable!=null)a.push(GetAttributeFromItemTable(itemTable,"Field","Field"));else a.push("LinkFilename")}a.push("&ID=");a.push(f);var e=GetUrlKeyValue("RootFolder",true,document.URL);if(e.length>0){a.push("&RootFolder=");a.push(e)}a.push("&ListViewPageUrl=");var j=new CUrl(document.URL);d=j.path;a.push(d);if(typeof b.overrideScope!="undefined"){a.push("&OverrideScope=");a.push(escapeProperlyCore(b.overrideScope))}var i=a.join("");if(nidEcbMenu==null)nidEcbMenu=addNotification(L_Loading_Text,true);var c;if(window.XMLHttpRequest)c=new XMLHttpRequest;else c=new ActiveXObject("Microsoft.XMLHTTP");c.open("GET",i,true);c.onreadystatechange=function(){ULSw7Q:;if(c.readyState!=4)return;if(c.status==601){if(nidEcbMenu!=null){removeNotification(nidEcbMenu);nidEcbMenu=null}alert(c.responseText)}else if(c.status==503){if(nidEcbMenu!=null){removeNotification(nidEcbMenu);nidEcbMenu=null}alert(L_ServerBusyError)}else{var a=c.responseText,j=document.createElement("DIV");j.style.visibility="hidden";if(b.HasRelatedCascadeLists==1&&b.CascadeDeleteWarningMessage==null){var l="<CascadeDeleteWarningMessage>",m="</CascadeDeleteWarningMessage>";if(a.startsWith(l)){var k=a.indexOf(m);if(k!==-1){b.CascadeDeleteWarningMessage=a.substring(l.length,k);a=a.substring(k+m.length)}}}j.innerHTML=a;for(var i=j.getElementsByTagName(h),d,e=0;e<i.length;e++){d=i[e];if(d.id==f)break}if(e==i.length)d=null;if(d!=null){g(b,d);if(nidEcbMenu!=null){removeNotification(nidEcbMenu);nidEcbMenu=null}}else{if(nidEcbMenu!=null){removeNotification(nidEcbMenu);nidEcbMenu=null}alert(L_ItemGone);RefreshPage(1)}}};c.send(null)}function CreateMenu(a){ULSw7Q:;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(w,a){ULSw7Q:;strDisplayText=L_Send_Text;var v=GetAttributeFromItemTable(itemTable,"Url","ServerUrl"),d,j,e;if(currentItemFileUrl!=null){j=unescapeProperly(currentItemFileUrl);d=escapeProperly(j);e=SzExtension(j);if(e!=null&&e!="")e=e.toLowerCase()}var h=itemTable.getAttribute("SRed"),p=itemTable.getAttribute("DefaultIO");if(p=="0"&&!HasRights(0,32))p="1";var m=currentItemProgId!="SharePoint.WebPartPage.Document"&&(h==null||h==""||HasRights(0,32))&&e!="aspx",n=HasRights(16,0),l=currentItemFSObjType!=1&&a.listBaseType==1&&(h==null||h==""||HasRights(0,32));if(!m&&!n&&!l)return;var c=CASubM(w,strDisplayText,"","",400);CUIInfo(c,"SendTo",["SendTo","PopulateSendToMenu"]);c.IsSubMenu=true;c.id="ID_Send";var b;if(m){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+"&FldUrl="+escapeProperly(a.SendToLocationUrl);strAction=AddSourceToUrl(strAction)+"')";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;strAction=AddSourceToUrl(strAction)+"')";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;strAction=AddSourceToUrl(strAction)+"')";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 k=a.OfficialFileNames.split("__HOSTSEPARATOR__");if(k!=null)for(var i=0;i<k.length;i++){var u=k[i],f=u.split(",");strDisplayText=f[0];var t=0,s="Copy";if(f.length==3){strDisplayText=f[0].replace(/%2c/g,",").replace(/%25/g,"%");t=f[1];s=f[2]}strAction='if(confirm("'+StBuildParam(SubmitFileConfirmation[s],STSScriptEncode(strDisplayText))+"\")!=0) SubmitFormPost('"+a.HttpRoot+"/_layouts/SendToOfficialFile.aspx?ID="+escapeProperly(strDisplayText)+"&Index="+t+"&SourceUrl="+d;strAction=AddSourceToUrl(strAction)+"')";strImagePath="";b=CAMOpt(c,strDisplayText,strAction,strImagePath);var o="SendToOfficialFile"+i;CUIInfo(b,o,[o])}}CAMSep(c)}if(n){strDisplayText=L_SendToEmail_Text;var v=GetAttributeFromItemTable(itemTable,"Url","ServerUrl"),g=a.HttpRoot.substr(0);if(g[g.length-1]!="/")g+="/";var q=-1,r="";q=g.substring(8).indexOf("/")+8;r=g.substr(0,q)+escapeProperlyCore(unescapeProperly(v),true);strAction="javascript:SendEmail('"+r+"')";strImagePath=a.imagesPath+"gmailnew.gif";b=CAMOpt(c,strDisplayText,strAction,strImagePath);CUIInfo(b,"EmailLink",["EmailLink"]);b.id="ID_SendToEmail"}if(l){a.listTemplate!=109&&a.listTemplate!=119&&AddWorkspaceMenuItem(c,a);if(a.listTemplate!=119){strAction="STSNavigate('"+a.HttpRoot+"/_layouts/download.aspx?SourceUrl="+d+"&FldUrl="+escapeProperly(a.SendToLocationUrl);strAction=AddSourceToUrl(strAction)+"')";b=CAMOpt(c,L_DownloadACopy_Text,strAction,"");CUIInfo(b,"DownloadCopy",["DownloadCopy"]);b.id="ID_DownloadACopy"}}}function AddDocTransformSubMenu(l,h){ULSw7Q:;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)for(var j=c.substring(g+1,c.length).toLowerCase(),e=false,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;strAction=AddSourceToUrl(strAction)+"')";var i;i=CAMOpt(b,rgDocTransformers[a].Name,strAction,"");i.Id="ID_Transform"+rgDocTransformers[a].Id}}}function AddMeetingMenuItems(d,b){ULSw7Q:;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){ULSw7Q:;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 g=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)g=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"));strAction=AddSourceToUrl(strAction)+"')"}strImagePath=a.imagesPath+"reply.gif";b=CAMOpt(c,strDisplayText,strAction,strImagePath,null,100);b.id="ID_Reply"}AddSharedNamespaceMenuItems(c,a);var f=itemTable.getAttribute("CId");if(f!=null&&f.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);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="+g;strAction=AddSourceToUrl(strAction)+"')";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);var e=typeof _spPageContextInfo!="undefined"&&_spPageContextInfo!=null&&_spPageContextInfo.alertsEnabled;if(currentItemID.indexOf(".0.")<0&&HasRights(128,0)&&!a.ExternalDataList&&e){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"])}(e||a.WorkflowsAssociated&&HasRights(0,4))&&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,1180);CUIInfo(b,"Delete",["Delete"]);b.id="ID_DeleteItem";CUIInfo(b,"Delete",["Delete"])}var h=currentItemProgId!=null&&currentItemProgId!="";if(currentItemFSObjType==1&&!h&&a.ContentTypesEnabled&&a.listTemplate!=108){strDisplayText=L_CustomizeNewButton_Text;strAction="STSNavigate('"+a.HttpRoot+"/_layouts/ChangeContentTypeOrder.aspx?List="+a.listName+"&RootFolder="+d;strAction=AddSourceToUrl(strAction)+"')";strImagePath="";b=CAMOpt(c,strDisplayText,strAction,strImagePath,null,1170);CUIInfo(b,"ChangeNewButton",["ChangeNewButton"]);b.id="ID_CustomizeNewButton"}}function ReplaceUrlTokens(c,d){ULSw7Q:;if(c==null||c==undefined||c==""){c="";return c}if(currentItemID!=null)c=c.replace(/{ItemId}/g,currentItemID);var a=null,b=null,f=c.indexOf("?");if(-1!=f&&f+2<c.length){a=c.substr(f+1);b=c.substr(0,f+1)}else b=c;if(currentItemFileUrl!=null){if(null!=a){var e=escapeProperly(unescapeProperly(currentItemFileUrl));a=a.replace(/{ItemUrl}/g,e)}b=b.replace(/{ItemUrl}/g,currentItemFileUrl)}if(d.HttpRoot!=null){if(null!=a){var e=escapeProperly(unescapeProperly(d.HttpRoot));a=a.replace(/{SiteUrl}/g,e)}b=b.replace(/{SiteUrl}/g,d.HttpRoot)}if(d.listName!=null){if(null!=a){var e=escapeProperly(d.listName);a=a.replace(/{ListId}/g,e)}b=b.replace(/{ListId}/g,d.listName)}if(d.listUrlDir!=null){if(null!=a){var e=escapeProperly(unescapeProperly(d.listUrlDir));a=a.replace(/{ListUrlDir}/g,e)}b=b.replace(/{ListUrlDir}/g,d.listUrlDir)}var g=GetSource();b=b.replace(/{Source}/g,g);if(a!=null)if(b.length+a.length+g.length>1950)a=a.replace(/{Source}/g,"");else a=a.replace(/{Source}/g,g);if(null==a)return b;else return b+a}var SYSTEM_ACCOUNT_ID=1073741823;function InsertFeatureMenuItems(r,c){ULSw7Q:;CAMSep(r);var f=GetAttributeFromItemTable(itemTable,"Ext","FileType"),i=GetAttributeFromItemTable(itemTable,"Type","HTMLType"),e=GetAttributeFromItemTable(itemTable,"CId","ContentTypeId"),j=null,g=null,o="ECBItems";if(c!=null){j=c.listTemplate;if(null!=c.listName&&0<c.listName.length){g=c.listName.toLowerCase();o=o+"_"+g}}if(f)f=f.toLowerCase();if(i)i=i.toLowerCase();if(e)e=e.toLowerCase();var x,k=document.getElementById(o);if(k!=null)for(var l=0;l<k.childNodes.length;l++){var a=k.childNodes[l],p=parseInt(GetInnerText(a.childNodes[3])),q=parseInt(GetInnerText(a.childNodes[4])),h=GetInnerText(a.childNodes[5]),b=GetInnerText(a.childNodes[6]),d=false;if(b){b=b.toLowerCase();if(h=="FileType")d=f==b.toLowerCase();else if(h=="ProgId")d=i==b.toLowerCase();else if(h=="ContentType")d=e&&e.indexOf(b.toLowerCase())==0;else if(h=="List")if(null!=j&&j==b)d=true;else if(null!=g&&g==b)d=true}if(d&&HasRights(p,q)&&!IsTrimmedBySystem(p,q)){var w=a.childNodes[0],s=a.childNodes[1],u=a.childNodes[2],y=parseInt(GetInnerText(a.childNodes[7])),t=GetInnerText(w),n=ReplaceUrlTokens(GetInnerText(u),c),m;if(n.substr(0,11)=="javascript:")m=n;else m="STSNavigate('"+STSScriptEncode(n)+"')";var v=ReplaceUrlTokens(GetInnerText(s),c);x=CIMOpt(r,t,m,v,null,y)}}}function GetRootFolder2(c){ULSw7Q:;var b=GetUrlKeyValue("RootFolder",false);if(c.clvp!=null&&c.clvp.rootFolder!=null)b=c.clvp.rootFolder;if(b==""||bValidSearchTerm){var a;if(itemTable)a=GetAttributeFromItemTable(itemTable,"DRef","FileDirRef");if(a!=null&&a!="")if(a.substring(0,1)=="/")b=a;else b="/"+a;else b=c.listUrlDir}return b}function GetRootFolder(b){ULSw7Q:;var a=GetRootFolder2(b);return "&RootFolder="+escapeProperly(a)}function HasRights(a,b){ULSw7Q:;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){ULSw7Q:;return a==b&&c==d}function CheckIfHasRights(a,b,c,d){ULSw7Q:;return (b&d)==b&&(a&c)==a}function IsTrimmedBySystem(b,c){ULSw7Q:;var a=false;if(CheckIfHasRights(0,4,b,c)&&itemTable!=null){if(currentItemCheckedOutUserId==null)currentItemCheckedOutUserId=itemTable.getAttribute("COUId");a=currentItemCheckedOutUserId==SYSTEM_ACCOUNT_ID&&ctx.CurrentUserId!=SYSTEM_ACCOUNT_ID}return a}function SetCurrentPermMaskFromString(b,c){ULSw7Q:;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}function AddSharedNamespaceMenuItems(f,a){ULSw7Q:;var g=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 i=currentItemCheckedOutUserId==SYSTEM_ACCOUNT_ID&&a.CurrentUserId!=SYSTEM_ACCOUNT_ID;bIsCheckout=0;if(a.isForceCheckout==true&&currentItemCheckedOutUserId==""&&currentItemFSObjType!=1)bIsCheckout=1;var h;if(currentItemFileUrl!=null)h=escapeProperly(unescapeProperly(currentItemFileUrl));var b;if(a.listBaseType==1)strDisplayText=L_ViewProperties_Text;else if(a.listBaseType==4)strDisplayText=L_ViewResponse_Text;else strDisplayText=L_ViewItem_Text;var d="";if(currentItemContentTypeId!=null&&currentItemContentTypeId!="")d="&ContentTypeID="+currentItemContentTypeId;var c="&";if(a.displayFormUrl.indexOf("?")==-1)c="?";var e=a.displayFormUrl+c+"ID="+currentItemID+d;e=AddSourceToUrl(e)+g;if(301==a.listTemplate)strAction="EditItem('"+e+"')";else strAction="EditItem2(event, '"+e+"')";strImagePath="";b=CAMOpt(f,strDisplayText,strAction,strImagePath,null,200);CUIInfo(b,"ViewProperties",["ViewProperties"]);if(a.listBaseType==1)b.id="ID_ViewProperties";else b.id="ID_ViewItem";if(HasRights(0,4)&&!i&&!currentItemIsEventsDeletedExcp){if(a.listBaseType==1)strDisplayText=L_EditProperties_Text;else if(a.listBaseType==4)strDisplayText=L_EditResponse_Text;else strDisplayText=L_EditItem_Text;c="&";if(a.editFormUrl.indexOf("?")==-1)c="?";if(a.listBaseType==1){strAction="EditItemWithCheckoutAlert(event, '"+a.editFormUrl+c+"ID="+currentItemID+d;strAction=AddSourceToUrl(strAction)+g+"',"+bIsCheckout+",'"+currentItemCheckedoutToLocal+"','"+STSScriptEncode(currentItemFileUrl)+"','"+a.HttpRoot+"')"}else if(FV4UI())strAction="EditItem2(event, '"+a.editFormUrl+c+"ID="+currentItemID+d+"')";else{strAction="EditItem('"+a.editFormUrl+c+"ID="+currentItemID+d;strAction=AddSourceToUrl(strAction)+"')"}strImagePath=a.imagesPath+"edititem.gif";b=CAMOpt(f,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 k=currentItemID.indexOf(".0."),j=currentItemID.substr(0,k);strDisplayText=L_EditSeriesItem_Text;strAction="EditItem2(event, '"+a.editFormUrl+c+"ID="+j+d;strAction=AddSourceToUrl(strAction)+"')";strImagePath=a.imagesPath+"recurrence.gif";b=CAMOpt(f,strDisplayText,strAction,strImagePath,null,230);CUIInfo(b,"EditSeriesItem",["EditSeriesItem"]);b.id="ID_EditSeriesItem"}}}function AddSolutionsCatalogMenuItems(a,h){ULSw7Q:;if(HasRights(0,4))if(currentItemFSObjType!=1){var b=true,c=GetAttributeFromItemTable(itemTable,"Url",null);if(c.length>4){var i=c.substr(c.length-4).toLowerCase();if(i==".wsp"){var d=GetAttributeFromItemTable(itemTable,"SolutionHash",null),g=GetAttributeFromItemTable(itemTable,"Hash",null),f=GetAttributeFromItemTable(itemTable,"SolutionItemID",null),e=GetAttributeFromItemTable(itemTable,"Status",null),j=GetAttributeFromItemTable(itemTable,"id",null);if(d!="")if(e=="")AddSolutionMenuActivate(a);else if(d==g){if(j==f)if(e=="1"){b=false;AddSolutionMenuDeactivate(a)}else AddSolutionMenuActivate(a)}else AddSolutionMenuUpgrade(a);else b=false}}b&&AddSolutionMenuDelete(a,h)}}function AddSolutionMenuHelper(i,d,f,e,g,b,c){ULSw7Q:;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){ULSw7Q:;window.SPUserCanManageSolutions==true&&AddSolutionMenuHelper(a,L_ActivateSolution_Text,"ACT","",1210,"ActivateSolution","ID_ActivateSolution")}function AddSolutionMenuDeactivate(a){ULSw7Q:;window.SPUserCanManageSolutions==true&&AddSolutionMenuHelper(a,L_DeactivateSolution_Text,"DEA","",1220,"DeactivateSolution","ID_DeactivateSolution")}function AddSolutionMenuUpgrade(a){ULSw7Q:;window.SPUserCanManageSolutions==true&&AddSolutionMenuHelper(a,L_UpgradeSolution_Text,"UPG","",1230,"UpgradeSolution","ID_UpgradeSolution")}function AddSolutionMenuDelete(e,b){ULSw7Q:;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){ULSw7Q:;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(){ULSw7Q:;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(){ULSw7Q:;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){ULSw7Q:;if(typeof Custom_AddDocLibMenuItems!="undefined")if(Custom_AddDocLibMenuItems(c,a))return;var i=GetRootFolder(a),b;AddSharedNamespaceMenuItems(c,a);CAMSep(c);var d;if(currentItemFileUrl!=null)d=escapeProperly(unescapeProperly(currentItemFileUrl));var e=itemTable.getAttribute("SRed"),f=currentItemCheckedOutUserId==SYSTEM_ACCOUNT_ID&&a.CurrentUserId!=SYSTEM_ACCOUNT_ID;if(HasRights(0,4)&&HasRights(16,0)&&!f&&(e==null||e==""||HasRights(0,32)))if(a.isWebEditorPreview==0&&a.listBaseType==1)if(a.listTemplate==109&&itemTable.getAttribute("IsImage")=="1"){if(currentItemFSObjType!=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 if(a.listTemplate!=119){setDocType();if(currentItemAppName!=""&&currentItemOpenControl!=""){strDisplayText="";if(currentItemAppName!=" ")strDisplayText=StBuildParam(L_EditIn_Text,currentItemAppName);else{var h=StsOpenEnsureEx2(currentItemOpenControl+".3");if(h!=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)a.listBaseType==1&&AddCheckinCheckoutMenuItem(c,a,d);(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;strAction=AddSourceToUrl(strAction)+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,1e3);CUIInfo(b,"AddToMyLinks",["AddToMyLinks"]);b.id="ID_AddToMyLinks"}}else a.listBaseType==1&&HasRights(16,0)&&AddWorkOfflineMenuItem(c,a,currentItemFileUrl);if(HasRights(128,0)&&typeof _spPageContextInfo!="undefined"&&_spPageContextInfo!=null&&_spPageContextInfo.alertsEnabled){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)&&!f){strDisplayText=L_DeleteDocItem_Text;var g="false";if(typeof itemTable.getAttribute("CSrc")!="undefined"&&itemTable.getAttribute("CSrc")!=null&&itemTable.getAttribute("CSrc")!="")g="true";strAction="DeleteDocLibItem('"+a.HttpPath+"&Cmd=Delete&List="+a.listName+"&ID="+currentItemID+"&owsfileref="+d+"&NextUsing="+GetSource()+"',"+g+")";strImagePath=a.imagesPath+"delitem.gif";b=CAMOpt(c,strDisplayText,strAction,strImagePath,null,1190);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;strAction=AddSourceToUrl(strAction)+"')";strImagePath="";b=CAMOpt(c,strDisplayText,strAction,strImagePath,null,1170);CUIInfo(b,"ChangeNewButton",["ChangeNewButton"]);b.id="ID_CustomizeNewButton"}}function AddManagePermsMenuItem(e,a,c,d){ULSw7Q:;if(!HasRights(1073741824,0)||currentItemIsEventsExcp||a.ExternalDataList||currentItemEvtType==5)return;strDisplayText=L_MngPerms_Text;strAction="NavigateToManagePermsPage('"+a.HttpRoot+"', '"+c+"','"+d+"')";strImagePath=a.imagesPath+"permissions16.png";var b=CAMOpt(e,strDisplayText,strAction,strImagePath,null,1160);b.id="ID_MngPerms";CUIInfo(b,"ManagePermissions",["ManagePermissions"])}function AddGotoSourceItemMenuItem(e,d,a,c){ULSw7Q:;if(c!=1&&typeof a.getAttribute("CSrc")!="undefined"&&a.getAttribute("CSrc")!=null&&a.getAttribute("CSrc")!=""){strDisplayText=L_GoToSourceItem_Text;strAction="NavigateToSourceItem(event, '"+STSScriptEncode(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){ULSw7Q:;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(){ULSw7Q:;inplview.CheckOutSingleItem(b,c)};EnsureScript(d[0],a,e)}}}function AddCheckinCheckoutMenuItem(d,a,c){ULSw7Q:;var b;if(!HasRights(0,4))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()||a.listTemplate==109)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="UnDoCheckOutwithNotification('"+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 if(typeof g_disableCheckoutInEditMode=="undefined"||!g_disableCheckoutInEditMode){strDisplayText=L_Checkout_Text;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()||a.listTemplate==109)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){ULSw7Q:;if(a.WorkflowsAssociated&&HasRights(0,4)){var f=GetAttributeFromItemTable(itemTable,"CId","ContentTypeId");if(f==null||f.substr(0,8)!="0x010801"){var g=a.imagesPath+"workflows.gif",c,d=(""+currentItemID).indexOf(".0.");if(d>0)c=currentItemID.substr(0,d);else c=currentItemID;var b="STSNavigate('"+a.HttpRoot+"/_layouts/Workflow.aspx?ID="+c+"&List="+a.listName;b=AddSourceToUrl(b)+"')";var e=CAMOpt(h,L_Workflows_Text,b,g,null,900);CUIInfo(e,"ViewWorkflows",["ViewWorkflows"]);e.id="ID_Workflows"}}}function AddWorkspaceMenuItem(d,b){ULSw7Q:;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){ULSw7Q:;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(e,a,d){ULSw7Q:;var b=GetStssyncData("documents",L_WorkOffline_Text,a.imagesPath+"tbsprsht.gif",a.imagesPath);if(b){strDisplayText=b.BtnText;strImagePath=b.BtnImagePath;if(strDisplayText){var c="";if(a.SiteTitle!=null)c=STSScriptEncode(a.SiteTitle);strAction="javascript:ExportHailStorm('documents','"+a.HttpRoot+"','"+STSScriptEncode(a.listName)+"','"+STSScriptEncode(c)+"','"+STSScriptEncode(a.ListTitle)+"','"+STSScriptEncode(a.listUrlDir)+"','','"+STSScriptEncode(unescapeProperly(a.listUrlDir))+"'";strAction+=",'"+STSScriptEncode(unescapeProperly(d))+"','"+currentItemID+"')";menuOption=CAMOpt(e,strDisplayText,strAction,strImagePath);CUIInfo(menuOption,"ConnectFolderToClient",["ConnectFolderToClient"]);menuOption.id="ID_WorkOffline"}}}function AddVersionMenuItems(b,a){ULSw7Q:;typeof AddVersionMenuItemsCore=="function"&&AddVersionMenuItemsCore(b,a)}function NavigateToApproveRejectAspx(b,a){ULSw7Q:;if(FV4UI())ShowInPopUI(b,currentCtx,a);else STSNavigate(a)}function PublishMajorVersion(d,b,c){ULSw7Q:;var a=b+"/_layouts/Checkin.aspx?"+c;a=AddSourceToUrl(a);if(FV4UI())ShowInPopUI(d,currentCtx,a);else SubmitFormPost(a)}function _NavigateToSubNewAspx(b,c){ULSw7Q:;var a=b+"/_layouts/SubNew.aspx?"+c;a=AddSourceToUrl(a);STSNavigate(a)}function NavigateToSubNewAspxV4(d,b,c){ULSw7Q:;var a=b+"/_layouts/SubNew.aspx?"+c;a=AddSourceToUrl(a);if(FV4UI())ShowInPopUI(d,currentCtx,a);else STSNavigate(a)}function NavigateToVersionsAspx(b,c){ULSw7Q:;var a=b+"/_layouts/Versions.aspx?"+c;a=AddSourceToUrl(a);STSNavigate(a)}function NavigateToVersionsAspxV4(d,b,c){ULSw7Q:;var a=b+"/_layouts/Versions.aspx?"+c;a=AddSourceToUrl(a);if(FV4UI())ShowInPopUI(d,currentCtx,a);else STSNavigate(a)}function NavigateToSendToOtherLocationV4(b,a){ULSw7Q:;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 UnDoCheckOutwithNotification(a,c){ULSw7Q:;var b=UnDoCheckOut(a,c);if(b){var d=L_Notification_DiscardCheckOut;addNotification(d,true)}}function UnDoCheckOut(f,c){ULSw7Q:;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();return d}if(IsSupportedMacBrowser()||IsSupportedFirefoxOnWin()){if(!confirm(L_UndoCheckoutWarning_Text))return false}else return d}else if(!confirm(L_UndoCheckoutWarning_Text))return false}catch(g){}NavigateToCheckinAspx(f,"FileName="+c+"&DiscardCheckout=true");return true}function UnPublish(c,d,b){ULSw7Q:;var a=L_UnPublishWarning_Text;if(b)a=L_CancleApproval_TEXT;if(!confirm(a))return;NavigateToCheckinAspx(c,d)}function NavigateToCheckinAspx(b,c){ULSw7Q:;var a=b+"/_layouts/Checkin.aspx?"+c;a=AddSourceToUrl(a);SubmitFormPost(a)}function CheckInSingleItemFromECB_Stub(c,b,d){ULSw7Q:;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(){ULSw7Q:;inplview.CheckInSingleItemFromECB(c,b,d)};EnsureScript(e[0],a,f)}}}function _NavigateToManagePermsPage(a,c,b){ULSw7Q:;NavigateToManagePermsPageEx(a,c,b,false)}function NavigateToManagePermsPageEx(c,b,d,f){ULSw7Q:;var e=",LISTITEM",a=c+"/_layouts/User.aspx?obj="+b+","+d+e+"&List="+b;a=AddSourceToUrl(a);if(f)window.frameElement.navigateParent(a);else STSNavigate(a)}function NavigateToSourceItem(e,a){ULSw7Q:;var d=a.match(/[^\/]*\/\/[^\/]*/g),c=d[0];a=escapeProperly(a);var b=c+"/_layouts/copyutil.aspx?GoToDispForm=1&Use=url&ItemUrl="+a;b=AddSourceToUrl(b);STSNavigate(b)}function setDocType(){ULSw7Q:;var a=GetAttributeFromItemTable(itemTable,"Icon","DocIcon");a=a?a.split("|"):[];currentItemIcon=a[0];currentItemAppName=a[1];currentItemOpenControl=a[2];currentItemProgId=GetAttributeFromItemTable(itemTable,"Type","HTMLType")}function DeleteListItem(){ULSw7Q:;if(!IsContextSet())return;var b=currentCtx,e=currentItemID,g=currentItemFSObjType,c=L_STSRecycleConfirm_Text;if(!b.RecycleBinEnabled||b.ExternalDataList)c=L_STSDelConfirm_Text;if(b.HasRelatedCascadeLists&&b.CascadeDeleteWarningMessage!=null)c=b.CascadeDeleteWarningMessage+c;if(confirm(c)){var h=L_Notification_Delete,f=addNotification(h,true),a=b.clvp;if(b.ExternalDataList&&a!=null){a.DeleteItemCore(e,g,false);a.pendingItems=[];a.cctx.executeQueryAsync(function(){ULSw7Q:;if(typeof a.rgehs!="undefined"){if(a.rgehs.length==1&&a.rgehs[0].get_serverErrorCode()==SP.ClientErrorCodes.redirect){GoToPage(a.rgehs[0].get_serverErrorValue());return}removeNotification(f);a.ShowErrorDialog(RefreshOnDialogClose)}else RefreshPage(SP.UI.DialogResult.OK)},function(){ULSw7Q:;removeNotification(f);typeof a.rgehs!="undefined"&&a.ShowErrorDialog()})}else{var d=b.HttpPath+"&Cmd=Delete&List="+b.listName+"&ID="+e+"&NextUsing="+GetSource();if(null!=currentItemContentTypeId)d+="&ContentTypeId="+currentItemContentTypeId;SubmitFormPost(d)}}}function DeleteDocLibItem(d,e){ULSw7Q:;if(!IsContextSet())return;var b=currentCtx,h=currentItemID,g=currentItemFSObjType,a,c=false;if(currentItemFSObjType==1){if(currentItemContentTypeId!=null){d+="&ContentTypeId="+currentItemContentTypeId;if(currentItemContentTypeId.substr(0,8).toLowerCase()=="0x0120d5")c=true}if(c)a=b.RecycleBinEnabled?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)){var f=L_Notification_Delete;addNotification(f,true);SubmitFormPost(d,false,true)}}function EditMenuDefaultForOnclick(){ULSw7Q:;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(){ULSw7Q:;if(event.srcElement.tagName=="A"||event.srcElement.parentNode.tagName=="A")return;if(!IsContextSet())return;var b=currentCtx,c="&";if(b.editFormUrl.indexOf("?")==-1)c="?";var a=b.editFormUrl+c+"ID="+currentItemID;a=AddSourceToUrl(a);if(b.listBaseType==1)a=a+GetRootFolder(b);STSNavigate2(event,a)}function _DoNavigateToTemplateGallery(a,b){ULSw7Q:;document.cookie="MSOffice_AWS_DefSaveLoc="+a;STSNavigate(b)}function Portal_Tasks(j){ULSw7Q:;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(){ULSw7Q:;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){ULSw7Q:;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)}var IMNControlObj=null,bIMNControlInited=false,IMNDictionaryObj=null,bIMNSorted=false,bIMNOnloadAttached=false,IMNOrigScrollFunc=null,bIMNInScrollFunc=false,IMNSortableObj=null,IMNHeaderObj=null,IMNNameDictionaryObj=null,IMNShowOfflineObj=null;function GetCurrentEvent(a){ULSw7Q:;if(!IsSupportedMacBrowser())return window.event;if(a)return a;return window.event}function GetEventTarget(a){ULSw7Q:;if(!IsSupportedMacBrowser())return a.srcElement;if(a.srcElement)return a.srcElement;return a.target}function EnsureIMNControl(){ULSw7Q:;if(!bIMNControlInited){if(typeof g_presenceEnabled!="undefined"&&g_presenceEnabled)if(IsSupportedMacBrowser())IMNControlObj=CreateMacPlugin();else if(browseris.ie5up)if(window.ActiveXObject)try{IMNControlObj=new ActiveXObject("Name.NameCtrl.1");if(IMNControlObj)if(IsSupportedMacBrowser())IMNControlObj.OnStatusChange="IMNOnStatusChange";else IMNControlObj.OnStatusChange=IMNOnStatusChange}catch(a){IMNControlObj=null}bIMNControlInited=true}return IMNControlObj}function IMNImageInfo(){ULSw7Q:;this.img=null;this.alt=""}var L_IMNOnline_Text="Available",L_IMNOffline_Text="Offline",L_IMNAway_Text="Away",L_IMNBusy_Text="Busy",L_IMNDoNotDisturb_Text="Do not disturb",L_IMNIdle_Text="May be away",L_IMNBlocked_Text="Blocked",L_IMNOnline_OOF_Text="Available (OOF)",L_IMNOffline_OOF_Text="Offline (OOF)",L_IMNAway_OOF_Text="Away (OOF)",L_IMNBusy_OOF_Text="Busy (OOF)",L_IMNDoNotDisturb_OOF_Text="Do not disturb (OOF)",L_IMNIdle_OOF_Text="May be away (OOF)";function IMNGetStatusImage(e,d){ULSw7Q:;var b="blank.gif",a="";switch(e){case 0:b="imnon.png";a=L_IMNOnline_Text;break;case 11:b="imnonoof.png";a=L_IMNOnline_OOF_Text;break;case 1:if(d){b="imnoff.png";a=L_IMNOffline_Text}else{b="blank.gif";a=""}break;case 12:if(d){b="imnoffoof.png";a=L_IMNOffline_OOF_Text}else{b="blank.gif";a=""}break;case 2:b="imnaway.png";a=L_IMNAway_Text;break;case 13:b="imnawayoof.png";a=L_IMNAway_OOF_Text;break;case 3:b="imnbusy.png";a=L_IMNBusy_Text;break;case 14:b="imnbusyoof.png";a=L_IMNBusy_OOF_Text;break;case 4:b="imnaway.png";a=L_IMNAway_Text;break;case 5:b="imnbusy.png";a=L_IMNBusy_Text;break;case 6:b="imnaway.png";a=L_IMNAway_Text;break;case 7:b="imnbusy.png";a=L_IMNBusy_Text;break;case 8:b="imnaway.png";a=L_IMNAway_Text;break;case 9:b="imndnd.png";a=L_IMNDoNotDisturb_Text;break;case 15:b="imndndoof.png";a=L_IMNDoNotDisturb_OOF_Text;break;case 10:b="imnbusy.png";a=L_IMNBusy_Text;break;case 16:b="imnidle.png";a=L_IMNIdle_Text;break;case 17:b="imnidleoof.png";a=L_IMNIdle_OOF_Text;break;case 18:b="imnblocked.png";a=L_IMNBlocked_Text;break;case 19:b="imnidlebusy.png";a=L_IMNBusy_Text;break;case 20:b="imnidlebusyoof.png";a=L_IMNBusy_OOF_Text}var c=new IMNImageInfo;c.img=b;c.alt=a;return c}function IMNGetHeaderImage(){ULSw7Q:;var a=new IMNImageInfo;a.img="imnhdr.gif";a.alt="";return a}function IMNIsOnlineState(a){ULSw7Q:;if(a==1)return false;return true}function IMNSortList(e,c,d){ULSw7Q:;var a=null,b=null;if(IMNSortableObj&&IMNSortableObj[e]){b=document.getElementById(e);while(b&&!(b.tagName=="TR"&&typeof b.Sortable!="undefined"))b=b.parentNode;a=b;while(a&&a.tagName!="TABLE")a=a.parentNode;if(a!=null&&b!=null){if(a.rows[1].style.display=="none")for(i=1;i<4;i++)a.rows[i].style.display="block";if(!IMNIsOnlineState(c)&&IMNIsOnlineState(d)){a.rows[2].style.display="none";i=3;while(a.rows[i].id!="Offline"&&a.rows[i].innerText<b.innerText)i++;a.moveRow(b.rowIndex,i);if(a.rows[a.rows.length-3].id=="Offline")a.rows[a.rows.length-2].style.display="block"}else if(IMNIsOnlineState(c)&&!IMNIsOnlineState(d)){if(b.rowIndex==3&&a.rows[b.rowIndex+1].id=="Offline")a.rows[2].style.display="block";if(a.rows[a.rows.length-3].id=="Offline")a.rows[a.rows.length-2].style.display="none";i=a.rows.length-2;while(a.rows[i-1].id!="Offline"&&a.rows[i].innerText>b.innerText)i--;a.moveRow(b.rowIndex,i)}}}}function IMNOnStatusChange(d,b,a){ULSw7Q:;if(IMNDictionaryObj){var c=IMNGetStatusImage(b,IMNSortableObj[a]||IMNShowOfflineObj[a]);if(IMNDictionaryObj[a]!=b){bIMNSorted&&IMNSortList(a,IMNDictionaryObj[a],b);IMNUpdateImage(a,c);IMNDictionaryObj[a]=b}}}function IMNUpdateImage(j,d){ULSw7Q:;var a=document.images[j];if(a){var e=d.img,i=d.alt,c=a.src;if(typeof a.src=="undefined")c=a.item(0).src;var g=c.lastIndexOf("/"),b=c.slice(0,g+1);b+=e;if(c==b&&e!="blank.gif")return;if(a.altbase)a.alt=a.altbase;else a.alt=i;var f=browseris.ie&&browseris.ie55up&&browseris.verIEFull<7,h=b.toLowerCase().indexOf(".png")>0;if(f)if(h){a.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+b+"),sizingMethod=scale,enabled=true);";a.src="/_layouts/images/blank.gif"}else{a.style.filter="";a.src=b}else a.src=b}}function IMNHandleAccelerator(b){ULSw7Q:;if(IMNControlObj){var a=GetCurrentEvent(b);a.altKey&&a.shiftKey&&a.keyCode==121&&IMNControlObj.DoAccelerator()}}function IMNImageOnClick(a){ULSw7Q:;if(IMNControlObj){IMNShowOOUIKyb(a);IMNControlObj.DoAccelerator()}}function IMNGetOOUILocation(i){ULSw7Q:;var e={},a=i,d=i,g=0,h=0,n=0,o=document.dir=="rtl";while(a&&a.tagName!="SPAN"&&a.tagName!="TABLE"){if(a.tagName=="TD"&&a.className.indexOf("ms-vb")>=0)break;a=a.parentNode}if(a){var b=a.tagName=="TABLE"?a.rows(0).cells(0).firstChild:a.firstChild;while(b!=null){if(b.tagName=="IMG"&&b.id){d=b;break}if(b.tagName=="A"&&b.childNodes.length>0&&b.firstChild.tagName=="IMG"&&b.firstChild.id){d=b.firstChild;break}b=b.nextSibling}}i=d;h=d.getBoundingClientRect().top-5;g=d.getBoundingClientRect().left-5;try{var c=window;while(c&&c!=c.parent){var j=c.frameElement,f=j?j.getBoundingClientRect():null,l=f?f.top:0,k=f?f.left:0;h+=l;g+=k;c=c.parent}}catch(m){}e.objSpan=a;e.objOOUI=d;e.oouiX=g;e.oouiY=h;return e}function IMNShowOOUIMouse(a){ULSw7Q:;IMNShowOOUI(a,0)}function IMNShowOOUIKyb(a){ULSw7Q:;IMNShowOOUI(a,1)}function IMNShowOOUI(i,h){ULSw7Q:;if(browseris.ie5up||IsSupportedMacBrowser()){var g=GetCurrentEvent(i),c=GetEventTarget(g),b=c,d=c,e=0,f=0;if(EnsureIMNControl()&&IMNNameDictionaryObj){var a=IMNGetOOUILocation(c);b=a.objSpan;d=a.objOOUI;e=a.oouiX;f=a.oouiY;var j=IMNNameDictionaryObj[d.id];if(b)b.onkeydown=IMNHandleAccelerator;IMNControlObj.ShowOOUI(j,h,e,f)}}}function IMNHideOOUI(){ULSw7Q:;if(IMNControlObj){IMNControlObj.HideOOUI();return false}return true}function IMNScroll(){ULSw7Q:;if(!bIMNInScrollFunc){bIMNInScrollFunc=true;IMNHideOOUI()}bIMNInScrollFunc=false;if(IMNOrigScrollFunc==IMNScroll)return true;return IMNOrigScrollFunc?IMNOrigScrollFunc():true}var imnCount=0,imnElems,imnElemsCount=0,imnMarkerBatchSize=4,imnMarkerBatchDelay=40;function ProcessImn(){ULSw7Q:;imnCount=0;imnElems=document.getElementsByName("imnmark");imnElemsCount=imnElems.length;if(EnsureIMNControl()&&IMNControlObj.PresenceEnabled)ProcessImnMarkers();else RemoveImnAnchors()}function RemoveImnAnchors(){ULSw7Q:;for(var d=0;d<imnElemsCount;d++){var c=imnElems[d],a=c.parentNode,e=a.nextSibling,b=a.parentNode;if(a!=null&&a.tagName=="A"&&a.childNodes.length==1&&b!=null){if(e!=null)b.insertBefore(c,e);else b.appendChild(c);b.removeChild(a)}}}function ProcessImnMarkers(){ULSw7Q:;for(var a=0;a<imnMarkerBatchSize;++a){if(imnCount==imnElemsCount)return;if(IsSupportedMacBrowser())IMNRC(imnElems[imnCount].getAttribute("sip"),imnElems[imnCount]);else IMNRC(imnElems[imnCount].sip,imnElems[imnCount]);imnCount++}setTimeout("ProcessImnMarkers()",imnMarkerBatchDelay)}function IMNRC(e,g){ULSw7Q:;if(e==null||e=="")return;if(typeof g_presenceEnabled=="undefined"||!g_presenceEnabled)return;if(browseris.ie5up||IsSupportedMacBrowser()){var b=g?g:window.event.srcElement,c=b,a=b.id;if(!IMNDictionaryObj){IMNDictionaryObj={};IMNNameDictionaryObj={};IMNSortableObj={};IMNShowOfflineObj={};if(!IMNOrigScrollFunc){IMNOrigScrollFunc=window.onscroll;window.onscroll=IMNScroll}}if(IMNDictionaryObj){if(!IMNNameDictionaryObj[a])IMNNameDictionaryObj[a]=e;if(typeof IMNDictionaryObj[a]=="undefined")IMNDictionaryObj[a]=1;if(!IMNSortableObj[a]&&typeof b.Sortable!="undefined"){IMNSortableObj[a]=b.Sortable;if(!bIMNOnloadAttached){EnsureIMNControl()&&IMNControlObj.PresenceEnabled&&AttachEvent("load",IMNSortTable,window);bIMNOnloadAttached=true}}if(!IMNShowOfflineObj[a]&&typeof b.ShowOfflinePawn!="undefined")IMNShowOfflineObj[a]=b.ShowOfflinePawn;if(EnsureIMNControl()&&IMNControlObj.PresenceEnabled){var d=1,h;d=IMNControlObj.GetStatus(e,a);if(IMNIsOnlineState(d)||IMNSortableObj[a]||IMNShowOfflineObj[a]){h=IMNGetStatusImage(d,IMNSortableObj[a]||IMNShowOfflineObj[a]);IMNUpdateImage(a,h);IMNDictionaryObj[a]=d}}}var f=IMNGetOOUILocation(b);SetImnOnClickHandler(f.objOOUI);c=f.objSpan;if(c){c.onmouseover=IMNShowOOUIMouse;c.onfocusin=IMNShowOOUIKyb;c.onmouseout=IMNHideOOUI;c.onfocusout=IMNHideOOUI}}}function SetImnOnClickHandler(c){ULSw7Q:;var b=c.parentNode;if(b.tagName=="A"){if(typeof b.onclick=="undefined")b.onclick=IMNImageOnClickHandler}else{var a=document.createElement("a");a.onclick=IMNImageOnClickHandler;a.className="ms-imnlink";a.href="javascript:;";b.insertBefore(a,c);a.appendChild(c)}}function IMNImageOnClickHandler(a){ULSw7Q:;IMNImageOnClick(a);return false}function IMNSortTable(){ULSw7Q:;var a;for(a in IMNDictionaryObj)IMNSortList(a,1,IMNDictionaryObj[a]);bIMNSorted=true}function IMNRegisterHeader(d){ULSw7Q:;if(browseris.ie5up||IsSupportedMacBrowser()){var c=GetCurrentEvent(d),e=GetEventTarget(c);if(!IMNHeaderObj)IMNHeaderObj={};if(IMNHeaderObj){var a=e.id;IMNHeaderObj[a]=a;var b;b=IMNGetHeaderImage();IMNUpdateImage(a,b)}}}function _TopHelpButtonClick(a){ULSw7Q:;if(typeof navBarHelpOverrideKey!="undefined")return HelpWindowKey(navBarHelpOverrideKey);if(a!=null)HelpWindowKey(a);else HelpWindowKey("HelpHome")}function HelpWindowHelper(d){ULSw7Q:;var c;if(typeof d=="undefined")c="?Lcid="+L_Language_Text;else c="?Lcid="+L_Language_Text+d;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){var a=ctx.HttpRoot;if(a.charAt(a.length-1)!="/")a=a+"/";b=a+"_layouts/help.aspx"}if(b==null&&typeof _spPageContextInfo!="undefined"&&_spPageContextInfo!=null&&typeof _spPageContextInfo.webServerRelativeUrl!="undefined"&&_spPageContextInfo.webServerRelativeUrl!=null){var a=_spPageContextInfo.webServerRelativeUrl;if(a.charAt(a.length-1)!="/")a=a+"/";b=a+"_layouts/help.aspx"}if(b==null){b="/_layouts/help.aspx";c=c+"&Source="+escapeProperly(window.location.href)}var e=window.open(b+c,"STSHELP","height=500,location=no,menubar=no,resizable=yes,scrollbars=no,status=yes,toolbar=no,width=475");e.focus()}function _HelpWindowKey(a){ULSw7Q:;if(a!=null)HelpWindowHelper("&Key="+a+"&ShowNav=true");else HelpWindowHelper("&Key=HelpHome&ShowNav=true")}function _HelpWindowUrl(a){ULSw7Q:;HelpWindowHelper("&Url="+a)}function _HelpWindow(){ULSw7Q:;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 EditSelectedImages(){ULSw7Q:;if(!IsImgLibJssLoaded()){alert(L_NotOurView_Text);return}_EditSelectedImages()}function DeleteImages(){ULSw7Q:;if(!IsImgLibJssLoaded()){alert(L_NotOurView_Text);return}_DeleteImages()}function SendImages(){ULSw7Q:;if(!IsImgLibJssLoaded()){alert(L_NotOurView_Text);return}_SendImages()}function DownloadImages(){ULSw7Q:;if(!IsImgLibJssLoaded()){alert(L_NotOurView_Text);return}_DownloadImages()}function MtgToggleTimeZone(){ULSw7Q:;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){ULSw7Q:;return unescapeProperly(a?g_webUrl:g_pageUrl)}function MtgNavigate(a){ULSw7Q:;if(a==g_instanceId)return;var b=!g_fPageGlobal;window.location.href=GetPageUrl(b)+"?InstanceID="+a+"&"+g_thispagedata}function GoToMtgMove(d,c,b,a){ULSw7Q:;window.location.href=d+"/movetodt.aspx?FromInstanceID="+c+"&FromInstanceDate="+escapeProperly(b)+"&FromInstanceDateISO="+escapeProperly(a)+"&Source="+escapeProperly(window.location.href)}function MtgKeep(b,c,a){ULSw7Q:;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.";confirm(L_MtgKeepConfirm_Text)&&SubmitFormPost(b+"&Cmd=MtgKeep&List="+escapeProperly(c)+"&EditInstanceID="+a+"&NextUsing="+escapeProperly(window.location.href))}function MtgDelete(c,d,a){ULSw7Q:;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){ULSw7Q:;document.cookie=b+"="+a+";path="+c}function SetAsLastTabVisited(){ULSw7Q:;typeof g_pageUrl!="undefined"&&typeof g_webUrl!="undefined"&&SetCookie("MtgLastTabVisited",escapeProperly(unescapeProperly(g_pageUrl)),escapeProperlyCore(unescapeProperly(g_webUrl),true))}function MtgRedirect(){ULSw7Q:;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){ULSw7Q:;if(c!="undefined"&&c!=""){var b=a.indexOf("?");if(b==-1||a.indexOf("InstanceID=",b)==-1)a=a+(b==-1?"?":"&")+"InstanceID="+c}return a}var g_dlgWndTop=null;function _dlgWndTop(){ULSw7Q:;if(g_dlgWndTop)return g_dlgWndTop;try{var a=window.parent.g_DialogWindowTop;if(a)g_dlgWndTop=window.parent}catch(b){}finally{if(!g_dlgWndTop){window.self.g_DialogWindowTop=true;g_dlgWndTop=window.self}}return g_dlgWndTop}function commonShowModalDialog(n,b,c,m){ULSw7Q:;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(n,m,b);c&&invokeModalDialogCallback(c,h)}else{var l=500,k=550,p="yes";if(!b)b="width="+l+",height="+k;else{function r(){ULSw7Q:;return []}function d(a,b,c){ULSw7Q:;a.push(b);a[b]=c}function q(b){ULSw7Q:;for(var c=[],a=0;a<b.length;a++)c.push(b[a]);return c}var a=r(),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 s in f){var g=j.exec(f[s]);g&&g.length==3&&d(a,g[1].toLowerCase(),g[2])}!a["width"]&&d(a,"width",a["dialogwidth"]||l);!a["height"]&&d(a,"height",a["dialogheight"]||k);!a["scrollbars"]&&d(a,"scrollbars",a["scroll"]||p);b="";var i=q(a);for(var o in i){if(b)b+=",";b+=i[o]+"="+a[i[o]]}}var e=window.open(n,"_blank",b+",modal=yes,dialog=yes");e.dialogArguments=m;window.onfocus=function(){ULSw7Q:;var a=document.getElementById("__spPickerHasReturnValue")!=null&&document.getElementById("__spPickerHasReturnValue").value=="1"||commonModalDialogReturnValue.isSet();if(e&&!e.closed&&!a)e.focus();else{window.onfocus=null;c&&invokeModalDialogCallback(c,h)}};if(!browseris.ie)if(window.frameElement!=null)window.fndlgClose=c}return h}function invokeModalDialogCallback(b,a){ULSw7Q:;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){ULSw7Q:;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(browseris.safari125up)a.opener!=null&&a.opener.fndlgClose!=null&&a.opener.fndlgClose(b)}function setModalDialogObjectReturnValue(a,b){ULSw7Q:;if(a.showModalDialog&&!browseris.safari125up)a.returnValue=b;else a.opener!=null&&a.opener.commonModalDialogReturnValue.set(b)}function CommonGlobalDialogReturnValue(){ULSw7Q:;var a=false,b=null;this.set=function(a){ULSw7Q:;if(typeof a!="undefined"){this.retVal=a;this.hasRetval=true}};this.isSet=function(){ULSw7Q:;return this.hasRetval};this.get=function(){ULSw7Q:;if(this.hasRetval)return this.retVal};this.clear=function(){ULSw7Q:;this.hasRetval=false;this.retVal=null}}var commonModalDialogReturnValue=new CommonGlobalDialogReturnValue;function commonModalDialogOpen(e,a,c,d){ULSw7Q:;var f=function(){ULSw7Q:;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){ULSw7Q:;var a=_dlgWndTop().g_childDialog;if(a){a.set_returnValue(c);a.close(b)}}function commonModalDialogGetArguments(){ULSw7Q:;var a=_dlgWndTop().g_childDialog;if(a&&typeof a.get_args!="undefined")return a.get_args();return null}function ShowPopupDialog(a){ULSw7Q:;ShowPopupDialogWithCallback(a,PopupDialogCallback)}function ShowPopupDialogWithCallback(b,c){ULSw7Q:;var d=function(){ULSw7Q:;if(FV4UI()){var a={};a.url=b;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){ULSw7Q:;a==1&&STSNavigate(_dlgWndTop().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",L_FilterThrottled_Text="Cannot show the value of the filter. The field may not be filterable, or the number of items returned exceeds the list view threshold enforced by the administrator.";function resetFilterMenuState(){ULSw7Q:;if(bMenuLoadInProgress)return;bIsFilterMenuShown=false;bIsFilterDataLoaded=false;filterTable=null;filterImageCell=null;currentFilterMenu=null;loadingFilterMenu=null;ctxFilter=null;bIsFilterKeyPress=false;fnOnFilterMouseOut!=null&&fnOnFilterMouseOut();fnOnFilterMouseOut=null}function setupFilterMenuContext(a){ULSw7Q:;ctxFilter=a}function IsFilterMenuOn(){ULSw7Q:;if(!bIsFilterMenuShown)return false;var a=false;a=MenuHtc_isOpen(currentFilterMenu)||MenuHtc_isOpen(loadingFilterMenu);if(!a)bIsFilterMenuShown=false;return a}function IsFilterMenuEnabled(){ULSw7Q:;return true}function OnMouseOverFilterDeferCall(a){ULSw7Q:;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;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){ULSw7Q:;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){ULSw7Q:;if(window.location.href.search("[?&]Filter=1")!=-1)return false;if(!IsFilterMenuEnabled())return false;a.onfocusout=OnMouseOutFilter;a.onkeydown=PopFilterMenu;var b=a.getAttribute("FilterString");if(b!=null)filterStr=b;var c=FindSTSMenuTable(a,"CTXNum");if(c==null)return false;OnMouseOverFilter(c);return false}function PopFilterMenu(a){ULSw7Q:;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(b){ULSw7Q:;if(filterTable==null||filterTable.tagName=="TABLE"&&filterImageCell==null)return true;var c=filterTable.tagName=="DIV"?filterTable.parentNode:filterTable,a=FindCtxImg(c);a!=null&&a.shown==false&&ShowCtxImg(a,true,c);if(b==null)b=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);b.cancelBubble=true;return false}function GetUrlWithNoSortParameters(e){ULSw7Q:;var a=window.location.href,h=new CUrl(a);h.hash="";a=h.ToString();var b,f=0,d,g;do{d=e.indexOf("=",f);if(d==-1)return a;b=e.substring(f,d);if(b!="");a=RemoveQueryParameterFromUrl(a,b);if(typeof b=="string"&&b.length>"FilterField".length&&b.substring(0,"FilterField".length)=="FilterField"){var c=b.substring("FilterField".length);a=RemoveQueryParameterFromUrl(a,"FilterValue"+c);a=RemoveQueryParameterFromUrl(a,"FilterLookupId"+c);a=RemoveQueryParameterFromUrl(a,"FilterOp"+c);a=RemoveQueryParameterFromUrl(a,"FilterData"+c)}g=e.indexOf("&",d+1);if(g==-1)return a;f=g+1}while(b!="");return a}function IsFieldNotSortable(a){ULSw7Q:;if(a.getAttribute("Sortable")=="FALSE"||a.getAttribute("SortDisable")=="TRUE"||a.getAttribute("FieldType")=="MultiChoice")return true;return false}function addSortMenuItems(b,a){ULSw7Q:;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){ULSw7Q:;var a;a=CAMOpt(h,d,f,c);a.id=e;!b&&a.setAttribute("enabled","false");a=CAMOpt(g,d,f,c);a.id=e+"_p";!b&&a.setAttribute("enabled","false")}function ShowFilterLoadingMenu(){ULSw7Q:;!bIsFilterDataLoaded&&filterTable!=null&&FilterOMenu(loadingFilterMenu,filterTable)}function getFilterQueryParam(){ULSw7Q:;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){ULSw7Q:;if(a.getAttribute("Filterable")=="FALSE"||a.getAttribute("FilterDisable")=="TRUE"||a.getAttribute("FieldType ")=="Note"||a.getAttribute("FieldType ")=="URL")return true;return false}function addFilteringDisabledMenuItem(b){ULSw7Q:;var a=filterTable.getAttribute("FilterDisableMessage");if(a==null||a.length==0)a=L_NotFilterable_Text;var c=CAMOpt(b,a,"");c.setAttribute("enabled","false");FilterOMenu(b,filterTable);b._onDestroy=OnMouseOutFilter}function addFilterMenuItems(m,j){ULSw7Q:;if(IsFieldNotFilterable(filterTable)){addFilteringDisabledMenuItem(m);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 g=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(),g);a=a+"&"+b+f;var p=c.match("&FilterOp"+e+"=[^&#]*");if(p!=null)a=a+p;var h=c.match("&FilterLookupId"+e+"=[^&#]*");if(h!=null)a=a+h;var l=c.match("&FilterData"+e+"=[^&#]*");if(l!=null)a=a+l;if(h!=null&&l==null&&strFilteredValue!=null){addFilteringDisabledMenuItem(m);return}}}while(b);var o=strFilteredValue!=null;strDisplayText=StBuildParam(L_DontFilterBy_Text,filterTable.getAttribute("DisplayName"));var q="javascript:HandleFilter(event, '"+STSScriptEncode(FilterFieldV3(ctxFilter.view,g,"",0,true))+"')",k;if(o)k=ctxFilter.imagesPath+"FILTEROFF.gif";else k=ctxFilter.imagesPath+"FILTEROFFDISABLED.gif";CAMOptFilter(m,j,strDisplayText,q,k,o,"fmi_clr");var r=CAMOpt(j,L_Loading_Text,"");r.setAttribute("enabled","false");setTimeout("ShowFilterLoadingMenu()",500);j._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 i="";if(ctxFilter!=null&&ctxFilter.clvp!=null&&ctxFilter.clvp.rootFolder!=null&&ctxFilter.clvp.rootFolder.length>0)i="&RootFolder="+escapeProperlyCore(ctxFilter.clvp.rootFolder,true);else{b=c.match("RootFolder=[^&]*");if(b!=null)i="&"+b}var n="";b=a.match("OverrideScope=[^&]*");if(ctxFilter!=null&&typeof ctxFilter.overrideScope!="undefined"&&b==null)n="&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+i+n+"&FieldInternalName="+g+"&ViewId="+ctxFilter.view+"&FilterOnly=1&Filter=1"+a;bMenuLoadInProgress=true}function getFilterValueFromUrl(b,f){ULSw7Q:;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(){ULSw7Q:;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 for(var d=h.childNodes,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);strFilteredValue!=null&&strFilteredValue==d[b].value&&k.setAttribute("checked","true")}}else{alert(L_FilterThrottled_Text);return}}bIsFilterDataLoaded=true;if(loadingFilterMenu!=null)loadingFilterMenu._onDestroy=null;if(currentFilterMenu!=null){currentFilterMenu._onDestroy=OnMouseOutFilter;FilterOMenu(currentFilterMenu,filterTable)}}}}}function addFilterOptionMenuItem(){ULSw7Q:;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){ULSw7Q:;filterStr=e;if(IsFilterMenuOn())return false;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(b,a){ULSw7Q:;if(IsFieldNotFilterable(filterTable)){addFilteringDisabledMenuItem(b);return}var c=CAMOpt(a,L_Loading_Text,"");c.setAttribute("enabled","false");FilterOMenu(a,filterTable);a._onDestroy=OnMouseOutFilter;DoCallBack("__filter={"+filterStr+"}");filterStr=null}function UpdateFilterCallback(b){ULSw7Q:;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);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){ULSw7Q:;if(a==null)return;var b=a.tagName=="DIV"?a.parentNode:a;OMenu(c,b,null,null,-1)}function _OnClickFilter(d,b){ULSw7Q:;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(){ULSw7Q:;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}var _spBodyOnLoadFunctionNames,_spBodyOnLoadCalled=false;if(_spBodyOnLoadFunctionNames==null){_spBodyOnLoadFunctionNames=[];_spBodyOnLoadFunctionNames.push("_spBodyOnLoad");_spBodyOnLoadFunctionNames.push("_spRestoreScrollForDiv_rscr")}var _spOriginalFormAction,_spEscapedFormAction,_spFormOnSubmitCalled=false,_spBodyOnPageShowRegistered=false;function _spBodyOnPageShow(){ULSw7Q:;_spFormOnSubmitCalled=false}function _spResetFormOnSubmitCalledFlag(){ULSw7Q:;_spFormOnSubmitCalled=false}function _ribbonReadyForInit(){ULSw7Q:;return _spBodyOnLoadCalled}var _spBodyOnLoadCalled=false;function _spBodyOnLoadWrapper(){ULSw7Q:;_spBodyOnLoadCalled=true;if(!_spBodyOnPageShowRegistered&&typeof browseris!="undefined"&&!browseris.ie&&typeof window.addEventListener=="function"){window.addEventListener("pageshow",_spBodyOnPageShow,false);_spBodyOnPageShowRegistered=true}if(typeof Sys!="undefined"&&typeof Sys.WebForms!="undefined"&&typeof Sys.WebForms.PageRequestManager!="undefined"){var a=Sys.WebForms.PageRequestManager.getInstance();if(!_spPageLoadedRegistered&&a!=null){a.add_pageLoaded(_spPageLoaded);_spPageLoadedRegistered=true}}!_spPageLoadedRegistered&&_spPageLoaded();_spFormOnSubmitCalled=false;typeof Sys!="undefined"&&typeof Sys.Net!="undefined"&&typeof Sys.Net.WebRequestManager!="undefined"&&Sys.Net.WebRequestManager.add_invokingRequest(_spResetFormOnSubmitCalledFlag);typeof NotifyBodyLoadedAndExecuteWaitingJobs!="undefined"&&NotifyBodyLoadedAndExecuteWaitingJobs();ExecuteOrDelayUntilScriptLoaded(ProcessDefaultOnLoad,"core.js");if(typeof g_prefetch=="undefined"||g_prefetch==1){var b=_spGetQueryParam("prefetch");b!=0&&_spPreFetch()}}function _spPreFetch(){ULSw7Q:;window.setTimeout(function(){ULSw7Q:;if(_v_dictSod){var a=_v_dictSod["core.js"];typeof a!="undefined"&&a&&LoadSod(a);if(typeof ribbon=="undefined"){var b=_v_dictSod["ribbon"];typeof b!="undefined"&&b&&LoadSod(b)}}},0);typeof _ribbon!="undefined"&&_ribbon&&window.setTimeout(function(){ULSw7Q:;if(document.images&&IsFullNameDefined("_spPageContextInfo.currentLanguage")){imgRibbon32x32=new Image;imgRibbon32x32.src="/_layouts/"+_spPageContextInfo.currentLanguage+"/images/formatmap32x32.png";imgRibbon16x16=new Image;imgRibbon16x16.src="/_layouts/"+_spPageContextInfo.currentLanguage+"/images/formatmap16x16.png"}},0)}function _spGetQueryParam(f){ULSw7Q:;var b=window.location.search.substring(1);if(b&&b.length>2)for(var c=b.split("&"),e=c.length,a=0;a<e;a++){var d=c[a].split("=");if(d[0].toLowerCase()==f)return d[1]}}var _spSuppressFormOnSubmitWrapper=false;function _spFormOnSubmitWrapper(){ULSw7Q:;if(_spSuppressFormOnSubmitWrapper)return true;if(_spFormOnSubmitCalled)return false;if(typeof _spFormOnSubmit=="function"){var b=_spFormOnSubmit(),a=false;if(typeof b==typeof a&&b==a)return false}_spFormOnSubmitCalled=true;return true}var _inlineEditString=null,_spPageLoadedRegistered=false;function _spPageLoaded(){ULSw7Q:;_spOriginalFormAction=null;EscapeFormAction();RefreshInplViewState();RefreshHeroButtonState();InlineEditSetDefaultFocus()}function InlineEditSetDefaultFocus(){ULSw7Q:;if(_inlineEditString!=null){var c=_inlineEditString.indexOf("#");if(c<=0)return;for(var i=_inlineEditString.substring(0,c),d=document.getElementsByTagName("TR"),b=0;b<d.length;b++)if(d[b].getAttribute("automode")==i){for(var h=_inlineEditString.substring(c+1),f=h.split(","),a=d[b],e=0;e<f.length;e++){if(a==null)break;a=a.firstChild;for(var g=0;g<f[e];g++){if(a==null)break;a=a.nextSibling}}a!=null&&focusControl(a);break}_inlineEditString=null}}function focusControl(b){ULSw7Q:;if(Sys.Browser.agent===Sys.Browser.InternetExplorer){var a=b;if(a&&typeof a.contentEditable!=="undefined"){oldContentEditableSetting=a.contentEditable;a.contentEditable=false}else a=null;try{b.focus()}catch(c){}if(a)a.contentEditable=oldContentEditableSetting}else b.focus()}function EscapeFormAction(){ULSw7Q:;if(document.forms.length>0&&!_spOriginalFormAction){_spOriginalFormAction=document.forms[0].action;var a=window.location.href,b=a.indexOf("://");if(b>=0){var c=a.substring(b+3);b=c.indexOf("/");if(b>=0)a=c.substring(b);if(a.length>2&&a.charAt(0)=="/"&&a.charAt(1)=="/")a=a.substring(1)}_spEscapedFormAction=escapeUrlForCallback(a);document.forms[0].action=_spEscapedFormAction;document.forms[0]._initialAction=document.forms[0].action}}function RefreshHeroButtonState(){ULSw7Q:;if(typeof _spWebPartComponents!="undefined")for(var d in _spWebPartComponents)if(d.length>7){var b=d.substr(7),a=window["heroButtonWebPart"+b];if(typeof a!="undefined"&&a!=null&&a==true){var c=document.getElementById("Hero-"+b);if(c!=null)c.style.display=""}}}function RefreshInplViewState(){ULSw7Q:;if(typeof ctx!="undefined"&&ctx.clvp!=null&&(ctx.clvp.tab==null||ctx.clvp.tab!=null&&(ctx.clvp.tab.parentNode==null||ctx.clvp.tab.parentNode.innerHTML==null))){FixDroppedOrPastedClvps(null);if(ctx.dictSel!=null){ctx.dictSel=[];ctx.CurrentSelectedItems=0}}}function RestoreToOriginalFormAction(){ULSw7Q:;if(_spOriginalFormAction!=null){if(_spEscapedFormAction==document.forms[0].action){document.forms[0].action=_spOriginalFormAction;document.forms[0]._initialAction=document.forms[0].action}_spOriginalFormAction=null;_spEscapedFormAction=null}}function DefaultFocus(){ULSw7Q:;if(typeof _spUseDefaultFocus!="undefined"){var a=document.getElementsByName("_spFocusHere"),c=null;if(a==null||a.length<=0)c=document.getElementById("_spFocusHere");else if(a!=null&&a.length>0)c=a[0];if(c!=null){var b=c.getElementsByTagName("a");if(b!=null&&b.length>0)for(var d=0;d<b.length;d++)if(b[d].style.visibility!="hidden"){try{b[d].focus()}catch(e){}break}}}}function ProcessDefaultOnLoad(){ULSw7Q:;ProcessPNGImages();UpdateAccessibilityUI();window.setTimeout("ProcessImn()",10);ProcessOnLoadFunctions(_spBodyOnLoadFunctionNames);typeof _spUseDefaultFocus!="undefined"&&DefaultFocus()}function ProcessOnLoadFunctions(onLoadFunctionNames){ULSw7Q:;for(var i=0;i<onLoadFunctionNames.length;i++){var expr="if(typeof("+onLoadFunctionNames[i]+")=='function'){"+onLoadFunctionNames[i]+"();}";eval(expr)}onLoadFunctionNames=[]}function CoreInvoke(a){ULSw7Q:;var b=Array.prototype.slice.call(arguments,1),c=function(){ULSw7Q:;window[a].apply(null,b)};if(TypeofFullName(a)=="function")return window[a].apply(null,b);else{EnsureScript("core.js","undefined",c);return false}}typeof Sys!="undefined"&&Sys&&Sys.Application&&Sys.Application.notifyScriptLoaded();typeof NotifyScriptLoadedAndExecuteWaitingJobs=="function"&&NotifyScriptLoadedAndExecuteWaitingJobs("ows.js")
