!function($){"use strict";function e(e,t){var a="",r,i=null,o,s,n,l,c,u,d,m=t.Obj.data("SPCascadeDropdownsChildColumns");$(m).each(function(){var e=this.opt,m=this.childSelect,p=this.childColumnStatic,h=this.childColumnRequired,f;r=L(t,e.matchOnId);var b=r.join(";#");if(t.Obj.data("SPCascadeDropdown_Selected_"+p)!==b){t.Obj.data("SPCascadeDropdown_Selected_"+p,b),i=L(m,!0),"M"===m.Type&&(o=new y(m.Obj),s=o.MultiLookupPickerdata,n=o.master,f=m.Obj.closest("span").find("select[ID$='SelectResult']"));var S=e.relationshipListSortColumn.length>0?e.relationshipListSortColumn:e.relationshipListChildColumn,g="<Query><OrderBy><FieldRef Name='"+S+"'/></OrderBy><Where><And>";if(e.CAMLQuery.length>0&&(g+="<And>"),0===r.length)g+="<Eq><FieldRef Name='"+e.relationshipListParentColumn+"'/><Value Type='Text'></Value></Eq>";else if(1===r.length)g+="<Eq><FieldRef Name='"+e.relationshipListParentColumn+(e.matchOnId?"' LookupId='True'/><Value Type='Integer'>":"'/><Value Type='Text'>")+O(r[0])+"</Value></Eq>";else{var v=r.length>2?!0:!1;for(bt=0;bt<r.length-1;bt++)g+="<Or>";for(bt=0;bt<r.length;bt++)g+="<Eq><FieldRef Name='"+e.relationshipListParentColumn+(e.matchOnId?"' LookupId='True'/><Value Type='Integer'>":"'/><Value Type='Text'>")+O(r[bt])+"</Value></Eq>",bt>0&&bt<r.length-1&&v&&(g+="</Or>");g+="</Or>"}e.CAMLQuery.length>0&&(g+=e.CAMLQuery+"</And>"),g+="<IsNotNull><FieldRef Name='"+e.relationshipListChildColumn+"' /></IsNotNull>",g+="</And></Where></Query>",$().SPServices({operation:"GetListItems",async:!1,webURL:e.relationshipWebURL,listName:e.relationshipList,CAMLQuery:g,CAMLViewFields:"<ViewFields><FieldRef Name='"+e.relationshipListParentColumn+"' /><FieldRef Name='"+e.relationshipListChildColumn+"' /></ViewFields>",CAMLRowLimit:0,CAMLQueryOptions:e.CAMLQueryOptions,completefunc:function(t){switch($(t.responseXML).find("errorstring").each(function(){var t="SPServices.SPCascadeDropdowns",a=$(this).text();e.debug&&"One or more field types are not installed properly. Go to the list settings page to delete these fields."===a?k(t,"relationshipListParentColumn: "+e.relationshipListParentColumn+" or relationshipListChildColumn: "+e.relationshipListChildColumn,"Not found in relationshipList "+e.relationshipList):e.debug&&"Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)."===a&&k(t,"relationshipList: "+e.relationshipList,"List not found")}),m.Type){case"S":$(m.Obj).find("option").remove(),!h&&e.promptText.length>0?m.Obj.append("<option value='0'>"+e.promptText.replace(/\{0\}/g,e.childColumn)+"</option>"):h||m.Obj.append("<option value='0'>"+e.noneText+"</option>");break;case"C":a=h?"":e.noneText+"|0",m.Obj.attr("value","");break;case"M":$(m.Obj).find("option").remove(),l=""}switch(c=parseFloat($(t.responseXML).SPFilterNode("rs:data").attr("ItemCount")),$(t.responseXML).SPFilterNode("z:row").each(function(){var t={},r=$(this).attr("ows_"+e.relationshipListChildColumn);switch("undefined"!=typeof r&&r.indexOf(";#")>0?t=new V(r):(t.id=$(this).attr("ows_ID"),t.value=r),isNaN(t.id)&&(t.id=$(this).attr("ows_ID")),u=t.id,d=t.value,m.Type){case"S":var o=$(this).attr("ows_ID")===i[0]?" selected='selected'":"";m.Obj.append("<option"+o+" value='"+t.id+"'>"+t.value+"</option>");break;case"C":t.id===i[0]&&m.Obj.attr("value",t.value),a=a+(a.length>0?"|":"")+t.value+"|"+t.id;break;case"M":m.Obj.append("<option value='"+t.id+"'>"+t.value+"</option>"),l+=t.id+"|t"+t.value+"|t |t |t"}}),m.Type){case"S":m.Obj.trigger("change"),1===c&&e.selectSingleOption===!0&&$(m.Obj).find("option[value!='0']:first").attr("selected","selected");break;case"C":m.Obj.attr("choices",a),1===c&&e.selectSingleOption===!0&&($(m.Obj).attr("value",d),$("input[id='"+m.Obj.attr("optHid")+"']").val(u)),""===m.Obj.val()&&$("input[id='"+m.Obj.attr("optHid")+"']").val("");break;case"M":n.data="",s.attr("value",l),$(f).find("option").each(function(){var e=$(this),t=$(this).html();$(this).attr("selected","selected"),$(m.Obj).find("option").filter(function(){return $(this).text()===t.replace(/&/,"&")}).each(function(){$(this).html()===t&&e.removeAttr("selected")})}),GipRemoveSelectedItems(n),$(m.Obj).find("option").each(function(){var e=$(this);$(f).find("option").each(function(){$(this).html()===e.html()&&e.remove()})}),GipAddSelectedItems(n),n.data=GipGetGroupData(l),m.Obj.trigger("dblclick")}}}),null!==e.completefunc&&e.completefunc()}})}function t(e,t,a,r){var i=null,o="SPServices.SPDisplayRelatedInfo",s=new C(e.columnName);if(i=L(s,e.matchOnId),!("C"===s.Type&&e.numChars>0&&i[0].length<e.numChars)&&s.Obj.attr("showRelatedSelected")!==i[0]){s.Obj.attr("showRelatedSelected",i[0]),$("#"+t).remove(),s.Obj.parent().append("<div id="+t+"></div>");var n="<Query><Where>";e.CAMLQuery.length>0&&(n+="<And>");var l=r[e.relatedListColumn].attr("Type");n+="Lookup"===l?"<Eq><FieldRef Name='"+e.relatedListColumn+(e.matchOnId?"' LookupId='True'/><Value Type='Integer'>":"'/><Value Type='Text'>")+O(i[0])+"</Value></Eq>":"<Eq><FieldRef Name='"+(e.matchOnId?"ID' /><Value Type='Counter'>":e.relatedListColumn+"'/><Value Type='Text'>")+O(i[0])+"</Value></Eq>",e.CAMLQuery.length>0&&(n+=e.CAMLQuery+"</And>"),n+="</Where></Query>";var c=" ";for(bt=0;bt<e.relatedColumns.length;bt++)c+="<FieldRef Name='"+e.relatedColumns[bt]+"' />";$().SPServices({operation:"GetListItems",async:!1,webURL:e.relatedWebURL,listName:e.relatedList,CAMLQuery:n,CAMLViewFields:"<ViewFields>"+c+"</ViewFields>",CAMLRowLimit:0,completefunc:function(i){$(i.responseXML).find("errorstring").each(function(){var t=$(this).text();e.debug&&"One or more field types are not installed properly. Go to the list settings page to delete these fields."===t?k(o,"relatedListColumn: "+e.relatedListColumn,"Column not found in relatedList "+e.relatedList):e.debug&&"Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)."===t&&k(o,"relatedList: "+e.relatedList,"List not found")});var s;switch(e.displayFormat){case"table":for(s="<table>",s+="<tr>",bt=0;bt<e.relatedColumns.length;bt++){if("undefined"==typeof r[e.relatedColumns[bt]]&&e.debug)return void k(o,"columnName: "+e.relatedColumns[bt],"Column not found in relatedList");s+="<th class='"+e.headerCSSClass+"'>"+r[e.relatedColumns[bt]].attr("DisplayName")+"</th>"}s+="</tr>",$(i.responseXML).SPFilterNode("z:row").each(function(){for(s+="<tr>",bt=0;bt<e.relatedColumns.length;bt++)s+="<td class='"+e.rowCSSClass+"'>"+g(a,r[e.relatedColumns[bt]],$(this).attr("ows_"+e.relatedColumns[bt]),e)+"</td>";s+="</tr>"}),s+="</table>";break;case"list":s="<table>",$(i.responseXML).SPFilterNode("z:row").each(function(){for(bt=0;bt<e.relatedColumns.length;bt++){if("undefined"==typeof r[e.relatedColumns[bt]]&&e.debug)return void k(o,"columnName: "+e.relatedColumns[bt],"Column not found in relatedList");s+="<tr>",s+="<th class='"+e.headerCSSClass+"'>"+r[e.relatedColumns[bt]].attr("DisplayName")+"</th>",s+="<td class='"+e.rowCSSClass+"'>"+g(a,r[e.relatedColumns[bt]],$(this).attr("ows_"+e.relatedColumns[bt]),e)+"</td>",s+="</tr>"}}),s+="</table>"}$("#"+t).html(s)}}),null!==e.completefunc&&e.completefunc()}}function a(e,t,a,o,s){var n=0,l=0,c={};c.type=[],c.src=[],c.script=[];var u=RegExp("<script[\\s\\S]*?/script>","gi");$.ajax({type:"GET",url:s,dataType:"text",async:!1,success:function(d){for(var m;m=u.exec(d);){var p=r(m,"language"),h=r(m,"type"),f=r(m,"src");null!==f&&f.length>0&&!i(f)&&(c.type.push(null!==p&&p.length>0?p:h),c.src.push(f),l++)}if(!e.showNoScript&&c.type.length>0||e.showNoScript){var b=s.substring(0,s.lastIndexOf(Q)+1),S="<tr class=ms-alternating><td class=ms-vb-icon><a href='"+t.attr("DefaultViewUrl")+"'><IMG border=0 src='"+t.attr("ImageUrl")+"'width=16 height=16></A></TD><td class=ms-vb2><a href='"+t.attr("DefaultViewUrl")+"'>"+t.attr("Title")+("True"===t.attr("Hidden")?"(Hidden)":"")+"</td><td class=ms-vb2>"+a+"</td><td class=ms-vb2>"+o+"</td><td class=ms-vb2><a href='"+s+"'>"+F(s)+"</td>";if(e.showSrc){var g;for(S+="<td valign='top'><table width='100%' style='border-collapse: collapse;' border=0 cellSpacing=0 cellPadding=1>",n=0;n<c.type.length;n++)g=c.src[n].substr(0,1)!==Q?b+c.src[n]:c.src[n],S+="<tr><td class=ms-vb2 width='30%'>"+c.type[n]+"</td>",S+="<td class=ms-vb2 width='70%'><a href='"+g+"'>"+F(c.src[n])+"</td></tr>";S+="</table></td>"}$("#SPScriptAudit").append(S)}}})}function r(e,t){var a,r=RegExp(t+"=(\"([^\"]*)\")|('([^']*)')","gi");return(a=r.exec(e))?a[2]:null}function i(e){var t,a=["WebResource.axd","_layouts"];for(t=0;t<a.length;t++)if(e.indexOf(a[t])>-1)return!0;return!1}function o(e,t){var a;switch(t){case"DateTime":case"datetime":a=u(e);break;case"User":a=d(e);break;case"UserMulti":a=m(e);break;case"Lookup":a=p(e);break;case"LookupMulti":a=h(e);break;case"Boolean":a=c(e);break;case"Integer":a=n(e);break;case"Counter":a=n(e);break;case"MultiChoice":a=f(e);break;case"Currency":case"float":a=l(e);break;case"Calc":a=b(e);break;default:a=s(e)}return a}function s(e){return e}function n(e){return parseInt(e,10)}function l(e){return parseFloat(e)}function c(e){var t="0"===e?!1:!0;return t}function u(e){return new Date(e.replace(/-/g,"/"))}function d(e){if(0===e.length)return null;var t=new V(e),a=t.value.split(",#");return 1===a.length?{userId:t.Id,userName:t.value}:{userId:t.Id,userName:a[0].replace(/(,,)/g,","),loginName:a[1].replace(/(,,)/g,","),email:a[2].replace(/(,,)/g,","),sipAddress:a[3].replace(/(,,)/g,","),title:a[4].replace(/(,,)/g,",")}}function m(e){if(0===e.length)return null;var t=[],a=e.split(";#");for(bt=0;bt<a.length;bt+=2){var r=d(a[bt]+";#"+a[bt+1]);t.push(r)}return t}function p(e){if(0===e.length)return null;var t=new V(e);return{lookupId:t.id,lookupValue:t.value}}function h(e){if(0===e.length)return null;var t=[],a=e.split(";#");for(bt=0;bt<a.length;bt+=2){var r=p(a[bt]+";#"+a[bt+1]);t.push(r)}return t}function f(e){if(0===e.length)return null;var t=[],a=e.split(";#");for(bt=0;bt<a.length;bt++)0!==a[bt].length&&t.push(a[bt]);return t}function b(e){if(0===e.length)return null;var t=e.split(";#");return o(t[1],t[0])}function S(){"undefined"!=typeof _spPageContextInfo?(this.thisSite=_spPageContextInfo.webServerRelativeUrl,this.thisList=_spPageContextInfo.pageListId,this.thisUserId=_spPageContextInfo.userId):(this.thisSite="undefined"!=typeof L_Menu_BaseUrl?L_Menu_BaseUrl:"",this.thisList="",this.thisUserId="undefined"!=typeof _spUserId?_spUserId:void 0)}function g(e,t,a,r){if("undefined"==typeof a)return"";var i,o="",s,n,l=[],c=r.relatedWebURL.length>0?r.relatedWebURL:$().SPServices.SPGetCurrentSite();switch(t.attr("Type")){case"Text":o=a;break;case"URL":switch(t.attr("Format")){case"Hyperlink":o="<a href='"+a.substring(0,a.search(","))+"'>"+a.substring(a.search(",")+1)+"</a>";break;case"Image":o="<img alt='"+a.substring(a.search(",")+1)+"' src='"+a.substring(0,a.search(","))+"'/>";break;default:o=a}break;case"User":case"UserMulti":var u=a.split(";#");for(i=0;i<u.length;i+=2)l.push("<a href='/_layouts/userdisp.aspx?ID="+u[i]+"&Source="+M(location.href)+"'>"+u[i+1]+"</a>");o=l.join(", ");break;case"Calculated":var d=a.split(";#");o=d[1];break;case"Number":n=t.attr("Decimals"),o="undefined"==typeof n?parseFloat(a).toString():parseFloat(a).toFixed(n).toString();break;case"Currency":n=t.attr("Decimals"),o="undefined"==typeof n?parseFloat(a).toFixed(2).toString():parseFloat(a).toFixed(n).toString();break;case"Lookup":switch(t.attr("Name")){case"FileRef":s="1"===e.attr("BaseType")?e.attr("RootFolder")+Q+"Forms/DispForm.aspx":e.attr("RootFolder")+Q+"DispForm.aspx",o="<a href='"+s+"?ID="+a.substring(0,a.search(";#"))+"&RootFolder=*&Source="+M(location.href)+"'>"+a.substring(a.search(";#")+2)+"</a>";break;case"FileDirRef":s=Q+a.substring(a.search(";#")+2),o="<a href='"+s+"'>"+a.substring(a.search(";#")+2)+"</a>";break;default:s=P(t.attr("List"),"DisplayForm"),o="<a href='"+r.relatedWebURL+Q+s+"?ID="+a.substring(0,a.search(";#"))+"&RootFolder=*&Source="+M(location.href)+"'>"+a.substring(a.search(";#")+2)+"</a>"}break;case"LookupMulti":if(s=P(t.attr("List"),"DisplayForm"),o="",a.length>0){var m=a.split(";#");for(i=0;i<m.length/2;i++)l.push("<a href='"+c+Q+s+"?ID="+m[2*i]+"&RootFolder=*&Source="+M(location.href)+"'>"+m[2*i+1]+"</a>")}o=l.join(", ");break;case"File":F=a.substring(a.search(";#")+2),o="<a href='"+e.attr("RootFolder")+Q+F+"'>"+F+"</a>";break;case"Counter":o=a;break;case"DateTime":o=a;break;default:o=a}return o}function v(e){var t,a="<table class='ms-vb' width='100%'>";for(t=0;t<e.attributes.length;t++)a+="<tr><td width='10px' style='font-weight:bold;'>"+t+"</td><td width='100px'>"+e.attributes.item(t).nodeName+"</td><td>"+I(e.attributes.item(t).nodeValue)+"</td></tr>";return a+="</table>"}function C(e){this.Type=1===(this.Obj=$("select[Title='"+e+"']")).length?"S":1===(this.Obj=$("input[Title='"+e+"']")).length?"C":1===(this.Obj=$("select[ID$='SelectCandidate'][Title^='"+e+" ']")).length?"M":1===(this.Obj=$("select[ID$='SelectCandidate'][Title$=': "+e+"']")).length?"M":1===(this.Obj=$("select[ID$='SelectCandidate'][Title$='\""+e+"\".']")).length?"M":1===(this.Obj=$("select[ID$='SelectCandidate'][Title$=' "+e+"']")).length?"M":null}function y(e){this.MultiLookupPickerdata=e.closest("span").find("input[id*='MultiLookup'][id$='data']");var t=this.MultiLookupPickerdata.attr("id"),a=t.indexOf("Multi"),r=t.substr(a),i=t.substr(0,a)+r.substr(0,r.indexOf("_")+1)+"m";this.master=window[i]}function L(e,t){var a=[];switch(e.Type){case"S":a.push(t?e.Obj.find("option:selected").val()||[]:e.Obj.find("option:selected").text()||[]);break;case"C":a.push(t?$("input[id='"+e.Obj.attr("optHid")+"']").val()||[]:e.Obj.attr("value")||[]);break;case"M":var r=e.Obj.closest("span").find("select[ID$='SelectResult']");$(r).find("option").each(function(){a.push($(this).html())})}return a}function k(e,t,a){var r="<b>Error in function</b><br/>"+e+"<br/><b>Parameter</b><br/>"+t+"<br/><b>Message</b><br/>"+a+"<br/><br/><span onmouseover='this.style.cursor=\"hand\";' onmouseout='this.style.cursor=\"inherit\";' style='width=100%;text-align:right;'>Click to continue</span></div>";N(r)}function N(e){var t="position:absolute;width:300px;height:150px;padding:10px;background-color:#000000;color:#ffffff;z-index:30;font-family:'Arial';font-size:12px;display:none;";$("#aspnetForm").parent().append("<div id='SPServices_msgBox' style="+t+">"+e);var a=$("#SPServices_msgBox").height(),r=$("#SPServices_msgBox").width(),i=$(window).width()/2-r/2+"px",o=$(window).height()/2-a/2-100+"px";$("#SPServices_msgBox").css({border:"5px #C02000 solid",left:i,top:o}).show().fadeTo("slow",.75).click(function(){$(this).fadeOut("3000",function(){$(this).remove()})})}function w(e,t){return e+"_"+$().SPServices.SPGetStaticFromDisplay({listName:$().SPServices.SPListNameFromUrl(),columnDisplayName:t})}function P(e,t){var a;return $().SPServices({operation:"GetFormCollection",async:!1,listName:e,completefunc:function(e){a=$(e.responseXML).find("Form[Type='"+t+"']").attr("Url")}}),a}function U(e,t){var a;for(a=0;a<t.length;a++)"string"==typeof t[a]?vt.payload+=T(t[a],e[t[a]]):2===t[a].length?vt.payload+=T(t[a][0],e[t[a][1]]):k(e.operation,"paramArray["+a+"]: "+t[a],"Invalid paramArray element passed to addToPayload()")}function x(e){var t,a=RegExp('FieldName="'+e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")+'"',"gi");return $("td.ms-formbody, td.ms-formbodysurvey").each(function(){return a.test($(this).html())?(t=$(this),!1):void 0}),t}function G(e,t){var a=t.substring(8);return e.opheader=e.opheader.replace(t,a),e.opfooter=e.opfooter.replace(t,a),e}function T(e,t){var a="undefined"!=typeof t?t:"";return"<"+e+">"+a+"</"+e+">"}function R(){return Math.round(Math.random())-.5}function I(e){return 0===e.indexOf("http")||0===e.indexOf(Q)?"<a href='"+e+"'>"+e+"</a>":e}function F(e){return e.substring(e.lastIndexOf(Q)+1,e.length)}function A(e){return e.replace(/([\&"<>])/g,function(e,t){return yt[t]})}function D(e){return e.replace(/("|<|>|&)/g,function(e,t){return Lt[t]})}function O(e){return"string"==typeof e?e.replace(/&(?![a-zA-Z]{1,8};)/g,"&"):e}function M(e){return e.replace(/&/g,"%26")}function V(e){var t=e.split(";#");this.id=t[0],this.value=t[1]}function j(e){return 10>e?"0"+e:e}var W="2013.01",Q="/",X="Column not found on page",q="http://schemas.microsoft.com/sharepoint",_={},E="Alerts",B="Authentication",H="Copy",z="Forms",K="Lists",Z="Meetings",J="People",Y="Permissions",et="PublishedLinksService",tt="Search",at="SPSearch",rt="SharePointDiagnostics",it="SiteData",ot="Sites",st="SocialDataService",nt="SpellCheck",lt="TaxonomyClientService",ct="usergroup",ut="UserProfileService",dt="Versions",mt="Views",pt="WebPartPages",ht="Webs",ft="Workflow",S=new S,bt=0,St=["listName","description"],gt=[];gt.GetAlerts=[E,!1],gt.DeleteAlerts=[E,!0],gt.Mode=[B,!1],gt.Login=[B,!1],gt.CopyIntoItems=[H,!0],gt.CopyIntoItemsLocal=[H,!0],gt.GetItem=[H,!1],gt.GetForm=[z,!1],gt.GetFormCollection=[z,!1],gt.AddAttachment=[K,!0],gt.AddDiscussionBoardItem=[K,!0],gt.AddList=[K,!0],gt.AddListFromFeature=[K,!0],gt.ApplyContentTypeToList=[K,!0],gt.CheckInFile=[K,!0],gt.CheckOutFile=[K,!0],gt.CreateContentType=[K,!0],gt.DeleteAttachment=[K,!0],gt.DeleteContentType=[K,!0],gt.DeleteContentTypeXmlDocument=[K,!0],gt.DeleteList=[K,!0],gt.GetAttachmentCollection=[K,!1],gt.GetList=[K,!1],gt.GetListAndView=[K,!1],gt.GetListCollection=[K,!1],gt.GetListContentType=[K,!1],gt.GetListContentTypes=[K,!1],gt.GetListItemChanges=[K,!1],gt.GetListItemChangesSinceToken=[K,!1],gt.GetListItems=[K,!1],gt.GetVersionCollection=[K,!1],gt.UndoCheckOut=[K,!0],gt.UpdateContentType=[K,!0],gt.UpdateContentTypesXmlDocument=[K,!0],gt.UpdateContentTypeXmlDocument=[K,!0],gt.UpdateList=[K,!0],gt.UpdateListItems=[K,!0],gt.AddMeeting=[Z,!0],gt.CreateWorkspace=[Z,!0],gt.RemoveMeeting=[Z,!0],gt.SetWorkSpaceTitle=[Z,!0],gt.ResolvePrincipals=[J,!1],gt.SearchPrincipals=[J,!1],gt.AddPermission=[Y,!0],gt.AddPermissionCollection=[Y,!0],gt.GetPermissionCollection=[Y,!0],gt.RemovePermission=[Y,!0],gt.RemovePermissionCollection=[Y,!0],gt.UpdatePermission=[Y,!0],gt.GetLinks=[et,!0],gt.GetPortalSearchInfo=[tt,!1],gt.GetQuerySuggestions=[tt,!1],gt.GetSearchMetadata=[tt,!1],gt.Query=[tt,!1],gt.QueryEx=[tt,!1],gt.Registration=[tt,!1],gt.Status=[tt,!1],gt.SPQuery=[at,!1],gt.SPQueryEx=[at,!1],gt.SPRegistration=[at,!1],gt.SPStatus=[at,!1],gt.SendClientScriptErrorReport=[rt,!0],gt.GetAttachments=[it,!1],gt.EnumerateFolder=[it,!1],gt.SiteDataGetList=[it,!1],gt.SiteDataGetListCollection=[it,!1],gt.SiteDataGetSite=[it,!1],gt.SiteDataGetSiteUrl=[it,!1],gt.SiteDataGetWeb=[it,!1],gt.CreateWeb=[ot,!0],gt.DeleteWeb=[ot,!1],gt.GetSite=[ot,!1],gt.GetSiteTemplates=[ot,!1],gt.AddComment=[st,!0],gt.AddTag=[st,!0],gt.AddTagByKeyword=[st,!0],gt.CountCommentsOfUser=[st,!1],gt.CountCommentsOfUserOnUrl=[st,!1],gt.CountCommentsOnUrl=[st,!1],gt.CountRatingsOnUrl=[st,!1],gt.CountTagsOfUser=[st,!1],gt.DeleteComment=[st,!0],gt.DeleteRating=[st,!0],gt.DeleteTag=[st,!0],gt.DeleteTagByKeyword=[st,!0],gt.DeleteTags=[st,!0],gt.GetAllTagTerms=[st,!1],gt.GetAllTagTermsForUrlFolder=[st,!1],gt.GetAllTagUrls=[st,!1],gt.GetAllTagUrlsByKeyword=[st,!1],gt.GetCommentsOfUser=[st,!1],gt.GetCommentsOfUserOnUrl=[st,!1],gt.GetCommentsOnUrl=[st,!1],gt.GetRatingAverageOnUrl=[st,!1],gt.GetRatingOfUserOnUrl=[st,!1],gt.GetRatingOnUrl=[st,!1],gt.GetRatingsOfUser=[st,!1],gt.GetRatingsOnUrl=[st,!1],gt.GetSocialDataForFullReplication=[st,!1],gt.GetTags=[st,!0],gt.GetTagsOfUser=[st,!0],gt.GetTagTerms=[st,!0],gt.GetTagTermsOfUser=[st,!0],gt.GetTagTermsOnUrl=[st,!0],gt.GetTagUrlsOfUser=[st,!0],gt.GetTagUrlsOfUserByKeyword=[st,!0],gt.GetTagUrls=[st,!0],gt.GetTagUrlsByKeyword=[st,!0],gt.SetRating=[st,!0],gt.UpdateComment=[st,!0],gt.SpellCheck=[nt,!1],gt.AddTerms=[lt,!0],gt.GetChildTermsInTerm=[lt,!1],gt.GetChildTermsInTermSet=[lt,!1],gt.GetKeywordTermsByGuids=[lt,!1],gt.GetTermsByLabel=[lt,!1],gt.GetTermSets=[lt,!1],gt.AddGroup=[ct,!0],gt.AddGroupToRole=[ct,!0],gt.AddRole=[ct,!0],gt.AddRoleDef=[ct,!0],gt.AddUserCollectionToGroup=[ct,!0],gt.AddUserCollectionToRole=[ct,!0],gt.AddUserToGroup=[ct,!0],gt.AddUserToRole=[ct,!0],gt.GetAllUserCollectionFromWeb=[ct,!1],gt.GetGroupCollection=[ct,!1],gt.GetGroupCollectionFromRole=[ct,!1],gt.GetGroupCollectionFromSite=[ct,!1],gt.GetGroupCollectionFromUser=[ct,!1],gt.GetGroupCollectionFromWeb=[ct,!1],gt.GetGroupInfo=[ct,!1],gt.GetRoleCollection=[ct,!1],gt.GetRoleCollectionFromGroup=[ct,!1],gt.GetRoleCollectionFromUser=[ct,!1],gt.GetRoleCollectionFromWeb=[ct,!1],gt.GetRoleInfo=[ct,!1],gt.GetRolesAndPermissionsForCurrentUser=[ct,!1],gt.GetRolesAndPermissionsForSite=[ct,!1],gt.GetUserCollection=[ct,!1],gt.GetUserCollectionFromGroup=[ct,!1],gt.GetUserCollectionFromRole=[ct,!1],gt.GetUserCollectionFromSite=[ct,!1],gt.GetUserCollectionFromWeb=[ct,!1],gt.GetUserInfo=[ct,!1],gt.GetUserLoginFromEmail=[ct,!1],gt.RemoveGroup=[ct,!0],gt.RemoveGroupFromRole=[ct,!0],gt.RemoveRole=[ct,!0],gt.RemoveUserCollectionFromGroup=[ct,!0],gt.RemoveUserCollectionFromRole=[ct,!0],gt.RemoveUserCollectionFromSite=[ct,!0],gt.RemoveUserFromGroup=[ct,!0],gt.RemoveUserFromRole=[ct,!0],gt.RemoveUserFromSite=[ct,!0],gt.RemoveUserFromWeb=[ct,!0],gt.UpdateGroupInfo=[ct,!0],gt.UpdateRoleDefInfo=[ct,!0],gt.UpdateRoleInfo=[ct,!0],gt.UpdateUserInfo=[ct,!0],gt.AddColleague=[ut,!0],gt.AddLink=[ut,!0],gt.AddMembership=[ut,!0],gt.AddPinnedLink=[ut,!0],gt.CreateMemberGroup=[ut,!0],gt.CreateUserProfileByAccountName=[ut,!0],gt.GetCommonColleagues=[ut,!1],gt.GetCommonManager=[ut,!1],gt.GetCommonMemberships=[ut,!1],gt.GetInCommon=[ut,!1],gt.GetPropertyChoiceList=[ut,!1],gt.GetUserColleagues=[ut,!1],gt.GetUserLinks=[ut,!1],gt.GetUserMemberships=[ut,!1],gt.GetUserPinnedLinks=[ut,!1],gt.GetUserProfileByGuid=[ut,!1],gt.GetUserProfileByIndex=[ut,!1],gt.GetUserProfileByName=[ut,!1],gt.GetUserProfileCount=[ut,!1],gt.GetUserProfileSchema=[ut,!1],gt.ModifyUserPropertyByAccountName=[ut,!0],gt.RemoveAllColleagues=[ut,!0],gt.RemoveAllLinks=[ut,!0],gt.RemoveAllMemberships=[ut,!0],gt.RemoveAllPinnedLinks=[ut,!0],gt.RemoveColleague=[ut,!0],gt.RemoveLink=[ut,!0],gt.RemoveMembership=[ut,!0],gt.RemovePinnedLink=[ut,!0],gt.UpdateColleaguePrivacy=[ut,!0],gt.UpdateLink=[ut,!0],gt.UpdateMembershipPrivacy=[ut,!0],gt.UpdatePinnedLink=[ut,!0],gt.DeleteAllVersions=[dt,!0],gt.DeleteVersion=[dt,!0],gt.GetVersions=[dt,!1],gt.RestoreVersion=[dt,!0],gt.AddView=[mt,!0],gt.DeleteView=[mt,!0],gt.GetView=[mt,!1],gt.GetViewHtml=[mt,!1],gt.GetViewCollection=[mt,!1],gt.UpdateView=[mt,!0],gt.UpdateViewHtml=[mt,!0],gt.AddWebPart=[pt,!0],gt.AddWebPartToZone=[pt,!0],gt.GetWebPart2=[pt,!1],gt.GetWebPartPage=[pt,!1],gt.GetWebPartProperties=[pt,!1],gt.GetWebPartProperties2=[pt,!1],gt.CreateContentType=[ht,!0],gt.GetColumns=[ht,!1],gt.GetContentType=[ht,!1],gt.GetContentTypes=[ht,!1],gt.GetCustomizedPageStatus=[ht,!1],gt.GetListTemplates=[ht,!1],gt.GetObjectIdFromUrl=[ht,!1],gt.GetWeb=[ht,!1],gt.GetWebCollection=[ht,!1],gt.GetAllSubWebCollection=[ht,!1],gt.UpdateColumns=[ht,!0],gt.UpdateContentType=[ht,!0],gt.WebUrlFromPageUrl=[ht,!1],gt.AlterToDo=[ft,!0],gt.GetTemplatesForItem=[ft,!1],gt.GetToDosForItem=[ft,!1],gt.GetWorkflowDataForItem=[ft,!1],gt.GetWorkflowTaskData=[ft,!1],gt.StartWorkflow=[ft,!0];var vt={};vt.header="<soap:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:soap='",vt.payload="";var">http://schemas.xmlsoap.org/soap/envelope/'><soap:Body>",vt.footer="</soap:Body></soap:Envelope>",vt.payload="";var Ct;$.fn.SPServices=function(e){for(var t=$.extend({},$.fn.SPServices.defaults,e),a=0;a<St.length;a++)"string"==typeof t[St[a]]&&(t[St[a]]=A(t[St[a]]));switch(vt.opheader="<"+t.operation+" ",gt[t.operation][0]){case E:vt.opheader+="xmlns='"+q+"/soap/2002/1/alerts/' >",Ct=q+"/soap/2002/1/alerts/";break;case Z:vt.opheader+="xmlns='"+q+"/soap/meetings/' >",Ct=q+"/soap/meetings/";break;case Y:vt.opheader+="xmlns='"+q+"/soap/directory/' >",Ct=q+"/soap/directory/";break;case et:vt.opheader+="xmlns='http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService/' >",Ct="http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService/";break;case tt:vt.opheader+="xmlns='urn:Microsoft.Search' >",Ct="urn:Microsoft.Search/";break;case rt:vt.opheader+="xmlns='"+q+"/diagnostics/' >",Ct="http://schemas.microsoft.com/sharepoint/diagnostics/";break;case st:vt.opheader+="xmlns='http://microsoft.com/webservices/SharePointPortalServer/SocialDataService' >",Ct="http://microsoft.com/webservices/SharePointPortalServer/SocialDataService/";break;case nt:vt.opheader+="xmlns='http://schemas.microsoft.com/sharepoint/publishing/spelling/' >",Ct="http://schemas.microsoft.com/sharepoint/publishing/spelling/SpellCheck";break;case lt:vt.opheader+="xmlns='"+q+"/taxonomy/soap/' >",Ct=q+"/taxonomy/soap/";break;case ct:vt.opheader+="xmlns='"+q+"/soap/directory/' >",Ct=q+"/soap/directory/";break;case ut:vt.opheader+="xmlns='http://microsoft.com/webservices/SharePointPortalServer/UserProfileService' >",Ct="http://microsoft.com/webservices/SharePointPortalServer/UserProfileService/";break;case pt:vt.opheader+="xmlns='http://microsoft.com/sharepoint/webpartpages' >",Ct="http://microsoft.com/sharepoint/webpartpages/";break;case ft:vt.opheader+="xmlns='"+q+"/soap/workflow/' >",Ct=q+"/soap/workflow/";break;default:vt.opheader+="xmlns='"+q+"/soap/'>",Ct=q+"/soap/"}Ct+=t.operation,vt.opfooter="</"+t.operation+">";var r="_vti_bin/"+gt[t.operation][0]+".asmx";switch(r=t.webURL.charAt(t.webURL.length-1)===Q?t.webURL+r:t.webURL.length>0?t.webURL+Q+r:$().SPServices.SPGetCurrentSite()+Q+r,vt.payload="",t.operation){case"GetAlerts":break;case"DeleteAlerts":for(vt.payload+="<IDs>",a=0;a<t.IDs.length;a++)vt.payload+=T("string",t.IDs[a]);vt.payload+="</IDs>";break;case"Mode":break;case"Login":U(t,["username","password"]);break;case"CopyIntoItems":for(U(t,["SourceUrl"]),vt.payload+="<DestinationUrls>",a=0;a<t.DestinationUrls.length;a++)vt.payload+=T("string",t.DestinationUrls[a]);vt.payload+="</DestinationUrls>",U(t,["Fields","Stream","Results"]);break;case"CopyIntoItemsLocal":for(U(t,["SourceUrl"]),vt.payload+="<DestinationUrls>",a=0;a<t.DestinationUrls.length;a++)vt.payload+=T("string",t.DestinationUrls[a]);vt.payload+="</DestinationUrls>";break;case"GetItem":U(t,["Url","Fields","Stream"]);break;case"GetForm":U(t,["listName","formUrl"]);break;case"GetFormCollection":U(t,["listName"]);break;case"AddAttachment":U(t,["listName","listItemID","fileName","attachment"]);break;case"AddDiscussionBoardItem":U(t,["listName","message"]);break;case"AddList":U(t,["listName","description","templateID"]);break;case"AddListFromFeature":U(t,["listName","description","featureID","templateID"]);break;case"ApplyContentTypeToList":U(t,["webUrl","contentTypeId","listName"]);break;case"CheckInFile":U(t,["pageUrl","comment","CheckinType"]);break;case"CheckOutFile":U(t,["pageUrl","checkoutToLocal","lastmodified"]);break;case"CreateContentType":U(t,["listName","displayName","parentType","fields","contentTypeProperties","addToView"]);break;case"DeleteAttachment":U(t,["listName","listItemID","url"]);break;case"DeleteContentType":U(t,["listName","contentTypeId"]);break;case"DeleteContentTypeXmlDocument":U(t,["listName","contentTypeId","documentUri"]);break;case"DeleteList":U(t,["listName"]);break;case"GetAttachmentCollection":U(t,["listName",["listItemID","ID"]]);break;case"GetList":U(t,["listName"]);break;case"GetListAndView":U(t,["listName","viewName"]);break;case"GetListCollection":break;case"GetListContentType":U(t,["listName","contentTypeId"]);break;case"GetListContentTypes":U(t,["listName"]);break;case"GetListItems":U(t,["listName","viewName",["query","CAMLQuery"],["viewFields","CAMLViewFields"],["rowLimit","CAMLRowLimit"],["queryOptions","CAMLQueryOptions"]]);break;case"GetListItemChanges":U(t,["listName","viewFields","since","contains"]);break;case"GetListItemChangesSinceToken":U(t,["listName","viewName","query","viewFields","rowLimit","queryOptions","changeToken","contains"]);break;case"GetVersionCollection":U(t,["strlistID","strlistItemID","strFieldName"]);break;case"UndoCheckOut":U(t,["pageUrl"]);break;case"UpdateContentType":U(t,["listName","contentTypeId","contentTypeProperties","newFields","updateFields","deleteFields","addToView"]);break;case"UpdateContentTypesXmlDocument":U(t,["listName","newDocument"]);break;case"UpdateContentTypeXmlDocument":U(t,["listName","contentTypeId","newDocument"]);break;case"UpdateList":U(t,["listName","listProperties","newFields","updateFields","deleteFields","listVersion"]);break;case"UpdateListItems":if(U(t,["listName"]),"undefined"!=typeof t.updates&&t.updates.length>0)U(t,["updates"]);else{for(vt.payload+="<updates><Batch OnError='Continue'><Method ID='1' Cmd='"+t.batchCmd+"'>",a=0;a<t.valuepairs.length;a++)vt.payload+="<Field Name='"+t.valuepairs[a][0]+"'>"+O(t.valuepairs[a][1])+"</Field>";"New"!==t.batchCmd&&(vt.payload+="<Field Name='ID'>"+t.ID+"</Field>"),vt.payload+="</Method></Batch></updates>"}break;case"AddMeeting":U(t,["organizerEmail","uid","sequence","utcDateStamp","title","location","utcDateStart","utcDateEnd","nonGregorian"]);break;case"CreateWorkspace":U(t,["title","templateName","lcid","timeZoneInformation"]);break;case"RemoveMeeting":U(t,["recurrenceId","uid","sequence","utcDateStamp","cancelMeeting"]);break;case"SetWorkspaceTitle":U(t,["title"]);break;case"ResolvePrincipals":U(t,["principalKeys","principalType","addToUserInfoList"]);break;case"SearchPrincipals":U(t,["searchText","maxResults","principalType"]);break;case"AddPermission":U(t,["objectName","objectType","permissionIdentifier","permissionType","permissionMask"]);break;case"AddPermissionCollection":U(t,["objectName","objectType","permissionsInfoXml"]);break;case"GetPermissionCollection":U(t,["objectName","objectType"]);break;case"RemovePermission":U(t,["objectName","objectType","permissionIdentifier","permissionType"]);break;case"RemovePermissionCollection":U(t,["objectName","objectType","memberIdsXml"]);break;case"UpdatePermission":U(t,["objectName","objectType","permissionIdentifier","permissionType","permissionMask"]);break;case"GetLinks":break;case"GetPortalSearchInfo":vt.opheader="<"+t.operation+" xmlns='http://microsoft.com/webservices/OfficeServer/QueryService'>",Ct="http://microsoft.com/webservices/OfficeServer/QueryService/"+t.operation;break;case"GetQuerySuggestions":vt.opheader="<"+t.operation+" xmlns='http://microsoft.com/webservices/OfficeServer/QueryService'>",Ct="http://microsoft.com/webservices/OfficeServer/QueryService/"+t.operation,vt.payload+=T("queryXml",A(t.queryXml));break;case"GetSearchMetadata":vt.opheader="<"+t.operation+" xmlns='http://microsoft.com/webservices/OfficeServer/QueryService'>",Ct="http://microsoft.com/webservices/OfficeServer/QueryService/"+t.operation;break;case"Query":vt.payload+=T("queryXml",A(t.queryXml));break;case"QueryEx":vt.opheader="<"+t.operation+" xmlns='http://microsoft.com/webservices/OfficeServer/QueryService'>",Ct="http://microsoft.com/webservices/OfficeServer/QueryService/"+t.operation,vt.payload+=T("queryXml",A(t.queryXml));break;case"Registration":vt.payload+=T("registrationXml",A(t.registrationXml));break;case"Status":break;case"SPQuery":vt.payload+=T("queryXml",A(t.queryXml));break;case"SPQueryEx":vt.opheader="<"+t.operation+" xmlns='http://microsoft.com/webservices/OfficeServer/QueryService'>",Ct="http://microsoft.com/webservices/OfficeServer/QueryService/"+t.operation,vt.payload+=T("queryXml",A(t.queryXml));break;case"SendClientScriptErrorReport":U(t,["message","file","line","client","stack","team","originalFile"]);break;case"EnumerateFolder":U(t,["strFolderUrl"]);break;case"GetAttachments":U(t,["strListName","strItemId"]);break;case"SiteDataGetList":U(t,["strListName"]),vt=G(vt,t.operation);break;case"SiteDataGetListCollection":vt=G(vt,t.operation);break;case"SiteDataGetSite":vt=G(vt,t.operation);break;case"SiteDataGetSiteUrl":U(t,["Url"]),vt=G(vt,t.operation);break;case"SiteDataGetWeb":vt=G(vt,t.operation);break;case"CreateWeb":U(t,["url","title","description","templateName","language","languageSpecified","locale","localeSpecified","collationLocale","collationLocaleSpecified","uniquePermissions","uniquePermissionsSpecified","anonymous","anonymousSpecified","presence","presenceSpecified"]);
break;case"DeleteWeb":U(t,["url"]);break;case"GetSite":U(t,["SiteUrl"]);break;case"GetSiteTemplates":U(t,["LCID","TemplateList"]);break;case"AddComment":U(t,["url","comment","isHighPriority","title"]);break;case"AddTag":U(t,["url","termID","title","isPrivate"]);break;case"AddTagByKeyword":U(t,["url","keyword","title","isPrivate"]);break;case"CountCommentsOfUser":U(t,["userAccountName"]);break;case"CountCommentsOfUserOnUrl":U(t,["userAccountName","url"]);break;case"CountCommentsOnUrl":U(t,["url"]);break;case"CountRatingsOnUrl":U(t,["url"]);break;case"CountTagsOfUser":U(t,["userAccountName"]);break;case"DeleteComment":U(t,["url","lastModifiedTime"]);break;case"DeleteRating":U(t,["url"]);break;case"DeleteTag":U(t,["url","termID"]);break;case"DeleteTagByKeyword":U(t,["url","keyword"]);break;case"DeleteTags":U(t,["url"]);break;case"GetAllTagTerms":U(t,["maximumItemsToReturn"]);break;case"GetAllTagTermsForUrlFolder":U(t,["urlFolder","maximumItemsToReturn"]);break;case"GetAllTagUrls":U(t,["termID"]);break;case"GetAllTagUrlsByKeyword":U(t,["keyword"]);break;case"GetCommentsOfUser":U(t,["userAccountName","maximumItemsToReturn","startIndex"]);break;case"GetCommentsOfUserOnUrl":U(t,["userAccountName","url"]);break;case"GetCommentsOnUrl":U(t,["url","maximumItemsToReturn","startIndex"]),"undefined"!=typeof t.excludeItemsTime&&t.excludeItemsTime.length>0&&(vt.payload+=T("excludeItemsTime",t.excludeItemsTime));break;case"GetRatingAverageOnUrl":U(t,["url"]);break;case"GetRatingOfUserOnUrl":U(t,["userAccountName","url"]);break;case"GetRatingOnUrl":U(t,["url"]);break;case"GetRatingsOfUser":U(t,["userAccountName"]);break;case"GetRatingsOnUrl":U(t,["url"]);break;case"GetSocialDataForFullReplication":U(t,["userAccountName"]);break;case"GetTags":U(t,["url"]);break;case"GetTagsOfUser":U(t,["userAccountName","maximumItemsToReturn","startIndex"]);break;case"GetTagTerms":U(t,["maximumItemsToReturn"]);break;case"GetTagTermsOfUser":U(t,["userAccountName","maximumItemsToReturn"]);break;case"GetTagTermsOnUrl":U(t,["url","maximumItemsToReturn"]);break;case"GetTagUrls":U(t,["termID"]);break;case"GetTagUrlsByKeyword":U(t,["keyword"]);break;case"GetTagUrlsOfUser":U(t,["termID","userAccountName"]);break;case"GetTagUrlsOfUserByKeyword":U(t,["keyword","userAccountName"]);break;case"SetRating":U(t,["url","rating","title","analysisDataEntry"]);break;case"UpdateComment":U(t,["url","lastModifiedTime","comment","isHighPriority"]);break;case"SpellCheck":U(t,["chunksToSpell","declaredLanguage","useLad"]);break;case"AddTerms":U(t,["sharedServiceId","termSetId","lcid","newTerms"]);break;case"GetChildTermsInTerm":U(t,["sspId","lcid","termId","termSetId"]);break;case"GetChildTermsInTermSet":U(t,["sspId","lcid","termSetId"]);break;case"GetKeywordTermsByGuids":U(t,["termIds","lcid"]);break;case"GetTermsByLabel":U(t,["label","lcid","matchOption","resultCollectionSize","termIds","addIfNotFound"]);break;case"GetTermSets":U(t,["sharedServiceId","termSetId","lcid","clientTimeStamps","clientVersions"]);break;case"AddGroup":U(t,["groupName","ownerIdentifier","ownerType","defaultUserLoginName","description"]);break;case"AddGroupToRole":U(t,["groupName","roleName"]);break;case"AddRole":U(t,["roleName","description","permissionMask"]);break;case"AddRoleDef":U(t,["roleName","description","permissionMask"]);break;case"AddUserCollectionToGroup":U(t,["groupName","usersInfoXml"]);break;case"AddUserCollectionToRole":U(t,["roleName","usersInfoXml"]);break;case"AddUserToGroup":U(t,["groupName","userName","userLoginName","userEmail","userNotes"]);break;case"AddUserToRole":U(t,["roleName","userName","userLoginName","userEmail","userNotes"]);break;case"GetAllUserCollectionFromWeb":break;case"GetGroupCollection":U(t,["groupNamesXml"]);break;case"GetGroupCollectionFromRole":U(t,["roleName"]);break;case"GetGroupCollectionFromSite":break;case"GetGroupCollectionFromUser":U(t,["userLoginName"]);break;case"GetGroupCollectionFromWeb":break;case"GetGroupInfo":U(t,["groupName"]);break;case"GetRoleCollection":U(t,["roleNamesXml"]);break;case"GetRoleCollectionFromGroup":U(t,["groupName"]);break;case"GetRoleCollectionFromUser":U(t,["userLoginName"]);break;case"GetRoleCollectionFromWeb":break;case"GetRoleInfo":U(t,["roleName"]);break;case"GetRolesAndPermissionsForCurrentUser":break;case"GetRolesAndPermissionsForSite":break;case"GetUserCollection":U(t,["userLoginNamesXml"]);break;case"GetUserCollectionFromGroup":U(t,["groupName"]);break;case"GetUserCollectionFromRole":U(t,["roleName"]);break;case"GetUserCollectionFromSite":break;case"GetUserCollectionFromWeb":break;case"GetUserInfo":U(t,["userLoginName"]);break;case"GetUserLoginFromEmail":U(t,["emailXml"]);break;case"RemoveGroup":U(t,["groupName"]);break;case"RemoveGroupFromRole":U(t,["roleName","groupName"]);break;case"RemoveRole":U(t,["roleName"]);break;case"RemoveUserCollectionFromGroup":U(t,["groupName","userLoginNamesXml"]);break;case"RemoveUserCollectionFromRole":U(t,["roleName","userLoginNamesXml"]);break;case"RemoveUserCollectionFromSite":U(t,["userLoginNamesXml"]);break;case"RemoveUserFromGroup":U(t,["groupName","userLoginName"]);break;case"RemoveUserFromRole":U(t,["roleName","userLoginName"]);break;case"RemoveUserFromSite":U(t,["userLoginName"]);break;case"RemoveUserFromWeb":U(t,["userLoginName"]);break;case"UpdateGroupInfo":U(t,["oldGroupName","groupName","ownerIdentifier","ownerType","description"]);break;case"UpdateRoleDefInfo":U(t,["oldRoleName","roleName","description","permissionMask"]);break;case"UpdateRoleInfo":U(t,["oldRoleName","roleName","description","permissionMask"]);break;case"UpdateUserInfo":U(t,["userLoginName","userName","userEmail","userNotes"]);break;case"AddColleague":U(t,["accountName","colleagueAccountName","group","privacy","isInWorkGroup"]);break;case"AddLink":U(t,["accountName","name","url","group","privacy"]);break;case"AddMembership":U(t,["accountName","membershipInfo","group","privacy"]);break;case"AddPinnedLink":U(t,["accountName","name","url"]);break;case"CreateMemberGroup":U(t,["membershipInfo"]);break;case"CreateUserProfileByAccountName":U(t,["accountName"]);break;case"GetCommonColleagues":U(t,["accountName"]);break;case"GetCommonManager":U(t,["accountName"]);break;case"GetCommonMemberships":U(t,["accountName"]);break;case"GetInCommon":U(t,["accountName"]);break;case"GetPropertyChoiceList":U(t,["propertyName"]);break;case"GetUserColleagues":U(t,["accountName"]);break;case"GetUserLinks":U(t,["accountName"]);break;case"GetUserMemberships":U(t,["accountName"]);break;case"GetUserPinnedLinks":U(t,["accountName"]);break;case"GetUserProfileByGuid":U(t,["guid"]);break;case"GetUserProfileByIndex":U(t,["index"]);break;case"GetUserProfileByName":"undefined"!=typeof t.accountName&&t.accountName.length>0?U(t,[["AccountName","accountName"]]):U(t,["AccountName"]);break;case"GetUserProfileCount":break;case"GetUserProfileSchema":break;case"ModifyUserPropertyByAccountName":U(t,["accountName","newData"]);break;case"RemoveAllColleagues":U(t,["accountName"]);break;case"RemoveAllLinks":U(t,["accountName"]);break;case"RemoveAllMemberships":U(t,["accountName"]);break;case"RemoveAllPinnedLinks":U(t,["accountName"]);break;case"RemoveColleague":U(t,["accountName","colleagueAccountName"]);break;case"RemoveLink":U(t,["accountName","id"]);break;case"RemoveMembership":U(t,["accountName","sourceInternal","sourceReference"]);break;case"RemovePinnedLink":U(t,["accountName","id"]);break;case"UpdateColleaguePrivacy":U(t,["accountName","colleagueAccountName","newPrivacy"]);break;case"UpdateLink":U(t,["accountName","data"]);break;case"UpdateMembershipPrivacy":U(t,["accountName","sourceInternal","sourceReference","newPrivacy"]);break;case"UpdatePinnedLink ":U(t,["accountName","data"]);break;case"DeleteAllVersions":U(t,["fileName"]);break;case"DeleteVersion":U(t,["fileName","fileVersion"]);break;case"GetVersions":U(t,["fileName"]);break;case"RestoreVersion":U(t,["fileName","fileVersion"]);break;case"AddView":U(t,["listName","viewName","viewFields","query","rowLimit","rowLimit","type","makeViewDefault"]);break;case"DeleteView":U(t,["listName","viewName"]);break;case"GetView":U(t,["listName","viewName"]);break;case"GetViewCollection":U(t,["listName"]);break;case"GetViewHtml":U(t,["listName","viewName"]);break;case"UpdateView":U(t,["listName","viewName","viewProperties","query","viewFields","aggregations","formats","rowLimit"]);break;case"UpdateViewHtml":U(t,["listName","viewName","viewProperties","toolbar","viewHeader","viewBody","viewFooter","viewEmpty","rowLimitExceeded","query","viewFields","aggregations","formats","rowLimit"]);break;case"AddWebPart":U(t,["pageUrl","webPartXml","storage"]);break;case"AddWebPartToZone":U(t,["pageUrl","webPartXml","storage","zoneId","zoneIndex"]);break;case"GetWebPart2":U(t,["pageUrl","storageKey","storage","behavior"]);break;case"GetWebPartPage":U(t,["documentName","behavior"]);break;case"GetWebPartProperties":U(t,["pageUrl","storage"]);break;case"GetWebPartProperties2":U(t,["pageUrl","storage","behavior"]);break;case"Webs.CreateContentType":U(t,["displayName","parentType","newFields","contentTypeProperties"]);break;case"GetColumns":U(t,["webUrl"]);break;case"GetContentType":U(t,["contentTypeId"]);break;case"GetContentTypes":break;case"GetCustomizedPageStatus":U(t,["fileUrl"]);break;case"GetListTemplates":break;case"GetObjectIdFromUrl":U(t,["objectUrl"]);break;case"GetWeb":U(t,[["webUrl","webURL"]]);break;case"GetWebCollection":break;case"GetAllSubWebCollection":break;case"UpdateColumns":U(t,["newFields","updateFields","deleteFields"]);break;case"Webs.UpdateContentType":U(t,["contentTypeId","contentTypeProperties","newFields","updateFields","deleteFields"]);break;case"WebUrlFromPageUrl":U(t,[["pageUrl","pageURL"]]);break;case"AlterToDo":U(t,["item","todoId","todoListId","taskData"]);break;case"GetTemplatesForItem":U(t,["item"]);break;case"GetToDosForItem":U(t,["item"]);break;case"GetWorkflowDataForItem":U(t,["item"]);break;case"GetWorkflowTaskData":U(t,["item","listId","taskId"]);break;case"StartWorkflow":U(t,["item","templateId","workflowParameters"])}var i=vt.header+vt.opheader+vt.payload+vt.opfooter+vt.footer,o;t.cacheXML&&(o=_[i]);var s=$.isFunction(t.completefunc);return"undefined"==typeof o?(_[i]=$.ajax({url:r,async:s?!1:t.async,beforeSend:function(e){gt[t.operation][1]&&e.setRequestHeader("SOAPAction",Ct)},type:"POST",data:i,dataType:"xml",contentType:"text/xml;charset='utf-8'",complete:function(e,a){s&&t.completefunc(e,a)}}),_[i]):(s&&t.completefunc(o,null),o)},$.fn.SPServices.defaults={cacheXML:!1,operation:"",webURL:"",makeViewDefault:!1,CAMLViewName:"",CAMLQuery:"",CAMLViewFields:"",CAMLRowLimit:0,CAMLQueryOptions:"<QueryOptions></QueryOptions>",batchCmd:"Update",valuepairs:[],DestinationUrls:[],behavior:"Version3",storage:"Shared",objectType:"List",cancelMeeting:!0,nonGregorian:!1,fClaim:!1,recurrenceId:0,sequence:0,maximumItemsToReturn:0,startIndex:0,isHighPriority:!1,isPrivate:!1,rating:1,maxResults:10,principalType:"User",async:!0,completefunc:null},$.fn.SPServices.SPGetCurrentSite=function(){if(S.thisSite.length>0)return S.thisSite;var e=vt.header+"<WebUrlFromPageUrl xmlns='"+q+"/soap/' ><pageUrl>"+location.protocol+"//"+location.host+location.pathname+"</pageUrl></WebUrlFromPageUrl>"+vt.footer;return $.ajax({async:!1,url:"/_vti_bin/Webs.asmx",type:"POST",data:e,dataType:"xml",contentType:'text/xml;charset="utf-8"',complete:function(e){S.thisSite=$(e.responseXML).find("WebUrlFromPageUrlResult").text()}}),S.thisSite},$.fn.SPServices.SPCascadeDropdowns=function(t){var a=$.extend({},{relationshipWebURL:"",relationshipList:"",relationshipListParentColumn:"",relationshipListChildColumn:"",relationshipListSortColumn:"",parentColumn:"",childColumn:"",listName:$().SPServices.SPListNameFromUrl(),CAMLQuery:"",CAMLQueryOptions:"<QueryOptions><IncludeMandatoryColumns>FALSE</IncludeMandatoryColumns></QueryOptions>",promptText:"",noneText:"(None)",simpleChild:!1,selectSingleOption:!1,matchOnId:!1,completefunc:null,debug:!1},t),r=!1,i="SPServices.SPCascadeDropdowns",o=new C(a.parentColumn);if(null===o.Obj.html()&&a.debug)return void k(i,"parentColumn: "+a.parentColumn,X);var s=new C(a.childColumn);if(null===s.Obj.html()&&a.debug)return void k(i,"childColumn: "+a.childColumn,X);a.simpleChild===!0&&"C"===s.Type&&($().SPServices.SPComplexToSimpleDropdown({columnName:a.childColumn}),s=new C(a.childColumn));var n,l;$().SPServices({operation:"GetList",async:!1,cacheXML:!0,listName:a.listName,completefunc:function(e){$(e.responseXML).find("Fields").each(function(){$(this).find("Field[DisplayName='"+a.childColumn+"']").each(function(){return n="TRUE"===$(this).attr("Required")?!0:!1,l=$(this).attr("StaticName"),!1})})}});var c={opt:a,childSelect:s,childColumnStatic:l,childColumnRequired:n},u=o.Obj.data("SPCascadeDropdownsChildColumns");if("undefined"==typeof u?o.Obj.data("SPCascadeDropdownsChildColumns",[c]):(u.push(c),o.Obj.data("SPCascadeDropdownsChildColumns",u),r=!0),!r)switch(o.Type){case"S":o.Obj.bind("change",function(){e(a.parentColumn,o)});break;case"C":$("input[id='"+o.Obj.attr("optHid")+"']").bind("propertychange",function(){e(a.parentColumn,o)});break;case"M":o.Obj.bind("dblclick",function(){e(a.parentColumn,o)}),o.Obj.closest("span").find("select[id$='SelectResult']").bind("dblclick",function(){e(a.parentColumn,o)}),o.Obj.closest("span").find("button").each(function(){$(this).bind("click",function(){e(a.parentColumn,o)})})}e(a.parentColumn,o)},$.fn.SPServices.SPComplexToSimpleDropdown=function(e){var t=$.extend({},{columnName:"",completefunc:null,debug:!1},e),a=new C(t.columnName);if(null===a.Obj.html()&&t.debug)return void k("SPServices.SPComplexToSimpleDropdown","columnName: "+t.columnName,X);if("C"===a.Type){var r=$(a.Obj).attr("choices").split("|"),i=$(a.Obj).attr("optHid"),o=$("input[id='"+i+"']"),s=$("input[id='"+i+"']").val(),n=w("SPComplexToSimpleDropdown",t.columnName),l="<select id='"+n+"' title='"+t.columnName+"'>";for(bt=0;bt<r.length;bt+=2){var c=r[bt+1]===s?" selected='selected' ":" ";l+="<option"+c+"value='"+r[bt+1]+"'>"+r[bt]+"</option>"}l+="</select>",$(a.Obj).closest("td").prepend(l),$(a.Obj).closest("span").find("img").remove(),$(a.Obj).closest("span").find("input").hide(),$("#"+n).change(function(){var e=$(this).val();o.val(e),$(a.Obj).val($(this).find("option[value='"+("0"!==e?e:"")+"']").html())}),$("#"+n).trigger("change"),null!==t.completefunc&&t.completefunc()}},$.fn.SPServices.SPDisplayRelatedInfo=function(e){var a=$.extend({},{columnName:"",relatedWebURL:"",relatedList:"",relatedListColumn:"",relatedColumns:[],displayFormat:"table",headerCSSClass:"ms-vh2",rowCSSClass:"ms-vb",CAMLQuery:"",numChars:0,matchType:"Eq",matchOnId:!1,completefunc:null,debug:!1},e),r,i=[],o,s="SPServices.SPDisplayRelatedInfo",n=new C(a.columnName);if(null===n.Obj.html()&&a.debug)return void k(s,"columnName: "+a.columnName,X);switch(r=w("SPDisplayRelatedInfo",a.columnName),$().SPServices({operation:"GetList",async:!1,cacheXML:!0,webURL:a.relatedWebURL,listName:a.relatedList,completefunc:function(e){for($(e.responseXML).find("faultcode").each(function(){return a.debug?void k(s,"relatedList: "+a.relatedList,"List not found"):void 0}),o=$(e.responseXML).find("List"),i[a.relatedListColumn]=$(e.responseXML).find("Fields > Field[Name='"+a.relatedColumn+"']"),bt=0;bt<a.relatedColumns.length;bt++)i[a.relatedColumns[bt]]=$(e.responseXML).find("Fields > Field[Name='"+a.relatedColumns[bt]+"']")}}),n.Type){case"S":n.Obj.bind("change",function(){t(a,r,o,i)});break;case"C":$("input[id='"+n.Obj.attr("optHid")+"']").bind("propertychange",function(){t(a,r,o,i)});break;case"M":a.debug&&k(s,"columnName: "+a.columnName,"Multi-select columns not supported by this function")}t(a,r,o,i)},$.fn.SPServices.SPFilterDropdown=function(e){var t=$.extend({},{relationshipWebURL:"",relationshipList:"",relationshipListColumn:"",relationshipListSortColumn:"",relationshipListSortAscending:!0,columnName:"",listName:$().SPServices.SPListNameFromUrl(),promptText:"",noneText:"(None)",CAMLQuery:"",CAMLQueryOptions:"<QueryOptions><IncludeMandatoryColumns>FALSE</IncludeMandatoryColumns><ViewAttributes Scope='RecursiveAll'/></QueryOptions>",completefunc:null,debug:!1},e),a="",r=null,i,o,s,n,l,c="SPServices.SPFilterDropdown",u=new C(t.columnName);if(null===u.Obj.html()&&t.debug)return void k(c,"columnName: "+t.columnName,X);r=L(u,!0);var d=t.relationshipListSortColumn.length>0?t.relationshipListSortColumn:t.relationshipListColumn,m=t.relationshipListSortAscending===!0?"":"Ascending='FALSE'",p="<Query><OrderBy><FieldRef Name='"+d+"' "+m+"/></OrderBy><Where>";t.CAMLQuery.length>0&&(p+=t.CAMLQuery),p+="</Where></Query>",$().SPServices({operation:"GetList",async:!1,cacheXML:!0,listName:t.listName,completefunc:function(e){$(e.responseXML).find("Fields").each(function(){$(this).find("Field[DisplayName='"+t.columnName+"']").each(function(){return l="TRUE"===$(this).attr("Required")?!0:!1,!1})})}}),$().SPServices({operation:"GetListItems",async:!1,webURL:t.relationshipWebURL,listName:t.relationshipList,CAMLQuery:p,CAMLViewFields:"<ViewFields><FieldRef Name='"+t.relationshipListColumn+"' /></ViewFields>",CAMLRowLimit:0,CAMLQueryOptions:t.CAMLQueryOptions,completefunc:function(e){switch($(e.responseXML).find("errorstring").each(function(){var e=$(this).text();t.debug&&"One or more field types are not installed properly. Go to the list settings page to delete these fields."===e?k(c,"relationshipListColumn: "+t.relationshipListColumn,"Not found in relationshipList "+t.relationshipList):t.debug&&"Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)."===e&&k(c,"relationshipList: "+t.relationshipList,"List not found")}),u.Type){case"S":$(u.Obj).find("option").remove(),!l&&t.promptText.length>0?u.Obj.append("<option value='0'>"+t.promptText.replace(/\{0\}/g,t.columnName)+"</option>"):l||u.Obj.append("<option value='0'>"+t.noneText+"</option>");break;case"C":a=l?"":t.noneText+"|0",u.Obj.attr("value","");break;case"M":$(u.Obj).find("option").remove(),n=""}switch($(e.responseXML).SPFilterNode("z:row").each(function(){var e={},i=$(this).attr("ows_"+t.relationshipListColumn);switch("undefined"!=typeof i&&i.indexOf(";#")>0?e=new V(i):(e.id=$(this).attr("ows_ID"),e.value=i),isNaN(e.id)&&(e.id=$(this).attr("ows_ID")),u.Type){case"S":var o=$(this).attr("ows_ID")===r[0]?" selected='selected'":"";u.Obj.append("<option"+o+" value='"+e.id+"'>"+e.value+"</option>");break;case"C":e.id===r[0]&&u.Obj.attr("value",e.value),a=a+(a.length>0?"|":"")+e.value+"|"+e.id;break;case"M":u.Obj.append("<option value='"+e.id+"'>"+e.value+"</option>"),n+=e.id+"|t"+e.value+"|t |t |t"}}),u.Type){case"S":u.Obj.trigger("change");break;case"C":u.Obj.attr("choices",a),u.Obj.trigger("propertychange");break;case"M":i=new y(u.Obj),o=i.MultiLookupPickerdata,s=i.master;var d=u.Obj.closest("span").find("select[ID$='SelectResult']");s.data="",o.attr("value",n),$(d).find("option").each(function(){var e=$(this);$(this).attr("selected","selected"),$(u.Obj).find("option").each(function(){$(this).html()===e.html()&&e.removeAttr("selected")})}),GipRemoveSelectedItems(s),$(u.Obj).find("option").each(function(){var e=$(this);$(d).find("option").each(function(){$(this).html()===e.html()&&e.remove()})}),GipAddSelectedItems(s),s.data=GipGetGroupData(n),u.Obj.trigger("dblclick")}}}),null!==t.completefunc&&t.completefunc()},$.fn.SPServices.SPDebugXMLHttpResult=function(e){var t=$.extend({},{node:null,indent:0},e),a,r=3,i=4,o="";if(o+="<table class='ms-vb' style='margin-left:"+3*t.indent+"px;' width='100%'>","DisplayPattern"===t.node.nodeName)o+="<tr><td width='100px' style='font-weight:bold;'>"+t.node.nodeName+"</td><td><textarea readonly='readonly' rows='5' cols='50'>"+t.node.xml+"</textarea></td></tr>";else if(t.node.hasChildNodes())if(t.node.hasChildNodes()&&t.node.firstChild.nodeType===i)o+="<tr><td width='100px' style='font-weight:bold;'>"+t.node.nodeName+"</td><td><textarea readonly='readonly' rows='5' cols='50'>"+t.node.parentNode.text+"</textarea></td></tr>";else if(t.node.hasChildNodes()&&t.node.firstChild.nodeType===r)o+="<tr><td width='100px' style='font-weight:bold;'>"+t.node.nodeName+"</td><td>"+I(t.node.firstChild.nodeValue)+"</td></tr>";else{for(o+="<tr><td width='100px' style='font-weight:bold;' colspan='99'>"+t.node.nodeName+"</td></tr>",t.node.attributes&&(o+="<tr><td colspan='99'>"+v(t.node)+"</td></tr>"),o+="<tr><td>",a=0;a<t.node.childNodes.length;a++)o+=$().SPServices.SPDebugXMLHttpResult({node:t.node.childNodes.item(a),indent:t.indent+1});o+="</td></tr>"}else o+="<tr><td width='100px' style='font-weight:bold;'>"+t.node.nodeName+"</td><td>"+(null!==t.node.nodeValue?I(t.node.nodeValue):" ")+"</td></tr>",t.node.attributes&&(o+="<tr><td colspan='99'>"+v(t.node)+"</td></tr>");return o+="</table>"},$.fn.SPServices.SPGetCurrentUser=function(e){var t=$.extend({},{webURL:"",fieldName:"Name",fieldNames:{},debug:!1},e);if("ID"===t.fieldName&&"undefined"!=typeof S.thisUserId)return S.thisUserId;var a="",r={},i=t.fieldNames.length>0?t.fieldNames.length:1,o,s=t.webURL.length>0?t.webURL:$().SPServices.SPGetCurrentSite();for($.ajax({async:!1,url:s+"/_layouts/userdisp.aspx?Force=True&"+(new Date).getTime(),complete:function(e){o=e}}),bt=0;i>bt;bt++){if("ID"===t.fieldNames[bt])a=S.thisUserId;else{var n;n=i>1?RegExp('FieldInternalName="'+t.fieldNames[bt]+'"',"gi"):RegExp('FieldInternalName="'+t.fieldName+'"',"gi"),$(o.responseText).find("table.ms-formtable td[id^='SPField']").each(function(){if(n.test($(this).html())){switch($(this).attr("id")){case"SPFieldText":a=$(this).text();break;case"SPFieldNote":a=$(this).find("div").html();break;case"SPFieldURL":a=$(this).find("img").attr("src");break;default:a=$(this).text()}return!1}})}"ID"!==t.fieldNames[bt]&&(a="undefined"!=typeof a?a.replace(/(^[\s\xA0]+|[\s\xA0]+$)/g,""):null),i>1&&(r[t.fieldNames[bt]]=a)}return i>1?r:a},$.fn.SPServices.SPLookupAddNew=function(e){var t=$.extend({},{lookupColumn:"",promptText:"Add new {0}",newWindow:!1,ContentTypeID:"",completefunc:null,debug:!1},e),a="SPServices.SPLookupAddNew",r=new C(t.lookupColumn);if(null===r.Obj.html()&&t.debug)return void k(a,"lookupColumn: "+t.lookupColumn,X);var i="",o="",s="";if($().SPServices({operation:"GetList",async:!1,cacheXML:!0,listName:$().SPServices.SPListNameFromUrl(),completefunc:function(e){$(e.responseXML).find("Field[DisplayName='"+t.lookupColumn+"']").each(function(){return s=$(this).attr("StaticName"),$().SPServices({operation:"GetList",async:!1,cacheXML:!0,listName:$(this).attr("List"),completefunc:function(e){$(e.responseXML).find("List").each(function(){o=$(this).attr("WebFullUrl"),o=o!==Q?o+Q:o})}}),i=P($(this).attr("List"),"NewForm"),!1})}}),0===o.length&&t.debug)return void k(a,"lookupColumn: "+t.lookupColumn,"This column does not appear to be a lookup column");if(i.length>0){var n=o+i;n+=t.newWindow?(t.ContentTypeID.length>0?"?ContentTypeID="+t.ContentTypeID:"")+"' target='_blank'":"?"+(t.ContentTypeID.length>0?"ContentTypeID="+t.ContentTypeID+"&":"")+"Source="+M(location.href)+"'";var l="<div id='SPLookupAddNew_"+s+"'><a href='"+n+">"+t.promptText.replace(/\{0\}/g,t.lookupColumn)+"</a></div>";$(r.Obj).parents("td.ms-formbody").append(l)}else if(t.debug)return void k(a,"lookupColumn: "+t.lookupColumn,"NewForm cannot be found");null!==t.completefunc&&t.completefunc()},$.fn.SPServices.SPGetLastItemId=function(e){var t=$.extend({},{webURL:"",listName:"",userAccount:"",CAMLQuery:""},e),a,r=0;$().SPServices({operation:"GetUserInfo",webURL:t.webURL,async:!1,userLoginName:""!==t.userAccount?t.userAccount:$().SPServices.SPGetCurrentUser(),completefunc:function(e){$(e.responseXML).find("User").each(function(){a=$(this).attr("ID")})}});var i="<Query><Where>";return t.CAMLQuery.length>0&&(i+="<And>"),i+="<Eq><FieldRef Name='Author' LookupId='TRUE'/><Value Type='Integer'>"+a+"</Value></Eq>",t.CAMLQuery.length>0&&(i+=t.CAMLQuery+"</And>"),i+="</Where><OrderBy><FieldRef Name='Created_x0020_Date' Ascending='FALSE'/></OrderBy></Query>",$().SPServices({operation:"GetListItems",async:!1,webURL:t.webURL,listName:t.listName,CAMLQuery:i,CAMLViewFields:"<ViewFields><FieldRef Name='ID'/></ViewFields>",CAMLRowLimit:1,CAMLQueryOptions:"<QueryOptions><ViewAttributes Scope='Recursive' /></QueryOptions>",completefunc:function(e){$(e.responseXML).SPFilterNode("z:row").each(function(){r=$(this).attr("ows_ID")})}}),r},$.fn.SPServices.SPRequireUnique=function(e){var t=$.extend({},{columnStaticName:"Title",duplicateAction:0,ignoreCase:!1,initMsg:"This value must be unique.",initMsgCSSClass:"ms-vb",errMsg:"This value is not unique.",errMsgCSSClass:"ms-formvalidation",showDupes:!1,completefunc:null},e),a=$().SPServices.SPGetQueryString(),r=a.ID;S.thisList=$().SPServices.SPListNameFromUrl();var i="<span id='SPRequireUnique"+t.columnStaticName+"' class='{0}'>{1}</span><br/>",o=i.replace(/\{0\}/g,t.initMsgCSSClass).replace(/\{1\}/g,t.initMsg),s=$().SPServices.SPGetDisplayFromStatic({listName:S.thisList,columnStaticName:t.columnStaticName}),n=$("input[Title='"+s+"']");$(n).parent().append(o),$(n).blur(function(){var e=[],a=$(this).attr("value");if(0===a.length)return!1;$().SPServices({operation:"GetListItems",async:!1,listName:S.thisList,CAMLQuery:"<Query><Where><IsNotNull><FieldRef Name='"+t.columnStaticName+"'/></IsNotNull></Where></Query>",CAMLViewFields:"<ViewFields><FieldRef Name='ID' /><FieldRef Name='"+t.columnStaticName+"' /></ViewFields>",CAMLRowLimit:0,completefunc:function(i){var o=t.ignoreCase?a.toUpperCase():a;$(i.responseXML).SPFilterNode("z:row").each(function(){var a=t.ignoreCase?$(this).attr("ows_"+t.columnStaticName).toUpperCase():$(this).attr("ows_"+t.columnStaticName);o===a&&$(this).attr("ows_ID")!==r&&e.push([$(this).attr("ows_ID"),$(this).attr("ows_"+t.columnStaticName)])})}});var i=t.initMsg;if($("span#SPRequireUnique"+t.columnStaticName).html(i).attr("class",t.initMsgCSSClass),$("input[value='OK']:disabled, input[value='Save']:disabled").removeAttr("disabled"),e.length>0&&(i=t.errMsg,$("span#SPRequireUnique"+t.columnStaticName).html(i).attr("class",t.errMsgCSSClass),1===t.duplicateAction&&($("input[Title='"+t.columnDisplayName+"']").focus(),$("input[value='OK'], input[value='Save']").attr("disabled","disabled")),t.showDupes)){var o=" "+e.length+" duplicate item"+(e.length>1?"s":"")+": ";for(bt=0;bt<e.length;bt++)o+="<a href='DispForm.aspx?ID="+e[bt][0]+"&Source="+location.href+"'>"+e[bt][1]+"</a> ";$("span#SPRequireUnique"+t.columnStaticName).append(o)}}),null!==t.completefunc&&t.completefunc()},$.fn.SPServices.SPGetDisplayFromStatic=function(e){var t=$.extend({},{webURL:"",listName:"",columnStaticName:"",columnStaticNames:{}},e),a="",r={},i=t.columnStaticNames.length>0?t.columnStaticNames.length:1;return $().SPServices({operation:"GetList",async:!1,cacheXML:!0,webURL:t.webURL,listName:t.listName,completefunc:function(e){if(i>1)for(bt=0;i>bt;bt++)r[t.columnStaticNames[bt]]=$(e.responseXML).find("Field[StaticName='"+t.columnStaticNames[bt]+"']").attr("DisplayName");else a=$(e.responseXML).find("Field[StaticName='"+t.columnStaticName+"']").attr("DisplayName")}}),i>1?r:a},$.fn.SPServices.SPGetStaticFromDisplay=function(e){var t=$.extend({},{webURL:"",listName:"",columnDisplayName:"",columnDisplayNames:{}},e),a="",r={},i=t.columnDisplayNames.length>0?t.columnDisplayNames.length:1;return $().SPServices({operation:"GetList",async:!1,cacheXML:!0,webURL:t.webURL,listName:t.listName,completefunc:function(e){if(i>1)for(bt=0;i>bt;bt++)r[t.columnDisplayNames[bt]]=$(e.responseXML).find("Field[DisplayName='"+t.columnDisplayNames[bt]+"']").attr("StaticName");else a=$(e.responseXML).find("Field[DisplayName='"+t.columnDisplayName+"']").attr("StaticName")}}),i>1?r:a},$.fn.SPServices.SPRedirectWithID=function(e){var t=$.extend({},{redirectUrl:"",qsParamName:"ID"},e);S.thisList=$().SPServices.SPListNameFromUrl();var a=$().SPServices.SPGetQueryString(),r=a.ID,i=a.List,o=a.RootFolder,s=a.ContentTypeId;if("undefined"==typeof a.ID)r=$().SPServices.SPGetLastItemId({listName:S.thisList}),$("form[name='aspnetForm']").each(function(){var e=location.href.indexOf("?")>0?location.href.substring(0,location.href.indexOf("?")):location.href,t="string"==typeof a.Source?"Source="+a.Source.replace(/\//g,"%2f").replace(/:/g,"%3a"):"",n=[];"undefined"!=typeof i&&n.push("List="+i),"undefined"!=typeof o&&n.push("RootFolder="+o),"undefined"!=typeof s&&n.push("ContentTypeId="+s);var l=e+(n.length>0?"?"+n.join("&")+"&":"?")+"Source="+e+"?ID="+r+(t.length>0?"%26RealSource="+a.Source:"")+("string"==typeof a.RedirectURL?"%26RedirectURL="+a.RedirectURL:"");$(this).attr("action",l)});else{for(;a.ID===r;)r=$().SPServices.SPGetLastItemId({listName:S.thisList});var n="string"==typeof a.RedirectURL?a.RedirectURL:t.redirectUrl;location.href=n+(n.indexOf("?")>0)?"&":"?"+t.qsParamName+"="+r+("string"==typeof a.RealSource?"&Source="+a.RealSource:"")}},$.fn.SPServices.SPSetMultiSelectSizes=function(e){var t=$.extend({},{multiSelectColumn:"",minWidth:0,maxWidth:0,debug:!1},e),a="SPServices.SPSetMultiSelectSizes",r=new C(t.multiSelectColumn);if(null===r.Obj.html()&&t.debug)return void k(a,"multiSelectColumn: "+t.multiSelectColumn,X);if("M"!==r.Type&&t.debug)return void k(a,"multiSelectColumn: "+t.multiSelectColumn,"Column is not multi-select.");var i=r.Obj,o=i.closest("span").find("select[ID$='SelectResult']"),s=w("SPSetMultiSelectSizes",t.multiSelectColumn),n=i.closest("span");n.append("<select id='"+s+"' ></select>");var l=n.find("> select");l.css({width:"auto",height:0,visibility:"hidden"}),l.append(i.find("option").clone()),l.append(o.find("option").clone());var c=l.width()+5,u=c;(t.minWidth>0||t.maxWidth>0)&&(c<t.minWidth&&(c=t.minWidth),u<t.minWidth&&(u=t.minWidth),u>t.maxWidth&&(u=t.maxWidth));var d=c;i.css("width",d+"px").parent().css("width",u+"px"),o.css("width",d+"px").parent().css("width",u+"px"),(0===t.maxWidth||t.maxWidth>u)&&(i.parent().css("overflow-x","hidden"),o.parent().css("overflow-x","hidden")),l.remove()},$.fn.SPServices.SPScriptAudit=function(e){var t=$.extend({},{webURL:"",listName:"",outputId:"",auditForms:!0,auditViews:!0,auditPages:!0,auditPagesListName:"Pages",showHiddenLists:!1,showNoScript:!1,showSrc:!0},e),r=[["New","NewForm.aspx",!1],["Display","DispForm.aspx",!1],["Edit","EditForm.aspx",!1]],i;$("#"+t.outputId).append("<table id='SPScriptAudit' width='100%' style='border-collapse: collapse;' border=0 cellSpacing=0 cellPadding=1><tr><th></th><th>List</th><th>Page Class</th><th>Page Type</th><th>Page</th>"+(t.showSrc?"<th>Script References</th>":"")+"</tr></table>"),$("#SPScriptAudit th").attr("class","ms-vh2-nofilter"),(t.auditForms||t.auditViews)&&$().SPServices({operation:"GetListCollection",webURL:t.webURL,async:!1,completefunc:function(e){$(e.responseXML).find("List").each(function(){i=$(this),(0===t.listName.length||i.attr("Title")===t.listName)&&(t.showHiddenLists&&"False"===i.attr("Hidden")||!t.showHiddenLists)&&(t.auditForms&&$().SPServices({operation:"GetListContentTypes",webURL:t.webURL,listName:i.attr("ID"),async:!1,completefunc:function(e){$(e.responseXML).find("ContentType").each(function(){if("0x0120"!==$(this).attr("ID").substring(0,6)){var e=$(this).find("FormUrls");for(bt=0;bt<r.length;bt++)if($(e).find(r[bt][0]).each(function(){a(t,i,"Form",this.nodeName,(t.webURL.length>0?t.webURL:$().SPServices.SPGetCurrentSite())+Q+$(this).text()),r[bt][2]=!0}),!r[bt][2]){var o=i.attr("DefaultViewUrl");a(t,i,"Form",r[bt][0],o.substring(0,o.lastIndexOf(Q)+1)+r[bt][1])}for(bt=0;bt<r.length;bt++)r[bt][2]=!1}})}}),t.auditViews&&$().SPServices({operation:"GetViewCollection",webURL:t.webURL,listName:i.attr("ID"),async:!1,completefunc:function(e){$(e.responseXML).find("View").each(function(){a(t,i,"View",$(this).attr("DisplayName"),$(this).attr("Url"))})}}))})}});var o=0,s=[];if("string"==typeof t.auditPagesListName?(o=1,s.push(t.auditPagesListName)):(o=t.auditPagesListName.length,s=t.auditPagesListName),t.auditPages)for(bt=0;o>bt;bt++)$().SPServices({operation:"GetList",async:!1,cacheXML:!0,webURL:t.webURL,listName:s[bt],completefunc:function(e){$(e.responseXML).find("List").each(function(){i=$(this)
})}}),$().SPServices({operation:"GetListItems",async:!1,webURL:t.webURL,listName:s[bt],CAMLQuery:"<Query><Where><Neq><FieldRef Name='ContentType'/><Value Type='Text'>Folder</Value></Neq></Where></Query>",CAMLViewFields:"<ViewFields><FieldRef Name='Title'/><FieldRef Name='FileRef'/></ViewFields>",CAMLRowLimit:0,completefunc:function(e){$(e.responseXML).SPFilterNode("z:row").each(function(){var e=$(this).attr("ows_FileRef").split(";#")[1],r=$(this).attr("ows_Title"),o="undefined"!=typeof r?r:"";e.indexOf(".aspx")>0&&a(t,i,"Page",o,Q+e)})}});$("#SPScriptAudit tr[class='ms-alternating']:even").removeAttr("class")},$.fn.SPServices.SPArrangeChoices=function(e){var t=$.extend({},{listName:$().SPServices.SPListNameFromUrl(),columnName:"",perRow:99,randomize:!1},e),a=!1,r=[],i,o=$().SPServices({operation:"GetList",async:!1,cacheXML:!0,listName:t.listName});o.done(function(){a="TRUE"===$(o.responseXML).find("Field[DisplayName='"+t.columnName+"']").attr("FillInChoice")?!0:!1;var e=x(t.columnName),s=$(e).find("tr").length,n=0,l,c;for($(e).find("tr").each(function(e){n++,a&&n===s-1?l=$(this).find("td").html():a&&n===s?c=$(this).find("td").html():r.push($(this).html())}),t.randomize&&r.sort(R),i="<tr>",bt=0;bt<r.length;bt++)i+=r[bt],(bt+1)%t.perRow===0&&(i+="</TR><TR>");i+="</tr>",a&&(i+="<tr><td colspan='99'>"+l+c+"</td></tr>"),$(e).find("tr").remove(),$(e).find("table").append(i)})},$.fn.SPServices.SPAutocomplete=function(e){var t=$.extend({},{WebURL:"",sourceList:"",sourceColumn:"",columnName:"",CAMLQuery:"",CAMLQueryOptions:"<QueryOptions></QueryOptions>",CAMLRowLimit:0,filterType:"BeginsWith",numChars:0,ignoreCase:!1,highlightClass:"",uniqueVals:!1,maxHeight:99999,slideDownSpeed:"fast",processingIndicator:"_layouts/images/REFRESH.GIF",debug:!1},e),a,r=$("input[Title='"+t.columnName+"']");$("input[Title='"+t.columnName+"']").css("position","");var i=r.attr("ID"),o=r.css("color"),s=r.css("width");if(null===r.html()&&t.debug)return void k("SPServices.SPAutocomplete","columnName: "+t.columnName,"Column is not an input control or is not found on page");r.closest("span").find("br").remove(),r.wrap("<div>");var n=w("SPAutocomplete",t.columnName);r.after("<div><ul id='"+n+"' style='width:"+s+";display:none;padding:2px;border:1px solid #2A1FAA;background-color:#FFF;position:absolute;z-index:40;margin:0'></div>"),$("#"+n).css("width",s),$(r).keyup(function(){var e=$(this).val();if($("#"+n).hide(),e.length<t.numChars)return!1;r.css({"background-image":"url("+t.processingIndicator+")","background-position":"right","background-repeat":"no-repeat"});var s=[],l="<Query><OrderBy><FieldRef Name='"+t.sourceColumn+"'/></OrderBy><Where>";t.CAMLQuery.length>0&&(l+="<And>"),l+="<"+t.filterType+"><FieldRef Name='"+t.sourceColumn+"'/><Value Type='Text'>"+e+"</Value></"+t.filterType+">",t.CAMLQuery.length>0&&(l+=t.CAMLQuery+"</And>"),l+="</Where></Query>",$().SPServices({operation:"GetListItems",async:!1,webURL:t.WebURL,listName:t.sourceList,CAMLQuery:l,CAMLQueryOptions:t.CAMLQueryOptions,CAMLViewFields:"<ViewFields><FieldRef Name='"+t.sourceColumn+"' /></ViewFields>",CAMLRowLimit:t.CAMLRowLimit,completefunc:function(a){var r=t.ignoreCase?e.toUpperCase():e;$(a.responseXML).SPFilterNode("z:row").each(function(){var e=$(this).attr("ows_"+t.sourceColumn),a=t.ignoreCase?$(this).attr("ows_"+t.sourceColumn).toUpperCase():$(this).attr("ows_"+t.sourceColumn);if("Contains"===t.filterType){var i=a.indexOf(r);i>=0&&(!t.uniqueVals||-1===$.inArray(e,s))&&s.push($(this).attr("ows_"+t.sourceColumn))}else r!==a.substr(0,r.length)||t.uniqueVals&&-1!==$.inArray(e,s)||s.push($(this).attr("ows_"+t.sourceColumn))})}});var c="";for(bt=0;bt<s.length;bt++){if(t.highlightClass.length>0){var u=RegExp(e,t.ignoreCase?"gi":"g"),d=s[bt].match(u),m=0;for(a=0;a<d.length;a++){var p=s[bt].indexOf(d[a],m),h=p+d[a].length,f="<span class='"+t.highlightClass+"'>"+d[a]+"</span>";s[bt]=s[bt].substr(0,p)+f+s[bt].substr(h),m=p+f.length}}c+="<li style='display: block;position: relative;cursor: pointer;'>"+s[bt]+"</li>"}$("#"+n).html(c),$("#"+n+" li").click(function(){$("#"+n).fadeOut(t.slideUpSpeed),$("#"+i).val($(this).text())}).mouseover(function(){var e={cursor:"hand",color:"#ffffff",background:"#3399ff"};$(this).css(e)}).mouseout(function(){var e={cursor:"inherit",color:o,background:"transparent"};$(this).css(e)}),s.length>0&&$("#"+n).slideDown(t.slideDownSpeed),r.css("background-image","")})},$.fn.SPServices.SPGetQueryString=function(){for(var e={},t,a=location.search.substring(1,location.search.length),r=a.split("&"),i=/^([^=]+)=(.*)/i,o=0;o<r.length;o++)t=i.exec(r[o]),i.test(location.href)&&null!==t&&t.length>2&&(e[t[1]]=unescape(t[2]).replace(/\+/g," "));return e},$.fn.SPServices.SPListNameFromUrl=function(e){var t=$.extend({},{listName:""},e);if(t.listName.length>0)return S.thisList=t.listName,S.thisList;if(S.thisList.length>0)return S.thisList;var a=location.href,r=a.substring(0,a.indexOf(".aspx")),i=decodeURIComponent(r.substring(0,r.lastIndexOf(Q)+1)).toUpperCase();return $().SPServices({operation:"GetListCollection",async:!1,completefunc:function(e){$(e.responseXML).find("List").each(function(){var e=$(this).attr("DefaultViewUrl"),t=e.substring(0,e.lastIndexOf(Q)+1).toUpperCase();return i.indexOf(t)>0?(S.thisList=$(this).attr("ID"),!1):void 0})}}),S.thisList},$.fn.SPServices.SPUpdateMultipleListItems=function(e){var t=$.extend({},{webURL:"",listName:"",CAMLQuery:"",batchCmd:"Update",valuepairs:[],completefunc:null,folder:"",debug:!1},e),a,r=[],i=[];$().SPServices({operation:"GetListItems",async:!1,webURL:t.webURL,listName:t.listName,CAMLQuery:t.CAMLQuery,CAMLQueryOptions:"<QueryOptions><ViewAttributes Scope='Recursive' />"+(t.folder.length>0?"<Folder>"+t.folder+"</Folder>":"")+"</QueryOptions>",completefunc:function(e){$(e.responseXML).SPFilterNode("z:row").each(function(){r.push($(this).attr("ows_ID"));var e=$(this).attr("ows_FileRef");e="/"+e.substring(e.indexOf(";#")+2),i.push(e)})}});var o,s="<Batch OnError='Continue'>";for(a=0;a<r.length;a++){for(s+="<Method ID='"+a+"' Cmd='"+t.batchCmd+"'>",o=0;o<t.valuepairs.length;o++)s+="<Field Name='"+t.valuepairs[o][0]+"'>"+O(t.valuepairs[o][1])+"</Field>";s+="<Field Name='ID'>"+r[a]+"</Field>",i[a].length>0&&(s+="<Field Name='FileRef'>"+i[a]+"</Field>"),s+="</Method>"}s+="</Batch>",$().SPServices({operation:"UpdateListItems",async:!1,webURL:t.webURL,listName:t.listName,updates:s,completefunc:function(e){null!==t.completefunc&&t.completefunc(e)}})},$.fn.SPServices.SPConvertDateToISO=function(e){var t=$.extend({},{dateToConvert:new Date,dateOffset:"-05:00"},e),a="",r=t.dateToConvert;return a+=r.getFullYear()+"-",a+=j(r.getMonth()+1)+"-",a+=j(r.getDate()),a+="T"+j(r.getHours())+":",a+=j(r.getMinutes())+":",a+=j(r.getSeconds())+"Z"+t.dateOffset},$.fn.SPFilterNode=function(e){return this.find("*").filter(function(){return this.nodeName===e})},$.fn.SPXmlToJson=function(e){var t=$.extend({},{mapping:{},includeAllAttrs:!1,removeOws:!0},e),a,r=[];return this.each(function(){var e={},i=this.attributes;for($.each(t.mapping,function(){e[this.mappedName]=""}),a=0;a<i.length;a++){var s=i[a].name,n=t.mapping[s],l="undefined"!=typeof n?n.mappedName:t.removeOws?s.split("ows_")[1]:s,c="undefined"!=typeof n?n.objectType:void 0;(t.includeAllAttrs||void 0!==n)&&(e[l]=o(i[a].value,c))}r.push(e)}),r},$.fn.SPServices.SPFindPeoplePicker=function(e){var t=$.extend({},{peoplePickerDisplayName:"",valueToSet:"",checkNames:!0},e),a=$("nobr").filter(function(){return $(this).contents().eq(0).text()===t.peoplePickerDisplayName}).closest("tr"),r=a.find("div[name='upLevelDiv']"),i=a.find("img[Title='Check Names']:first");t.valueToSet.length>0&&r.html(t.valueToSet),t.checkNames&&i.click();var o=$.trim(r.text()),s=[];return r.children("span").each(function(){var e=$(this).find("div[data]").attr("data"),t={};if("undefined"!=typeof e){var a=$.parseXML(e),r=$(a);r.find("DictionaryEntry").each(function(){var e=$(this).find("Key").text(),a=$(this).find("Value").text();t[e]=a}),s.push(t)}else $().SPServices({operation:"GetUserInfo",async:!1,cacheXML:!0,userLoginName:$(this).attr("title"),completefunc:function(e){$(e.responseXML).find("User").each(function(){$.each(this.attributes,function(e,a){var r=a.name,i=a.value;t[r]=i}),s.push(t)})}})}),{row:a,contents:r,currentValue:o,checkNames:i,dictionaryEntries:s}},$.fn.SPFindPeoplePicker=function(e){return $().SPServices.SPFindPeoplePicker(e)},$.fn.SPServices.SPFindMMSPicker=function(e){for(var t=$.extend({},{MMSDisplayName:""},e),a=[],r=$("div[title='"+t.MMSDisplayName+"']"),i=r.closest("td").find("input[type='hidden']"),o=i.val().split(";"),s=0;s<o.length;s++){var n=o[s].split("|");a.push({value:n[0],guid:n[1]})}return{terms:a}},$.fn.SPServices.Version=function(){return W};var yt={"&":"&",'"':""","<":"<",">":">"},Lt={"&":"&",""":'"',"<":"<",">":">"}}(jQuery);