/*    HTTP Host:  b.static.ak.fbcdn.net                                        */
/*    Generated:  December 17th 2009 4:05:53 PM PST                            */
/*      Machine:  10.16.139.104                                                */
/*       Source:  Global Cache                                                 */
/*     Location:  js/dykab30ksy8804go.pkg.js h:f0tmn7tv                        */
/*       Locale:  nu_ll                                                        */
/*         Path:  js/dykab30ksy8804go.pkg.js                                   */

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

function dynamic_custom_source(a){this.async_url=a;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(d){this.search_text=d;var a={q:d};if(this.async_params)copy_properties(a,this.async_params);var b='POST';if(this.method.toUpperCase()=='GET')b='GET';var c=new AsyncRequest().setURI(this.async_url).setMethod(b).setData(a).setHandler(bind(this,function(f){var e=f.getPayload();if(this.filter_suggestions)e=this.filter_suggestions(e);this.owner.found_suggestions(e,this.search_text,false);})).setErrorHandler(bind(this,function(e){this.owner.found_suggestions(false,this.search_text,false);})).setReadOnly(true).send();};dynamic_custom_source.prototype.set_search_params=function(a){this.async_params=a;};dynamic_custom_source.prototype.set_method=function(a){this.method=a;};dynamic_custom_source.prototype.gen_html=function(c,a){var b=['<div>',this.highlight_found(c.t,a),'</div>'];if(c.s)b.push('<div class="sub_result"><small>',c.s,'</small></div>');return b.join('');};dynamic_custom_source.prototype.highlight_found=function(a,b){return typeahead_source.highlight_found(a,b);};
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(a,c,b){b=b||{quick_submit:false};var d=(b.token)?b.token.i:null;copy_properties(this,{element:a,onselect:null,onsubmit:null,quickSubmit:b.quick_submit,source:c,token:b.token,typeaheadpro:null,value:d,properties:b});a.uitypeahead=this;a.onfocus=this._onFocus.bind(this);}copy_properties(UITypeahead.prototype,{_onFocus:function(event){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(b){var a=false;if(b){this.token=b;this.value=b.i;if(this.onselect)a=this.onselect(b);}return a;},_onSubmit:function(b){var a=this.quickSubmit;if(this.onsubmit)a=this.onsubmit(b);return a;}});

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