/*    HTTP Host:  static.ak.fbcdn.net                                          */
/*    Generated:  February 9th 2010 12:34:54 AM PST                            */
/*      Machine:  10.16.139.104                                                */
/*       Source:  Backing Store                                                */
/*     Location:  js/7xmljlwxu34ss4sk.pkg.js h:2b41pqzl                        */
/*       Locale:  nu_ll                                                        */
/*         Path:  js/7xmljlwxu34ss4sk.pkg.js                                   */

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

function fc_with_target(fn){return function(_L1){var _L2=collect_data_attrib(_L1,'comment');if(!_L2){Util.error('failed to find target info for '+_L1);return;}_L2.link_data=collect_data_attrib(_L1,'ft');var _L3=$A(arguments);_L3[0]=_L2;return fn.apply(null,_L3);};}function feedcomment_get_feedback_sources(){return {'FEEDBACK_SOURCE_PROFILE':0,'FEEDBACK_SOURCE_NEWS_FEED':1,'FEEDBACK_SOURCE_OBJECT':2,'FEEDBACK_SOURCE_MOBILE':3,'FEEDBACK_SOURCE_EMAIL':4,'FEEDBACK_SOURCE_API':5,'FEEDBACK_SOURCE_OBJECTS_PAGE':6};}function feedcomment_constants(){}feedcomment_constants.MAX_COMMENTS_TO_SHOW=1000;var feedcomment_submit_d=fc_with_target(function(_L0){return feedcomment_submit(_L0.target_fbid,_L0.item_id,_L0.source,_L0.target_owner,_L0.type_id,_L0.assoc_obj_id,_L0.link_data,_L0.check_hash,_L0.source_app_id,_L0.extra_data,_L0.extra_story_params);});function feedcomment_submit(_L0,_L1,_L2,_L3,_L4,_L5,_L6,_L7,_L8,_L9,_La){var _Lb=_feedcomment_get_add_comment_form(_L0,_L1);var _Lc=_feedcomment_get_add_comment_textarea(_L0,_L1);var _Ld=_feedcomment_get_add_comment_button(_L0,_L1);var _Le=_feedcomment_get_publish_story_checkbox(_L0,_L1);var _Lf=_feedcomment_get_credits_giver_input(_L0,_L1,_L2);var _L10=(_Lf&&parseInt(_Lf.value,10))||0;var _L11=arguments;var _L12=true;if(_Le)_L12=_Le.checked;var _L13=function(_L1a){var _L1b=_L1a.getPayload();if('userData' in _L1b&&_L1b.userData=='nux'){if(_L1a.isReplay())return;new Dialog(_L1b).setButtons([{label:_tx("Potrdi"),handler:function(){feedcomment_submit.apply(this,_L11);},name:'confirm_comment'},Dialog.CANCEL]).show();}else feedcomment_add_comment_onsuccess(_L1b,_L0,_L1,_L2);};var _L14=(_Lc.getControl&&_Lc.getControl().getValue())||'';_L14=trim(_L14);if(_L14||_L10){_Ld&&(_Ld.disabled=true);_Lc&&(_Lc.disabled=true);var _L15=_L10?'/ajax/giftcredits/prompt.php':'/ajax/inline_comments.php';var _L16={'assoc_object_id':_L5,'check_hash':_L7,'comment_text':_L14,'item_id':_L1,'link_data':JSON.encode(_L6),'source':_L2,'target_fbid':_L0,'target_owner':_L3,'type_id':_L4,'source_app_id':_L8,'num_credits':_L10,'publish_story':_L12,'extra_data':_L9,'extra_story_params':_La};if(_L10){var _L17=_feedcomment_get_commentable_item_div(_L0,_L1,_L2).getAttribute('id');_L16={app_id:19675640871,receiver:_L3,back_url:URI.getRequestURI().setFragment(_L17).toString(),order_info:JSON.encode(_L16)};}req=new AsyncRequest().setURI(_L15).setData(_L16).setHandler(_L13).setFinallyHandler(function(){_Ld&&(_Ld.disabled=false);_Lc&&(_Lc.disabled=false);});var _L18=feedcomment_get_feedback_sources();if(_L2==_L18['FEEDBACK_SOURCE_PROFILE']){var _L19=URI.getRequestURI().getQueryData();if(_L19.ref&&_L19.ref=='search'){req.setContextData('clicktype','Write Comment');req.setContextData('source','profile_from_search');}}req.send();}else{feed_comment_cancel_add_box_onblur();animation(_Lc).to('background','#fff').from('#fcc').duration(140).go();}return status;}function feedcomment_add_comment_onsuccess(_L0,_L1,_L2,_L3){var _L4=_feedcomment_get_add_comment_form(_L1,_L2);var _L5=_feedcomment_get_add_comment_textarea(_L1,_L2);var _L6=_feedcomment_get_add_comment_button(_L1,_L2);var _L7=_feedcomment_get_publish_story_checkbox(_L1,_L2);var _L8=_feedcomment_get_credits_giver_input(_L1,_L2,_L3);var _L9=(_L8&&parseInt(_L8.value,10))||0;if(_L9&&'title' in _L0&&'body' in _L0){new Dialog(_L0).show();return;}if('last_comment' in _L0){feedcomment_append_comment(_L1,_L2,_L0.last_comment,_L0.comment_count,_L3);}else feedcomment_sync_with_markup(_L1,_L2,_L0.all_comments_html,_L0.comment_count,_L3);if(_L8){if('balance_html' in _L0){var _La=DOM.scry(document.body,'div.comments_add_box span.balance_text');var _Lb=HTML(_L0.balance_html);for(var i=_La.length-1;i>=0;--i)_La[i].setContent(_Lb);}_L8.value=0;DOM.find(_L4,'div.credits_giver_row').removeClass('credits_giver_row_revealed');}_L5.value='';if(_L5.getControl)_L5.getControl().setPlaceholderText(_tx("Ponovno komentiraj..."));feed_comment_hide_add_box(_L1,_L2,_L3,false);}function feed_comment_record_add_box_onblur(_L0){feed_comment_record_add_box_onblur.timeoutId=_L0;}function feed_comment_cancel_add_box_onblur(){var _L0=feed_comment_record_add_box_onblur.timeoutId;if(_L0)clearTimeout(_L0);}var feed_comment_hide_add_box_d=fc_with_target(function(_L0,_L1){return feed_comment_hide_add_box(_L0.target_fbid,_L0.item_id,_L0.source,_L1);});function feed_comment_hide_add_box(_L0,_L1,_L2,_L3){var _L4=_feedcomment_get_add_comment_textarea(_L0,_L1);if(_L4){var _L5=_L4.getControl&&_L4.getControl().getValue();var _L6=_feedcomment_get_commentable_item_div(_L0,_L1,_L2);if(!_L5){var _L7=_feedcomment_get_feed_comments(_L0,_L1);if(_L3)feed_comment_perform_hide_add_box(_L6,_L7,_L4);}feedcomment_hide_credits_nux_tip_d(_L6);}}function feed_comment_perform_hide_add_box(_L0,_L1,_L2){if(!_L2)return false;if(_L2.getControl&&_L2.getControl().getValue())return false;var _L3=DOM.scry(_L1,'div.ufi_section').length;var _L4=(DOM.scry(_L0,'div.has_likes').length>0);var _L5=(_L3>0)||_L4;var _L6=CSS.hasClass(_L0,'single_profile_story');var _L7=_feedcomment_get_commentable_item_form(_L0);if(!_L5&&!_L6)CSS.addClass(_L7,'collapsed_comments');if(_L2.getControl)CSS.addClass(_L7,'hidden_add_button');DataStore.set(_L0,'commentLinkShouldCloseAddBox',false);return true;}var feed_comment_show_add_button_d=fc_with_target(function(_L0){feed_comment_show_add_button(_L0.target_fbid,_L0.item_id,_L0.source);});function feed_comment_show_add_button(_L0,_L1,_L2){var _L3=_feedcomment_get_commentable_item_div(_L0,_L1,_L2);var _L4=_feedcomment_get_commentable_item_form(_L3);CSS.removeClass(_L4,'hidden_add_button');}function _feed_comment_update_count(_L0,_L1,_L2,_L3){var _L4=_feedcomment_get_commentable_item_div(_L0,_L1,_L3);feedback_update_toggle_counts(_L0,_L1,_L3,_L2);if(_L2==0){CSS.removeClass(_L4,'with_comments');CSS.addClass(_L4,'no_comments');}else{if(CSS.hasClass(_L4,'no_comments')){CSS.removeClass(_L4,'no_comments');CSS.addClass(_L4,'with_comments');}if(CSS.hasClass(_L4,'autoexpand_mode'))toggle_feedcomments_box_open(_L0,_L1,_L3,false);}}var load_more_feed_comments_d=fc_with_target(function(_L0,_L1,_L2){load_more_feed_comments(_L0.target_fbid,_L0.item_id,_L0.target_owner,_L0.type_id,_L0.assoc_obj_id,_L0.source,_L0.check_hash,_L0.extra_data,_L1,_L2);});function load_more_feed_comments(_L0,_L1,_L2,_L3,_L4,_L5,_L6,_L7,_L8,_L9){var _La=_feedcomment_get_feed_comments(_L0,_L1);var _Lb=DOM.scry(_La,'.ufi_section');var _Lc=null;for(var i=0;i<_Lb.length&&!_Lc;i++)_Lc=_feedcomment_get_comment_id(_Lb[i]);load_all_feed_comments(_L0,_L1,_L2,_L3,_L4,_L5,_L6,_L7,_L8,_L9,_Lc);}function feed_comments_update(_L0){var id='.comment_form_'+_L0;var div=DOM.scry($('content'),id);if(!div.length)return;var _L3=collect_data_attrib(div[0],'comment');load_all_feed_comments(_L3.target_fbid,_L3.item_id,_L3.target_owner,_L3.type_id,_L3.assoc_obj_id,_L3.source,_L3.check_hash);}var load_all_feed_comments_d=fc_with_target(function(_L0,_L1,_L2,_L3){load_all_feed_comments(_L0.target_fbid,_L0.item_id,_L0.target_owner,_L0.type_id,_L0.assoc_obj_id,_L0.source,_L0.check_hash,_L0.extra_data,_L1,_L2,_L3);});function load_all_feed_comments(_L0,_L1,_L2,_L3,_L4,_L5,_L6,_L7,_L8,_L9,_La){if(!_L4)_L4=0;if(!_L5){var _Lb=feedcomment_get_feedback_sources();_L5=_Lb['FEEDBACK_SOURCE_PROFILE'];}var _Lc=_feedcomment_get_feed_comments(_L0,_L1);if(_La)if(CSS.hasClass(_Lc,'paging')){return;}else CSS.addClass(_Lc,'paging');var _Ld=_feedcomment_get_add_comment_form(_L0,_L1);var _Le=function(_L10){var _L11=_L10.getPayload();var _L12=load_all_feed_comments.curry(_L0,_L1,_L2,_L3,_L4,_L5,_L6,_L7);feedcomment_sync_with_markup(_L0,_L1,_L11.all_comments_html,_L11.comment_count,_L5,_La,_L11.pager,_L11.force_update,_L11.num_new_comments,_L12);var _L13=DOM.scry(_Lc,'div.comment_highlighted');for(var i=0;i<_L13.length;i++)animation(_L13[i]).duration(500).checkpoint().to('backgroundColor','#ECEFF5').duration(1500).ondone(CSS.removeClass.bind(null,_L13[i],'comment_highlighted')).go();};var _Lf={type:ft.FT_COM_EXPANSION};ft.logElem(_Lc,_Lf);new AsyncRequest().setURI('/ajax/inline_comments_get.php').setData({'assoc_object_id':_L4,'check_hash':_L6,'get_all':1,'comments_range':_L8,'item_id':_L1,'target_fbid':_L0,'target_owner':_L2,'type_id':_L3,'source':_L5,'highlighted_comment_ids':_L9,'cutoff_id':_La,'extra_data':_L7}).setHandler(_Le).send();}function feedcomment_sync_with_markup(_L0,_L1,_L2,_L3,_L4,_L5,_L6,_L7,_L8,_L9){var _La=_feedcomment_get_feed_comments(_L0,_L1);if(_L7){CSS.removeClass(_La,'paging');var _Lb=collect_data_attrib(_La,'comment').num_comments;var _Lc=_Lb?(_L3-_Lb):0;new Dialog().setTitle(_tx("Prej\u0161njih komentarjev ni mogo\u010de prikazati")).setBody(_Lc>1?_tx("{number} comments have been added since you last refreshed the page. Would you like to view the most recent comments?",{number:_Lc}):_tx("Too many additional comments have been made since you last refreshed the page. Would you like to view the most recent comments?")).setButtons(Dialog.OK_AND_CANCEL).setHandler(function(_L10){if(_L10==Dialog.OK)_L9();}).show();}else if(_La){replace_collected_data_attrib(_La,'comment','num_comments',_L3);if(_L5){var _Ld=DOM.find(_La,'.paging_container');DOM.prependContent(_Ld,HTML(_L2));feedcomment_update_paging_header(_La,_L6);var _Le=DOM.scry(_Ld,'.comments_page');var _Lf=_Le[0];animation(_Lf).from('height',0).to('height','auto').duration(60*_L8).ondone(feedcomment_cutoff_excessive_comments.curry(_La,_Ld,_Le,_Lf,_L8)).go();}else set_inner_html(_La,_L2);_feed_comment_update_count(_L0,_L1,_L3,_L4);}}function feedcomment_update_paging_header(_L0,_L1){CSS.removeClass(_L0,'paging');var _L2=DOM.find(_L0,'.paging_header');if(_L1){set_inner_html(_L2,_L1);}else _L0.removeChild(_L2);}function feedcomment_cutoff_excessive_comments(_L0,_L1,_L2,_L3,_L4){var _L5=DataStore.get(_L1,'total_comments');DataStore.set(_L3,'num_comments',_L4);if(!_L5){var _L6=_L2[1];_L5=DOM.scry(_L6,'.ufi_section').length;DataStore.set(_L6,'num_comments',_L5);}_L5+=_L4;for(var i=_L2.length-1;i>=0&&_L5>feedcomment_constants.MAX_COMMENTS_TO_SHOW;i--){var _L8=_L2[i];var _L9=DataStore.get(_L8,'num_comments');_L1.removeChild(_L8);_L5-=_L9;if(!CSS.hasClass(_L0,'comments_cutoff'))CSS.addClass(_L0,'comments_cutoff');}DataStore.set(_L1,'total_comments',_L5);}function feedcomment_scroll_to_comments(_L0,_L1,_L2){var div=_feedcomment_get_comments_target_wrapper(_L0,_L1);if(div)DOMScroll.scrollTo(div,true,_L2);}function feedcomment_remove_comment(_L0,_L1,_L2,_L3,_L4){var _L5=_feedcomment_get_comment(_L0,_L1,_L2);if(_L5){DOM.remove(_L5);_feed_comment_update_count(_L0,_L1,_L3,_L4);}}function feedcomment_append_comment(_L0,_L1,_L2,_L3,_L4){var _L5=_feedcomment_get_feed_comments(_L0,_L1);if(_L5){DOM.appendContent(_L5,HTML(_L2));_feed_comment_update_count(_L0,_L1,_L3,_L4);}}function remove_feed_comment_dialog(_L0,_L1,_L2,_L3,_L4,_L5,_L6,_L7,_L8,_L9){var _La=_feedcomment_get_add_comment_form(_L0,_L1);var _Lb=function(_Lf){var _L10=_Lf.getPayload();feedcomment_remove_comment(_L0,_L1,_L2,_L10.comment_count,_L4);};var req=new AsyncRequest().setURI('/ajax/inline_comments.php').setData({'assoc_object_id':_L6,'check_hash':_L7,'comments_range':_L8,'del_id':_L2,'item_id':_L1,'source':_L4,'target_fbid':_L0,'target_owner':_L3,'type_id':_L5,'extra_data':_L9}).setHandler(_Lb);var _Ld=feedcomment_get_feedback_sources();if(_L4==_Ld['FEEDBACK_SOURCE_PROFILE']){var _Le=URI.getRequestURI().getQueryData();if(_Le.ref&&_Le.ref=='search'){req.setContextData('clicktype','Delete Comment');req.setContextData('source','profile_from_search');}}req.send();}var toggle_feedcomments_box_open_d=fc_with_target(function(_L0,_L1){return toggle_feedcomments_box_open(_L0.target_fbid,_L0.item_id,_L0.source,_L1);});function toggle_feedcomments_box_open(_L0,_L1,_L2,_L3){var _L4=_feedcomment_get_commentable_item_div(_L0,_L1,_L2);if(_L4){var _L5=false;if(DataStore.get(_L4,'commentLinkShouldCloseAddBox'))_L5=feed_comment_perform_hide_add_box(_L4,_feedcomment_get_feed_comments(_L0,_L1),_feedcomment_get_add_comment_textarea(_L0,_L1));if(!_L5){var _L6=_feedcomment_get_commentable_item_form(_L4);CSS.removeClass(_L6,'collapsed_comments');var _L7=_feedcomment_get_first_item_textarea(_L4);if(_L7&&_L3)_L7.focus();DataStore.set(_L4,'commentLinkShouldCloseAddBox',true);}}}function toggle_feedcomments_box(_L0,_L1,_L2){var _L3=_feedcomment_get_commentable_item_div(_L0,_L1,_L2);if(_L3){var _L4=_feedcomment_get_commentable_item_form(_L3);CSS.toggleClass(_L4,'collapsed_comments');}}function _feedcomment_get_commentable_item_div(_L0,_L1,_L2){var _L3;var _L4=feedcomment_get_feedback_sources();if(_L2==_L4['FEEDBACK_SOURCE_OBJECT']||_L2==_L4['FEEDBACK_SOURCE_OBJECTS_PAGE']){_L3=ge('commentable_item_'+_L1);}else{_L3=ge('commentable_item_'+_L1+'_'+_L0);if(!_L3)_L3=ge('commentable_item_'+_L1);if(!_L3)_L3=ge('div_story_'+_L1+'_'+_L0);if(!_L3)_L3=ge('div_story_'+_L1);}return _L3;}function _feedcomment_get_commentable_item_div_nosource(_L0,_L1){var div;if(div=ge('commentable_item_'+_L1))return div;if(div=ge('commentable_item_'+_L1+'_'+_L0))return div;return ge('div_story_'+_L1+'_'+_L0);}function _feedcomment_get_commentable_item_form(_L0){return DOM.find(_L0,'form.add_comment');}function feedback_update_toggle_counts(_L0,_L1,_L2,_L3){var _L4=_feedcomment_get_commentable_item_div(_L0,_L1,_L2);if(_L4){var _L5=DOM.scry(_L4,'span.feedback_link_count');for(var i=0;i<_L5.length;++i){var _L7=_L5[i];DOM.setText(_L7,_L3);}}}function _feedcomment_get_comments_target_wrapper(_L0,_L1){return _feedcomment_get_first_existing_elem('comment_box',_L0,_L1);}function _feedcomment_get_feed_comments(_L0,_L1){return _feedcomment_get_first_existing_elem('comments_list_wrapper',_L0,_L1);}function _feedcomment_get_add_comment_form(_L0,_L1){return _feedcomment_get_first_existing_elem('add_comment',_L0,_L1);}function _feedcomment_get_add_comment_textarea(_L0,_L1){return _feedcomment_get_first_existing_elem('add_comment_text',_L0,_L1);}function _feedcomment_get_publish_story_checkbox(_L0,_L1){return _feedcomment_get_first_existing_elem('publish_story',_L0,_L1);}function _feedcomment_get_credits_giver_input(_L0,_L1,_L2){var _L3=_feedcomment_get_commentable_item_div(_L0,_L1,_L2);var _L4=DOM.scry(_L3,'.credits_giver_input');return _L4.length?_L4[0]:null;}function _feedcomment_get_first_item_textarea(_L0){var _L1=_L0.getElementsByTagName('textarea');if(_L1.length>0){return _L1[0];}else return null;}function _feedcomment_get_add_comment_button(_L0,_L1){var _L2=_feedcomment_get_first_existing_elem('submit_comment',_L0,_L1);return _L2.firstChild;}function _feedcomment_get_add_comment_wrapper(_L0,_L1){return _feedcomment_get_first_existing_elem('add_comment_wrapper',_L0,_L1);}function _feedcomment_get_comment(_L0,_L1,_L2){var _L3;if(_L3=ge('comment_'+_L1+'_'+_L0+'_'+_L2)){return _L3;}else return ge('comment_'+_L0+'_'+_L2);}function _feedcomment_get_comment_id(_L0){var _L1=/^comment_(?:\d+_){1,2}(\d+)$/.exec(_L0.id);if(_L1)_L1=_L1[1];return _L1;}function _feedcomment_get_first_existing_elem(_L0,_L1,_L2){var div=_feedcomment_get_commentable_item_div_nosource(_L1,_L2);if(div){var _L4=div.scry('*.'+_L0);if(_L4.length)return _L4[0];}var _L5;if(_L5=ge(_L0+'_'+_L2+'_'+_L1)){return _L5;}else if(_L5=ge(_L0+'_'+_L1)){return _L5;}else return ge(_L0+'_'+_L2);}function feedcomment_log_ufi_with_credits(){new AsyncRequest().setURI('/ajax/giftcredits/log.php').send();}var feedcomment_show_credits_nux_tip_d=fc_with_target(function(_L0){var _L1=ge('credits_nux_tip');var _L2=_feedcomment_get_credits_giver_input(_L0.target_fbid,_L0.item_id,_L0.source);if(!_L1||!_L2)return;if(!shown(_L1)){var _L3=DOM.find(_L1,'.credits_nux_tip_title');DOM.setContent(_L3,HTML(_tx("Give Credit to {name}",{'name':_L0.target_owner_name})));Vector2.getElementPosition(_L2,'document').add(-5,25).setElementPosition(_L1);$('content').appendChild(_L1);animation(_L1).to('opacity',1).from(0).show().duration(200).go();}var _L4=DataStore.get(_L1,'nuxTipTimeoutId');if(_L4){clearTimeout(_L4);DataStore.remove(_L1,'nuxTipTimeoutId');}});var feedcomment_hide_credits_nux_tip_d=fc_with_target(function(_L0){var _L1=ge('credits_nux_tip');if(_L1)DataStore.set(_L1,'nuxTipTimeoutId',setTimeout(hide.bind(null,_L1),150));});var feedcomment_focus_credits_box_d=fc_with_target(function(_L0){var _L1=_feedcomment_get_credits_giver_input(_L0.target_fbid,_L0.item_id,_L0.source);if(_L1)DOM.setCaretPosition(_L1,0,_L1.value.length);});var feedcomment_increment_credits_input_d=fc_with_target(function(_L0,_L1){var _L2=_feedcomment_get_credits_giver_input(_L0.target_fbid,_L0.item_id,_L0.source);var _L3=parseInt(_L2.value,10)||0;if(_L3<0)_L3=0;_L2.value=_L3+_L1;return true;});function feedcomment_verify_credits(_L0){if(_L0.value==''){_L0.value=0;}else if(!(/^\d*$/).test(_L0.value)){_L0.value=0;animation(_L0).to('background','#fff').from('#fcc').duration(140).go();}}
function InlineParticipants(_L0,_L1){this.asyncUri=_L1;this.target=this.getTargetFromId(_L0);if((!this.target)||this.target.pending)return;if(this.target.cached){this.toggleVisibility();}else{this.initializeFromTarget();this.fetchParticipants();}}copy_properties(InlineParticipants.prototype,{getTargetFromId:function(_L0){return $(_L0);},fetchParticipants:function(){this.target.pending=true;new AsyncRequest().setURI(this.asyncUri).setMethod('GET').setReadOnly(true).setData(this.getFetchData()).setHandler(bind(this,'fetchedActorsResponse')).setErrorHandler(bind(this,'fetchedActorsError')).send();this.loadTimeout=setTimeout(this.showLoadIndicator.bind(this),200);},showLoadIndicator:function(){this.loadTimeout=null;if(this.target.pending){this.loading=true;CSS.addClass(this.target,'participants_loading');show(this.target);}},hideLoadIndicator:function(){if(this.loadTimeout){clearTimeout(this.loadTimeout);this.loadTimeout=null;}if(this.loading)CSS.removeClass(this.target,'participants_loading');},getSearchUri:function(){return this.target.getAttribute("search_href");},fetchedActorsResponse:function(_L0){var _L1=_L0.getPayload();var _L2=_L1["has_more"];var _L3=_L1["actors"];var _L4=_L1["see_all_js"];var _L5=[];if(!_L3)return this.fetchedActorsError();this.hideLoadIndicator();for(var i=0;i<_L3.length;i++){var _L7=this.createNameContainer(_L3[i]);this.target.appendChild(_L7);}if(_L2){var _L8=this.getSearchUri();var _L9=_L1['more_text']||this.getSearchText();if(_L8){var _La=$N('a',{href:_L8,className:'see_all'},_L9);if(_L4){var _Lb=new Function(_L4);Event.listen(_La,'click',_Lb);}this.target.appendChild(_La);}}this.target.pending=false;this.target.cached=true;this.toggleVisibility(true);animation(this.target).show().from('opacity',0).to('opacity',1).duration(450).go();},getSearchText:function(){return _tx("Prika\u017ei vse");},fetchedActorsError:function(_L0){this.target.pending=false;var _L1=this.getSearchUri();if(_L1){goURI(_L1);}else hide(this.target);},createNameContainer:function(_L0){var _L1=$N("div",{title:_L0.name,className:"name_container "+(_L0.div_class||"")},null);var pic=$N('img',{src:_L0.img_src,alt:_L0.name,className:'UIProfileImage UIProfileImage_LARGE'});if(_L0.profile_href){var _L3=$N('a',{className:"pic_container",href:_L0.profile_href},pic);var _L4=$N('a',{href:_L0.profile_href},_L0.first_name);}else{var _L3=$N('span',{className:"pic_container"},pic);var _L4=$N('span',{className:"name_link"},_L0.first_name);}_L1.appendChild(_L3);_L1.appendChild($N('span',{className:"name"},_L4));return _L1;},toggleVisibility:function(_L0){if(!_L0)toggleDisplayNone(this.target);}});function StoryParticipants(_L0){var _L1='/ajax/feed_participants_ajax.php';this.parent.construct(this,_L0,_L1);}copy_properties(StoryParticipants.prototype,{initializeFromTarget:function(){this.storyKey=this.target.getAttribute("story_key");this.storyUser=this.target.getAttribute("user");},getFetchData:function(){return {sid:this.storyKey,uid:this.storyUser};}});StoryParticipants.extend('InlineParticipants');function MutualFriends(_L0,max){this.max=max;var _L2='/ajax/mutual_friends_ajax.php';this.parent.construct(this,_L0,_L2);}copy_properties(MutualFriends.prototype,{initializeFromTarget:function(){this.friend=this.target.getAttribute("friend");},getFetchData:function(){fetch_data={uid:this.friend};if(this.max)fetch_data.max=this.max;return fetch_data;},getSearchText:function(){return _tx("Prika\u017ei vse skupne prijatelje");}});MutualFriends.extend('InlineParticipants');function SearchMutualFriends(_L0){this.parent.construct(this,_L0);}copy_properties(SearchMutualFriends.prototype,{getFetchData:function(){return {uid:this.friend,max:8};}});SearchMutualFriends.extend('MutualFriends');function SuggestionReceivers(_L0,_L1,_L2,_L3){var _L4='/ajax/suggestion_receivers_ajax.php';copy_properties(this,{suggesters:_L1,newcomer:_L2,receiver:_L3});this.parent.construct(this,_L0,_L4);}copy_properties(SuggestionReceivers.prototype,{getFetchData:function(){return {suggesters:this.suggesters,newcomer:this.newcomer,receiver:this.receiver};},initializeFromTarget:bagofholding});SuggestionReceivers.extend('InlineParticipants');function LikeParticipants(_L0,_L1,_L2){var _L3='/ajax/like/participants.php';copy_properties(this,{feedback_params:_L0,search_uri:_L2});this.parent.construct(this,_L1,_L3);}copy_properties(LikeParticipants.prototype,{getTargetFromId:function(_L0){return $(_L0).scry('.like_users')[0];},getFetchData:function(){return {feedback_params:JSON.encode(this.feedback_params)};},getSearchUri:function(){return this.search_uri;},fetchedActorsResponse:function(_L0){LikeController.informUpdateState(this.feedback_params.target_fbid,_L0.getPayload().like_state_info);this.parent.fetchedActorsResponse(_L0);},initializeFromTarget:bagofholding,toggleVisibility:function(_L0){if(_L0)toggle_feedcomments_box_open_d(this.target,false);CSS.toggleClass(this.target.parentNode,'participants_not_expanded');this.parent.toggleVisibility(_L0);}});LikeParticipants.extend('InlineParticipants');
function LikeController(){}copy_properties(LikeController,{constructLP:function(_L0){var _L1=collect_data_attrib(_L0,'comment');_L1.actor=_L1.target_owner;var _L2='like_box_'+_L1.item_id+'_'+_L1.target_fbid;var _L3=new URI('/social_graph.php').setQueryData({node_id:_L1.target_fbid,'class':'LikeManager'}).toString();var _L4=collect_data_attrib(_L0,'ft');ft.logData(_L4,ft.get_see_more_params('like'));new LikeParticipants(_L1,_L2,_L3);},saveChangeLike_d:function(_L0,_L1){if(_L1)toggle_feedcomments_box_open_d(_L0,false);var _L2=collect_data_attrib(_L0,'comment');_L2.link_data=collect_data_attrib(_L0,'ft');_L2.actor=_L2.target_owner;return LikeController.saveChangeLike(_L2,_L1,_L2.check_hash);},saveChangeLike:function(_L0,_L1,_L2){var _L3=_L0.target_fbid;var _L4={feedback_params:JSON.encode(_L0),should_delete:!_L1,check_hash:_L2};LikeController.informChangeLike(_L3,_L1);var _L5=bind(null,LikeController.changeLikeResponse,_L3,_L1);new AsyncRequest().setURI('/ajax/like/like.php').setData(_L4).setHandler(_L5).setErrorHandler(_L5).send();},changeLikeResponse:function(_L0,_L1,_L2){if(_L2.isReplay())LikeController.informChangeLike(_L0,_L1);if(_L2.getError()){if(!_L2.getErrorIsWarning())LikeController.informChangeLike(_L0,!_L1);ErrorDialog.showAsyncError(_L2);}else LikeController.informUpdateState(_L0,{payload:_L2.payload});},informChangeLike:function(_L0,_L1){LikeController.informUpdateState(_L0,{exists:_L1});},informUpdateState:function(_L0,_L1){Arbiter.inform('like/update/'+_L0,_L1);}});function LikeComponent(_L0,_L1,_L2){copy_properties(this,{feedback_params:_L0,exists:_L1,container_id:_L2,container:null});Arbiter.subscribe('like/update/'+_L0.target_fbid,this.updateState.bind(this));}copy_properties(LikeComponent.prototype,{updateState:function(_L0,_L1){if(!this.init())return;this._updateState(_L1);},_hasMarkup:function(_L0){if(_L0){return (DOM.scry(this.sentence_container,'div.like_component_exists')[0]!=null);}else return (DOM.scry(this.sentence_container,'div.like_component_not_exists')[0]!=null);},_updateState:function(_L0){if(typeof _L0.exists!='undefined')this._updateLikeState(_L0.exists);if(typeof _L0.payload!='undefined'&&!this._hasMarkup(_L0.payload.disp_exists))this._updatePayload(_L0.payload);},_updatePayload:function(_L0){this.init();},_updateLikeState:function(_L0){if(_L0==this.exists)return;this.exists=_L0;this.updateClasses();},init:function(){if(!this.container)this.container=ge(this.container_id);return !!this.container;},updateClasses:function(){CSS.conditionClass(this.container,'like_exists',this.exists);CSS.conditionClass(this.container,'like_not_exists',!this.exists);},_updateContent:function(_L0,_L1,_L2,_L3){_L2=HTML(_L2);_L3=HTML(_L3);if(_L0&&_L2!=_L0.innerHTML)DOM.setContent(_L0,_L2);if(_L1&&_L3!=_L1.innerHTML)DOM.setContent(_L1,_L3);}});function LikeLink(_L0,_L1,_L2){this.parent.construct(this,_L0,_L1,_L2);}LikeLink.extend('LikeComponent');function LikeBox(_L0,_L1,_L2,_L3){copy_properties(this,{has_other_users:_L2,animating:false,pending_animation:false});this.parent.construct(this,_L0,_L1,_L3);}copy_properties(LikeBox,{BOX_ANIM_TIME:200,SENTENCE_ANIM_TIME:200,PIC_ANIM_TIME:300});copy_properties(LikeBox.prototype,{init:function(){if(!this.parent.init())return false;copy_properties(this,{sentence_container:DOM.scry(this.container,'div.like_sentence_container')[0],sentence_exists:DOM.scry(this.container,'div.like_sentence_exists')[0],sentence_not_exists:DOM.scry(this.container,'div.like_sentence_not_exists')[0]});if(!this.sentence_container)Bootloader.loadComponents(['pic-container-css'],function(){var ufi=this.container.appendChild($N('div',{className:'ufi_section participants_not_expanded'}));this.sentence_container=ufi.appendChild($N('div',{className:'like_sentence_container'}));ufi.appendChild($N('div',{className:'like_users clearfix pictures_container',style:{display:'none'}}));}.bind(this));return true;},updateClasses:function(){this.parent.updateClasses();var _L0=this.exists||this.has_other_users;CSS.conditionClass(this.container,'has_likes',_L0);CSS.conditionClass(this.container,'no_likes',!_L0);},onDoneAnimating:function(){this.animating=false;if(this.pending_animation){this.pending_animation=false;this.animate();}else this.updateClasses();},_updatePayload:function(_L0){if(typeof _L0.like_sentence!='undefined'&&this.container){this.sentence_container.appendContent(HTML(_L0.like_sentence));this.parent._updatePayload(_L0);}if(this.exists==_L0.disp_exists)this.animate();},_updateState:function(_L0){if(_L0.sentence_exists&&_L0.sentence_not_exists){this._updateContent(this.sentence_exists,this.sentence_not_exists,_L0.sentence_exists,_L0.sentence_not_exists);if(!this.init())return false;}this.parent._updateState(_L0);},_updateLikeState:function(_L0){if(_L0==this.exists)return;this.exists=_L0;return this.animate();},animate:function(){var _L0=this._hasMarkup(true)&&this._hasMarkup(false);var _L1=this._hasMarkup(true)&&this.exists&&!this.has_other_users;if(!(_L0||_L1))return false;if(this.animating){this.pending_animation=!this.pending_animation;return false;}this._animate();},_animate:function(){this.animating=true;var _L0=(!this.exists||this.has_other_users);var _L1=(this.exists||this.has_other_users);var _L2=bind(this,'onDoneAnimating');if(!_L0&&_L1){_L2();CSS.setOpacity(this.sentence_container,0);animation(this.container).from('height','0px').to('height','auto').duration(LikeBox.BOX_ANIM_TIME).show().go();animation(this.sentence_container).to('opacity',1).duration(LikeBox.BOX_ANIM_TIME).go();return;}else if(_L0&&!_L1){var _L3=bind(this,function(){_L2();feed_comment_hide_add_box_d(this.container,true);});animation(this.sentence_container).to('opacity',0).duration(LikeBox.BOX_ANIM_TIME).go();animation(this.container).to('height','0px').duration(LikeBox.BOX_ANIM_TIME).hide().ondone(_L3).go();return;}var _L4=this.exists?this.sentence_exists:this.sentence_not_exists;var _L5=this.exists?this.sentence_not_exists:this.sentence_exists;animation(_L5).to('opacity',0).duration(LikeBox.SENTENCE_ANIM_TIME).hide().go();var _L6=animation(_L4).from('opacity',0).to('opacity',1).duration(LikeBox.SENTENCE_ANIM_TIME).show();var _L7=DOM.scry(this.container,'div.like_participant_viewer')[0];if(!_L7)_L6.ondone(_L2);_L6.go();animation(this.sentence_container).from('height',Vector2.getElementDimensions(_L5).y).to('height',Vector2.getElementDimensions(_L4).y).duration(LikeBox.SENTENCE_ANIM_TIME).go();if(_L7){var _L8=DOM.scry(this.container,'div.like_participant_border')[0];if(this.exists){CSS.setOpacity(_L7,0);var _L9=animation(_L7).from('width','0px').to('width','auto').show().duration(LikeBox.PIC_ANIM_TIME).checkpoint().to('opacity',1).duration(LikeBox.PIC_ANIM_TIME).ondone(_L2);if(_L8){animation(_L8).to('opacity',0).hide().duration(LikeBox.PIC_ANIM_TIME).ondone(bind(_L9,_L9.go)).go();}else _L9.go();}else{var _L9=animation(_L7).to('opacity',0).duration(LikeBox.PIC_ANIM_TIME).checkpoint().to('width','0px').duration(LikeBox.PIC_ANIM_TIME);if(_L8){var _La=animation(_L8).from('opacity',0).to('opacity',1).show().duration(LikeBox.PIC_ANIM_TIME).ondone(_L2);_L9.ondone(bind(_La,_La.go));}else _L9.ondone(_L2);_L9.go();}}}});LikeBox.extend('LikeComponent');

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