/*    HTTP Host:  b.static.ak.fbcdn.net                                        */
/*    Generated:  January 23rd 2010 9:43:17 PM PST                             */
/*      Machine:  10.16.140.110                                                */
/*       Source:  Backing Store                                                */
/*     Location:  js/dykab30ksy8804go.pkg.js h:4r761w1x                        */
/*       Locale:  nu_ll                                                        */
/*         Path:  js/dykab30ksy8804go.pkg.js                                   */

if (window.CavalryLogger) { CavalryLogger.start_js(["js\/dykab30ksy8804go.pkg.js"]); }

function dynamic_custom_source(_L0){this.async_url=_L0;this.method='POST';this.parent.construct(this);}dynamic_custom_source.extend('typeahead_source');dynamic_custom_source.cache_results=true;dynamic_custom_source.prototype.search_value=function(_L0){this.search_text=_L0;var _L1={q:_L0};if(this.async_params)copy_properties(_L1,this.async_params);var m='POST';if(this.method.toUpperCase()=='GET')m='GET';var r=new AsyncRequest().setURI(this.async_url).setMethod(m).setData(_L1).setHandler(bind(this,function(r){var _L4=r.getPayload();if(this.filter_suggestions)_L4=this.filter_suggestions(_L4);this.owner.found_suggestions(_L4,this.search_text,false);})).setErrorHandler(bind(this,function(r){this.owner.found_suggestions(false,this.search_text,false);})).setReadOnly(true).send();};dynamic_custom_source.prototype.set_search_params=function(_L0){this.async_params=_L0;};dynamic_custom_source.prototype.set_method=function(m){this.method=m;};dynamic_custom_source.prototype.gen_html=function(_L0,_L1){var _L2=['<div>',this.highlight_found(_L0.t,_L1),'</div>'];if(_L0.s)_L2.push('<div class="sub_result"><small>',_L0.s,'</small></div>');return _L2.join('');};dynamic_custom_source.prototype.highlight_found=function(_L0,_L1){return typeahead_source.highlight_found(_L0,_L1);};
function family_search_typeahead_source(){this.parent.construct(this,'/ajax/family/family_search_typeahead.php');}family_search_typeahead_source.extend('dynamic_custom_source');
function UITypeahead(_L0,_L1,_L2){_L2=_L2||{quick_submit:false};var _L3=(_L2.token)?_L2.token.i:null;copy_properties(this,{element:_L0,onselect:null,onsubmit:null,quickSubmit:_L2.quick_submit,source:_L1,token:_L2.token,typeaheadpro:null,value:_L3,properties:_L2});_L0.uitypeahead=this;_L0.onfocus=this._onFocus.bind(this);}copy_properties(UITypeahead.prototype,{_onFocus:function(_L0){this.typeaheadpro=new typeaheadpro(this.element,this.source,this.properties);this.typeaheadpro.onselect=this._onSelect.bind(this);this.typeaheadpro.onsubmit=this._onSubmit.bind(this);},_onSelect:function(_L0){var _L1=false;if(_L0){this.token=_L0;this.value=_L0.i;if(this.onselect)_L1=this.onselect(_L0);}return _L1;},_onSubmit:function(_L0){var _L1=this.quickSubmit;if(this.onsubmit)_L1=this.onsubmit(_L0);return _L1;}});

if (window.Bootloader) { Bootloader.done(["js\/dykab30ksy8804go.pkg.js"]); }