";break;default:break}ak("#"+aG).html(aK)}});if(aC.completefunc!==null){aC.completefunc()}}ak.fn.SPServices.SPFilterDropdown=function(aK){var aB=ak.extend({},{relationshipWebURL:"",relationshipList:"",relationshipListColumn:"",relationshipListSortColumn:"",relationshipListSortAscending:true,columnName:"",listName:ak().SPServices.SPListNameFromUrl(),promptText:"",noneText:"(None)",CAMLQuery:"",CAMLQueryOptions:"FALSE",completefunc:null,debug:false},aK);var aJ="";var aI=null;var aH;var aG;var aF="SPServices.SPFilterDropdown";var aE=new ar(aB.columnName);if(aE.Obj.html()===null&&aB.debug){W(aF,"columnName: "+aB.columnName,ah);return}aI=c(aE,true);var aD=(aB.relationshipListSortColumn.length>0)?aB.relationshipListSortColumn:aB.relationshipListColumn;var aC=(aB.relationshipListSortAscending===true)?"":"Ascending='FALSE'";var i="";if(aB.CAMLQuery.length>0){i+=aB.CAMLQuery}i+="";ak().SPServices({operation:"GetList",async:false,cacheXML:true,listName:aB.listName,completefunc:function(aL){ak(aL.responseXML).find("Fields").each(function(){ak(this).find("Field[DisplayName='"+aB.columnName+"']").each(function(){aG=(ak(this).attr("Required")==="TRUE")?true:false;return false})})}});ak().SPServices({operation:"GetListItems",async:false,webURL:aB.relationshipWebURL,listName:aB.relationshipList,CAMLQuery:i,CAMLViewFields:"",CAMLRowLimit:0,CAMLQueryOptions:aB.CAMLQueryOptions,completefunc:function(aL){ak(aL.responseXML).find("errorstring").each(function(){var aM=ak(this).text();if(aB.debug&&aM==="One or more field types are not installed properly. Go to the list settings page to delete these fields."){W(aF,"relationshipListColumn: "+aB.relationshipListColumn,"Not found in relationshipList "+aB.relationshipList)}else{if(aB.debug&&aM==="Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)."){W(aF,"relationshipList: "+aB.relationshipList,"List not found")}}return});switch(aE.Type){case"S":ak(aE.Obj).find("option").remove();if(!aG&&(aB.promptText.length>0)){aE.Obj.append("")}else{if(!aG){aE.Obj.append("")}}break;case"C":aJ=aG?"":aB.noneText+"|0";aE.Obj.attr("value","");break;case"M":ak(aE.master.candidateControl).find("option").remove();aH="";break;default:break}ak(aL.responseXML).SPFilterNode("z:row").each(function(){var aN={};var aM=ak(this).attr("ows_"+aB.relationshipListColumn);if(typeof aM!=="undefined"&&aM.indexOf(";#")>0){aN=new n(aM)}else{aN.id=ak(this).attr("ows_ID");aN.value=aM}if(isNaN(aN.id)){aN.id=ak(this).attr("ows_ID")}switch(aE.Type){case"S":var aO=(ak(this).attr("ows_ID")===aI[0])?" selected='selected'":"";aE.Obj.append("");break;case"C":if(aN.id===aI[0]){aE.Obj.attr("value",aN.value)}aJ=aJ+((aJ.length>0)?"|":"")+aN.value+"|"+aN.id;break;case"M":ak(aE.master.candidateControl).append("");aH+=aN.id+"|t"+aN.value+"|t |t |t";break;default:break}});switch(aE.Type){case"S":aE.Obj.trigger("change");break;case"C":aE.Obj.attr("choices",aJ);aE.Obj.trigger("propertychange");break;case"M":aE.master.data="";aE.MultiLookupPickerdata.attr("value",aH);ak(aE.master.resultControl).find("option").each(function(){var aM=ak(this);ak(this).attr("selected","selected");ak(aE.master.candidateControl).find("option").each(function(){if(ak(this).html()===aM.html()){aM.removeAttr("selected")}})});GipRemoveSelectedItems(aE.master);ak(aE.master.candidateControl).find("option").each(function(){var aM=ak(this);ak(aE.master.resultControl).find("option").each(function(){if(ak(this).html()===aM.html()){aM.remove()}})});GipAddSelectedItems(aE.master);aE.master.data=GipGetGroupData(aH);ak(aE.master.candidateControl).trigger("dblclick");break;default:break}}});if(aB.completefunc!==null){aB.completefunc()}};ak.fn.SPServices.SPDebugXMLHttpResult=function(aC){var aE=ak.extend({},{node:null,indent:0},aC);var aD;var aG=3;var aF=4;var aB="";aB+="