YAHOO.namespace('Msgr.Pingbox');

YAHOO.Msgr.Pingbox = function(){
    var $D=YAHOO.util.Dom, $E=YAHOO.util.Event, $=$D.get;
    var flashMinVersion = "9.0.124", flashObjectId = "pingbox_studio_external";
    var fstamp = document.createElement('iframe');

    var winId = Math.floor(Math.random()*1e13).toString(36);
    window.name = winId; 
    $E.onDOMReady( function() { 
        $D.setStyle(YAHOO.Msgr.Pingbox.Config.studio_id,'display','block');
        
        if (swfobject.hasFlashPlayerVersion("6.0.65")) { // this is the lowest version that supports the Express Install process

            if(!swfobject.hasFlashPlayerVersion(flashMinVersion)){
                // Express Install will run, track with a beacon!
                fstamp.src = YAHOO.Msgr.Pingbox.Config.expflash_url;
            }

            swfobject.embedSWF(
                "http://l.yimg.com/us.yimg.com/lib/msg/eden/pingbox/builds/studio_149801.swf", 
                YAHOO.Msgr.Pingbox.Config.studio_id, "310", "137", flashMinVersion, 
                "http://l.yimg.com/us.yimg.com/lib/msg/swf/expressinstall.swf", 
                { // flashvar
                        closeUrl: YAHOO.Msgr.Pingbox.Config.close_url+"#"+winId, // "http://wgweb.msg.yahoo.com/badge/site/close.php#"+winId,
                        ntype: "",
                        ufid: "",
                        uname: ""
                },
                { // params
                        bgcolor: "#FFFFFF",
                        allowScriptAccess: "always"
                },
                { // attributes
                        id: flashObjectId
                }
            );
        }
        else if (swfobject.hasFlashPlayerVersion("1")) { // really old flash
            fstamp.src = YAHOO.Msgr.Pingbox.Config.oldflash_url;
        }
        else { // no flash at all
            fstamp.src = YAHOO.Msgr.Pingbox.Config.noflash_url;
        }

        $(YAHOO.Msgr.Pingbox.Config.fstamp_id).appendChild(fstamp);
    });

    return {
        Config: YAHOO.Msgr.Pingbox.Config,
        stamp:function(id) {
            $(YAHOO.Msgr.Pingbox.Config.fstamp_id).removeChild(fstamp);
            fstamp = document.createElement('iframe');
            fstamp.src = "http://wgweb.msg.yahoo.com/stamp.php?intl=us&id="+id;
            $(YAHOO.Msgr.Pingbox.Config.fstamp_id).appendChild(fstamp); 
        },
        getDisplayName:function(){ return " "; },
        getYid:function() { return ""; },
        getNetworks:function(){ return "<content time=\"1259230914\">\n<networks signature=\"OVXLXYmXQypJkXBewWgTfEe87UhY7frzv8W/u4E5UV+sSyOSOyxRdmhc8/E0GKObdBeKy24CqFbeEYPFnfXH2DqPrC4Kz3cpmtyPVm0y5vQuTZUfyxytWbxO3Bn4tbUpg9SDzZfRhPx8CkDDqMLN2MVAuFpHdETJgZV90SKK5Kyjw2mSmiWUtI9Eb3z63XyjPO4tsma4+z9ixNP30qArQNPC3QCr1uMFMrkCWVCkVcgcalfHX2GgkAiGLO/IX6Eq/2ekj38rzRphCbVdaPZ717FGqARU9tiJ50+Qnj0DuzoxVCkeZ3gpvDnK3+liGL6i62wZ4Au/YteFo35BM+xkkw==\">\r\n	<network appUrl=\"\" code=\"embed\" id=\"myspace\" logo=\"logo_2\" name=\"MySpace\" seqno=\"0\">\r\n		<sizes enableCustom=\"true\">\r\n			<recommended height=\"300\" width=\"425\"/>\r\n		</sizes>\r\n		<instructions><![CDATA[<font face='Verdana' size='11'><font color='#555555'><b>Instructions for MySpace</b><br></font><font color=\"#666666\">1. Copy the code to clipboard.<br>2. Sign into <font color=\"#3a6ccb\"><a href=\"http://www.myspace.com\" target=\"_blank\"><u>MySpace</u></a></font>.<br>3. Click \"Edit Profile\".<br>4. Choose desired area, such as \"About Me\".<br>5. Paste the Pingbox code into the desired area (Ctrl+V).<br>6. Scroll to the bottom and click \"Save All Changes\".<br>7. Click on \"View Profile\" to see your Pingbox.</font></font>]]></instructions>\r\n	</network>\r\n	<network appUrl=\"\" code=\"embed\" id=\"friendster\" logo=\"logo_6\" name=\"Friendster\" seqno=\"1\">\r\n		<sizes enableCustom=\"true\">\r\n			<recommended height=\"300\" width=\"495\"/>\r\n		</sizes>\r\n		<instructions><![CDATA[<font face='Verdana' size='11'><font color='#555555'><b>Instructions for Friendster</b><br></font><font color=\"#666666\">1. Copy the code to clipboard.<br>2. Sign into <font color=\"#3a6ccb\"><a href=\"http://www.friendster.com\" target=\"_blank\"><u>Friendster</u></a></font>.<br>3. Click \"Edit Profile\".<br>4. Click on the \"Customize\" tab.<br>5. Paste the Pingbox code into the area titled \"Add Media\" (Ctrl+V).<br>6. Scroll to the bottom and click \"Save\".<br>7. Click on \"View Profile\" to see your Pingbox.</font></font>]]></instructions>\r\n	</network>\r\n	<network appUrl=\"\" code=\"embed\" id=\"hi5\" logo=\"logo_7\" name=\"hi5\" seqno=\"2\">\r\n		<sizes enableCustom=\"true\">\r\n			<recommended height=\"300\" width=\"450\"/>\r\n		</sizes>\r\n		<instructions><![CDATA[<font face='Verdana' size='11'><font color='#555555'><b>Instructions for hi5</b><br></font><font color=\"#666666\">1. Copy the code to clipboard.<br>2. Sign into <font color=\"#3a6ccb\"><a href=\"http://hi5.com\" target=\"_blank\"><u>hi5</u></a></font>.<br>3. Click on the \"My Profile\" tab at the top.<br>4. Find the \"Lifestyles\" section. Click on \"Edit this section\".<br>5. Paste the Pingbox code into the area titled \"About Me\" (Ctrl + V).<br>6. Click on \"Save Profile\".</font></font>]]></instructions>\r\n	</network>\r\n	<network appUrl=\"\" code=\"embed\" id=\"blogger\" logo=\"logo_5\" name=\"Blogger\" seqno=\"3\">\r\n		<sizes enableCustom=\"true\">\r\n			<recommended height=\"400\" width=\"220\"/>\r\n			<small height=\"300\" width=\"410\"/>\r\n		</sizes>\r\n		<instructions><![CDATA[<font face='Verdana' size='11'><font color='#555555'><b>Instructions for Blogger</b><br></font><font color=\"#666666\">1. Copy the code to clipboard.<br>2. Sign into <font color=\"#3a6ccb\"><a href=\"http://www.blogger.com\" target=\"_blank\"><u>Blogger</u></a></font>.<br>3. Click the \"Layout\" link in the Dashboard box.<br>4. Click on \"Add a Page Element\" in the blog layout area.<br>5. In the pop-up window, click on \"ADD TO BLOG\" under HTML/JavaScript.<br>6. Type in desired \"Title\" such as \"Chat with Me!\" or \"My Pingbox\".<br>7. Paste the Pingbox code into the \"Content\" area (Ctrl+V).<br>8. Click \"SAVE CHANGES\" to close the pop-up window.</font></font>]]></instructions>\r\n	</network>\r\n	<network appUrl=\"\" code=\"embed\" id=\"livespaces\" logo=\"logo_14\" name=\"Live Spaces\" seqno=\"4\">\r\n		<sizes enableCustom=\"true\">\r\n			<recommended height=\"300\" width=\"380\"/>\r\n		</sizes>\r\n		<instructions><![CDATA[<font face='Verdana' size='11'><font color='#555555'><b>Instructions for Live Spaces</b><br></font><font color=\"#666666\">1. Copy the code to clipboard.<br>2. Sign into <font color=\"#3a6ccb\"><a href=\"http://spaces.live.com\" target=\"_blank\"><u>Live Spaces</u></a></font>.<br>3. Click on \"Add a blog entry\".<br>4. Enter a title for your blog post such as \"Chat with Me!\" or \"My Pingbox\".<br>5. Click on the \"HTML\" link.<br>6. Paste the Pingbox code into the \"Content\" area (Ctrl+V).<br>7. Click \"Publish Entry\".</font></font>]]></instructions>\r\n	</network>\r\n	<network appUrl=\"\" code=\"embed\" id=\"livejournal\" logo=\"logo_17\" name=\"Live Journal\" seqno=\"5\">\r\n		<sizes enableCustom=\"true\">\r\n			<recommended height=\"300\" width=\"575\"/>\r\n		</sizes>\r\n		<instructions><![CDATA[<font face='Verdana' size='11'><font color='#555555'><b>Instructions for Live Journal</b><br></font><font color=\"#666666\">1. Copy the code to clipboard.<br>2. Sign into <font color=\"#3a6ccb\"><a href=\"http://livejournal.com\" target=\"_blank\"><u>Live Journal</u></a></font>.<br>3. Select \"Post an Entry\".<br>4. Select \"Embed Media Link\".<br>5. Paste Pingbox code in the \"Insert Embed Content\" box (Ctrl+V).<br>6. Click \"Insert\".<br>7. Click \"Post To\" button.</font></font>]]></instructions>\r\n	</network>\r\n	<network appUrl=\"\" code=\"embed\" id=\"xanga\" logo=\"logo_18\" name=\"Xanga\" seqno=\"6\">\r\n		<sizes enableCustom=\"true\">\r\n			<recommended height=\"300\" width=\"370\"/>\r\n		</sizes>\r\n		<instructions><![CDATA[<font face='Verdana' size='11'><font color='#555555'><b>Instructions for Xanga</b><br></font><font color=\"#666666\">1. Copy the code to clipboard.<br>2. Sign into <font color=\"#3a6ccb\"><a href=\"http://xanga.com\" target=\"_blank\"><u>Xanga</u></a></font>.<br>3. Click on \"blog now!\" in the top right hand corner of the page, and select \"New Weblog Entry\".<br>4. Click on Edit HTML in right corner.<br>5. Paste Pingbox code into the large text entry area (Ctrl + V).<br>6. Click \"Save Changes\".</font></font>]]></instructions>\r\n	</network>\r\n</networks>\r\n</content>\n<!-- in103.msg.sp1.yahoo.com uncompressed Thu Nov 26 02:21:54 PST 2009 -->\n"; },
        getThemes:function(){ return "<themes><theme id=\"0\" name=\"fun\" maskPrefix=\"pingbox_sharpedge\" src=\"http://l.yimg.com/us.yimg.com/lib/msg/eden/pingbox/pingbox_sharpedge4.swf\"> \n    <symbol name=\"pingbox_sharpedge_bg\"/>\n    <previewClass>pingbox_none_thumb</previewClass>\n    <symbol name=\"pingbox_sharpedge_ov\"/>\n    <manageThumb foreground=\"pingbox_sharpedge_mini_2\" background=\"pingbox_sharpedge_bg\"/> \n    </theme><theme id=\"5\" name=\"professional\" maskPrefix=\"pingbox_professional\" src=\"http://l.yimg.com/us.yimg.com/lib/msg/eden/pingbox/pingbox_professional4.swf\">\n    <symbol name=\"pingbox_professional_bg\"/>\n    <previewClass>pingbox_none_thumb</previewClass>\n    <symbol name=\"pingbox_professional_ov\"/>\n    <manageThumb foreground=\"pingbox_professional_mini_2\" background=\"pingbox_professional_bg\"/>\n    </theme><theme id=\"6\" name=\"seasonal\" maskPrefix=\"pingbox_sharpedge\" src=\"http://l.yimg.com/us.yimg.com/lib/msg/eden/pingbox/pingbox_sharpedge4.swf\"> \n    <symbol name=\"pingbox_sharpedge_bg\"/>\n    <previewClass>pingbox_none_thumb</previewClass>\n    <symbol name=\"pingbox_sharpedge_ov\"/>\n    <manageThumb foreground=\"pingbox_sharpedge_mini_2\" background=\"pingbox_sharpedge_bg\"/> \n    </theme></themes>"; },
        getStrings:function(){ return "<strings>\n<string id=\"activate_link_label\">Turn On</string>\n<string id=\"add_gloss\">Add gloss</string>\n<string id=\"add_pingbox_label\">Add Pingbox</string>\n<string id=\"add_to_network\">Add to %NETWORK%</string>\n<string id=\"any_website_instructions_label\">Instructions for adding Pingbox to any website:</string>\n<string id=\"away_message_1\">Visit me later\!</string>\n<string id=\"away_message_2\">Sorry I missed you. Let's connect next time.</string>\n<string id=\"away_message_3\">Closed for business.</string>\n<string id=\"away_message_4\">Places to go, people to see, things to do...</string>\n<string id=\"away_message_5\">Protecting the world from evil.</string>\n<string id=\"away_message_label\">Offline message:</string>\n<string id=\"background_color_label\">Background color:</string>\n<string id=\"background_label\">Background theme:</string>\n<string id=\"cancel_label\">Cancel</string>\n<string id=\"choose_different_name\">%TITLE% already exists.\nPlease choose a different name.</string>\n<string id=\"code_copied_label\">Code copied to clipboard.</string>\n<string id=\"code_label\">Copy code and follow instructions for %NETWORK%</string>\n<string id=\"code_link_label\">Get the Code</string>\n<string id=\"code_only_label\">Any Website</string>\n<string id=\"continue_label\">Continue</string>\n<string id=\"copy_code_label\">Copy to clipboard</string>\n<string id=\"copy_paste_to_website\">Copy and paste code to website</string>\n<string id=\"create_new_label\">Create New</string>\n<string id=\"create_pingbox_label\">Create Pingbox</string>\n<string id=\"custom_size_label\">Custom:</string>\n<string id=\"date_modified_label\">Date modified:</string>\n<string id=\"deactivate_link_label\">Turn Off</string>\n<string id=\"default_display_name\">Joe User</string>\n<string id=\"default_pingbox_title\">New Pingbox</string>\n<string id=\"default_status_text\">Available</string>\n<string id=\"delete_dialog_text\">&lt;p&gt;Deleting %TITLE% removes it from your account. Make sure that you also remove the code from your websites!&lt;/p&gt;</string>\n<string id=\"delete_dialog_title\">Delete Pingbox</string>\n<string id=\"delete_link_label\">Delete</string>\n<string id=\"delete_widget_cancel\">Cancel</string>\n<string id=\"delete_widget_delete\">Delete</string>\n<string id=\"disabled_status_label\">Off</string>\n<string id=\"display_name_is_required\">Display name is required.</string>\n<string id=\"display_name_label\">Display name:</string>\n<string id=\"download_messenger_label\">Download Yahoo! Messenger</string>\n<string id=\"download_messenger_link\">http://messenger.yahoo.com/download/</string>\n<string id=\"edit_link_label\">Edit</string>\n<string id=\"enabled_status_label\">On</string>\n<string id=\"enter_custom_message\">Enter custom message</string>\n<string id=\"font_family_arial\">Arial</string>\n<string id=\"font_family_verdana\">Verdana</string>\n<string id=\"font_size_10\">10</string>\n<string id=\"font_size_11\">11</string>\n<string id=\"font_size_12\">12</string>\n<string id=\"font_size_14\">14</string>\n<string id=\"font_size_16\">16</string>\n<string id=\"font_size_20\">20</string>\n<string id=\"footer_about_link\">About</string>\n<string id=\"footer_about_link_url\">http://messenger.yahoo.com/pingbox</string>\n<string id=\"footer_how_it_works_link\">How it works</string>\n<string id=\"footer_how_it_works_link_url\">http://messenger.yahoo.com/pingbox/moreinfo</string>\n<string id=\"footer_help_link\">Help</string>\n<string id=\"footer_help_link_url\">http://help.yahoo.com/l/us/yahoo/messenger/pingbox/index.html</string>\n<string id=\"form_error_text\">&lt;p&gt;You must fill out all required fields in order to continue.&lt;/p&gt;</string>\n<string id=\"form_error_title\">Missing Required Fields</string>\n<string id=\"get_code_label\">Next</string>\n<string id=\"hide_step_by_step_instructions\">hide step by step instructions</string>\n<string id=\"instructions_label\">Instructions for adding Pingbox to %NETWORK%:</string>\n<string id=\"last_modified_label\">Last Modified: %DATE%</string>\n<string id=\"logo_instance_name\">logo</string>\n<string id=\"logo_swf_url\">http://l.yimg.com/us.yimg.com/i/msgr/widget/logo/logo_pingbox_us.swf</string>\n<string id=\"manage_tab_label\">Manage Pingbox</string>\n<string id=\"manage_tab_tagline\">Manage your Pingboxes</string>\n<string id=\"more_info\">More Info</string>\n<string id=\"next_label\">Next</string>\n<string id=\"nickname_prompt\">Nickname</string>\n<string id=\"no_pingboxes_label\">You have not created any Pingboxes.</string>\n<string id=\"pingbox_actual_size_message\">Actual size is %WIDTH% x %HEIGHT% px.</string>\n<string id=\"pingbox_limit_text\">&lt;p&gt;Sorry! You've reached the 10 Pingbox limit. To create a new Pingbox, please delete one from your Manage page.&lt;/p&gt;</string>\n<string id=\"pingbox_limit_title\">Pingbox Limit Reached</string>\n<string id=\"pingbox_messenger_yahoo_com\">http://wgweb.msg.yahoo.com/badge/Pingbox.swf</string>\n<string id=\"pingbox_name_is_required\">Pingbox name is required.</string>\n<string id=\"pingbox_name_required\">Pingbox name is required.</string>\n<string id=\"pingbox_resized_message\">%TITLE% sized to fit preview area.</string>\n<string id=\"pingbox_saved\">“%TITLE%” has been saved to your Manage page.</string>\n<string id=\"pingbox_tagline\">Add a Pingbox to your social network profile, blog, or website, and chat with your visitors when you are signed into Yahoo! Messenger!</string>\n<string id=\"pingbox_title_label\">Yahoo! Messenger Pingbox™</string>\n<string id=\"pingbox_url\">http://messenger.yahoo.com/pingbox</string>\n<string id=\"preview_label\">Preview</string>\n<string id=\"publish_label\">Add to website</string>\n<string id=\"publish_prompt\">Choose a website to add %TITLE%</string>\n<string id=\"publish_tagline\">%TITLE% is ready to add to websites</string>\n<string id=\"question_want_to_save_changes\">Do you want to save changes to %TITLE%?</string>\n<string id=\"recommended_size_label\">Recommended:</string>\n<string id=\"save_error_popup_confirm_button_label\">Refresh</string>\n<string id=\"save_error_popup_message\">Your session has expired. Please click refresh to continue.</string>\n<string id=\"save_label\">save</string>\n<string id=\"save_widget_no\">No</string>\n<string id=\"save_widget_yes\">Yes</string>\n<string id=\"send_button_label\">Send</string>\n<string id=\"shape_label\">Shape:</string>\n<string id=\"show_step_by_step_instructions\">show step by step instructions</string>\n<string id=\"size_selection_label\">Size:</string>\n<string id=\"small_size_label\">Other:</string>\n<string id=\"standard_size_label\">Standard:</string>\n<string id=\"text_label\">Text size &amp; color:</string>\n<string id=\"theme_group_color\">Color</string>\n<string id=\"theme_group_fun\">Fun</string>\n<string id=\"theme_group_professional\">Professional</string>\n<string id=\"theme_group_seasonal\">Seasonal</string>\n<string id=\"toggle_enforce_username_label\">Require visitors to enter Nickname to send IM</string>\n<string id=\"toggle_icon_label\">Show Yahoo! Messenger display image</string>\n<string id=\"underage_faq_url\">http://help.yahoo.com/l/us/yahoo/messenger/pingbox/index.html</string>\n<string id=\"unsaved_changes_text\">&lt;p&gt;Do you want to save changes to \"%TITLE%\"?&lt;/p&gt;</string>\n<string id=\"unsaved_changes_title\">Unsaved Changes</string>\n<string id=\"user_too_young\">Sorry! Looks like you don't have the right permission setting to create a Pingbox.</string>\n<string id=\"user_ypc_blocked\">&lt;p&gt;Sorry! Looks like you don't have the right permission setting to create a Pingbox.&lt;/p&gt;\n&lt;p&gt;Please ask your parent for permission.&lt;/p&gt;</string>\n<string id=\"welcome_message_1\">Hi everyone... You can now chat with me on my profile\!</string>\n<string id=\"welcome_message_2\">Hey! What's up?</string>\n<string id=\"welcome_message_3\">Message me will ya?</string>\n<string id=\"welcome_message_4\">Welcome to my world. So what do you think?</string>\n<string id=\"welcome_message_5\">How are you doing? Drop me a line.</string>\n<string id=\"welcome_message_label\">Online greeting:</string>\n<string id=\"whats_next\">&lt;p&gt;&lt;b&gt;What's Next?&lt;/b&gt;&lt;ul&gt;&lt;li&gt;Visitors can chat with you only when your Pingbox is on.&lt;/li&gt;&lt;li&gt;Make sure your Pingbox is on by signing in to Yahoo! Messenger.&lt;/li&gt;&lt;li&gt;Get the newest Messenger to take advantage of all the Pingbox features.&lt;/li&gt;&lt;/ul&gt;&lt;/p&gt;</string>\n<string id=\"widget_title_hint\">Visitors appear in Messenger friend list under this group heading</string>\n<string id=\"widget_title_label\">Save Pingbox as:</string>\n<string id=\"ybang_instance_name\">logo_ybang_us</string>\n<string id=\"ypc_faq_url\">http://help.yahoo.com/l/us/yahoo/messenger/pingbox/</string>\n\n</strings>"; },
        getPingboxStrings:function() { return "<strings>\n<string id=\"cancel_button_label\">Cancel</string>\n<string id=\"click_here_to_reconnect\">Click here to reconnect</string>\n<string id=\"click_here_to_turn_on\">Click here to turn on Pingbox</string>\n<string id=\"copy_address_label\">Copy address</string>\n<string id=\"enter_nickname_to_chat\">Enter nickname to chat with me!</string>\n<string id=\"font_family_arial\">Arial</string>\n<string id=\"font_family_verdana\">Verdana</string>\n<string id=\"font_size_10\">10</string>\n<string id=\"font_size_11\">11</string>\n<string id=\"font_size_20\">20</string>\n<string id=\"get_messenger_url\">http://messenger.yahoo.com</string>\n<string id=\"get_pingbox_label\">Get Yahoo! Messenger Pingbox</string>\n<string id=\"get_pingbox_url\">http://messenger.yahoo.com/pingbox/</string>\n<string id=\"get_yahoo_msgr_label\">Download Yahoo! Messenger</string>\n<string id=\"hi_username\">Hi %USERNAME%</string>\n<string id=\"logo_instance_name\">logo</string>\n<string id=\"logo_swf_url\">http://l.yimg.com/us.yimg.com/i/msgr/widget/logo/logo_pingbox_us.swf</string>\n<string id=\"nickname_prompt\">Nickname</string>\n<string id=\"options_header_label\">Options</string>\n<string id=\"our_chat_is_private\">This is a private chat viewable only by the two of us.</string>\n<string id=\"pingbox_has_timed_out\">Your session has been disconnected because messages have not been sent or received in the past few minutes.</string>\n<string id=\"pingbox_url\">http://messenger.yahoo.com/pingbox</string>\n<string id=\"privacy_policy_label\">Privacy Policy</string>\n<string id=\"privacy_url\">http://privacy.yahoo.com</string>\n<string id=\"remember_nickname_label\">Remember Nickname</string>\n<string id=\"send_button_label\">Send</string>\n<string id=\"start_button_label\">Start Chat</string>\n<string id=\"status_busy\">Busy</string>\n<string id=\"status_idle\">Idle</string>\n<string id=\"status_offline\">Offline</string>\n<string id=\"status_online\">Available</string>\n<string id=\"terms_of_services_label\">Terms of Services</string>\n<string id=\"tos_url\">http://www.yahoo.com/r/ts</string>\n<string id=\"turn_off_pingbox_label\">Turn Off Pingbox</string>\n<string id=\"turn_on_pingbox_label\">Turn On Pingbox</string>\n<string id=\"type_your_message\">Type your message here!</string>\n<string id=\"typing\">Typing</string>\n<string id=\"username_is_available\">%USERNAME% is Available</string>\n<string id=\"username_is_busy\">%USERNAME% is Busy</string>\n<string id=\"username_is_idle\">%USERNAME% is idle</string>\n<string id=\"username_is_offline\">%USERNAME% is Offline</string>\n<string id=\"visitor\">Visitor</string>\n<string id=\"ybang_instance_name\">logo_ybang_us</string>\n</strings>"; },
        getBackgrounds:function(){ return "<backgrounds><theme theme_id=\"1\" group_id=\"0\"><wallpaper_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgscale_smileybiggrin_1.swf</wallpaper_url><thumbnail_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgthumb_smileybiggrin_1.jpg</thumbnail_url><default_color/></theme>\n<theme theme_id=\"2\" group_id=\"0\"><wallpaper_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgscale_smileydevil_1.swf</wallpaper_url><thumbnail_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgthumb_smileydevil_1.gif</thumbnail_url><default_color/></theme>\n<theme theme_id=\"3\" tile=\"true\" group_id=\"0\"><wallpaper_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgtile_yahoologorepeat_1.jpg</wallpaper_url><thumbnail_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgthumb_yahoologorepeat_1.jpg</thumbnail_url><default_color/></theme>\n<theme theme_id=\"4\" group_id=\"0\"><wallpaper_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgscale_shrooms_1.swf</wallpaper_url><thumbnail_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgthumb_shrooms_1.gif</thumbnail_url><default_color/></theme>\n<theme theme_id=\"5\" group_id=\"0\"><wallpaper_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgscale_skulls_1.swf</wallpaper_url><thumbnail_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgthumb_skulls_1.gif</thumbnail_url><default_color/></theme>\n<theme theme_id=\"6\" tile=\"true\" group_id=\"0\"><wallpaper_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgtile_cowboy_1.gif</wallpaper_url><thumbnail_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgthumb_cowboy_1.gif</thumbnail_url><default_color/></theme>\n<theme theme_id=\"7\" tile=\"true\" group_id=\"0\"><wallpaper_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgtile_fur_1.gif</wallpaper_url><thumbnail_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgthumb_fur_1.gif</thumbnail_url><default_color/></theme>\n<theme theme_id=\"8\" tile=\"true\" group_id=\"0\"><wallpaper_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgtile_hifi_1.gif</wallpaper_url><thumbnail_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgthumb_hifi_1.gif</thumbnail_url><default_color/></theme>\n<theme theme_id=\"9\" tile=\"true\" group_id=\"0\"><wallpaper_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgtile_grass_1.jpg</wallpaper_url><thumbnail_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgthumb_grass_1.jpg</thumbnail_url><default_color/></theme>\n<theme theme_id=\"10\" tile=\"true\" group_id=\"0\"><wallpaper_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgtile_wood_grain_1.jpg</wallpaper_url><thumbnail_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgthumb_wood_grain_1.gif</thumbnail_url><default_color/></theme><theme theme_id=\"11\" tile=\"true\" group_id=\"0\"><wallpaper_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgtile_serene_1.gif</wallpaper_url><thumbnail_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgthumb_serene_1.gif</thumbnail_url><default_color/></theme>\n<theme theme_id=\"12\" tile=\"true\" group_id=\"0\"><wallpaper_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgtile_mavrik_1.gif</wallpaper_url><thumbnail_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgthumb_mavrik_1.gif</thumbnail_url><default_color/></theme>\n<theme theme_id=\"13\" tile=\"true\" group_id=\"0\"><wallpaper_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgtile_waves_1.jpg</wallpaper_url><thumbnail_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgthumb_waves_1.jpg</thumbnail_url><default_color/></theme><theme theme_id=\"15\" tile=\"true\" group_id=\"0\"><wallpaper_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgtile_water_1.jpg</wallpaper_url><thumbnail_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgthumb_water_1.jpg</thumbnail_url><default_color/></theme>\n<theme theme_id=\"16\" tile=\"true\" group_id=\"0\"><wallpaper_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgtile_camo_1.gif</wallpaper_url><thumbnail_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgthumb_camo_1.gif</thumbnail_url><default_color/></theme>\n<theme theme_id=\"18\" tile=\"true\" group_id=\"0\"><wallpaper_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgtile_antique_1.gif</wallpaper_url><thumbnail_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgthumb_antique_1.gif</thumbnail_url><default_color/></theme><theme theme_id=\"19\" tile=\"true\" group_id=\"0\"><wallpaper_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgtile_nnb_1.jpg</wallpaper_url><thumbnail_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgthumb_nnb_1.gif</thumbnail_url><default_color/></theme>\n<theme theme_id=\"20\" group_id=\"0\"><wallpaper_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgscale_bluesketch_1.swf</wallpaper_url><thumbnail_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgthumb_bluesketch_1.jpg</thumbnail_url><default_color/></theme>\n<theme theme_id=\"21\" group_id=\"0\"><wallpaper_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgscale_nouveauflowers_1.swf</wallpaper_url><thumbnail_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgthumb_nouveauflowers_1.gif</thumbnail_url><default_color/></theme>\n<theme theme_id=\"22\" group_id=\"0\"><wallpaper_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgscale_weeds_1.swf</wallpaper_url><thumbnail_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgthumb_weeds_1.gif</thumbnail_url><default_color/></theme>\n<theme theme_id=\"23\" tile=\"true\" group_id=\"0\"><wallpaper_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgtile_ckng_1.gif</wallpaper_url><thumbnail_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgthumb_ckng_1.gif</thumbnail_url><default_color/></theme>\n<theme theme_id=\"24\" tile=\"true\" group_id=\"0\"><wallpaper_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgtile_greentea_1.gif</wallpaper_url><thumbnail_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgthumb_greentea_1.gif</thumbnail_url><default_color/></theme>\n<theme theme_id=\"101\" tile=\"true\" group_id=\"5\"><wallpaper_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgscale_pro_yahoo_1.swf</wallpaper_url><thumbnail_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgthumb_pro_yahoo_1.gif</thumbnail_url><default_color/></theme>\n<theme theme_id=\"102\" tile=\"true\" group_id=\"5\"><wallpaper_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgtile_pro_greyline_1.gif</wallpaper_url><thumbnail_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgthumb_pro_greyline_1.gif</thumbnail_url><default_color/></theme>\n<theme theme_id=\"103\" tile=\"true\" group_id=\"5\"><wallpaper_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgtile_pro_gridsm_1.gif</wallpaper_url><thumbnail_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgthumb_pro_gridsm_1.gif</thumbnail_url><default_color/></theme>\n<theme theme_id=\"104\" tile=\"true\" group_id=\"5\"><wallpaper_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgtile_pro_45line_1.gif</wallpaper_url><thumbnail_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgthumb_pro_45line_1.gif</thumbnail_url><default_color/></theme>\n<theme theme_id=\"105\" tile=\"true\" group_id=\"5\"><wallpaper_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgscale_pro_ylwskin_1.jpg</wallpaper_url><thumbnail_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgthumb_pro_ylwskin_1.gif</thumbnail_url><default_color/></theme>\n<theme theme_id=\"106\" tile=\"true\" group_id=\"5\"><wallpaper_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgscale_pro_curve_1.swf</wallpaper_url><thumbnail_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgthumb_pro_curve_1.gif</thumbnail_url><default_color/></theme>\n<theme theme_id=\"107\" tile=\"true\" group_id=\"5\"><wallpaper_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgscale_pro_grey_1.swf</wallpaper_url><thumbnail_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgthumb_pro_grey_1.gif</thumbnail_url><default_color/></theme>\n<theme theme_id=\"108\" tile=\"true\" group_id=\"5\"><wallpaper_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgscale_pro_pur_1.swf</wallpaper_url><thumbnail_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgthumb_pro_pur_1.gif</thumbnail_url><default_color/></theme>\n<theme theme_id=\"109\" tile=\"true\" group_id=\"5\"><wallpaper_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgscale_pro_darkblu_1.swf</wallpaper_url><thumbnail_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgthumb_pro_darkblu_1.gif</thumbnail_url><default_color/></theme>\n<theme theme_id=\"110\" tile=\"true\" group_id=\"5\"><wallpaper_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgscale_pro_stream_1.swf</wallpaper_url><thumbnail_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgthumb_pro_stream_1.gif</thumbnail_url><default_color/></theme>\n<theme theme_id=\"111\" tile=\"true\" group_id=\"5\"><wallpaper_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgscale_pro_stripes_1.swf</wallpaper_url><thumbnail_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgthumb_pro_stripes_1.gif</thumbnail_url><default_color/></theme>\n<theme theme_id=\"112\" tile=\"true\" group_id=\"5\"><wallpaper_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgscale_pro_blu_1.swf</wallpaper_url><thumbnail_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgthumb_pro_blu_1.gif</thumbnail_url><default_color/></theme>\n<theme theme_id=\"201\" tile=\"true\" group_id=\"6\"><wallpaper_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgtile_sea_halloween_1.gif</wallpaper_url><thumbnail_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgthumb_sea_halloween_1.gif</thumbnail_url><default_color/></theme>\n<theme theme_id=\"202\" tile=\"true\" group_id=\"6\"><wallpaper_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgtile_sea_fall_1.jpg</wallpaper_url><thumbnail_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgthumb_sea_fall_1.gif</thumbnail_url><default_color/></theme>\n<theme theme_id=\"203\" tile=\"true\" group_id=\"6\"><wallpaper_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgtile_sea_cny_1.gif</wallpaper_url><thumbnail_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgthumb_sea_cny_1.gif</thumbnail_url><default_color/></theme>\n<theme theme_id=\"204\" tile=\"true\" group_id=\"6\"><wallpaper_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgtile_sea_indeday_1.gif</wallpaper_url><thumbnail_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgthumb_sea_indeday_1.gif</thumbnail_url><default_color/></theme>\n<theme theme_id=\"205\" tile=\"true\" group_id=\"6\"><wallpaper_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgtile_sea_stpatrick_1.gif</wallpaper_url><thumbnail_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgthumb_sea_stpatrick_1.gif</thumbnail_url><default_color/></theme>\n<theme theme_id=\"206\" tile=\"true\" group_id=\"6\"><wallpaper_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgtile_sea_thksgvng_1.gif</wallpaper_url><thumbnail_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgthumb_sea_thksgvng_1.gif</thumbnail_url><default_color/></theme>\n<theme theme_id=\"207\" tile=\"true\" group_id=\"6\"><wallpaper_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgtile_sea_giftgalore_1.gif</wallpaper_url><thumbnail_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgthumb_sea_giftgalore_1.gif</thumbnail_url><default_color/></theme>\n<theme theme_id=\"208\" tile=\"true\" group_id=\"6\"><wallpaper_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgtile_sea_hearts_1.gif</wallpaper_url><thumbnail_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgthumb_sea_hearts_1.gif</thumbnail_url><default_color/></theme>\n<theme theme_id=\"209\" tile=\"true\" group_id=\"6\"><wallpaper_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgtile_sea_hannukah_1.gif</wallpaper_url><thumbnail_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgthumb_sea_hannukah_1.gif</thumbnail_url><default_color/></theme>\n<theme theme_id=\"14\" tile=\"true\" group_id=\"6\"><wallpaper_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgtile_sea_snow_1.gif</wallpaper_url><thumbnail_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgthumb_sea_snow_1.gif</thumbnail_url><default_color/></theme>\n<theme theme_id=\"211\" tile=\"true\" group_id=\"6\"><wallpaper_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgtile_sea_sleighbells_1.gif</wallpaper_url><thumbnail_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgthumb_sea_sleighbells_1.gif</thumbnail_url><default_color/></theme>\n<theme theme_id=\"212\" tile=\"true\" group_id=\"6\"><wallpaper_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgtile_sea_kwanzaa_1.gif</wallpaper_url><thumbnail_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgthumb_sea_kwanzaa_1.gif</thumbnail_url><default_color/></theme>\n<theme theme_id=\"17\" tile=\"true\" group_id=\"6\"><wallpaper_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgtile_sea_easter_1.gif</wallpaper_url><thumbnail_url>http://l.yimg.com/us.yimg.com/i/msgr/widget/bg2/grp_pbbgthumb_sea_easter_1.gif</thumbnail_url><default_color/></theme>\n</backgrounds>"; },
        getCrumb:function(){ return "e7559d097b105616086d4fbbb5d96d984b0e5a3b"; },
        getAccess:function() { return 0; },
        getIntl:function() { return "us"; },

        doPopup:function(url, fullWin) {
            url = unescape(url);
            setTimeout( 
                function() {
                    var o = $(flashObjectId);
                    if(!window.open(url, "_blank", fullWin?"":"location=1,scrollbars=1,status=1,width=750,height=600")) {
                        o.onPopupBlocked(url); 
                    }
                }, 
                0
            );
        },
        loginPopup:function(url, fullWin) { YAHOO.Msgr.Pingbox.doPopup(url, fullWin, true); },
        isLoggedIn:function() { return !!YAHOO.Msgr.Pingbox.getCookie() },
        getCookie:function() {
            var ar = document.cookie.split("; ");
            for(var i=0; i<ar.length; i++){
                if((ar[i].substr(0,2)=="T=")){
                    return ar[i];
                }
            }       
            return "";
        },
        resizeStudio:function(width, height) {
            $D.setStyle(flashObjectId,'width',width+'px');
            $D.setStyle(flashObjectId,'height',height+'px');
        },
        reloadPage:function() {location.reload() },
        updateFlash:function(check, crumb, displayName, yid) {
            YAHOO.Msgr.Pingbox.getCrumb = function() { return crumb; };
            YAHOO.Msgr.Pingbox.getAccess = function() { return check; };
            YAHOO.Msgr.Pingbox.getDisplayName = function() { return displayName; };
            YAHOO.Msgr.Pingbox.getYid = function() { return yid; };
            // patch for weird behavior where the studio cranks out an insane amount of login popups.
            // this carries some edge-case downsides, such as the inability to tell if someone logged off after a popup login.
            YAHOO.Msgr.Pingbox.isLoggedIn = function() { return true; };

            try { // hide header login stuff
                var ygmalis = $('ygmauserinfo').getElementsByTagName('li');
                for (var i = ygmalis.length - 1; i >= 0; i--){
                    if(!$D.hasClass(ygmalis[i],'last-child')) { $D.setStyle(ygmalis[i],'display','none'); }
                };
            } catch (e) {}

            try { 
                var o = $(flashObjectId);
                o.userSignedIn();
                o.focus();
            } catch (e) {}

        },
        setHeader:function(param) {
            var header=document.getElementById('headText');
            switch(param) {
                case 1:
                case 2:
                default:
                    header.innerHTML="<strong>You've added Pingbox!</strong> Now you can send and receive IMs with visitors on your page using <a href='http://messenger.yahoo.com/win/'>Yahoo Messenger 9.0!</a>";
                }
        },
        setOrkutWid:function(wid) {
            gadgets.rpc.call('', 'addWid', YAHOO.Msgr.Pingbox.addCallback, wid );       
        },
        addCallback:function() {
            return false;
        },
        setFacebookWid:function(wid,complete) {
            if(complete!=0) {
                top.location.replace('http://apps.facebook.com/ypingbox/invite.php?ufid=&wid='+wid ) ;
            }
        }
    };
}();
