";break;default:break}V("#"+ay).html(aC)}});if(t.completefunc!==null){t.completefunc()}}V.fn.SPServices.SPFilterDropdown=function(aE){var av=V.extend({},{relationshipWebURL:"",relationshipList:"",relationshipListColumn:"",relationshipListSortColumn:"",columnName:"",listName:V().SPServices.SPListNameFromUrl(),promptText:"",noneText:"(None)",CAMLQuery:"",CAMLQueryOptions:"FALSE",completefunc:null,debug:false},aE);var aD="";var aC=null;var t;var ax;var aB;var aA;var az="SPServices.SPFilterDropdown";var ay=new ai(av.columnName);if(ay.Obj.html()===null&&av.debug){R(az,"columnName: "+av.columnName,ae);return}aC=W(ay,true);var aw=(av.relationshipListSortColumn.length>0)?av.relationshipListSortColumn:av.relationshipListColumn;var i="";if(av.CAMLQuery.length>0){i+=av.CAMLQuery}i+="";V().SPServices({operation:"GetList",async:false,cacheXML:true,listName:av.listName,completefunc:function(aG,aF){V(aG.responseXML).find("Fields").each(function(){V(this).find("Field[DisplayName='"+av.columnName+"']").each(function(){aA=(V(this).attr("Required")==="TRUE")?true:false;return false})})}});V().SPServices({operation:"GetListItems",async:false,webURL:av.relationshipWebURL,listName:av.relationshipList,CAMLQuery:i,CAMLViewFields:"",CAMLRowLimit:0,CAMLQueryOptions:av.CAMLQueryOptions,completefunc:function(aG,aF){V(aG.responseXML).find("errorstring").each(function(){var aH=V(this).text();if(av.debug&&aH==="One or more field types are not installed properly. Go to the list settings page to delete these fields."){R(az,"relationshipListColumn: "+av.relationshipListColumn,"Not found in relationshipList "+av.relationshipList)}else{if(av.debug&&aH==="Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)."){R(az,"relationshipList: "+av.relationshipList,"List not found")}}return});switch(ay.Type){case"S":V(ay.Obj).find("option").remove();if(!aA&&(av.promptText.length>0)){ay.Obj.append("")}else{if(!aA){ay.Obj.append("")}}break;case"C":aD=aA?"":av.noneText+"|0";ay.Obj.attr("value","");break;case"M":V(ay.Obj).find("option").remove();aB="";break;default:break}V(aG.responseXML).SPFilterNode("z:row").each(function(){var aJ,aI;var aH=V(this).attr("ows_"+av.relationshipListColumn);if(aH!==undefined&&aH.indexOf(";#")>0){var aL=aH.split(";#");aJ=aL[0];aI=aL[1]}else{aJ=V(this).attr("ows_ID");aI=aH}if(isNaN(aJ)){aJ=V(this).attr("ows_ID")}switch(ay.Type){case"S":var aK=(V(this).attr("ows_ID")===aC[0])?" selected='selected'":"";ay.Obj.append("");break;case"C":if(aJ===aC[0]){ay.Obj.attr("value",aI)}aD=aD+((aD.length>0)?"|":"")+aI+"|"+aJ;break;case"M":ay.Obj.append("");aB+=aJ+"|t"+aI+"|t |t |t";break;default:break}});switch(ay.Type){case"S":ay.Obj.trigger("change");break;case"C":ay.Obj.attr("choices",aD);ay.Obj.trigger("propertychange");break;case"M":ax=ay.Obj.closest("span").find("input[name$='MultiLookupPicker$data']");t=window[ay.Obj.closest("tr").find("button[id$='AddButton']").attr("id").replace(/AddButton/,"MultiLookupPicker_m")];currentSelection=ay.Obj.closest("span").find("select[ID$='SelectResult']");t.data="";ax.attr("value",aB);V(currentSelection).find("option").each(function(){var aH=V(this);V(this).attr("selected","selected");V(ay.Obj).find("option").each(function(){if(V(this).html()===aH.html()){aH.removeAttr("selected")}})});GipRemoveSelectedItems(t);V(ay.Obj).find("option").each(function(){var aH=V(this);V(currentSelection).find("option").each(function(){if(V(this).html()===aH.html()){aH.remove()}})});GipAddSelectedItems(t);t.data=GipGetGroupData(aB);ay.Obj.trigger("dblclick");break;default:break}}});if(av.completefunc!==null){av.completefunc()}};V.fn.SPServices.SPDebugXMLHttpResult=function(av){var ax=V.extend({},{node:null,indent:0},av);var aw;var az=3;var ay=4;var t="";t+="