/*    HTTP Host:  static.ak.fbcdn.net                                          */
/*    Generated:  December 22nd 2009 9:40:48 AM PST                            */
/*      Machine:  10.16.140.108                                                */
/*       Source:  Backing Store                                                */
/*     Location:  js/d40qv4kgvxsscso4.pkg.js h:3gavbo8b                        */
/*       Locale:  nu_ll                                                        */
/*         Path:  js/d40qv4kgvxsscso4.pkg.js                                   */

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

function ads_fetch_admarket_ad(g,e,a,d,c,f){var b={page:g,location:e,adnetwork_id:a,netego:f?f:false};var h=new AsyncRequest().setURI(muffinize('/muffins/ajax/fetch_admarket_muffin.php')).setData(b).setHandler(d).setErrorHandler(c).send();}
function motion_spawn_delete_dialog(c,b){var a={v:c,delete_dialog:true};if(b)a.parent_oid=b;new AsyncRequest().setURI('/ajax/motion.php').setData(a).setHandler(function(d){dialog_data=d.getPayload();_motion_show_delete_dialog(c,dialog_data.preview_content,dialog_data.success_content,b);}).send();}function _motion_show_delete_dialog(e,a,d,c){var b=new Dialog().setTitle(a.title).setBody(a.html).setButtons([Dialog.newButton(a.verb.toLowerCase(),a.verb,'',function(){_motion_delete_video(e,d,c);}),Dialog.CANCEL]).show();}function _motion_delete_video(d,c,b){var a={delete_video:true,v:d};if(b)a.parent_oid=b;new AsyncRequest().setURI('/ajax/motion.php').setData(a).setHandler(function(f){var e=Dialog.getCurrent();if(e)e.hide();new Dialog().setTitle(c.title).setBody(c.html).show();goURI.bind(null,c.url).defer(2000);}).send();}function motion_show_profile_video_dialog(d,a,c){var b=new Dialog().setTitle(a.title).setBody(a.html).setButtons([Dialog.newButton('make-profile-video',_tx("Make Profile Video"),'',function(){_motion_set_profile_video(d,c);}),Dialog.CANCEL]).show();}function _motion_set_profile_video(b,a){new AsyncRequest().setURI('/ajax/motion.php').setData({profile_video:1,v:b}).setHandler(function(c){goURI('/video/video.php?profile&v='+b);return true;}).send();}function video_send_email_when_processed(c,b){var a={action:'set_send_email',video_id:c,send_email:b?1:0};new AsyncRequest().setURI('/ajax/motion_upload.php').setData(a).setHandler(function(d){$('notification_status').innerHTML=d.getPayload();}).send();}var recorder_dialog;function motion_submit_video_handler(a){video_id=a.video_id;video_category=a.video_category;oid=a.parent_oid;if(!video_id)goURI('/video/editvideo.php?error');switch(video_category){case 1:new AsyncRequest().setURI('/ajax/motion_fvr_dialog.php').setData({action:'fvr_get_permalink',video_id:video_id}).setHandler(function(b){inboxAttachments.attach_link_url(ge('attachment_stage_area'),b.getPayload(),true);}).send();break;case 2:new AsyncRequest().setURI('/ajax/motion.php').setData({obj_attach:1,v:video_id,parent_oid:oid}).setHandler(function(b){goURI('/video/editvideo.php?created&v='+video_id+'&oid='+oid);}).send();break;case 0:default:goURI('/video/editvideo.php?created&v='+video_id);break;}}function video_add_video_msg_inputs(b){video_id=b.video_id;if(inboxAttachments.is_active){var a=ge(inboxAttachments.edit_id);}else var a=ge(wallAttachments.edit_id);if(a)if(ge('video_msg_id')){$('video_msg_id').value=video_id;}else{var d=document.createElement('input');d.name='attachment[params][0]';d.id='video_msg_id';d.value=video_id;d.type='hidden';var c=document.createElement('input');c.name='attachment[type]';c.id='video_msg_share_type';c.value=15;c.type='hidden';a.appendChild(d);a.appendChild(c);}}function video_remove_video_msg_inputs(){if(inboxAttachments.is_active){var a=ge(inboxAttachments.edit_id);}else var a=ge(wallAttachments.edit_id);if(a){var b=ge('video_msg_id');if(b){a.removeChild(b);var c=ge('video_msg_share_type');if(c)a.removeChild(c);}}}function video_toggle_dialog(b,c){var a={action:'toggle_dialog',dialog_type:b,dialog_value:c};new AsyncRequest().setURI('/ajax/motion_invite.php').setData(a).setHandler(function(d){}).send();}

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