/*    HTTP Host:  static.ak.fbcdn.net                                          */
/*    Generated:  February 10th 2010 1:57:55 AM PST                            */
/*      Machine:  10.16.139.103                                                */
/*       Source:  Backing Store                                                */
/*     Location:  js/2dsbvu47289wcsc8.pkg.js h:azlyowdr                        */
/*       Locale:  nu_ll                                                        */
/*         Path:  js/2dsbvu47289wcsc8.pkg.js                                   */

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

function UIClickToExpandFlash(_L0,_L1,_L2,_L3,_L4,_L5,_L6){this.swf_container=_L0;this.story_to_open=_L5;this.swf_container.listen('click',this.write.bind(this,_L1,_L2,_L3,_L4,_L6));}UIClickToExpandFlash.prototype.write=function(_L0,_L1,_L2,_L3,_L4){if(this.thumb)return;this.thumb=this.swf_container.find('div.UIClickToExpandFlash_Thumb');this.swf_container.setStyle('width',_L0+'px');this.swf_container.setStyle('height',_L1+'px');this.swf_container.addClass('UIClickToExpandFlash_SWF');hide(this.thumb);if(this.story_to_open)this.story_to_open.addClass('UIStory_Open');var _L5=function(_L6){var swf=_L2();if(_L6){var _L8=_L6.getPayload();if(_L8.swfAttributes)for(var _L9 in _L8.swfAttributes)swf.setAttribute(_L9,_L8.swfAttributes[_L9]);if(_L8.swfParams)for(var _La in _L8.swfParams)swf.addParam(_La,_L8.swfParams[_L9]);if(_L8.flashvars)for(var _Lb in _L8.flashvars)swf.addVariable(_Lb,_L8.flashvars[_Lb]);}swf.write(this.thumb);this.thumb.setStyle('background','url()');this.thumb.setStyle('width',_L0+'px');this.thumb.setStyle('height',_L1+'px');show(this.thumb);if(_L4){var _Lc=FBPaymentsBridge.exists();if(!_Lc){var _Ld=_L4.init();var _Le=ge(_L4.container);_Le.setStyle('width','1px');_Le.setStyle('height','1px');_Le.setStyle('position','absolute');_Ld.write(_Le);}else FBPaymentsBridge.addConn(_L4.app_id,_L4.connection_id);}}.bind(this);if(_L3){new AsyncRequest(_L3.endpoint).setData(_L3.data).setFinallyHandler(_L5).send();}else _L5();};
FBPaymentsBridge={swf:null,connection_id:null,register:function(_L0,_L1,_L2){if(!FBPaymentsBridge.swf){FBPaymentsBridge.swf=$(_L0);onbeforeunloadRegister(function(){FBPaymentsBridge.swf=null;});}FBPaymentsBridge.addConn(_L1,_L2);},addConn:function(_L0,_L1){if(FBPaymentsBridge.swf)FBPaymentsBridge.swf.addConnection(_L0,_L1);},exists:function(){if(!FBPaymentsBridge.swf){return false;}else return true;},getPrompt:function(_L0,_L1,_L2,_L3,_L4,_L5){var _L6=FBPaymentsBridge.orderSystemDone;var _L7=null;FBPaymentsBridge.connection_id=_L0;GiftCredits.getPrompt(_L1,_L2,_L3,_L4,_L6,_L7,_L5);},orderSystemDone:function(_L0){FBPaymentsBridge.swf.fromFBPayments(FBPaymentsBridge.connection_id,_L0);}};

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