/*    HTTP Host:  static.ak.fbcdn.net                                          */
/*    Generated:  January 13th 2010 4:15:47 PM PST                             */
/*      Machine:  10.16.139.109                                                */
/*       Source:  Backing Store                                                */
/*     Location:  js/cnjtaxwgiygwgcws.pkg.js h:1skb0m97                        */
/*       Locale:  nu_ll                                                        */
/*         Path:  js/cnjtaxwgiygwgcws.pkg.js                                   */

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

function motion_show_embed_video_dialog(_L0){var _L1=new AsyncRequest().setURI('/ajax/video/embed.php').setData({v:_L0});new Dialog().setClassName('video_embed_dialog').setAsync(_L1).show();}
function VideoQualityController(_L0,_L1,_L2,_L3,_L4){this.video=document[_L2]||window[_L2];this.highqual_is_on=_L3;this.video_is_playing=false;this.is_enabled=true;this.is_permalink=_L4;VideoQualityController.instance=this;if(this.is_permalink){this.highqual_element=$(_L0);this.highqual_element.listen('click',this.toggle_hq.bind(this));this.lowqual_element=$(_L1);this.lowqual_element.listen('click',this.toggle_hq.bind(this));this.player_container=$('player');this.video_info=$('video_info');}else this.player_container=Dialog.getCurrent()._popup;}VideoQualityController.getInstance=function(){return VideoQualityController.instance;};VideoQualityController.prototype.toggle_hq=function(){this.highqual_is_on=!this.highqual_is_on;if(this.is_enabled){this.hq_disable();this.video.toggleHQ();}return false;};VideoQualityController.prototype.hq_disable=function(){this.is_enabled=false;};VideoQualityController.prototype.hq_enable=function(_L0){if(!this.is_enabled)if(this.highqual_is_on!=_L0){this.video.toggleHQ();return;}this.is_enabled=true;};VideoQualityController.prototype.resize_player=function(_L0,_L1){if(this.is_permalink){this.player_container.style.width=_L0+'px';this.player_container.style.height=_L1+'px';this.toggle_ui();}else this.player_container.style.width=(parseInt(_L0)+22)+'px';this.video.style.width=_L0+'px';this.video.style.height=_L1+'px';};VideoQualityController.prototype.toggle_ui=function(){CSS.toggleClass(this.highqual_element,'hidden_elem');CSS.toggleClass(this.lowqual_element,'hidden_elem');CSS.toggleClass(this.video_info,'info_bottom');CSS.toggleClass(this.video_info,'info_right');};
function motion_permalink_typeahead_onsubmit(){return false;}function motion_permalink_typeahead_onselect(_L0){if(!_L0.i)return;this.clear();motion_permalink_add_tag(this.video_id,_L0.i);}function motion_permalink_add_tag(_L0,_L1){if(!_L1)return;new AsyncRequest().setURI('/ajax/motion.php').setData({add_tag:true,v:_L0,u:_L1}).setHandler(function(_L2){set_inner_html($('tag_zone'),_L2.getPayload());}).send();}function motion_permalink_remove_tag_request(_L0,_L1){new AsyncRequest().setURI('/ajax/motion.php').setData({remove_request:true,v:_L0,u:_L1}).setHandler(function(_L2){set_inner_html($('tag_zone'),_L2.getPayload());}).send();}function motion_video_delete_tag(_L0,uid,obj){new AsyncRequest().setURI('/ajax/motion.php').setData({delete_tag:true,u:uid,v:_L0}).setHandler(function(_L3){obj.innerHTML=_L3.getPayload();}).send();return false;}function motion_rotate_video(_L0,_L1){new AsyncRequest().setURI('/ajax/motion.php').setData({v:_L0,rotate:_L1}).setFinallyHandler(function(_L2){$('rotate_wait').style.display='none';$('rotate_links').style.display='';}).send();$('rotate_links').style.display='none';$('rotate_wait').style.display='';}function motion_tag_video(){var _L0=$('tagger');CSS.toggleClass(_L0,'tagger_inactive');$('tagger_input').focus();}function motion_hide_tagger(){var _L0=$('tagger');CSS.toggleClass(_L0,'tagger_inactive');}

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