/*    HTTP Host:  static.ak.fbcdn.net                                          */
/*    Generated:  February 9th 2010 8:54:34 PM PST                             */
/*      Machine:  10.16.139.101                                                */
/*       Source:  Backing Store                                                */
/*     Location:  js/ed3inr0d414o8cg4.pkg.js h:b0okv4vk                        */
/*       Locale:  nu_ll                                                        */
/*         Path:  js/ed3inr0d414o8cg4.pkg.js                                   */

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

function ComposerAttachment(){this._container=null;}copy_properties(ComposerAttachment,{newFromURL:function(url,_L1){if(!/(?:https?:\/\/)?\w+\.\w+/.test(url))return false;var _L2=new ComposerAttachment();_L2.url=url;new AsyncRequest().setURI('/ajax/inbox/ajax.php').setData({action:'attachment',url:url}).setHandler(_L2._asyncCallback.bind(_L2)).setErrorHandler(_L1).send();return _L2;},setupThumbnails:function(_L0,obj){var _L2=new ImageSandbox();_L2.onfinish=function(){_L0=_L2.getImages();for(var i=_L0.length-1;i>=0;i--)if(_L0[i].width&&(_L0[i].height<50||_L0[i].width<50||_L0[i].height/_L0[i].width>3||_L0[i].width/_L0[i].height>3))_L0.splice(i,1);if(!_L0.length){CSS.removeClass(obj,'loading');CSS.removeClass(obj.parentNode,'has_image');var _L4=obj;while(_L4.parentNode&&_L4.tagName.toLowerCase()!='form')_L4=_L4.parentNode;_L4=_L4.getElementsByTagName('input');for(var i=0;i<_L4.length;i++)if(_L4[i].name.indexOf('[params][images]')!=-1)_L4[i].parentNode.removeChild(_L4[i]);return;}for(var si=0;si<_L0.length-1;si++)for(var sj=_L0.length-1;sj>=si;sj--)if(_L0[si].width*_L0[si].height<_L0[sj].width*_L0[sj].height){temp=_L0[si];_L0[si]=_L0[sj];_L0[sj]=temp;}var _L4=obj;while(_L4.parentNode&&_L4.tagName.toLowerCase()!='form')_L4=_L4.parentNode;_L4=_L4.getElementsByTagName('input');for(var i=0;i<_L4.length;i++)if(_L4[i].name.indexOf('[params][images]')!=-1){_L4=_L4[i];break;}CSS.removeClass(obj,'loading');new ThumbnailSelector(obj,_L4,_L0);}.bind(this);_L2.loadImages(_L0);}});copy_properties(ComposerAttachment.prototype,{containerReady:function(obj,_L1){this._container=obj;var _L2=obj.getElementsByTagName('input');var _L3=[''];for(var i=0;i<_L2.length;i++)if(_L2[i].type=='text'||_L2[i].type=='hidden')_L3.push('<input type="hidden" name="'+htmlspecialchars(_L2[i].name)+'" value="'+htmlspecialchars(_L2[i].value)+'" />');if(_L1){_L3.push('&nbsp;');obj.innerHTML=_L3.join('');CSS.addClass(obj,'share_attachment_loading');}else obj.innerHTML+=_L3.join('');},_renderInputsRecursive:function(_L0,_L1){if(_L1===null)return '';var _L2=[];if(typeof(_L1)=='object'){for(var i in _L1)_L2.push(this._renderInputsRecursive(_L0+'['+i+']',_L1[i]));}else if(typeof(_L1)!='function')_L2.push('<input type="hidden" name="',_L0,'" value="',htmlspecialchars(_L1),'" />');return _L2.join('');},_asyncCallback:function(_L0){var _L1=_L0.getPayload();var _L2=[_L1.html];_L2.push(this._renderInputsRecursive('attachment[params]',_L1.params));_L2.push('<input type="hidden" name="attachment[type]" value="',_L1.type,'" />');CSS.removeClass(this._container,'share_attachment_loading');set_inner_html(this._container,_L2.join(''));}});function ThumbnailSelector(obj,_L1,_L2){var _L3=['<div class="thumbnail_stage"><h4>'+_tx("Kies een afbeelding voor de snelkoppeling.")+'</h4><div class="selector clearfix"><div class="arrows clearfix">','<span class="left"><a href="#" class="arrow disabled">&nbsp;</a></span>','<span class="right"><a href="#" class="arrow ',_L2.length>1?'enabled':'disabled','">&nbsp;</a></span>','</div><div class="counter"><span>1 of ',_L2.length,'</span></div></div>'];for(var k=0;k<_L2.length;k++)_L3.push('<div class="thumbnail',k==0?' thumbnail_selected':' thumbnail_unselected','">','<img class="img_loading" src="',_L2[k].src,'" onload="adjustImage(this);" />','</div>');_L3.push('<label style="white-space:nowrap"><input name="no_picture" type="checkbox" onclick="this.parentNode.parentNode.parentNode.thumbnail.use_thumbnail(this.checked)" />'+_tx("Geen afbeelding")+'</label></div>');obj.innerHTML=_L3.join('');this.images=_L2;this.input=_L1;_L1.value=this.images[0].src;this.obj=obj;this.obj.thumbnail=this;this.label=obj.getElementsByTagName('span')[2];this.index=0;var _L5=obj.getElementsByTagName('a');this.left=_L5[0];this.right=_L5[1];this.left.onclick=this.left_arrow_press.bind(this);this.right.onclick=this.right_arrow_press.bind(this);this.left.onselectstart=this.right.onselectstart=function(){return false;};this.left.onmousedown=this.right.onmousedown=this._onmousedown;this.left.onmouseout=this.right.onmouseout=this._onmouseout;}copy_properties(ThumbnailSelector.prototype,{use_thumbnail:function(_L0){if(!_L0){this.move_selection(0);CSS.removeClass(this.obj,'thumbnail_dont_use');}else{this.input.value='';CSS.addClass(this.obj,'thumbnail_dont_use');}},_onmousedown:function(){CSS.addClass(this,'active');return false;},_onmouseout:function(){CSS.removeClass(this,'active');},left_arrow_press:function(){CSS.addClass(this.left,'active');this.move_selection(-1);return false;},right_arrow_press:function(){CSS.removeClass(this.right,'active');this.move_selection(1);return false;},move_selection:function(_L0){var _L1=this.index+_L0;if(_L1>=0&&_L1<this.images.length){var _L2=this.obj.getElementsByTagName('div');var j=0;this.index=_L1;for(var i=0;i<_L2.length;i++){var _L5=_L2[i].className;if(!CSS.hasClass(_L2[i],'thumbnail '))continue;var _L6=j==_L1;if(_L5.indexOf(_L6?'_unselected':'_selected')!=-1)CSS.setClass(_L2[i],_L5.replace(/thumbnail_(?:un)?selected/,_L6?'thumbnail_selected':'thumbnail_unselected'));j++;}this.label.innerHTML=_tx("{selected} van {total}",{selected:(_L1+1),total:j});CSS.setClass(this.left,this.left.className.replace(/[^ ]+abled/,_L1==0?'disabled':'enabled'));CSS.setClass(this.right,this.right.className.replace(/[^ ]+abled/,_L1==this.images.length-1?'disabled':'enabled'));this.input.value=this.images[_L1].src;}}});function ImageSandbox(){this.obj=document.createElement('div');this.obj.style.left=this.obj.style.top='-100px';this.obj.style.width=this.obj.style.height='1px';this.obj.style.overflow='hidden';this.images=0;this.done=0;DOM.getRootElement().appendChild(this.obj);}copy_properties(ImageSandbox.prototype,{loadImages:function(_L0){this.images=_L0.length;for(var i=0;i<_L0.length;i++)new ImageSandboxLoader(this,_L0[i]);},onImageLoaded:function(_L0){this.done++;this._stateChange();},onImageFailed:function(_L0){_L0.destroy();this.images--;this._stateChange();},getImages:function(){var _L0=new Array();var _L1=this.obj.getElementsByTagName('img');for(var i=0;i<_L1.length;i++)_L0.push(_L1[i]);return _L0;},_stateChange:function(){if(this.done==this.images)if(this.onfinish)this.onfinish();}});function ImageSandboxLoader(_L0,img){this._timeout=4000;this._start=new Date().getTime();this._sandbox=_L0;if(typeof img!='object')img={src:img};this._obj=document.createElement('img');this._obj.onload=function(){if(this._pollImage)this._pollImage(1);}.bind(this);this._obj.onerror=function(){if(this._pollImage)this._pollImage(2);}.bind(this);copy_properties(this._obj,img);this._sandbox.obj.appendChild(this._obj);if(this._pollImage!==null)this._pollImage();}copy_properties(ImageSandboxLoader.prototype,{_pollImage:function(_L0){if(_L0==1){this._pollImage=null;this._sandbox.onImageLoaded(this);}else if(_L0==2){this._pollImage=null;this._sandbox.onImageFailed(this);}else if(image_has_failed(this._obj)){this._pollImage(2);}else if(image_has_loaded(this._obj)){this._pollImage(1);}else if((this._start+this._timeout)<new Date().getTime()){this._pollImage(2);}else setTimeout(function(){if(this._pollImage)this._pollImage();}.bind(this),20);},destroy:function(){DOM.remove(this._obj);this._obj=null;}});
function UrlDetector(_L0){this.element=_L0;this.lastCharCount=0;this.lastScrapedURL=null;this.detectionInterval=null;this.suppressDetection=bagofholding;Event.listen(_L0,'focus',this.startDetectionInterval.bind(this));Event.listen(_L0,'blur',this.stopDetectionInterval.bind(this));var _L1=DOM.isNode(this.element,['input','textarea']);copy_properties(this,{getText:_L1?function(){return this.element.value;}:function(){return DOM.getText(this.element);},setText:_L1?function(_L2){this.element.value=_L2;}:function(_L2){DOM.setText(this.element,_L2);}});}UrlDetector.mixin('Arbiter',{getText:bagofholding,setText:bagofholding,setSuppressDetectionCheck:function(fn){this.suppressDetection=fn;},startDetectionInterval:function(){if(this.detectionInterval||this.suppressDetection())return;this.detectionInterval=setInterval(this.detectionIntervalFire.bind(this),250);},stopDetectionInterval:function(){this.detectionInterval=clearInterval(this.detectionInterval);},detectionIntervalFire:function(){if(this.suppressDetection())return;var _L0=this.getText().length;if((_L0-this.lastCharCount)>5||(this.lastCharCount==0&&_L0>1))var _L1=true;this.lastCharCount=_L0;var url=this.detectUrl(_L1);if(url)this.inform('urlDetected',url);},detectUrl:function(_L0){var url='',_L2=this.getText(),_L3=endPos=-1;if(_L0){url=_L2.match(/www\.\S*/i);if(url){_L3=_L2.indexOf(url[0]);endPos=_L3+url[0].length;url="http://"+url[0];}else{var _L4=_L2.match(/(http|fb):\/\/\S*/i);if(_L4){url=_L4[0];_L3=_L2.indexOf(_L4[0]);endPos=_L3+_L4[0].length;}}}else{url=_L2.match(/www\.\S*[\s|\)|\!]/i);if(url){_L3=_L2.indexOf(url[0]);endPos=_L3+url[0].length;url="http://"+url[0];}else{var _L4=_L2.match(/(http|fb):\/\/\S*[\s|\)|\!]/i);if(_L4){url=_L4[0];_L3=_L2.indexOf(_L4[0]);endPos=_L3+_L4[0].length;}}}if(url){url=url.replace(/[\s|\)|\!]/g,'');var _L5=url.charAt(url.length-1);if(_L5.match(/[,|.]/))url=url.substr(0,url.length-1);if(url!=this.lastScrapedURL){this.lastScrapedURL=url;if(url.search('fb:')==0)this.setText(_L2.substr(0,_L3)+_L2.substr(endPos));}else url='';}return url;}});
function fix_attachment_more_menu_alignment(_L0){var _L1=ge('attachment_buttons_list');var _L2=_L1.offsetWidth;if(_L0){var _L3=Vector2.getElementPosition(_L0).x;var _L4=Vector2.getElementPosition(_L1).x;var _L5=_L3-_L4;var _L6=_L0.offsetWidth;var _L7=_L2-_L5;if(_L7>=_L6&&_L7<126){var _L8=ge('wall_more_menu');var _L9=0;_L8.style.left='auto';_L8.style.right=_L9+'px';}}}function wall_video_thumb_adjust(_L0,_L1){if(ua.ie()>=6&&ua.ie()<7){_L0.style.marginTop=(-1*_L1.height-3)+'px';_L0.style.paddingTop=(_L1.height-19)+'px';}_L0.style.display='block';}function attachments(_L0){this.attachment_added=false;this.attachment_oid=null;this.attachment_app_id=null;this.is_share=false;this.attached_share=false;this.scrape_last_count=0;this.dialog=null;this.wall_attachments={};this.last_url_scraped=null;this.context=_L0;this.edit_container_id='attachment_edit_container_'+_L0;this.edit_loading_id='attachment_edit_loading_'+_L0;this.edit_id='attachment_edit_'+_L0;this.view_container_id='attachment_view_container_'+_L0;this.view_wrapper_id='attachment_view_wrapper_'+_L0;this.view_id='attachment_view_'+_L0;this.remove_id='attachment_remove_'+_L0;this.view_loading_id='attachment_view_loading_'+_L0;this.is_active=false;}attachments.prototype.show_edit_loading=function(){show(this.edit_loading_id);};attachments.prototype.hide_edit_loading=function(){hide(this.edit_loading_id);};attachments.prototype.show_attachment_edit=function(_L0,_L1,_L2,_L3){this.is_active=true;if(this.dialog)return;var _L4=(_L2==14);this.is_share=(_L2==100);var _L5='<div id="'+this.edit_container_id+'">'+'<div id="'+this.edit_loading_id+'">&nbsp;</div>'+'</div>';this.dialog=new Dialog().setImmediateRendering(true).setClassName('attachment_dialog').setTitle(_L0).setBody(_L5).setStackable(true).setButtons([Dialog.newButton('attach',_tx("Bijlage"),'',function(){if(this.is_share){this._share_attach();}else this._attach(_L4,_L3,true);this.dialog.hide();this.dialog=null;this.is_active=false;}.bind(this)),Dialog.newButton('cancel',_tx("Annuleren"),'inputaux',function(){this.dialog.hide();this.remove_attachment_view();this.dialog=null;this.is_active=false;}.bind(this))]).show();var _L6=ge(this.edit_container_id);var div=document.createElement('div');div.className='share_stage';CSS.addClass(div,'attachment_edit');div.id=this.edit_id;div.is_app=_L4;_L6.appendChild(div);set_inner_html(div,_L1);if(this.is_share){placeholderSetup('share_link');if(ua.ie()<7)$('share_link').focus();}return div;};attachments.prototype._show_attachment_view=function(_L0,_L1){var _L2=ge(this.view_container_id);var div=document.createElement('div');div.className='share_stage';CSS.addClass(div,'attachment_view');div.id=this.view_id;div.is_app=_L1;_L2.appendChild(div);set_inner_html(div,_L0);hide('attachment_buttons_list');var _L4=ge(this.view_wrapper_id);_L4.style.display='block';this.attachment_added=true;return div;};attachments.prototype.remove_attachment_view=function(){var _L0=ge(this.view_container_id);var _L1=ge(this.view_id);if(this.attachment_added&&_L1){this.removed=true;_L0.removeChild(_L1);hide(this.view_wrapper_id);if(ge('attachment_buttons_list'))show('attachment_buttons_list');var _L2=ge(this.remove_id);CSS.setClass(_L2,_L2.className.replace(' edit',''));}this.attachment_added=false;this.attachment_oid=null;this.attachment_app_id=null;this.is_share=false;this.attached_share=false;};attachments.prototype.get_all_form_elements=function(_L0){var _L1=[];if(_L0){var _L2=_L0.getElementsByTagName('input');for(var i=0;i<_L2.length;i++)_L1.push(_L2[i]);var _L4=_L0.getElementsByTagName('select');for(var i=0;i<_L4.length;i++)_L1.push(_L4[i]);var _L5=_L0.getElementsByTagName('textarea');for(var i=0;i<_L5.length;i++)_L1.push(_L5[i]);}return _L1;};attachments.prototype._add_attachment_input_data=function(_L0,_L1){if(!_L1)return false;var _L2=this.get_all_form_elements(_L1);if(_L1.is_app){_L0['attachment']={'app':{},'type':14};for(var i=0;i<_L2.length;i++)if(!(_L2[i].type=="radio"||_L2[i].type=="checkbox")||_L2[i].checked)_L0['attachment']['app'][_L2[i].name]=_L2[i].value;}else{var _L4=false;for(var i=0;i<_L2.length;i++){if(_L2[i].name=='attachment[type]')_L4=true;if(_L2[i].name=='attachment[params][url]')if(!_L2[i].value||_L2[i].value=='http://')return false;_L0[_L2[i].name]=_L2[i].value;}if(!_L4)return false;}_L0['context']=this.context;return true;};attachments.prototype._attach=function(_L0,_L1,_L2){var _L3={};if(_L2){var _L4=ge(this.edit_id);var _L5=this._add_attachment_input_data(_L3,_L4);if(!_L5)return;}if(_L1)for(var _L6 in _L1)_L3[_L6]=_L1[_L6];var _L7=ge(this.view_loading_id);_L7.style.display='block';var _L8=this._show_attachment_view('',_L0);var _L9=function(_La){var _Lb=_La.getPayload();if(!_L8.removed){hide(this.view_loading_id);set_inner_html(_L8,_Lb['html']);this.attachment_oid=_Lb['oid'];this.attachment_app_id=_Lb['app_id'];}}.bind(this);new AsyncRequest().setHandler(_L9).setURI('/ajax/attachments.php').setErrorHandler(this.remove_attachment_view).setTransportErrorHandler(this.remove_attachment_view).setData(_L3).send();};attachments.prototype.add_post_data=function(_L0){if(this.attachment_added)if(this.attached_share){this._add_attachment_input_data(_L0,ge(this.view_id));}else _L0['attachment']={'oid':this.attachment_oid,'app_id':this.attachment_app_id};};attachments.prototype.prepare_wall_post=function(){var _L0=ge(this.view_id);if(_L0){var _L1=this.get_all_form_elements(_L0);for(var i=0;i<_L1.length;i++)_L1[i].disabled=true;}};attachments.prototype.show_full_attachment=function(_L0){if(typeof this.wall_attachments[_L0]!='string')return;hide('attachment_compact_'+_L0);hide('attached_item_info_'+_L0);hide('attachment_compact_td_'+_L0);attachment_div=ge('wall_attachment_'+_L0);set_inner_html(attachment_div,this.wall_attachments[_L0]);};attachments.prototype.fix_app_inputs_on_send=function(){var _L0=ge(this.view_id);if(!this.attachment_added||!_L0)return;if(!this.attached_share){new_inputs=[];new_inputs.push(create_hidden_input('attachment[oid]',this.attachment_oid));new_inputs.push(create_hidden_input('attachment[app_id]',this.attachment_app_id));if(_L0.is_app){new_inputs.push(create_hidden_input('attachment[type]',14));new_inputs.push(create_hidden_input('attachment[app][message_sent]',true));}for(var i=0,il=new_inputs.length;i<il;i++)_L0.appendChild(new_inputs[i]);}};attachments.prototype.share_attach_from_dialog=function(){this._share_attach();Dialog.getCurrent().hide();this.dialog=null;};attachments.prototype._share_attach=function(){var _L0=ge('share_link');var url=_L0.value;if(url&&url!='http://')this._share_submit_url(url);};attachments.prototype._share_submit_url=function(url){this._show_attachment_view(this.share_html_block,false);var _L1=ge(this.view_container_id);var _L2=_L1.childNodes[0].childNodes[0].childNodes[0];this._attach_link_url(_L2,url,true);var _L3=ge(this.remove_id);_L3.className+=' edit';this.attached_share=true;};attachments.prototype._attach_link_url=function(obj,url,_L2){var _L3=function(_L5){this.remove_attachment_view();}.bind(this);var _L4=ComposerAttachment.newFromURL(url,_L3);_L4.containerReady(obj,_L2);};attachments.prototype._is_fb_code_url=function(url){return url.search('fb:')==0;};attachments.prototype._auto_attach_link=function(_L0,url){if(this._is_fb_code_url(url)){var _L2={'code':url,'context':this.context};this._attach(true,_L2,false);}else this._share_submit_url(url);};attachments.prototype.register_url_detection=function(_L0){var _L1=new UrlDetector($(_L0));_L1.subscribe('urlDetected',this._auto_attach_link.bind(this));_L1.setSuppressDetectionCheck(function(){return this.attachment_added;}.bind(this));};
function FeedFormBase(){this._storyType=63;this._feedData=null;this._uri='/fbml/ajax/prompt_feed.php';this._buttonCallback=null;this._isNile=false;this._supportsUserMessage=false;this._userMessagePrompt='';this._userMessage={value:''};this._currentSize=0;this._connectLocation=0;this._postId=null;this._hasTargets=false;this._profileType=0;}FeedFormBase.SIZES={"small":1,"medium":2};FeedFormBase.AUTO_PUBLISH_OPTIONS={"never":2,"small":4,"medium":5};FeedFormBase.PROFILE_TYPE={"user":101,"page":102,"group":103};FeedFormBase.shouldShowLoadingToSelf=false;FeedFormBase.shouldShowLoadingToOthers=false;FeedFormBase.prototype.setStoryType=function(_L0){this._storyType=_L0;return this;};FeedFormBase.prototype.setProfileType=function(val){this._profileType=val;return this;};FeedFormBase.prototype.setForm=function(id){if(this._elements){Util.error('Cannot use both setForm and setElements.  Pick one or the other.');return null;}this._form=$(id);return this;};FeedFormBase.prototype.setElements=function(_L0){if(this._form){Util.error('Cannot use both setForm and setElements.  Pick one or the other.');return null;}this._elements=_L0;return this;};FeedFormBase.prototype.setFeedData=function(_L0){this._feedData=_L0;return this;};FeedFormBase.prototype.setAppId=function(_L0){this._appid=_L0;return this;};FeedFormBase.prototype.setConnectLocation=function(_L0){this._connectLocation=_L0;return this;};FeedFormBase.prototype.setUserMessagePrompt=function(_L0){this._userMessagePrompt=_L0;return this;};FeedFormBase.prototype.setUserMessage=function(_L0){if(_L0)if(typeof _L0=='string'){this._userMessage={value:_L0};}else this._userMessage=_L0;return this;};FeedFormBase.prototype.setURI=function(uri){this._uri=uri;return this;};FeedFormBase.prototype.setContinuation=function(_L0){this._continuation=_L0;return this;};FeedFormBase.prototype.setButtonCallback=function(_L0){this._buttonCallback=_L0;return this;};FeedFormBase.prototype._selectSize=function(_L0){var _L1=_L0['size'];if(_L1!=this._currentSize){CSS.removeClass(this._selectedSize,'Tabset_selected');animation($('preview_'+this._currentSize)).to('opacity',0).hide().duration(150).go();animation($('preview_'+_L1)).duration(150).checkpoint().show().from('opacity',0).to('opacity',1).duration(150).go();this._selectedSize=_L0;this._currentSize=_L1;CSS.addClass(this._selectedSize,'Tabset_selected');}return false;};FeedFormBase.prototype.attachHandlers=function(_L0){if(!this._isNile)this._attachSizeHandlers(_L0);var _L1=$('preview_container').scry('a');_L1.forEach(function(_L2){_L2.listen('click',function(e){e.kill();});});if(this._supportsUserMessage)$('feedform_user_message').focus();return this;};FeedFormBase.prototype._attachSizeHandlers=function(_L0){var _L1=this._selectorOptions;var _L2=this._feedformFilter;for(var i=0;i<_L1.length;i++){var _L4=$(_L2+'_'+_L1[i]['size']);var _L5=$(_L2+'_'+_L1[i]['size']+'_anchor');var _L6=_L1[i]['size'];_L1[i]['node']=_L4;if(CSS.hasClass(_L4,'Tabset_selected')){this._selectedSize=_L1[i];this._currentSize=_L6;}addEventBase(_L5,'click',this._selectSize.bind(this,_L1[i]),_L6);}return true;};FeedFormBase.prototype._finish=function(){this._enableSubmitButtons();if(this._dialog)this._dialog.hide();if(this._continuation)this._continuation(this._postId,null,{user_message:this._userMessage.value});};FeedFormBase.prototype.shouldShowLoading=function(){return false;};FeedFormBase.prototype.showDialog=function(_L0){this._dialog=new Dialog().setContentWidth(580).setClassName('interaction_form').setAsync(_L0).setHandler(this.handleButton.bind(this)).onloadRegister(this.attachHandlers.bind(this));if(this.shouldShowLoading())this._dialog.show();return this;};FeedFormBase.prototype._confirm=function(_L0){if(this._isNile&&this._supportsUserMessage){user_message=$('feedform_user_message').value;this._userMessage.value=_L0.user_message=user_message;}var _L1=new AsyncRequest().setURI(this._uri).setData(_L0).setNectarActionData().setHandler(this.showConfirmed.bind(this));new Dialog().setAsync(_L1);};FeedFormBase.prototype.handleButton=function(_L0){if(this._buttonCallback)this._buttonCallback(_L0);if(_L0.name=="publish"){var _L1=this._dialog?this._dialog.getButtonElement(_L0.name):_L0;if(_L1)_L1.disabled=true;this.confirmFeed();return false;}else if(_L0.name=="cancel")this.cancelFeed();};FeedFormBase.prototype.cancelFeed=function(){this._finish();};FeedFormBase.prototype.attachProperties=function(_L0){copy_properties(this,_L0);if(this._continuationJS){this._continuation=new Function(this._continuationJS);delete this._continuationJS;}return this;};FeedFormBase.prototype._showBase=function(_L0){var _L1=new AsyncRequest().setURI(this._uri).setHandler(function(r){var _L3=r.getPayload().userData;this.attachProperties(_L3);if(_L3['no_dialog_shown'])this._finish();return true;}.bind(this)).setNectarActionData().setErrorHandler(this._showApplicationError.bind(this)).setData(_L0);this.showDialog(_L1);return this;};FeedFormBase.prototype.showConfirmed=function(_L0){var msg;if(this._profileType==FeedFormBase.PROFILE_TYPE['page']){msg=_tx("Het bericht is nu zichtbaar op het prikbord van de pagina.");}else if(this._profileType==FeedFormBase.PROFILE_TYPE['group']){msg=_tx("Het bericht is nu zichtbaar voor de groep op het prikbord.");}else if(this._hasTargets){msg=_tx("Het bericht is nu zichtbaar op het prikbord van je vrienden.");}else msg=_tx("Het bericht is nu zichtbaar op je Prikbord en op de startpagina van je vrienden.");this.showConfirmedWithMessage(msg,_L0);};FeedFormBase.prototype.showConfirmedWithMessage=function(msg,_L1){this.attachProperties(_L1.payload.userData);var _L2='<div class="interim_status">'+msg+'</div>';var _L3=_tx("Je bericht is geplaatst");if(this._dialog){this._dialog.setBody(_L2);this._dialog.setTitle(_L3);this._dialog.setButtons(Dialog.OK);this._dialog.setButtonsMessage('');}else{$('dialog_body').innerHTML=_L2;var _L4=ge('publish');if(_L4!=null)DOM.remove(_L4);var _L5=ge('cancel');if(_L5!=null)_L5.value=_tx("Klaar");}setTimeout(this._finish.bind(this),2500);return false;};FeedFormBase.prototype._enableSubmitButtons=function(){var _L0=['send','publish'];for(var i=0;i<_L0.length;i++){var _L2=ge(_L0[i]);if(_L2){_L2.disabled=false;break;}}};FeedFormBase.prototype._showApplicationError=function(_L0){this._enableSubmitButtons();var _L1=_L0.getPayload().userData;var _L2=function(_L4){var msg=(_L4&&(_L1.errorMessage!=null))?_L1.errorMessage:_tx("There was an application error. Please try again later.");(new ErrorDialog()).showError(_L1.errorTitle,msg);};var err=_L0.getError();if(err==kError_Platform_ApplicationResponseInvalid){if(_L1.showDebug){_L2(true);}else if(this._continuation){this._continuation();}else _L2(false);}else _L2(true);return false;};function FeedForm(){this.parent.construct(this);}FeedForm.extend('FeedFormBase');FeedForm.attachSubmitHandler=function(_L0,_L1,_L2){_L0.onsubmit='';_L0.listen('submit',function(_L0,_L1,_L2,_L3){FeedForm.shouldShowLoadingToSelf=_L2;new FeedForm().setForm(_L0).setAppId(_L1).show();return false;}.curry(_L0,_L1,_L2));};FeedForm.prototype._setPublishButtonText=function(_L0){this.publish_button.value=_L0;};FeedForm.prototype._setCancelButtonText=function(_L0){this.cancel_button.value=_L0;};FeedForm.prototype.shouldShowLoading=function(){return FeedForm.shouldShowLoadingToSelf;};FeedForm.prototype.show=function(){var _L0={};if(this._form){_L0={callback:this._form.getAttribute('action'),elements:serialize_form(this._form)};}else if(this._elements)_L0.elements=this._elements;var _L1={app_id:this._appid,feedform_type:this._storyType,feed_info:this._feedData,user_message_prompt:this._userMessagePrompt,user_message:this._userMessage.value,preview:true,feed_target_type:'self_feed',extern:this._connectLocation};copy_properties(_L1,_L0);return this._showBase(_L1);};FeedForm.prototype.cancelFeed=function(){this._finish();};FeedForm.prototype.confirmFeed=function(){var _L0={feed_info:this._feedData,feedform_type:this._storyType,preview:false,feed_target_type:'self_feed',app_id:this._appid,size:FeedFormBase.SIZES[this._currentSize],extern:this._connectLocation};this._confirm(_L0);};function MultiFeedForm(){this.parent.construct(this);this._hasTargets=true;}MultiFeedForm.extend('FeedFormBase');MultiFeedForm.prototype.setPrefillId=function(_L0){if(_L0>0){this._prefillId=_L0;}else this._prefillId=null;return this;};MultiFeedForm.prototype.removeRecipient=function(_L0){this._toIds=this._toIds.filter(function(u){return u!=_L0;});if(this._toIds.length==0){this._finish();}else DOM.remove('sp'+_L0);return false;};MultiFeedForm.prototype.confirmFeed=function(){var _L0={feed_info:this._feedData,feedform_type:this._storyType,to_ids:this._toIds,preview:false,feed_target_type:'multi_feed',app_id:this._appid,size:FeedFormBase.SIZES[this._currentSize],extern:this._connectLocation};this._confirm(_L0);};MultiFeedForm.prototype.shouldShowLoading=function(){return FeedFormBase.shouldShowLoadingToOthers;};MultiFeedForm.prototype.show=function(){var ids=[];if(this._prefillId){ids.push(this._prefillId);}else{var _L1=this._form.getElementsByTagName('input');for(var i=0;i<_L1.length;i++)if(_L1[i].getAttribute('fb_protected')=='true'&&(CSS.hasClass(_L1[i],'fb_token_hidden_input')||_L1[i].name=='ids[]'||_L1[i].name=='friend_selector_id')&&(_L1[i].type!='checkbox'||_L1[i].checked))ids.push(_L1[i].value);}this._toIds=ids;var _L3={app_id:this._appid,to_ids:this._toIds,callback:this._form.action,preview:true,form_id:this._form.id,prefill:(this.prefillId>0),elements:serialize_form(this._form),user_message_prompt:this._userMessagePrompt,user_message:this._userMessage.value,feed_target_type:'multi_feed',extern:this._connectLocation};return this._showBase(_L3);};MultiFeedForm.prototype.attachHandlers=function(_L0){for(var i=0;i<this._toIds.length;i++){var _L2=ge('spl_'+this._toIds[i]);if(_L2)_L2.onclick=this.removeRecipient.bind(this,this._toIds[i]);}this.parent.attachHandlers(_L0);return this;};function TargetFeedForm(){this.parent.construct(this);}TargetFeedForm.extend('MultiFeedForm');TargetFeedForm.prototype.confirmFeed=function(){var _L0={feed_info:this._feedData,feedform_type:this._storyType,to_ids:this._toIds,preview:false,feed_target_type:'target_feed',app_id:this._appid,size:FeedFormBase.SIZES[this._currentSize],extern:this._connectLocation};this._confirm(_L0);};TargetFeedForm.prototype.setTarget=function(_L0){this._toIds=[_L0];return this;};TargetFeedForm.prototype.show=function(){var _L0={app_id:this._appid,to_ids:this._toIds,feed_info:this._feedData,preview:true,prefill:(this.prefillId>0),user_message_prompt:this._userMessagePrompt,user_message:this._userMessage.value,feed_target_type:'target_feed',extern:this._connectLocation};return this._showBase(_L0);};
var FBML=(function(){var _L0={};function _L1(obj,_L2b,_L2c){var _L2d=document.createElement('INPUT');_L2d.name=obj.getAttribute('idname');_L2d.type='hidden';_L2d.setAttribute('fb_protected','true');_L2d.typeahead=this;if(obj.form)obj.form.appendChild(_L2d);this._idInput=_L2d;return this.parent.construct(this,obj,_L2b,_L2c);}_L1.extend('typeaheadpro');_L1.prototype.updateID=function(obj){if(obj.i){this._idInput.value=obj.i;}else if(obj.is){this._idInput.value=obj.is;}else this._idInput.value='';};_L1.prototype.destroy=function(){this._idInput.parentNode.removeChild(this._idInput);this._idInput.typeahead=null;this._idInput=null;this.parent.destroy();};_L1.prototype._onselect=function(obj){this.updateID(obj);this.parent._onselect(obj);};var _L2=new Object();function err(msg){if(window.console)window.console.log('Facebook FBML Mock AJAX ERROR: '+msg);return false;}function _L4(_L2a,_L2b,_L2c,_L2d){if(!_L2a['url'])return err("no input with id url in form");if(!_L2a['fb_sig_api_key'])return err("no input with id fb_api_key in form");if(_L2c)_L2c();_L5(_L2a,_L2b,_L2d);}function _L5(_L2a,_L2b,_L2c){new AsyncRequest().setURI('/fbml/ajax/attach.php').setData(_L2a).setMethod('POST').setHandler(function(_L2d){if(_L2c)_L2c();if(!_L2b.removed)set_inner_html(_L2b,_L2d.getPayload().html);}.bind(this)).send();}function _L6(_L2a){if(_L2a=='wall'){var _L2b=wallAttachments;}else if(_L2a=='message')var _L2b=inboxAttachments;if(_L2b){var _L2c=ge(_L2b.edit_id);var _L2d=_L2b.get_all_form_elements(_L2c);var _L2e=Object();for(var i=0;i<_L2d.length;i++)if(!(_L2d[i].type=="radio"||_L2d[i].type=="checkbox")||_L2d[i].checked)_L2e[_L2d[i].name]=_L2d[i].value;_L2e['context']=_L2b.context;_L2e['action']='edit';_L5(_L2e,_L2c);}}function _L7(_L2a,_L2b,_L2c,url,form,_L2f){this.requireLogin(_L2a,function(){return _L8(_L2c,url,form,_L2f);});return false;}function _L8(_L2a,url,form,_L2d){var _L2e=ge(_L2a);if(!_L2e)return err("target "+_L2a+" not found");var _L2f=_L2e.getAttribute("fbcontext");var _L30=FBML.Contexts[_L2f];if(!form)return err("You must either specify a clickrewriteform (an id) or use the clickrewrite attribute inside a form");var _L31=typeof this.PROFILE_OWNER_ID=='undefined'?0:this.PROFILE_OWNER_ID;var post=serialize_form(form);post["fb_mockajax_context"]=_L30;post["fb_mockajax_context_hash"]=_L2f;post["fb_mockajax_url"]=url;post["fb_target_id"]=_L31;post["fb_mockajax_rewrite_id"]=_L2a;new AsyncRequest().setURI('/fbml/mock_ajax_proxy.php').setMethod("POST").setFBMLForm().setData(post).setHandler(function(_L33){var ma=_L33.getPayload();if(ma.ok){set_inner_html(_L2e,ma.html);}else return err(ma["error_message"]);FBML.mockAjaxResponse=ma;return ma.ok;}.bind(this)).setErrorHandler(function(_L33){return err("Failed to successfully retrieve data from Facebook when making mock AJAX call to rewrite id "+_L2a);}.bind(this)).send();if(_L2d)DOM.setContent(_L2e,HTML(_L2d));return false;}function _L9(_L2a){return _Le(_L2a,"");}function _La(_L2a){var _L2b=null;if(_L2b=ge(_L2a)){var _L2c=_L2b.parentNode.innerHTML;_L2b.id='dialog_invoked_'+_L2b.id;var _L2d=parseInt(_L2b.getAttribute('fb_dialog_width'));var elem=_L2b.cloneNode(true);DOM.setContent(_L2b,'');var _L2f=new Dialog();if(_L2d)_L2f.setContentWidth(_L2d);_L2f.setImmediateRendering(true).setStackable(true).setBody(_L2c).setFullBleed(true).show();_L0[_L2b.id]={'elem':elem,'dialog':_L2f};}return false;}function _Lb(_L2a){var _L2b=null;var _L2c='dialog_invoked_'+_L2a;for(dialog_id in _L0)if(_L2b=ge(dialog_id)){var _L2d=_L2b.id.replace('dialog_invoked_','');var _L2e=null;if(_L2e=ge(_L2d))_L2e.id='dialog_closed_'+_L2d;var _L2f=_L2b.parentNode;DOM.setContent(_L2f,'');_L2f.appendChild(_L0[dialog_id].elem);_L0[dialog_id].elem.id=_L2d;}if(_L0[_L2c].dialog)_L0[_L2c].dialog.hide();}function _Lc(_L2a){return _Le(_L2a,"none");}function _Ld(_L2a){var _L2b=ge(_L2a);if(!_L2b){return err("Could not find target "+_L2a);}else{_L2b.style.display=(_L2b.style.display=="none")?'':'none';return false;}}function _Le(_L2a,disp){var _L2c=ge(_L2a);if(!_L2c){return err("Could not find target "+_L2a);}else{_L2c.style.display=disp;return false;}}function _Lf(_L2a){return _L11(_L2a,'');}function _L10(_L2a){return _L11(_L2a,'disabled');}function _L11(_L2a,_L2b){var _L2c=ge(_L2a);if(!_L2c){return err("Could not find target "+_L2a);}else{_L2c.disabled=_L2b;return false;}}function _L12(_L2a,_L2b){new AsyncRequest().setURI('/ajax/api/tos.php').setData({app_id:_L2a,grant_perm:1,profile_id:typeof PROFILE_OWNER_ID=='undefined'?0:PROFILE_OWNER_ID,api_key:$('api_key').value,auth_token:$('auth_token').value,connect:this.connectParams}).setHandler(bind(this,function(_L2c){if(_L2c.getPayload()){var _L2d=_L2c.getPayload();if(_L2b){var form=ge(_L2b);_L14(form,_L2d);if(this.loginContinuation)this.loginContinuation=this.loginContinuation.bind(form);}if(this.sendParams)if(this.loginContinuation)this.loginContinuation=this.loginContinuation.bind(null,_L2d);}this.loginDialog&&this.loginDialog.hide();this.loginContinuation&&this.loginContinuation();this.loginCancellation=this.loginContinuation=this.loginDialog=null;})).send();}function _L13(){this.loginCancellation&&this.loginCancellation();this.loginDialog&&this.loginDialog.hide();this.loginContinuation=this.loginCancellation=this.loginDialog=null;}function _L14(_L2a,_L2b){var i;for(i=_L2a.childNodes.length-1;i>=0;i--)if(_L2a.childNodes[i].name&&_L2a.childNodes[i].name.indexOf('fb_sig')==0)_L2a.removeChild(_L2a.childNodes[i]);for(keyVar in _L2b)DOM.appendContent(_L2a,$N('input',{name:keyVar,value:_L2b[keyVar],type:'hidden'}));}function _L15(form,_L2b){this.grantedPerms=true;if(form)DOM.appendContent(form,$N('input',{name:'fb_perms_approved',value:'1',type:'hidden'}));Dialog.getCurrent()._submitForm('POST','/fbml/ajax/permissions.php',_L2b);return false;}function _L16(_L2a,form){if(window.ApiExtendedPermissions&&window.ApiExtendedPermissions.closeHandler)window.ApiExtendedPermissions.closeHandler();if(this.grantedPerms)_L2a();if(form)form.submit();}function _L17(_L2a,_L2b,_L2c,form){var _L2e=new AsyncRequest().setURI('/fbml/ajax/permissions.php').setData({app_id:_L2a,perms:_L2b});this.grantedPerms=false;var _L2f=new Dialog().setAsync(_L2e).setHandler(_L15.bind(this,form)).setCloseHandler(_L16.bind(this,_L2c,form)).show();}function _L18(_L2a,_L2b,_L2c){var _L2d=new AsyncRequest().setURI('/fbml/ajax/permissions.php').setData({app_id:_L2a,perms_string:_L2b});this.grantedPerms=false;var self=this;var _L2f=new Dialog().setAsync(_L2d).setHandler(_L15.bind(this,null)).setCloseHandler(function(){_L16.call(self,bagofholding,null);if(self.grantedPerms&&this.getUserData())_L2c(this.getUserData().profile_id);}).show();}function _L19(_L2a,_L2b,_L2c,_L2d){_L1d(function(){FB.Connect.showPermissionDialog(_L2a,_L2b,_L2c,_L2d);});}function _L1a(_L2a){_L1d(function(){FB.Connect.showBookmarkDialog(_L2a);});}function _L1b(_L2a,_L2b){_L1d(function(){FB.Connect.createApplication(_L2a,_L2b);});}function _L1c(_L2a,_L2b,_L2c,_L2d,_L2e,_L2f,_L30,_L31){_L1d(function(){FB.Connect.streamPublish(_L2a,_L2b,_L2c,_L2d,_L2e,_L2f,_L30,_L31);});}function _L1d(_L2a){Arbiter.subscribe('PLATFORM_HAS_API_KEY',function(_L2b,_L2c){FB.init({"apiKey":_L2c,"xdChannelUrl":"/xd_receiver_v0.4.php"});FB.ensureInit(_L2a);});}function _L1e(_L2a,_L2b,_L2c,_L2d,_L2e,_L2f,_L30,_L31){var _L32={template_id:_L2b,template_data:_L2c,body_general:_L2d};var _L33;if(_L2e&&(!hasArrayNature(_L2e)||_L2e.length>0)){if(hasArrayNature(_L2e))_L2e=_L2e[0];_L33=new TargetFeedForm().setTarget(_L2e);}else _L33=new FeedForm();_L33.setContinuation(_L2f).setFeedData(_L32).setAppId(_L2a).setUserMessagePrompt(_L30).setUserMessage(_L31).show();}function _L1f(){if(this.loginDialog)this.loginDialog.close();}function _L20(_L2a,_L2b,_L2c,form,_L2e,_L2f){if(this.loginDialog)return;var _L30=form?form.id:'';this.sendParams=_L2e;this.connectParams=_L2f?_L2f:false;this.loginDialog=new Dialog().setStackable(true).setClassName('api_confirmation');this.loginContinuation=_L2b;this.loginCancellation=_L2c;new AsyncRequest().setURI('/ajax/api/tos.php').setData({login_form_id:_L30,app_id:_L2a,profile_id:typeof PROFILE_OWNER_ID=='undefined'?0:PROFILE_OWNER_ID,next:document.location.href}).setReadOnly(true).setHandler(bind(this,function(_L2b,_L31){var resp=_L31.getPayload();if(resp){if(resp.redirect){goURI(resp.uri);}else this.loginDialog.setTitle(resp.title).setBody(resp.content).show();}else{_L2b();this.loginCancellation=null;this.loginContinuation=null;this.loginDialog=null;}},_L2b)).send();}function _L21(_L2a,_L2b,_L2c,_L2d,_L2e,_L2f,_L30){var _L31='';if(!_L2e){if(_L2f)_L2a.onSubmit=fsth.captured_event;_L31=$('message').value;}if(_L30){var ids=[];ids.push(_L30);}else{var _L33=_L2a.getElementsByTagName('input');var ids=[];var _L34=[];for(var i=0;i<_L33.length;i++)if(_L33[i].getAttribute('fb_protected')=='true'&&(_L33[i].name=='ids[]'||_L33[i].name=='friend_selector_id')&&(_L33[i].type!='checkbox'||_L33[i].checked)){ids.push(_L33[i].value);}else if(_L33[i].getAttribute('fb_protected')=='true'&&_L33[i].name=='emails[]')_L34.push(_L33[i].value);}var data={app_id:_L2b,to_ids:ids,to_emails:_L34,request_type:_L2c,invite:_L2d,content:_L2a.getAttribute('content'),preview:_L2e,is_multi:_L2f,form_id:_L2a.id,prefill:(_L30>0),message:_L31,donot_send:ge('donotsend')?$('donotsend').checked:false};var _L37=new AsyncRequest().setURI('/fbml/ajax/prompt_send.php').setData(data);if(_L2e){new Dialog().setClassName('req_dialog').setAsync(_L37).setStackable(true).show();}else{_L37.setHandler(function(_L38){_L2a.submit();});new Dialog().setAsync(_L37);}return false;}function _L22(elem){if(Dialog.getCurrent()){Dialog.getCurrent().hide();return;}generic_dialog.get_dialog(elem).fade_out(100);}function _L23(id){var span=$('sp'+id);var _L2c=span.parentNode;_L2c.removeChild(span);for(var i=0;i<_L2c.childNodes.length;i++)if(_L2c.childNodes[i].nodeName=='SPAN')return false;generic_dialog.get_dialog(_L2c).fade_out(100);return false;}function _L24(id,_L2b,_L2c){var _L2d=_L2b.getElementsByTagName('input');for(var i=0;i<_L2d.length;i++)if(((_L2d[i].name=='emails[]')||(_L2d[i].name=='ids[]'))&&(_L2d[i].value==id)){delNode=_L2d[i].parentNode.parentNode.parentNode.parentNode.parentNode.token;if(delNode)delNode.remove(false);}_L23(id);return false;}function _L25(_L2a,_L2b,_L2c){if(_L2c){if(fs.selected_ids[_L2a]){fs.unselect(_L2a);fs.force_reset();}else{_L24(_L2a,_L2b,_L2c);return false;}}else{var _L2d=_L2b.getElementsByTagName('input');for(var i=0;i<_L2d.length;i++)if(_L2d[i].getAttribute('fb_protected')=='true'&&_L2d[i].value==_L2a)if(_L2d[i].name=='ids[]'){if(_L2d[i].type=='checkbox'){if(_L2d[i].checked)_L2d[i].click();}else _L2d[i].parentNode.parentNode.parentNode.parentNode.parentNode.token.remove(true);}else if(_L2d[i].name=='friend_selector_id'){_L2d[i].typeahead.select_suggestion(false);_L2d[i].typeahead.set_value('');_L2d[i].value='';}}_L23(_L2a);return false;}var _L26=function(_L2a){var _L2b=_L2a.getElementsByTagName('a');for(var i=0;i<_L2b.length;i++)if(!_L2b[i].getAttribute('flash'))addEventBase(_L2b[i],'click',Event.kill);var _L2d=_L2a.getElementsByTagName('form');for(var i=0;i<_L2d.length;i++)_L2d[i].onsubmit=function(){return false;};};var _L27=function(_L2a,_L2b){for(styleName in _L2b)_L2a.style[styleName]=_L2b[styleName];};var _L28=function(_L2a,_L2b){var sb=fbjs_sandbox.getSandbox(_L2a);if(sb)sb.setBridgeHash(_L2b);};var _L29=function(form,_L2b){if(form.onsubmit)try{if(!form.onsubmit(_L2b))return;}catch(e){if(e.message=="Object doesn't support this action"){if(!form.onsubmit())return;}else throw e;}form.submit();};return {friendSelector:_L1,Contexts:_L2,attachCurlFromObject:_L4,attachFromPreview:_L6,clickRewriteAjax:_L7,clickToShow:_L9,clickToShowDialog:_La,clickToHide:_Lc,clickToEnable:_Lf,clickToDisable:_L10,clickToToggle:_Ld,closeDialogInvoked:_Lb,createApplication:_L1b,sendRequest:_L21,removeTokenizerRecipient:_L24,removeReqRecipient:_L25,cancelDialog:_L22,addHiddenInputs:_L14,fbmlLogin:_L12,cancelLogin:_L13,requireLogin:_L20,closeLoginDialog:_L1f,showFeedDialog:_L1e,streamPublish:_L1c,promptPermission:_L17,promptPermissionPro:_L18,showPermissionDialog:_L19,showBookmarkDialog:_L1a,stripLinks:_L26,enforceStyle:_L27,registerFBJSBridge:_L28,submitForm:_L29};})();

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