/*
HTTP Host: static.ak.fbcdn.net
Generated: March 18th 2010 9:50:21 PM PDT
Machine: 10.16.139.108
Locale: nu_ll
Path: js/ds6qk2pr5340wgwo.pkg.js
*/

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

function ExternalFriendList(b,a,c,d){this.elemId=b;this.bodyElemId=b+'_body';this.statusElemId=b+'_status';this.condensed=a;this.excludeIds=c;this.itemOnClick=d;this.rendered=false;}ExternalFriendList.prototype={render:function(b,a){if(this.rendered)return;Arbiter.subscribe([ChatBuddyList.BUDDY_LIST_INITIALIZED],this._onInit.bind(this));},_onInit:function(){if(chatOptions.visibility){if(buddyList.haveFullList){this._render();}else{Arbiter.subscribe([ChatBuddyList.AVAILABILITY_CHANGED],this._render.bind(this));buddyList._forceUpdate();}this.onShow();}else this.onHide();Arbiter.subscribe(PresenceMessage.SHUTDOWN,this.onHide.bind(this));Arbiter.subscribe(PresenceMessage.RESTARTED,this.onShow.bind(this));Arbiter.subscribe(ChatOptions.VISIBILITY_CHANGED,this._handleVisibility.bind(this));},_render:function(){if(this.rendered)return;var d={fullDisplay:!this.condensed,excludeIds:this.excludeIds};Arbiter.subscribe(ChatBuddyList.BUDDY_CLICKED,this._handleOnClick.bind(this));var a=this.flid=buddyList.registerExternalFriendList(d);var c=keys(buddyList.availableList);if(count(this.excludeIds))c=c.filter((function(e){return (this.excludeIds[e]!=1);}).bind(this));c=buddyList._sort(c,null);var b=buddyList.renderEmptySearch(a)+'<ul class="list_select">'+'<li id="'+buddyList._getFriendListId(a)+'">'+buddyList._renderFriendListContent(a,c,true)+'</li>'+'</ul>';this.typeahead=new ChatBuddyListTypeahead($(this.elemId+'_buddy_list_typeahead_input'),$(this.elemId+'_buddy_list_typeahead'),a,this.excludeIds);$(this.bodyElemId).setContent(HTML(b));this.rendered=true;},_handleOnClick:function(b,a){if(a.flid==this.flid)this.itemOnClick(a.id);},_handleVisibility:function(){chatOptions.visibility?this.onShow():this.onHide();},onHide:function(){DOM.setContent($(this.statusElemId),_tx("Nem vagy el\u00e9rhet\u0151."));CSS.addClass($(this.bodyElemId),"buddy_list_hidden");CSS.removeClass($(this.statusElemId),"buddy_list_hidden");},onShow:function(){CSS.removeClass($(this.bodyElemId),"buddy_list_hidden");CSS.addClass($(this.statusElemId),"buddy_list_hidden");}};function ChatInviteFriendList(b,a,f,c){var e=function(g){var h=$(chatDisplay.tabs[g].getInputElemId());h.value=f;h.focus();};var d=new ExternalFriendList(b,a,c,e);d.render();}
function email_source(a){a=a?a+'&include_emails=1':'';this.parent.construct(this,a);}email_source.extend('friend_and_email_source');email_source.prototype.text_noinput=email_source.prototype.text_placeholder=_tx("Megadhatsz egy e-mail c\u00edmet...");email_source.prototype.text_nomatch=_tx("Megadhatsz egy e-mail c\u00edmet...");email_source.prototype.bootstrap=function(a){this.values='';this.index=0;this.ready();};
function multifriend_selector(c,b,e,g,f,h,a){this.num_rows=g;this.friend_info=c;this.form=ge(b);this.max=e;this.paginate=ua.ie()<8;this.page=0;this.total_items=0;this.num_per_page=this.num_rows*f;this.cur_view='all';this.num_selected=0;this.selected_ids={};this.colored_ids=a||{};this.disabled_ids={};this.disabled_reason=null;this.last_clicked=null;this.cur_network=0;this.cur_network_name='';this.cur_list=0;this.cur_list_name='';this.cur_list_members={};this.cur_event=0;this.cur_event_name='';this.cur_event_members={};this.loaded_event_filters={};this.notice_id='fb_multi_friend_selector_notice';this.set_view(this.cur_view);this.update_counters(0);if(h)for(var d=0;d<h.length;++d)this.select(h[d]);this.force_reset();}multifriend_selector.prototype.set_typeahead=function(a){this.fsth=a;};multifriend_selector.prototype.set_disabled=function(a){if(a)for(var b=0;b<a.length;b++)this.disabled_ids[String(a[b])]=true;};multifriend_selector.prototype.set_disabled_reason=function(a){this.disabled_reason=a;};multifriend_selector.prototype.force_reset=function(){this.dirty=true;setTimeout(this.reset.bind(this),0);};multifriend_selector.prototype.force_reset_now=function(){this.dirty=true;this.reset();};multifriend_selector.prototype.reset=function(){if(!this.dirty)return;this.filters=[];if(this.cur_view=='unselected'){this.filters.push(function(a,b){return !this.selected_ids[a];}.bind(this));}else if(this.cur_view=='selected')this.filters.push(function(a,b){return this.selected_ids[a];}.bind(this));if(this.cur_event)this.filters.push(function(a,b){return this.cur_event_members[a];}.bind(this));if(this.cur_network)this.filters.push(function(a,b){return b.networks[this.cur_network];}.bind(this));if(this.cur_list)this.filters.push(function(a,b){return this.cur_list_members[a];}.bind(this));if(this.search_filter)this.filters.push(this.search_filter);this.page=0;this.update_boxes();this.dirty=false;};multifriend_selector.prototype.set_search_filter=function(a){this.search_filter=a;this.force_reset();};multifriend_selector.prototype.get_matching_friends=function(){var a=[];for(var c in this.friend_info){for(var b=0;b<this.filters.length;b++)if(!this.filters[b](c,this.friend_info[c]))break;if(b==this.filters.length)a.push(c);}this.total_items=a.length;return a;};multifriend_selector.prototype.update_boxes=function(){var a=this.get_matching_friends();var c=[];for(var b=0;b<a.length;b++)if(!this.paginate||(b>=this.num_per_page*this.page&&b<this.num_per_page*(this.page+1)))c.push(this.render_friend_box(a[b]));DOM.setContent($('friends'),HTML(c.join('')));if(this.paginate)DOM.setContent($('mfs_pag_nav_links'),HTML(this.render_paginator()));if(this.total_items==0&&this.cur_view!='all')if(this.cur_view=='unselected'){this.notice_show(_tx("Nincsenek ki nem v\u00e1lasztott ismer\u0151seid."),true);}else if(this.cur_view=='selected')this.notice_show(_tx("Nem v\u00e1lasztott\u00e1l ki ismer\u0151st."),true);};multifriend_selector.prototype.render_friend_box=function(d){var c=this.friend_info[d];if(this.fsth&&this.fsth.cur_str){var e=typeahead_source.highlight_found(c.sname,this.fsth.cur_str);}else var e=c.sname;var a='';var f='fs.click(this.parentNode); return false;';var b=null;if(this.selected_ids[d]){a='class="selected"';}else if(this.disabled_ids[d]){a='class="disabled"';f='return false;';if(this.disabled_reason)b=this.disabled_reason;}else if(this.colored_ids[d])a='class="'+this.colored_ids[d]+'"';var g=['<li userid="',d,'" ',a,'>','<a href="#" title="',c.sname,'" onclick="',f,'">','<span class="square" style="background-image: url(',c.pic,');"><span></span></span>','<strong>',e,'</strong>'];if(e.split(' ').length<4&&c.pr_net)g.push('<br><span class="network">',c.pr_net,'</span>');if(b)g.push('<br><span class="disabled_reason">',b,'</span>');g.push('</a></li>');return g.join('');};multifriend_selector.prototype.render_paginator=function(){var c=[];var b=parseInt(this.total_items/this.num_per_page+.999);if(this.page>0)c.push('<li class="pagerpro_li">'+'<a href="#" class="pagerpro_a" onclick="return fs.prev_page();">Prev</a>'+'</li>');for(var a=Math.max(0,this.page-2);a<=Math.min(b-1,this.page+2);a++)c.push('<li class="pagerpro_li'+(a==this.page?' current':'')+'">'+'<a href="#" class="pagerpro_a" onclick="return fs.goto_page(',a,');">',a+1,'</a>'+'</li>');if(this.page<b-1)c.push('<li class="pagerpro_li">'+'<a class="pagerpro_a" href="#" onclick="return fs.next_page();">Next</a>'+'</li>');return c.join('');};multifriend_selector.prototype.goto_page=function(a){this.page=a;if(this.page<0){this.page=0;}else if(this.page*this.num_per_page>=this.total_items)this.page=parseInt(this.total_items/this.num_per_page+.999);this.update_boxes();return false;};multifriend_selector.prototype.prev_page=function(){return this.goto_page(this.page-1);};multifriend_selector.prototype.next_page=function(){return this.goto_page(this.page+1);};multifriend_selector.prototype.set_view=function(a){this.filter_reset();if(ge('view_'+a))CSS.setClass($('view_'+a),'view_on');this.cur_view=a;if(this.fsth)this.fsth.reset_search(true);this.force_reset();};multifriend_selector.prototype.click=function(a){var b=a.getAttribute('userid');if(this.cur_view.indexOf('selected')>=0&&b==this.last_clicked){CSS.setOpacity(a,1);window.clearTimeout(fx.timer_id);}this.last_clicked=b;if(!this.selected_ids[b]){if(this.max<0||this.num_selected<this.max){CSS.setClass(a,'selected');this.select(b);if(this.cur_view=='unselected')fx.doFadeOut(a,true);}else if(this.max>=0)if(this.max==1){this.notice_show(_tx("M\u00e1r kijel\u00f6lt\u00e9l 1 szem\u00e9lyt.",{maximum:this.max}),true);}else this.notice_show(_tx("Csak {maximum} ismer\u0151st v\u00e1laszthatsz ki.",{maximum:this.max}),true);}else{CSS.setClass(a,this.colored_ids[b]||'');this.unselect(b);this.delete_email_token(b);if(this.cur_view=='selected')fx.doFadeOut(a,true);}if(this.cur_view=='selected'&&this.num_selected<=0)this.notice_show(_tx("Nem v\u00e1lasztott\u00e1l ki ismer\u0151st."),false);this.display_limit();};multifriend_selector.prototype.select=function(b){var a=document.createElement('input');a.setAttribute('fb_protected','true');a.type='hidden';a.name='ids[]';a.value=b;this.form.appendChild(a);this.selected_ids[b]=a;this.update_counters(1);};multifriend_selector.prototype.get_selected=function(){var b=[];for(var a in this.selected_ids)b.push(a);return mapToInt(b);};multifriend_selector.prototype.unselect=function(a){if(this.selected_ids[a]){this.selected_ids[a].parentNode.removeChild(this.selected_ids[a]);delete this.selected_ids[a];this.update_counters(-1);}};multifriend_selector.prototype.update_counters=function(a){this.num_selected+=a;this.num_unselected-=a;$('view_selected_count').setContent(this.num_selected);};multifriend_selector.prototype.display_limit=function(){var a=this.max-this.num_selected;show('max_limit_notice');if(a>0&&a<=3){$('max_limit_notice').style.color='#f60';$('max_limit_notice').setContent(_tx("M\u00e9g tov\u00e1bbi {remaining-friends} ismer\u0151st v\u00e1laszthatsz ki.",{'remaining-friends':a}));}else if(this.max>=0&&a<=0){$('max_limit_notice').style.color='#C90000';$('max_limit_notice').setContent(_tx("A korl\u00e1t {limit}",{limit:this.max}));}else $('max_limit_notice').setContent('');};multifriend_selector.prototype.view=function(a){this.set_view(a);this.notice_hide();if(this.cur_network>0){this.network_filter(this.cur_network,this.cur_network_name);return;}this.force_reset();};multifriend_selector.prototype.network_filter=function(b,c){this.set_view('all');this.filter_reset();this.cur_network=b;this.cur_network_name=c;if(this.fsth)this.fsth.reset_search(true);this.force_reset_now();var a=[];if(this.max<0||this.total_items+this.num_selected<=this.max)a.push('<a href="#" onClick="fs.select_all();return false;" class="select">'+_tx("Mind kijel\u00f6l")+'</a>');a.push('<a href="#" class="hide" onClick="fs.network_clear(); return false;"></a> ');if(this.total_items==1){a.push(_tx("1 ismer\u0151s l\u00e1that\u00f3 a {network} k\u00f6z\u00f6ss\u00e9gb\u0151l.",{network:c}));}else a.push(_tx("{network} k\u00f6z\u00f6ss\u00e9gb\u0151l {count} ismer\u0151s\u00f6d l\u00e1that\u00f3",{count:this.total_items,network:c}));this.display_filter(a.join(''));};multifriend_selector.prototype.display_filter=function(a){show('fs_current_filter');$('fs_current_filter').setContent(HTML(a));};multifriend_selector.prototype.filter_reset=function(){hide('fs_current_filter');$('fs_current_filter').setContent('');this.cur_network=0;this.cur_network_name='';this.cur_list=0;this.cur_list_name='';this.cur_list_members={};this.cur_event=0;this.cur_event_name='';this.cur_event_members={};this.force_reset();};multifriend_selector.prototype.network_clear=function(){this.filter_reset();this.view('all');};multifriend_selector.prototype.list_filter=function(b,f,e){this.set_view('all');this.filter_reset();this.cur_list=b;this.cur_list_name=f;var d=e.length;for(var c=0;c<d;++c)this.cur_list_members[e[c]]=1;if(this.fsth)this.fsth.reset_search(true);this.force_reset_now();var a=[];if(this.max<0||this.total_items+this.num_selected<=this.max)a.push('<a href="#" onClick="fs.select_all();return false;" class="select">'+_tx("Mind kijel\u00f6l")+'</a>');a.push('<a href="#" class="hide" onClick="fs.network_clear(); return false;"></a> ');if(this.total_items==1){a.push(_tx("1 ismer\u0151s\u00f6d van a {list} list\u00e1n.",{list:htmlize(f)}));}else a.push(_tx("{count} ismer\u0151s\u00f6d van a {list} list\u00e1n.",{count:this.total_items,list:htmlize(f)}));this.display_filter(a.join(''));};multifriend_selector.prototype.event_filter=function(a,b){this.set_view('all');this.filter_reset();this.cur_event=a;this.cur_event_name=b;if(this.loaded_event_filters[a]){this.cur_event_members=this.loaded_event_filters[a];this.display_event_filter_text(a,b);}else new AsyncRequest().setURI('/ajax/events/mfs_filter.php').setData({eid:a}).setMethod('POST').setHandler(function(c){this.load_event_filter(a,b,c);}.bind(this)).send();};multifriend_selector.prototype.load_event_filter=function(a,b,e){if(!e)return false;var d=e.getPayload();if(!d)return false;for(var c=0;c<d.length;++c)this.cur_event_members[d[c]]=1;this.loaded_event_filters[a]=this.cur_event_members;this.display_event_filter_text(a,b);};multifriend_selector.prototype.display_event_filter_text=function(a,b){if(this.fsth)this.fsth.reset_search(true);this.force_reset_now();var c=[];if(this.max<0||this.total_items+this.num_selected<=this.max)c.push('<a href="#" onClick="fs.select_all();return false;" class="select">'+_tx("Mind kijel\u00f6l")+'</a>');c.push('<a href="#" class="hide" onClick="fs.network_clear(); return false;"></a> ');if(this.total_items==1){c.push(_tx("1 ismer\u0151s\u00f6det l\u00e1tod, akit megh\u00edvtak az esem\u00e9nyre: {event}",{event:htmlize(b)}));}else c.push(_tx("Most azt a(z) {count} bar\u00e1todat l\u00e1tod, akik megh\u00edv\u00e1st kaptak a(z) {event} esem\u00e9nyre.",{count:this.total_items,event:htmlize(b)}));this.display_filter(c.join(''));};multifriend_selector.prototype.select_all=function(){var a=this.get_matching_friends();if(a.length<=this.max)for(var b=0;b<a.length;b++){var c=a[b];if(!this.selected_ids[c]&&!this.disabled_ids[c])this.select(c);}this.update_boxes();};multifriend_selector.prototype.unselect_all=function(){var a=this.get_matching_friends();if(a.length<=this.max)for(var b=0;b<a.length;b++){var c=a[b];if(this.selected_ids[c])this.unselect(c);}this.update_boxes();};multifriend_selector.prototype.notice_show=function(c,a){$(this.notice_id).setContent(c);show(this.notice_id);CSS.setOpacity(ge(this.notice_id),1);if(a==true)var b=setTimeout('fx.doFadeOut(\'fb_multi_friend_selector_notice\', false);',2500);};multifriend_selector.prototype.notice_hide=function(){hide(this.notice_id);};multifriend_selector.prototype.skip=function(e){var a=new URI(get_form_attr(this.form,'action'));var d=a.getQueryData();var b=a.setQueryData({}).toString();var c=$N('form',{action:b,method:'GET',target:e});DOM.getRootElement().appendChild(c);create_hidden_inputs(d,c);c.submit();};multifriend_selector.prototype.show_force_invite_dialog=function(a,c){this.dialog=new Dialog().setStackable(true).setShowLoading(true);var b;if(c){b=_tx("Alkalmaz\u00e1s elhagy\u00e1sa");}else b=_tx("Alkalmaz\u00e1s elt\u00e1vol\u00edt\u00e1sa");this.onResponse=function(d){var f=d.getPayload();if(f.status){var e=this.dialog;this.dialog.setTitle(f.dialog_title).setBody(f.dialog_contents).setButtons([Dialog.newButton('mfs-button',b,'',function(){this.onResponsePost=function(g){var h=g.getPayload();e.setTitle(h.dialog_title).setBody(h.dialog_contents).setButtons([Dialog.OK]).clearHandler().show();if(h.status)goURI('/home.php');};new AsyncRequest().setURI('/fbml/ajax/force_invite.php').setData({app_id:a,remove:1}).setHandler(bind(this,'onResponsePost')).setErrorHandler(bagofholding).send();}),Dialog.newButton('continue',_tx("Folytat\u00e1s mindenk\u00e9pp"),'',function(){new AsyncRequest().setURI('/fbml/ajax/force_invite.php').setData({app_id:a,'continue':1}).setHandler(bagofholding).setErrorHandler(bagofholding).send();if(Dialog.getCurrent())Dialog.getCurrent().hide();})]).show();}else this.dialog.setTitle(f.dialog_title).setBody(f.dialog_contents).setButtons([Dialog.OK]).show();};new AsyncRequest().setURI('/fbml/ajax/force_invite.php').setData({app_id:a}).setHandler(bind(this,'onResponse')).setErrorHandler(bind(this,'onError')).send();return false;};multifriend_selector.prototype.filter_menu_open=function(){setTimeout(function(){$('friends').style.overflow='hidden';}.bind(this),1);};multifriend_selector.prototype.filter_menu_close=function(){$('friends').style.overflow='auto';};function multifriend_selector_typeahead(f,c,a){this.cur_str='';this.clear_div=null;this.focused=false;this.obj=f;this.obj.typeahead=this;this.items=c;this.fs=a;this.fs.set_typeahead(this);this.placeholder=this.obj.getAttribute('placeholder');var e='multi_friend_selector';addEventBase(this.obj,'focus',this._onfocus.bind(this),e);addEventBase(this.obj,'blur',this._onblur.bind(this),e);addEventBase(this.obj,'keyup',function(event){var h=event?event:window.event;var i=h?h.keyCode:-1;setTimeout(function(){return this._onkeyup(i);}.bind(this),0);}.bind(this),e);this.capture_submit();this.first_letter_index={};for(var b in c){var d=typeahead_source.tokenize(c[b].name);for(var g=0;g<d.length;g++){if(!this.first_letter_index[d[g][0]])this.first_letter_index[d[g][0]]={};this.first_letter_index[d[g][0]][b]=true;}}}multifriend_selector_typeahead.prototype={_onfocus:function(a){if(this.obj.value==this.placeholder)this.obj.value='';this.focused=true;this.capture_submit();if(this.fs&&this.fs.cur_view!='all')this.fs.view('all');},_onblur:function(a){this.focused=false;if(this.cur_str==''){this.hide_clear();this.obj.value=this.placeholder;}},_onkeyup:function(a){switch(a){case 27:return false;break;case undefined:case 37:case 38:case 39:case 40:return false;break;case 13:this.select();break;case 8:case 0:default:if(this.search()){this.reset_search(false,false);}else if(this.obj.value&&this.fs)this.fs.filter_reset();break;}},capture_submit:function(){if((!this.captured_form||this.captured_substitute!=this.captured_form.onsubmit)&&this.obj.form){this.captured_form=this.obj.form;this.captured_event=this.obj.form.onsubmit;this.captured_substitute=this.obj.form.onsubmit=function(){return false;}.bind(this.obj.form);}},reset_search:function(a,c){if(this.obj){var d=null;if(!this.obj.getControl){d=new TextInputControl(this.obj);}else d=this.obj.getControl();var e=d.getValue();if(!e||a){this.cur_str='';if(e){d.clear();this._onblur();d.setFocused(false);}}}if(c==true){var b=fx.timer_delay*10;window.setTimeout("fsth.show_all()",b);}else this.show_all();},show_all:function(){this.fs.set_search_filter(null);},search:function(){var b=typeahead_source.flatten_string(this.obj.value);if(b==this.cur_str)return false;this.cur_str=b;var c=typeahead_source.tokenize(b).sort(typeahead_source._sort);if(!c[0])return true;var a=this.first_letter_index[c[0][0]];this.show_clear();this.fs.set_search_filter(function(d,e){if(a!=null){return a[d]&&typeahead_source.check_match(c,e.name);}else return null;});return false;},show_clear:function(){if(this.clear_div==null){this.clear_div=document.createElement('div');this.clear_div.setAttribute('id','clear_finder');DOM.setContent(this.clear_div,HTML('<a href="#" onClick="fsth.reset_search(true);return false;" class="hide"></a>'));$('finder_friend_typeahead').appendChild(this.clear_div);}},hide_clear:function(){var a=ge('clear_finder');if(a){this.clear_div=null;a.parentNode.removeChild(a);}},select:function(){if(this.obj.value!=''&&this.obj.value!=this.placeholder&&this.fs.total_items==1)if(this.fs.click($('friends').firstChild)){this.obj.value='';this.reset_search(true,this.fs.cur_view!='all');}}};function condensed_multifriend_selector(b,a,c,e,d){this.parent.construct(this,b,a,c,0,[]);this.paginate=false;this.unselected_rows=e;this.selected_rows=d;}condensed_multifriend_selector.extend('multifriend_selector');condensed_multifriend_selector.prototype.set_typeahead=function(c){this.parent.set_typeahead(c);this.unselected_list=c.obj.parentNode.nextSibling;if(this.selected_rows==0){this.onebox=true;}else{this.selected_list=this.unselected_list.nextSibling;this.onebox=false;}this.total_items=0;for(var b=0;b<this.unselected_list.childNodes.length;b++){var a=this.unselected_list.childNodes[b];a.cb=a.firstChild;a.cb.checked=false;a.name_span=a.lastChild;a.onclick=function(){this.parentNode.parentNode.cmfs.toggle(this.cb.value);};this.friend_info[a.cb.value].unselected=a;this.total_items++;}if(!this.onebox){for(var b=0;b<this.selected_list.childNodes.length;b++){var a=this.selected_list.childNodes[b];a.cb=a.firstChild;a.cb.checked=false;a.name_span=a.lastChild;a.onclick=function(){this.parentNode.parentNode.cmfs.toggle(this.cb.value);};this.friend_info[a.cb.value].selected=a;this.total_items++;}this.nobody=document.createElement('div');CSS.setClass(this.nobody,'nobody_selected');DOM.setContent(this.nobody,_tx("Nem v\u00e1lasztott\u00e1l ki senkit."));this.selected_list.appendChild(this.nobody);}this.container=c.obj.parentNode.parentNode;this.container.cmfs=this;this.toomany=document.createElement('div');CSS.setClass(this.toomany,'toomany_selected');if(this.max==1){DOM.setContent(this.toomany,_tx("Csak egy ismer\u0151st jel\u00f6lhetsz ki.",{maximum:this.max}));}else DOM.setContent(this.toomany,_tx("M\u00e1r kiv\u00e1lasztott\u00e1l {maximum} szem\u00e9lyt.",{maximum:this.max}));this.container.appendChild(this.toomany);hide(this.toomany);this.check_sizes();window.setInterval(this.check_sizes.bind(this),100);this.container.style.visibility='visible';this.force_reset();};condensed_multifriend_selector.prototype.check_sizes=function(){if(this.container.offsetWidth==this.container_width)return;this.container_width=this.container.offsetWidth;var a=this.unselected_list.firstChild;var b=a&&a.offsetHeight?a.offsetHeight:19;this.unselected_list.style.height=b*this.unselected_rows+'px';if(!this.onebox){var d=15;this.selected_list.style.height=d*this.selected_rows+'px';}if(ua.safari()<500){var c=0;}else var c=6;this.fsth.obj.style.width=Math.max((this.container.offsetWidth-c-2),0)+'px';show(this.toomany);this.toomany.style.top=parseInt(this.unselected_list.offsetTop+(this.unselected_list.offsetHeight-this.toomany.offsetHeight)/2)+'px';hide(this.toomany);};condensed_multifriend_selector.prototype.check_match=function(c,a){for(var b=0;b<this.filters.length;b++)if(!this.filters[b](c,a))return false;return true;};condensed_multifriend_selector.prototype.update_match=function(a){this.total_items++;if(this.fsth&&this.fsth.cur_str){var b=typeahead_source.highlight_found(a.name,this.fsth.cur_str);}else var b=a.name;DOM.setContent(a.unselected.name_span,HTML(b));this.show(a.unselected);};condensed_multifriend_selector.prototype.update_boxes=function(){if(typeof this.onebox=='undefined')return;this.total_items=0;this.last_showing=null;for(var b in this.friend_info){var a=this.friend_info[b];if(a.checked&&!this.onebox)continue;if(this.check_match(b,a)){this.update_match(a);}else this.hide(a.unselected);}};condensed_multifriend_selector.prototype.show=function(a){show(a);this.last_showing=a;};condensed_multifriend_selector.prototype.hide=hide;condensed_multifriend_selector.prototype.toggle=function(b){var a=this.friend_info[b];if(this.onebox){if(!a.checked&&!a.unselected.cb.checked||a.checked&&a.unselected.cb.checked)return;}else{if(!a.checked&&!a.unselected.cb.checked)return;if(ua.firefox()&&a.checked&&a.selected.cb.checked)return;}a.checked=!a.checked;if(a.checked){if(this.num_selected==this.max){show(this.toomany);CSS.setOpacity(this.toomany,1);setTimeout(function(){fx.doFadeOut(this.toomany,false);}.bind(this),2500);a.checked=false;a.unselected.cb.checked=false;return false;}this.num_selected++;}else this.num_selected--;if(this.onebox){CSS.toggleClass(a.unselected,'selected');}else if(a.checked){this.total_items--;hide(this.nobody);hide(a.unselected);a.unselected.cb.checked=false;a.selected.cb.checked=true;show(a.selected);}else{if(!this.num_selected)show(this.nobody);this.hide(a.selected);if(!ua.opera()&&!(ua.safari()>=500))a.selected.cb.checked=false;if(this.check_match(b,a))this.update_match(a);}};condensed_multifriend_selector.prototype.filter_reset=function(){};condensed_multifriend_selector.prototype.set_view=function(){};condensed_multifriend_selector.prototype.update_counters=function(){};function condensed_mfs_typeahead(c,b,a){this.parent.construct(this,c,b,a);this.clear_div=document.createElement('div');CSS.setClass(this.clear_div,'hide');this.clear_div.onclick=function(){this.reset_search(true,false);return false;}.bind(this);hide(this.clear_div);this.obj.parentNode.insertBefore(this.clear_div,this.obj);}condensed_mfs_typeahead.extend('multifriend_selector_typeahead');condensed_mfs_typeahead.prototype.show_clear=function(){show(this.clear_div);};condensed_mfs_typeahead.prototype.hide_clear=function(){hide(this.clear_div);};condensed_mfs_typeahead.prototype.select=function(){if(this.fs.total_items==1&&!this.disabled_ids[this.fs.last_showing.cb.value]){this.fs.last_showing.cb.click();this.obj.value='';this.reset_search(true,false);}};multifriend_selector.prototype.addEmailTokenHandler=function(a){if(a.i){uid=a.i;if(!this.selected_ids[uid])if(this.num_selected<this.max){click_li=DOM.scry($('friends'),'li[userid="'+uid+'"]');if(click_li.length==1){fs.click(click_li[0]);}else{this.select(uid);if(this.friend_info[uid])this.set_view('selected');this.display_limit();}}else{this.notice_show(_tx("Csak {maximum} ismer\u0151st v\u00e1laszthatsz ki.",{maximum:this.max}),true);this.delete_email_token(uid);}}};multifriend_selector.prototype.removeEmailTokenHandler=function(a){if(a.i){uid=a.i;if(this.selected_ids[uid]){click_li=DOM.scry($('friends'),'li[userid="'+uid+'"]');if(click_li.length==1){fs.click(click_li[0]);}else this.unselect(uid);}}};multifriend_selector.prototype.delete_email_token=function(b){email_sections=DOM.scry($('fb_multi_friend_selector_wrapper'),'#email_section_id');if(email_sections.length>0){friend_inputs=DOM.scry(email_sections[0],'input[value="'+b+'"]');for(var a=0;a<friend_inputs.length;a++){delete_token=friend_inputs[a].parentNode.parentNode.parentNode.parentNode.parentNode;if(delete_token)DOM.remove(delete_token);}}};var fx={timer_id:'',timer_delay:25,timer_clearout:false,delta:.1,doFadeIn:function(a){if(ua.ie()<8){this.timer_delay=0;this.delta=.5;}if(this.timer_clearout&&this.timer_id)window.clearTimeout(this.timer_id);CSS.setOpacity(ge(a),0);$(a).style.visibility="visible";this.fadeIn(a,0);},fadeIn:function(a,b){obj=ge(a);if(b<=1){CSS.setOpacity(obj,b);b+=this.delta;this.timer_id=setTimeout(function(){fx.fadeIn(a,b);},this.timer_delay);}},doFadeOut:function(a,b){if(ua.ie()<8){this.timer_delay=0;this.delta=.5;}if(this.timer_clearout&&this.timer_id)window.clearTimeout(this.timer_id);CSS.setOpacity(ge(a),1);$(a).style.visibility="visible";this.fadeOut(a,1,b);},fadeOut:function(a,b,c){obj=ge(a);if(b>=0){CSS.setOpacity(obj,b);b-=this.delta;this.timer_id=setTimeout(function(){fx.fadeOut(a,b,c);},this.timer_delay);}else if(window.fs&&fs.paginate&&a!=fs.notice_id){fs.update_boxes();}else if(c){obj.parentNode.removeChild(obj);}else obj.style.display='none';}};

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