/*
HTTP Host: static.ak.fbcdn.net
Generated: March 16th 2010 5:27:06 AM PDT
Machine: 10.16.139.106
Locale: nu_ll
Path: js/connect_widget/connect_fan_box_wizard.js
*/

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

function ConnectFanBoxWizard(a){this.parent.construct(this,a);this.wizard=$('fan_box');this.show_stream_checkbox=$('stream');Event.listen(this.show_stream_checkbox,'change',function(b){this.refresh();}.bind(this));this.show_fans_checkbox=$('fans');Event.listen(this.show_fans_checkbox,'change',function(b){this.refresh();}.bind(this));this.show_logobar_checkbox=$('logobar');Event.listen(this.show_logobar_checkbox,'change',function(b){this.refresh();}.bind(this));}ConnectFanBoxWizard.extend('ConnectWidgetWizard');ConnectFanBoxWizard.prototype.getTextareaDom=function(){if(!this.textarea)this.textarea=$('fan_box_code');return this.textarea;};ConnectFanBoxWizard.prototype.getShowStream=function(){return this.show_stream_checkbox.checked?1:0;};ConnectFanBoxWizard.prototype.getShowFans=function(){return this.show_fans_checkbox.checked?10:0;};ConnectFanBoxWizard.prototype.getShowLogobar=function(){return this.show_logobar_checkbox.checked?1:0;};ConnectFanBoxWizard.prototype.getWidgetMarkup=function(){var b=this.getAppId();var a=this.getAppData();var c=a[b];var e=c.url||c.connect_url;var d=c.name||c.application_name;return '<fb:fan profile_id="'+b+'" stream="'+this.getShowStream()+'" connections="'+this.getShowFans()+'" logobar="'+this.getShowLogobar()+'" width="300">'+'</fb:fan>'+'<div style="font-size:8px; padding-left:10px">'+'<a href="'+e+'">'+htmlize(d)+'</a> on Facebook'+'</div>';};

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