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