/*    HTTP Host:  static.ak.fbcdn.net                                          */
/*    Generated:  February 10th 2010 3:00:31 AM PST                            */
/*      Machine:  10.16.140.103                                                */
/*       Source:  Backing Store                                                */
/*     Location:  js/BookmarkApp.js h:4fmj0iwg                                 */
/*       Locale:  nu_ll                                                        */
/*         Path:  js/BookmarkApp.js                                            */

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

function BookmarkConnectApp(_L0,_L1,_L2,_L3,_L4){var _L5=$('BookmarkConnectAppInfo');function _L6(r){var msg=_L2?_tx("\u0e1a\u0e38\u0e4a\u0e04\u0e21\u0e32\u0e23\u0e4c\u0e04\u0e41\u0e2d\u0e1e\u0e1e\u0e25\u0e34\u0e40\u0e04\u0e0a\u0e31\u0e48\u0e19\u0e19\u0e35\u0e49\u0e40\u0e23\u0e35\u0e22\u0e1a\u0e23\u0e49\u0e2d\u0e22\u0e41\u0e25\u0e49\u0e27"):_tx("Removed bookmark for this application.");_L5.setContent(msg);animation(_L5).to('background','#FFFFFF').from('background','#FFEEBB').duration(1000).ease(animation.ease.start).ondone(function(){goURI(_L3);}).go();}function _L7(e){var msg=_tx("There was a problem with your request. Please try again.");_L5.setContent(msg);animation(_L5).to('background','#FFFFFF').from('background','#FF9999').duration(1000).ease(animation.ease.start).go();}if(!_L4&&typeof(window.top.applicationDock)!='undefined'){var _L8=keys(window.top.applicationDock.bookmarkableApp)[0];if(_L8==_L0){window.top.applicationDock.bookmarkCurrentApp(true);_L6(true);}else{_L7(false);return false;}}else new AsyncRequest().setURI('/ajax/edit_app_settings.php').setHandler(_L6).setErrorHandler(_L7).setTransportErrorHandler(_L7).setData({bookmark:1,bookmarked:_L2,profile_id:_L1,app_id:_L0}).setStatusElement('BookmarkConnectAppStatus').send();}function BookmarkApp(_L0,_L1){if(typeof(applicationDock)!='undefined'){var _L2=keys(applicationDock.bookmarkableApp)[0];if(_L2==_L0){applicationDock.bookmarkCurrentApp(true);}else return false;}else{var req;function _L4(r){}function _L5(r){var msg=_tx("There was a problem with your request. Please try again.");new Dialog().setTitle(_tx("\u0e21\u0e35\u0e02\u0e49\u0e2d\u0e1c\u0e34\u0e14\u0e1e\u0e25\u0e32\u0e14")).setBody(msg).setButtons(Dialog.OK).show();}req=new AsyncRequest();req.setURI('/ajax/edit_app_settings.php').setHandler(_L4).setErrorHandler(_L5).setData({bookmark:1,bookmarked:true,profile_id:_L1,app_id:_L0});req.send();}}

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