// Copyright 2005-2008 Meebo, inc.
//
// RSA javascript implementation Copyright 1998-2005 David Shapiro
// please see http://www.ohdave.com/rsa/
//
// interested in joining meebo?  we have positions for back-end software engineer, front-end software engineer, and visual designer
// email your resume and cover letter to secretjobs at meebo dot com!

function Class(B,D,C){var A;if(C){A=D.extend(C)}else{A=Class.create(D)}if(B){Class.pkgParse(B)[B.slice(B.lastIndexOf(".")+1)]=A}return A}Class.create=function(A){function B(){if(typeof this.initialize=="function"){this.initialize.apply(this,arguments)}}if(!A){A={}}B.prototype=(typeof A=="function")?new A():A;B.extend=Class._extend;B.prototype.constructor=B;B.prototype.supa=function(F){var E=this.supa,D=this.supaMethod;try{if(D&&D!=F){this.supa=this.constructor.prototype.supa;this.supaMethod=F;return this.supa.apply(this,arguments)}else{if(F in A.prototype){var C=Array.prototype.slice.call(arguments,1);this.supa=A.prototype.supa;this.supaMethod=F;return A.prototype[F].apply(this,C)}else{return A.prototype.supa.apply(this,arguments)}}}finally{this.supa=E;this.supaMethod=D}};return B};Class._extend=function(A){if(typeof A!="function"){A=Class.fnFromObj(A)}A.prototype=this.prototype;return Class.create(A)};Class.fnFromObj=function(A){return function(){for(var B in A){this[B]=A[B]}this.toString=A.toString;this.valueOf=A.valueOf}};Class.pkgParse=function(pkg){var parts=pkg.split(".");if(typeof window=="undefined"){var object=eval(parts[0]+" = typeof "+parts[0]+' == "undefined" ? {} : '+parts[0]+";");parts.shift()}else{var object=window}while(parts.length>1){var part=parts.shift();if(!object[part]){object[part]={}}object=object[part]}return object};var meebo={};meebo.config=function(){this.m_imageServer="/skin/default/img/";this.m_jsServer="";this.m_cssServer="/";this.m_version="50";this.m_releaseT="local";this.m_timeStamp="1220004442";this.m_soundPath="/skin/default/sound/";this.getVersion=function(){return this.m_version};this.getTimeStamp=function(){return this.m_timeStamp};this.getReleaseType=function(){return this.m_releaseT};this.getCSSServer=function(){return this.m_cssServer};this.getImageServer=function(){return this.m_imageServer};this.getJsServer=function(){return this.m_jsServer};this.getSoundPath=function(){return this.m_soundPath}};var gConfig=new meebo.config();function capitalize(A){if(!A||!A.length||!A.charAt){return""}return A.charAt(0).toUpperCase()+A.substring(1)}var gLang=new(function(){this.getLanguage=function(){return"en"};this.pleaseCheck=" Please check your network connection. ";this.blogLinkText="blog";this.forumLinkText="forum";this.termsLinkText="terms of service";this.privacyLinkText="privacy policy";this.blogLink="<a href='http://blog.meebo.com/' target='blank'>"+this.blogLinkText+"</a>";this.forumLink="<a href='http://forum.meebo.com/' target='blank'>"+this.forumLinkText+"</a>";this.commentsLink="<a href='mailto:comments@meebo.com' target='_blank'>comments@meebo.com</a>";this.termsLink="<a target='_blank' href=\"http://www.meebo.com/terms/\">"+this.termsLinkText+"</a>";this.privacyLink='<a target="_blank" href="http://www.meebo.com/privacy/full/">'+this.privacyLinkText+"</a>";this.disruption="Oops! Meebo detected a network interruption. ";this.awayDisruption="Your status could not be updated. ";this.reconnectPrompt="Would you like to reconnect? ";this.ajaxError="Could not connect to network. ";this.ajaxLogoutError="Sorry, you are currently logged out. ";this.ajaxConnectError="Sorry, meebo is having difficulties connecting to the network. ";this.consoleDisruption="network interruption";this.couldNotConnect="Meebo could not connect to the network.";this.netError=this.couldNotConnect+this.pleaseCheck;this.loginError="Try again! Please check your name and password. ";this.thanks="Thanks for using meebo! ";this.logout="You have signed off. ";this.reconnectInstr="To resume your session, select 'Reconnect.' ";this.signOnWait="Signing on. Please wait...";this.waitReceive="Receiving logon information...";this.encryptPasswords="Encrypting passwords...";this.logonConsole="You are logged in as";this.incomplete="Please provide a logon to start using meebo. ";this.noPass="Please provide a password. ";this.noEmail="Please provide name@server (e.g. jane@gmail.com). ";this.blankConsole="You are not logged into an account. ";this.logoffStatus="Meebo is currently logged off. ";this.logoffConfirm="Are you sure you want to sign off all accounts? ";this.fetchingInfo="Fetching info... ";this.isTyping="%1 is typing";this.isMobile="%1 is mobile";this.isAway="%1 is away";this.isIdle="%1 is idle";this.available="I'm available";this.rightBack="I'll be right back";this.busy="I'm busy";this.sleeping="I'm sleeping";this.awayComputer="I'm away from my computer";this.invisible="I'm invisible";this.custom="Customized message...";this.navigateAway="If you leave, your meebo IM sessions will not be preserved!";this.meeboMessage="Meebo Message";this.meeboOffline="Network interruption detected. ";this.meeboReconnect="Network reconnected. ";this.isOffline="%1 is offline";this.isOnline="%1 is online";this.readyJoin="Ready to join meebo?";this.joinFree="And it's completely free!";this.reconnectHeader="Reconnect with meebo? ";this.newConnectionHeader="New Connection!";this.netErrorHeader="Network Error";this.goodbyeHeader="Goodbye!";this.myMeeboHeader="my meebo";this.addBuddyHeader="Add Buddy!";this.addAccountHeader="Add Account!";this.miniLogonHeader="Connections through meebo";this.removeBuddyHeader="Remove Buddy!";this.acceptHeader="Buddy Request!";this.authHeader="Could not permission buddy";this.addErrorHeader="Could not add buddy";this.removeErrorHeader="Could not remove buddy";this.welcomeHeader="Welcome to Meebo!";this.connectionError="%1 already exists";this.createAccountHeader="Create a meebo account!";this.imBuddyHeader="IM Buddy!";this.imBuddyErrorHeader="Could not IM buddy";this.tryAgainHeader="Please Try Again";this.myMeeboTT="My meebo";this.addBuddyTT="Add Buddy";this.removeBuddyTT="Remove Buddy";this.anyoneTT="IM Anyone";this.chatTT="Group Chat";this.boldTT="bold";this.italicTT="italic";this.underlineTT="underline";this.colorTT="color";this.emoticonTT="emoticons";this.nextTT="Next";this.backTT="Back";this.cancelTT="Cancel";this.signOnTT="Sign On";this.soundTT="sound";this.acceptBtn="Accept";this.addBtn="Add";this.AddAccountBtn="Add Account";this.addConnectionBtn="Add Connection";this.addNewConnectionBtn="Add New Connection";this.closeBtn="Close";this.joinBtn="Join";this.okBtn="OK";this.reconnectionBtn="Reconnect";this.removeBtn="Remove";this.sendBtn="Send";this.SignOffBtn="Sign Off";this.imBuddyBtn="IM Buddy!";this.statusBtn="Status";this.wantsAdd="%1 wants to add %2 to his or her buddylist.";this.authCheck1="Could not permission buddy.";this.authCheck=this.authCheck1+this.pleaseCheck;this.addBuddyNamePrompt="Please provide the name of the buddy you'd like to add to your buddy list.";this.addBuddyPrompt="Please provide your buddy's name, your user logon name, and the group where you would like to add your buddy.";this.noBrEmail="Please provide a name in the form of name@server (e.g. jane@gmail.com) ";this.logonid="Login ID";this.buddy="Buddy";this.group="Group";this.addError="Could not add %1.";this.addNetError="Could not add buddy.";this.addErrorBecause="Could not add %1 because that buddy already exists.";this.noAccounts="You are not signed into an IM account. ";this.noAccountsMeeboPrompt="To add an account to your meebo account, click the 'accounts' link on the background console or %1click here%2";this.noAccountsPrompt="To sign into an account, select the 'Sign On' icon at the bottom of the buddy list or %1click here%2";this.removeBuddyPrompt="Please select the logon account from which you would like to remove your buddy and your buddy's name.";this.removeNetError1="Could not remove buddy. ";this.removeNetError=this.removeNetError1+this.pleaseCheck;this.imBuddyPrompt="Please select the logon account from which you'd like to IM your buddy.";this.imBuddyNamePrompt="Please provide the name of the buddy you'd like to IM.";this.offlineBlog="We're always looking for ways to improve meebo. Have a suggestion or idea? Drop us a note at %1 or visit our %2 and %3. Thanks!";this.connectIntro="Welcome to your meebo accounts.";this.connectDescr="Keep track of all of your IM accounts in one place. Add or configure an account below.";this.singleFail="Meebo could not create a connection with this IM service.";this.pluralFail="Meebo could not create a connection with these IM services.";this.singleFailDescr="The name or password may be incorrect or you may have signed into the service from somewhere else.";this.pluralFailDescr="These names and passwords may be incorrect or you may have signed into the services from somewhere else.";this.imNetError1="You are currently working offline and messages will not be sent or received. ";this.imNetError=this.imNetError1+this.reconnectPrompt;this.alreadyUser="Already a user?";this.autoInvisible="Sign on as invisible";this.password="Password";this.autoConnect="Connect on startup";this.alreadyAdded="%1 has already been added to your meebo account.";this.registerMsg="Your meebo account will allow you to save chat logs, save preferences, and find other meebo users.  Register in seconds!  Get started now!";this.welcomeBack="Welcome back to meebo!";this.meeboProfile="Your meebo profile (public)";this.meeboPrivateProfile="Your meebo profile (private)";this.icon="buddy icon";this.fullName="full name";this.newmeeboid="new meebo id";this.meeboid="meebo id";this.confirmpassword="confirm password";this.emaildescr="email (in case you lose your password):";this.security="security question:";this.createDescr="Create a meebo account in three simple steps...";this.getStarted="Let's get started";this.oneMoment="One moment please...";this.verifyWait="Thank you for your patience.  Meebo is verifying that your meebo id %1 is available";this.sorry="Sorry";this.alreadyTaken="%1 is already taken.  Please pick another name and try again.";this.nameRestrictions="(A-Z, 0-9, underscores, and periods)";this.email="email";this.Email=capitalize(this.email);this.noIdError="Please provide a meebo id to create a new meebo account";this.shortIdError="Please specify a meebo id with at least 4 characters.";this.longIdError="Please specify a meebo id with no more than 100 characters.";this.specialCharError="Please use only letters (a-z), numbers (0-9), underscores (_), and periods (.) for your meebo id.";this.noNameError="Please provide a name for your new meebo account.";this.noEmailError="Please provide an email address for your new meebo account.";this.poorEmailError="Please provide an email in the form of 'name@domain.com'";this.pane2Descr="2. Almost done!";this.twoMoreFields="Just two more fields...! This will be your new meebo password.";this.suggestions="Suggestions?";this.visit="Visit our %1 and %2!";this.passwordLength="(minimum 6 characters)";this.noPasswordError="Please provide a meebo password for your new meebo account";this.shortPasswordError="Please provide a meebo password with at least 6 characters";this.longPasswordError="Please provide a meebo password with no more than 100 characters";this.noConfirmPassword="Please provide a confirmation password for your new meebo account";this.noMatchPassword="The password and confirmation password are different.  Please double-check these fields and try again.";this.specialCharPassword="Please use letters, numbers, and punctuation marks as characters for your password.";this.secondLook="Please take a second look!";this.incompleteLogon="Incomplete Logon";this.toCreateError="Could not create a new meebo connection.";this.network="Network";this.noJavaScriptRequired="JavaScript required to sign in.";this.noJavaScript="Meebo requires JavaScript to sign in.  This web browser does not support JavaScript or scripts are being blocked.";this.noJavaScript2="To find out whether your browser supports JavaScript or to allow scripts, see the browser's online help.";this.newUser="New User?";this.forgotPassword="Forgot your password?";this.rememberMe="remember me";this.about="about";this.help="help";this.logoff="Sign Off";this.signon="Sign On";this.joinMeeboToday="join meebo today!";this.imaway="I'm away";this.buddylist="Buddy List";this.blockBuddy="Block Buddy";this.unblockBuddy="Unblock Buddy";this.confirmBlock="Are you sure you wish to block %1?";this.confirmRemove="Are you sure you wish to remove %1?";this.loadingWait="Loading buddy list...";this.prefDescr="Set your meebo preferences";this.prefDescr2="These preferences will always be associated with your meebo accounts.";this.audioSend="Play sound when I send an IM";this.audioReceive="Play sound when I receive an IM";this.emoticonPref="Show emoticons in IM message";this.chatPref="Save my IM history to view later";this.chatLogs="Chat Logs";this.chatLogsTT="View Chat Logs";this.messageFont="Message Font";this.viewChatLog="View Chat Log";this.chatLogWindowCaption="%1's chat logs";this.profile="Profile";this.buddyUnavailable="Buddy info not available";this.creatingAccount="Thank you for your patience.  meebo is creating your new account.";this.lostPassword="Lost your meebo password?  Enter your meebo ID and we'll email you instructions!";this.activatePassword="Activate your new meebo password!";this.newPassword="new password";this.imName="IM %1";this.removeName="Remove %1";this.addName="Add %1 to %2";this.blockName="Block %1";this.unblockName="Unblock %1";this.profileName="View %1's profile";this.logName="View %1's chat log";this.createGroup="Create Group";this.deleteGroup="Delete Group";this.viewProfile="View Profile";this.confirmChat="Chat logs are available!  meebo will automatically save your chat history so you can review your conversations later.  If you would like to disable this feature, please visit your meebo account preferences or %1 click here %2.";this.loading="loading";this.startChatting="Chat with %1 to start a chat log history!";this.chatLogErrorHeader="Could not fetch chat log";this.chatLogNetError1="Could not fetch buddy chat log. ";this.chatLogNetError=this.chatLogNetError1+this.pleaseCheck;this.loadingChatLog="Thank you for your patience.  meebo is retrieving %1's chat logs.";this.inviteToChat="%1 has invited %2 to chat in %3!";this.inviteMsg="%1 writes %2";this.inviteBuddy="Invite buddy";this.buddyJoinChat="%1 has joined the chat";this.buddyLeaveChat="%1 has left the chat";this.wantChatlogsQ="Want chatlogs?";this.joinForChatLogs="Save your IM conversations online!";this.joinBenefitsChatlogs="By joining meebo, you'll have access to all of your previous IM conversations (and other features like skins and buddy icons as well). ";this.groupChatHeader=this.chatTT;this.groupChatTT="Start or join a group chat";this.groupChatPrompt="Please enter the name of a chat room you want to start or join. ";this.groupChatServerPrompt="For Jabber users, enter the chat server name the group chat is hosted on (e.g. conference.jabber.org).";this.groupChatErrorHeader="Could not join group chat";this.noChatRoom="Please provide a chat room name.";this.noChatRoomServer="Please provide a jabber chat room server.";this.chatroomname="Chat Room";this.chatroomserver="Chat Server";this.chatAcceptHeader="Chat Invite!";this.noICQGroupChat="This group chat does not support inviting ICQ buddies.";this.chatroomended="This chat room session has ended.";this.noChatRoomSpecialChars="Please use only letters and numbers for your chat room name.";this.denyBtnTT="Deny";this.acceptAndAddBtnTT="Accept & Add";this.blockBuddyContext="Block %1";this.unblockBuddyContext="Unblock %1";this.imBuddyContext="IM %1!";this.removeBuddyContext="Remove %1";this.hideBuddyContext="Hide %1";this.hasTyped="%1 has entered text";this.accountPrefs="Account Preferences...";this.displayName="Display Name";this.blogHeader="Meebo Blog";this.noWidgetName="Please provide a name for your widget";this.welcome="Welcome %1";this.accountsTabHeader="Accounts";this.preferencesTabHeader="Preferences";this.removeBuddiesHeader="Remove Buddies!";this.removeBuddyGroupHeader="Remove Buddy Group!";this.removeBuddyGroupsHeader="Remove Buddy Groups!";this.addBuddyGroupNamePrompt="Please provide the name of the group you'd like to add to your buddy list.";this.addBuddyGroupPrompt="Please provide the name of the group you'd like to add.";this.addBuddyGroupHeader="Add Buddy Group!";this.renameBuddy="Rename %1";this.renameBuddyNetError="Could not rename buddy. ";this.wantAliasesQ="Want to rename your buddies?";this.joinForAliases="Join meebo and rename your buddies!";this.joinBenefitsAliases="Sorry, %1 does not support renaming buddies.  If you'd like to rename %2, sign up for a meebo account and meebo will save your buddy aliases.";this.meeboMeIntro="Welcome to your meebo me widgets.";this.meeboMeDescr="Manage your meebo me widgets! Add or configure a widget below.";this.meeboMeNameWidget="Please enter a name for the meebo me widget that you want to create!";this.meeboMeSizeWidget="Now select a size for your brand new widget!";this.smallWidget="small (%1 x %2 px)";this.regularWidget="regular (%1 x %2 px)";this.largeWidget="super-size (%1 x %2 px)";this.addMeeboMeInstructions="Please provide a widget name and widget size to create your new meebo me widget!";this.widgetName="Widget name";this.widgetSize="Widget size";this.showPrev="Show Preview";this.hidePrev="Hide Preview";this.addWidgetCaption="Create a meebo me widget!";this.widgetNameNeeded="Please provide a widget name.";this.meeboMeTabName="meebo me!";this.unableToCreateWidget="Sorry! We were unable to create your meebo me widget! %1";this.addANewWidget="Add A New Widget";this.disable="Disable";this.enable="Enable";this.name="Name";this.widgetEmbed="Widget embed";this.createANewWidget="Create A New Widget!";this.hasLeftYourPage="%1 has left your page";this.minute="minute";this.minutes="minutes";this.enabled="Enabled";this.disabled="Disabled";this.meebomeWidgets="meebo me Widgets";this.meeboMeTT="Add meebo me Widgets";this.confirmMeeboMe="Bring meebo to your page! With meebo me widgets, you can bring the IM experience to any page, any time, anywhere! %1 Learn more about meebo me %2 or %3 start creating widgets now %4!";this.widgetNameTooLong="Please provide a widget name with fewer than 100 characters.";this.consoleWidgetName="%1's meebo me widgets";this.embedWait="Creating widget...";this.errorCreatingWidget="There was an error creating the widget";this.andXOther="... and %1 other";this.andXOthers="... and %1 others";this.youHaveWidgets="You have the following widgets:";this.youDontHaveWidgets="You don't have any widgets! Click on the link below to start adding widgets!";this.widgetNameTaken="Please provide a unique widget name.";this.specialCharErrorWidget="Please provide a widget name with a-z A-Z 0-9 . ' and _.";this.errorSearchHeader="Unable to run search";this.errorBlockerEnabled="A popup blocker is enabled. Please add meebo.com to the list of allowed sites and try running your search again.";this.removeBuddiesContext="Remove Buddies";this.unblockBuddiesContext="Unblock Buddies";this.blockBuddies="Block Buddies";this.unblockBuddies="Unblock Buddies";this.confirmRemoveBuddies="Are you sure you wish to remove the %1 selected buddies?";this.confirmRemoveBuddyGroups="Are you sure you wish to remove the %1 selected buddy groups (and all of their buddies)?";this.confirmRemoveBuddyGroup="Are you sure you wish to remove group '%1' (and all of its buddies)?";this.confirmBlocks="Are you sure you wish to block the %1 selected buddies?";this.addBuddyGroupContext="Add New Group";this.removeBuddyGroupContext="Remove Group";this.removeBuddyGroupsContext="Remove Groups";this.debugInspectionHeader="Inspector";this.offlineGroup="Offline";this.groupChatBuddiesContext="Invite Buddies to Chat";this.blockBuddiesContext="Block Buddies";this.addBuddyGroupErrorHeader="Could not add buddy group";this.addBuddyGroupErrorBecause="Could not add %1 because that group already exists.";this.addBuddyToGroup="Add buddy to group %1";this.invalidBuddyGroupNamePrompt="The buddy group name you've provided is too long.  Buddy group names must be 50 characters or less.";this.searchPrompt="Search the web";this.removeBuddySingleAccountPrompt="Select the buddy you would like to remove.";this.addBuddySingleAccountPrompt="Please provide your buddy's name and the group where you would like to add your buddy.";this.january="January";this.february="February";this.march="March";this.april="April";this.may="May";this.june="June";this.july="July";this.august="August";this.september="September";this.october="October";this.november="November";this.december="December";this.sunday="Sunday";this.monday="Monday";this.tuesday="Tuesday";this.wednesday="Wednesday";this.thursday="Thursday";this.friday="Friday";this.saturday="Saturday";this.dateFormat="%1, %2 %3, %4";this.phraseNotFound="Could not find '%1'";this.searching="Searching...";this.enterSearchPhrase="Please enter a search phrase";this.search="Search";this.findLbl="Find: ";this.startFromBeginning="Continuing search from beginning of chat log";this.community="Community";this.tools="Tools";this.register="Register";this.privacy="Privacy";this.moreNetworks="More networks";this.fewerNetworks="Fewer networks";this.signUp="Sign up!";this.forgotPassword2="Forgot password?";this.loginId="Login";this.skinTT="Skins";this.currSkin="Default";this.origSkin="Classic";this.popOutTT="Pop Out";this.popInTT="Pop In";this.modify="Modify";this.products="Products";this.loadingChat="Loading %1's chat log";this.save="Save";this.renameGroupNetError="Could not rename group. ";this.renameGroupOfflineError="Can not use 'Offline' as a group name. ";this.renameGroupExistsError="Group %1 already exists. ";this.setProfile="Set Profile";this.setProfileHeader="Keep your friends up-to-date by creating a profile.";this.setDisplayName="Set Display Name";this.setDisplayNameError="Could not set display name";this.setDisplayNameHeader="Please provide a display name.  This display name will be used to identify you on your friends' buddy lists.";this.setDisplayNameAIMError="The display name should be a variation upon %1 except with different capitalization or spacing.  For example, %2 and %3 are potential display names.";this.inv="invisible";this.online="online";this.reconnecting="reconnecting";this.savedPrefs="Your preferences have been saved for this meebo session.";this.prefUpsell=" If you'd like meebo to remember these preferences (and get access to other features), create a meebo account.  With your account, meebo will always remember your settings.";this.savedPrefUpsell="<br>"+this.savedPrefs+"<br><br>"+this.prefUpsell+" ";this.popupBlocked="Popup Blocked";this.popupBlockedMsg="The popup window has been blocked by your browser. Please disable your popup blocker and try again.";this.popupBlockedMsg="The popup window has been blocked by your browser.";this.popupfirefox="To disable the popup blocker in Firefox click on the Options button in the top-right hand corner and select 'Allow popups for www.meebo.com'";this.popupie="To disable the popup blocker in Internet Explorer click on the yellow bar at the top and select 'Always Allow Pop-ups from This Site...'";this.yesAnswer="Yes";this.noAnswer="No";this.pleaseWait="Please wait...";this.removeBuddiesInstr="Please select some buddies to remove and try again.";this.joinChat="Join Chat";this.block="Block";this.cannotRemoveOffline="You cannot remove the 'Offline' group.";this.removeBuddiesOffline=this.cannotRemoveOffline+" "+this.removeBuddiesInstr;this.accountUpsell="meebo lets you manage all of your IM accounts with one easy login, sign up for one today!";this.widgetUpsell="Want to see and chat with visitors on your blog or personal webpage?  Sign up for a meebo account and create a meebome widget to put on your web page!";this.sortGroupByName="Sort Buddylist by Name";this.sortGroupByNetwork="Sort Buddylist by Network";this.sortGroupByStatus="Sort Buddylist by Status";this.buddyIconUpsell="Want a display picture? Add some style to your conversations. meebo will always remember your display picture. Join now!";this.buddyIconErrorHeader="Could not set display picture";this.buddyIconErrorExt="Please select an image of type .jpg, .gif, or .png.";this.buddyIconErrorFiletype="Image format was invalid. "+this.buddyIconErrorExt;this.buddyIconErrorSize="File size too big. Hint: Try resizing the image to smaller dimensions. Maximum file size is 80Kb.";this.buddyIconErrorGeneral="Oops!  meebo wasn't able to set your display picture.  Try again later!";this.frontPageError="meebo detected an error and was unable to sign you on.  Please try refreshing the page and if this problem persists, please contact comments@meebo.com.";this.pinkSkin="Pink";this.greenSkin="Green";this.purpleSkin="Purple";this.blackSkin="Black";this.whiteSkin="White";this.chooseUpload="Choose your own...";this.joinChatUpsell="Join chat hosted by meebo!";this.reinviteBuddyContext="Reinvite %1";this.buddyIconErrorImageSize="Image size too big. Hint: Try resizing the image to smaller dimensions. Maximum height and width is 2000 by 2000 pixels.";this.gender="Gender";this.male="Male";this.female="Female";this.age="Age";this.birthYear="Birth Year";this.personalDetailsBlurb="Just a couple more details...";this.optional="Optional";this.deleteAll="Delete All";this.deleteChatLogs="Delete Chat Logs";this.confirmDeleteChatLogs="Are you sure you want to delete %1's chat logs?";this.permanentDeleteChatLogs="This will permanently delete all conversations.";this.couldntDeleteChatLogs="Could not delete chat logs";this.deleteChatLogNetError1="Could not delete buddy chat log. ";this.deleteChatLogNetError=this.deleteChatLogNetError1+this.pleaseCheck;this.customTxt="Custom";this.editStatusMenu="Edit Status Menu";this.awayMessages="Away Messages";this.ageNaN="Please provide your age as a number (e.g. 17  or 45)";this.birthYearNaN="Please provide a four-digit year of birth (e.g. 1979 or 1990)";this.meeboChats="meebo rooms";this.chatUnavailable="meebo room info not available";this.createMeeboChat="Create New Room";this.createMeeboChatInstructions="Create a new room and easily share links with all of your friends.";this.enterChatName="Please enter a name for your room.";this.removeChatContext="Remove Room";this.description="Description";this.renameChat="Rename Room";this.lastMsgDayAgo=" last msg 1 day ago";this.lastMsgHourAgo=" last msg 1 hour ago";this.lastMsgMinuteAgo=" last msg 1 minute ago";this.lastMsgDaysAgo=" last msg %1 days ago";this.lastMsgHoursAgo=" last msg %1 hours ago";this.lastMsgMinutesAgo=" last msg %1 minutes ago";this.lastMsgLessMinuteAgo=" last msg < 1 minute ago";this.onePerson="1 person";this.multiPerson="%1 people";this.viewChatLogs="View the chat logs for this room";this.loadingLink="loading link...";this.playNow="play now";this.shareWithFriends="Tell your friends";this.finish="Finish";this.pasteAURLInConv="Paste a URL in your conversation and watch it play!";this.configure="Configure";this.configureMeeboChat="Configure %1";this.tags="Tags";this.inviteHeader="Invite";this.roomWidgetHeader="Embed on your Site";this.roomWidgetInstructions="Copy and paste this embed code onto your site.  Your site visitors will be able to read and post messages to this room.";this.roomName="Room Name";this.embed="Embed";this.customize="customize";this.size="Size";this.emailInstructions="Email your invite";this.inviteErrorHeader="Could not invite buddy.";this.inviteBuddyNamePrompt="Please provide the name of the buddy you'd like to invite to %s.";this.small="small";this.medium="medium";this.joinRoom="Join Room";this.createRoom="Start or join a room";this.mute="Mute";this.unmute="Unmute";this.flashRequiredToView="Sorry, flash is required to view this media. Please click %1here%2 to download the newest version of Flash.";this.setNickname="Set Nickname";this.ban="Ban";this.message="message";this.imInstructions="IM your invite";this.inviteBuddyEmailPrompt="Please provide the email address of the buddy you'd like to invite to %s.";this.inviteBuddyEmailSenderPrompt="Please provide your name so meebo can send your email invite.";this.inviteBuddyNetworkError="Sorry, meebo was not able to send your invitation. ";this.inviteEmailInstructions="Please provide your buddy's email address that you'd like to invite to %1.";this.yourName="Your Name";this.checkOutRoom="Hey there, I thought you'd like to check out this meebo room.";this.roomInvite="Room Invite";this.joinRoomAndAdd="Join Room and Add";this.invite="Invite";this.rejoinRoom="Rejoin Room";this.leftRoomMessage="You are no longer in the room";this.chooseNickMessage="Please choose a nickname to use in the room.";this.nickname="Nickname";this.startTalking="Start Talking";this.privateRoomEnterPassword="This is a private room, please enter the password.";this.joinRoomInstr="Join an existing room";this.createRoomInstr="Create a new room";this.createRoomErrorMsg="Sorry, meebo could not join %1.  Please check the name and try again.";this.joinMeeboChatInstr="Join a new room and easily share links with all of your friends.";this.uploadYourOwnIcon="Upload Your Own Icon";this.chooseAGroupChatIcon="Choose a room icon";this.isNowKnownAs="%1 is now known as %2";this.removeMedia="remove media";this.addToBuddyList="Become a Member";this.flashOld="You are using Flash version %1. The media player requires at least Flash version 8. Please click %2here%3 to download the newest version of Flash.";this.confirm="Confirm";this.chooseMeeboID="Choose a username and enter a password for your meebo account";this.createMeeboAccount="Create meebo account";this.addToMeeboAccount="Add to my meebo account";this.holdOnTightForRooms="Hold on tight while we connect you to the room";this.itemMarkedAsInappropriate="This item has been flagged as inappropriate";this.tagsExample="Examples: cycling, 'tour de france'";this.pleaseEnjoyAd="Please enjoy this video from our sponsor";this.buddyJoinChatRegExp="$1 $2: has joined the room";this.buddyLeaveChatRegExp="$1 $2: has left the room";this.buddyNameChangeRegExp="$1 Meebo Message: $2 is now known as $3";this.meeboIsFreeServiceAd="Please take a moment to consider these great offers from our partners:";this.moderatorOptions="Sharing";this.publicModerator="Anyone can add media";this.privateModerator="Only you can add media";this.invalidRoomName="Please check your room name.  Room names should be between %1 and %2 characters in length and should not start with an underscore or contain hyphens.";this.youHaveJoinedRoom="You have joined the room";this.limitDescription="Please limit the description to %1 characters";this.removeChatsContext="Remove Rooms";this.removeChatHeader="Remove Room!";this.removeChatsHeader="Remove Rooms!";this.confirmRemoveChats="Are you sure you wish to remove the %1 selected rooms?";this.roomNameExists="A room with that name already exists.  Please choose another name.";this.recentRooms="recent rooms";this.featuredRoom="Featured room";this.otherFeaturedRooms="meebo rooms";this.seeMore="Find more rooms";this.participant="Participant";this.participants="Participants";this.buddyIconUpsellHeadliner="Customize your display picture!";this.accountUpsellHeadliner="Manage all of your IM accounts!";this.widgetUpsellHeadliner="Chat with people on your homepage!";this.chatlogUpsellHeadliner="View past conversations!";this.prefUpsellHeadliner="Save your favorite IM settings!";this.addRoomUpsell=" Like this room? Join meebo and have meebo notify you when people are chatting in your favorite rooms! Also check out our gallery to find more rooms! ";this.addRoomUpsellHeadliner="Remember your favorite rooms!";this.postedMedia="Posted Media";this.featuredRooms="Room Gallery";this.buddyEmail="Buddy's Email";this.findRoom="Find Room";this.buddyJoinRoom="%1 has joined the room";this.buddyLeaveRoom="%1 has left the room";this.createRoom="Create a room";this.couldntFindAnyRooms="Sorry, there were no meebo rooms that matched your search.  Please try again...";this.roomIntro1="Welcome to meebo rooms!";this.roomIntro2="Invite your friends!";this.roomIntro3="Paste a URL and watch it play!";this.disabledRoom="We're sorry!  This meebo room is temporarily unavailable or has been disabled.";this.guestRoomGroup="Guests";this.offlineRoomGroup="Not in room";this.memberRoomGroup="Members";this.banBuddy="Ban Buddy";this.confirmBanBuddy="Are you sure you want to ban %1 from %2?";this.flagMedia="Flag Media";this.confirmRemoveMedia="You are about to remove this media item.  Please help keep meebo clean by removing inappropriate, offensive, and obscene content.";this.showNow="show now";this.createRoom="Create a new room";this.mostRecentShares="Most recent shares:";this.noRecentShares="No recent shares";this.myRoom="%1's room";this.creatingRoom="Creating your room";this.configuringRoom="Configuring your room";this.account="Account";this.visitRoom="Visit room";this.configureRoom="Configure this room.";this.createRoomErrorHeader="Could not create room.";this.configureRoomErrorHeader="Could not configure room";this.configureRoomErrorHeader="Could not configure room.";this.sidebar="sidebar";this.nomedia="without media player";this.withmedia="with media player";this.noMediaAvailable="Note: media not available in this size";this.bannedFromRoom="Sorry! The moderator has banned you from this room. Let's keep meebo a safe and friendly place for everyone. Thanks!";this.bannedWarning="You have been banned two times. One more ban means you will be suspended from meebo rooms for a week.";this.bannedFinal="This is the third time you have been banned. You are now suspended from meebo rooms for one week.";this.bannedTitle="You have been banned!";this.youHaveBeenMuted="You have been muted. Let's keep meebo a safe and friendly place for everyone. Thanks!";this.warn="Warn";this.warnBuddy="Warn Buddy";this.confirmWarnBuddy="Are you sure you want to warn %1?";this.createYourRoom="Create your own!";this.chatLogRecordedWarning="This is a public room.  Conversations are logged and will be available on the Web.  Remember to not share private or sensitive information!";this.searchEg="(e.g. music, sports)";this.inviteBuddiesDescr="Select the buddies you would like to invite to your new meebo room.";this.buddies="Buddies";this.checkAll="Check all";this.clearAll="Clear all";this.music="Music";this.tv="TV";this.celebrities="Celebrities";this.fashion="Fashion";this.sports="Sports";this.movies="Movies";this.comedy="Comedy";this.dating="Dating";this.relationships="Relationships";this.politics="Politics";this.news="News";this.schools="Schools";this.tech="Tech";this.auto="Auto";this.vehicles="Vehicles";this.pets="Pets";this.animals="Animals";this.travel="Travel";this.places="Places";this.popular="Popular";this.roomsGalleryDescr="Chat and share videos, pictures, and websites with friends!";this.more="more";this.addMedia="Add Media";this.addMediaDescr="Enter a URL from your favorite media site to add to the room.";this.url="URL";this.addMediaTT="add media";this.flagOrDelete="Flag or Delete Media Item?";this.flagOrDeleteMsg="Would you like to delete the media item or flag it as innapropriate?";this.deleteMediaItem="Delete";this.flagMediaItem="Flag";this.itemMarkedAsRemoved="This item has been removed";this.wordLimitReached="Word limit reached.";this.upsellHeader="Free instant messaging from any web browser!";this.upsellFooterTitle="Join meebo for free!";this.upsellFooter="Create a meebo account and access all your IM networks anywhere with just one password!";this.joinNow="Join now!";this.learnMore="learn more";this.loadingRooms="Loading Rooms";this.relatedRoomsTitle="Other meebo users were interested in these rooms:";this.networkMessage="Network Message";this.onyxSkin="Onyx";this.hasBeenWarned="%1 has been warned 1 time!";this.hasBeenWarnedPlural="%1 has been warned %2 times!";this.leaveAMessage="leave a message!";this.anime="Anime";this.educational="Educational";this.food="Food";this.games="Games";this.health="Health";this.offbeat="Offbeat";this.online="Online";this.radio="Radio";this.regional="Regional";this.spirituality="Spirituality";this.warnCount="Warn count";this.inviteMessage="Invite Message:";this.initialInviteMessage="Hey! I just created this awesome new meebo room. Please come join me!";this.cameOnline="%1 came online";this.becameAvailable="%1 became available";this.becameActive="%1 became active";this.wentOffline="%1 went offline";this.wentAway="%1 went away";this.wentIdle="%1 went idle";this.categories="Categories";this.confirmWarnBuddyWithCount="Are you sure you want to warn %1? You have 1 warn remaining.";this.confirmWarnBuddyWithCountPlural="Are you sure you want to warn %1? You have %2 warns remaining.";this.noWarnsRemaining="You have no warns left. Please wait a few minutes and try again.";this.cantWarnHeader="Cannot warn";this.media="Media";this.searchResults='Search results for "%1"';this.uncheckAll="Uncheck all";this.celebrities_fashion="Celebrities";this.youHaveAlreadyWarned="You have already warned this user!";this.emptyCategory="Sorry, there are no rooms in this category.";this.groupsUnsupported="Sorry, group chats are not available on meebo mobile.";this.roomsUnsupported="Sorry, rooms are not available on meebo mobile.";this.mobileDisconnect="You've been disconnected from meebo.  Please sign in again.";this.mobileAccountDisconnect="meebo detected a network interruption on %1.";this.pleaseProvideAway="Please provide an away message.";this.customizeMeebo="customize your meebo!";this.customizeSkin="look different with the %1";this.partnerSkin="%1 skin";this.pickBuddyIcon="pick a %1 %2";this.featuredIcons="Featured Icons";this.sponsoredLink="sponsored link";this.pickXCategories="Pick up to %1 categories";this.tryTheSkin="try the %1 background";this.tryTheIcon="try the %1 buddy icon";this.visitTheRoom="listen and watch";this.moreRoom="more %1 rooms";this.sentYouFile="%1 has sent you a file!";this.retrievingFileInfo="Retrieving file information";this.buddySentFile="Your buddy, %1, has sent you a file through meebo!";this.fileName="File name";this.fileSize="File size";this.fileTransfer="File Transfer";this.sendingFileTo="You are sending %1 a file.";this.sendFileInvite="I've just sent you a file through meebo, click on the link to check it out!  (Remember to only accept files from people you know)";this.transferConnFailed="Connection to the file transfer server failed. Please try again later.";this.transferFailed="An error occurred during file transfer. Please try again later.";this.uploadFileTooLarge="The file is too large to upload.";this.uploadLimitReached="You have reached the monthly file upload limit.";this.downloadLimitReached="You have reached the monthly file download limit.";this.downloadFileNotFound="This file is no longer on the server.";this.downloadFileExpired="This file is no longer available.";this.transferTimedOut="The file transfer timed out.";this.sendingFile="Sending file";this.accept="Accept";this.sendFile="Send File";this.fileTypeDisallowed="This type of file cannot be transferred through meebo.";this.revertSkin="return to the %1 skin";this.multipleAccountsWelcome="You are signed into %1 accounts";this.newMessage="%1 new message";this.newMessages="%1 new messages";this.groups="Groups";this.inviteToChatWithMessage="%1 has invited %2 to chat in %3: %4";this.timeDay="%1 day";this.timeHour="%1 hour";this.timeMinute="%1 minute";this.timeSecond="%1 second";this.timeDays="%1 days";this.timeHours="%1 hours";this.timeMinutes="%1 minutes";this.timeSeconds="%1 seconds";this.aFewSeconds="a few seconds";this.lastMsgAgo="Last message %1 ago";this.roomLastMsgAgo="last msg %1 ago";this.inviteNoBuddies="Sorry, you need to have online buddies on your buddy list before sending invitations. Please add buddies or login to additional accounts.";this.inviteAnotherFriend="Invite another friend...";this.returnToActivity="Return to %1";this.appInviteMessage="Come %1 with me";this.acceptInvitation="Accept invitation";this.applications="Applications";this.wentMobile="%1 went mobile";this.youInvitedToApp="You have invited %1 to join you in '%2'.";this.youLeftTheApp="You have left the application.";this.comeJoinMeInApp="Hey, come join me in '%1'";this.loadingApp="Loading application...";this.visualNotifications="Visual Notifications";this.getFirefoxAddOn="Get the Firefox add-on with visual notifications";this.pleaseWaitWhileWeLoad="Please wait while we load";this.flashRequiredToViewApps="Sorry, flash is required to use '%1'. Please click %2here%3 to download the newest version of Flash.";this.flashOldApps="You are using Flash version %1. '%2' requires at least Flash version 9. Please click %3here%4 to download the newest version of Flash.";this.buddyJoinApp="%1 has joined %2";this.buddyLeaveApp="%1 has left %2";this.temporarilyDisabled="Temporarily disabled";this.errorLoadingApp="There was an error loading";this.loadingAppInfo="Loading application info...";this.youAreAlreadyUsingAppInvite="You can only have one instance of '%1' open at a time. Would you like to close your other session and continue?";this.youAreAlreadyUsingAppLaunch="You can only have one instance of '%1' open at a time. Would you like to close your other session and continue?";this.acceptInvitationTitle="Accept Invitation?";this.launchAppTitle="Launch Application?";this.appRunning="Application running...";this.fromOwner="from %1";this.resendInvite="Resend invite";this.inviteSent="Invite sent";this.partyHasLeft="We're sorry, the other party has left the application.";this.youWillLeaveApp="Do you want to leave your current instance of '%1'?";this.errorJoiningRoom="There was an error joining this room.";this.errorApplicationFull="Sorry, this application is full";this.errorRoomNotAvailable="Sorry, this room is no longer available";this.errorApplicationNotAvailable="Sorry, this application is no longer available";this.error="Error";this.inviteBuddiesDescrApp="Select the buddies you would like to invite to your application.";this.errorRoomFull="Sorry, this room is full";this.errorRoomNotAvailable="Sorry, this room is no longer available";this.errorInApp="Sorry, there was an application error.";this.defaultInviteMessage="Come join me";this.cannotLaunchApplication="Cannot launch application";this.cannotLaunchApplicationIP="Applications cannot be used while accessing meebo via ip address.";this.signingOn="Signing On";this.instantMessagingEverywhere="Instant Messaging Everywhere";this.inviteFriends="Invite a friend to meebo!";this.sendInviteTo="Send an invite to:";this.sendInviteFrom="Your name:";this.sendInviteMessage="Message:";this.sendInviteMessageDefault="hey there! meebo is a really sweet IM client and it's all on the web so you don't have to download anything. It already works with all of the big networks and it's free!";this.sendInviteErrorHeader="Could not send meebo invite!";this.sendInviteTryAgain="Oops! meebo was not able to send your invites. Please try again later!";this.showInviteOptions="more options";this.hideInviteOptions="hide options";this.sendInviteLink="Invite!";this.launch="Launch";this.launchAppDescr="Select the buddies that you would like to invite to '%1'";this.pleaseSelectApp="Please select an application...";this.errorFormatEmailList="Some of the emails are incorrectly formatted. Use commas to separate email addresses.";this.sendInvitesTo="Send email invites to:";this.sendInvitesMessageDefault="Check out http://www.meebo.com";this.askToSendIMInvite="Send the message '%1' to %2?";this.onMeebo="%1 is on meebo!";this.notOnMeebo="Tell %1 about meebo!";this.thanksForIMInvite1="Thanks for spreading the word!";this.thanksForIMInvite2="Find out if other people on your buddylist aren't on meebo yet and invite them!";this.thanksForIMInvite=this.thanksForIMInvite1+"<br><br>"+this.thanksForIMInvite2;this.rsaNotice="Passwords encrypted with 1024-bit RSA keys.";this.copyright="Copyright 2005-%1 Meebo, Inc. All rights reserved.";this.hasInvitedYouToPlayAppBold="%1 has invited you to %2.";this.youInvitedToAppBold="You have invited %1 to %2.";this.invitationDeclined="Invitation Declined";this.emailImportHeader="Tell your friends about meebo!";this.emailImportDescr="Invite your friends to meebo!";this.from="From";this.to="To";this.commaSep="use commas to separate emails";this.importEmailAddresses="Import Email Addresses";this.importTT="Get Friends";this.importWait="Thank you for your patience.  meebo is grabbing your email contacts";this.noContacts="No Contacts were found! Try another account by clicking on one of the networks above!";this.addImportAcct="Add this login to my meebo account";this.importErrorHeader="Email Login Error";this.importErrorLogin="We could not fetch your address book. Please check your login and password and try again!";this.importDiffAcct="Choose a different login";this.importErrorNoLogin="Please provide an email account login.";this.youWentOffline="you went offline";this.youCameOnline="you came online";this.username="Username";this.noLogon="Please provide a username and password. ";this.noName="Please provide a username. ";this.accountDescr="Use meebo to organize all of your IM accounts.  Add a new account by providing the network service, username, and password.";this.newConnectDescr="Please select a network service, username, and password for your new connection.";this.noValidName="Please provide a valid username.";this.selectBuddiesToInviteDescr="Please select some buddies to invite to '%1'.";this.myFavoriteApps="My Favorite Apps";this.edit="edit";this.done="done";this.featuredApps="Featured App";this.addedToFavorites="%1 has been added to your list of favorite applications.";this.removedFromFavorites="%1 has been removed from your list of favorite applications.";this.favorite="Favorite";this.removeFavoriteAppHeader="Remove Favorite App!";this.confirmRemoveFavoriteApp="Are you sure you wish to remove %1 from your list of favorite apps?";this.aboutUs="about us";this.welcomeToUserPage="Welcome %1, %2 has invited you to meebo!";this.welcomeToMeebo="Welcome to meebo!";this.usersFavoriteApps="%1 -- Favorite Apps";this.upsellLine1="Meebo makes IM easy";this.upsellLine2="All your IMs with a single account!";this.upsellLine3="Nothing to download";this.upsellLine4="Absolutely free";this.upsellLine5="Join Now!";this.privacyBlockStrangersPref="Block messages from users not on buddylist";this.addImToMeeboAccount="Add your IM account to your Meebo account and start chatting with your buddies!";this.skip="Skip";this.selectANetwork="Please select the IM Network that you have an account with.";this.addModerator="Add Moderator";this.removeModerator="Remove Moderator";this.confirmAddModerator="Are you sure you want to add %1 as a moderator of room '%2'?";this.confirmRemoveModerator="Are you sure you want to remove %1 as a moderator of room '%2'?";this.privacyPrefNotification=":!: Your privacy preferences currently block messages from %1. Add %1 to your buddylist or change your privacy settings to receive their messages.";this.spilloverRoomsGroup="Overflow Rooms";this.flashRequiredToJoinRoom="Flash is required to join '%1' as a guest. Please %2click here%3 to download the newest version of Flash.";this.flashLocalStorageRequired="Flash Local Storage is required to join '%1' as a guest. <br><br>Please %2click here%3 and increase the amount of local storage Flash can use. Then reload this page to join the room.";this.recentIcons="Recent Icons";this.selectBuddiesToShare="Select buddies to share '%1'";this.comeCheckOutAd="Come check out '%1' in meebo!";this.recentLinksInfo="Recent Links";this.shareMessage="Share Message";this.color="Color";this.wallpaper="Wallpaper";this.lastViewed="Last Viewed:";this.none="None";this.share="share";this.fontStyle="font style";this.appearance="Appearance";this.shareHasBeenAdded="%1 has been added to your share menu";this.clearWallpaper="Clear Wallpaper";this.viewedAgo="Viewed %1 ago";this.sharedAgo="Shared %1 ago";this.aimExpressions="AIM Expressions";this.aimMobileSettings="AIM Mobile Settings";this.searchBuddyList="Search your buddy list...";this.joinDisclaimer="By signing up for a Meebo account, you agree that you have read and understand Meebo's %1 and %2.";this.tellUs="Tell us a little bit about yourself";this.nameAssurance1="(We will not share your name with others) ";this.nameAssurance=this.nameAssurance1+"[&nbsp;"+this.privacyLink+"&nbsp;]";this.emailAssurance1="(We will not share your email with others - it is used for lost passwords)";this.emailAssurance=this.emailAssurance1+" [&nbsp;"+this.privacyLink+"&nbsp;]";this.atLeast13="Sorry, you aren't eligible for a Meebo account.";this.adSharedWithBuddy="%1 shared with %2";this.shareAdWith="Share the ad below with:";this.enterBuddyName="Enter your buddy's name...";this.share="Copy link to share with your friends:";this.sponsored="Sponsored";this.viewingNow="Viewing Now";this.rooms="Rooms";this.appearancePanel="Appearance";this.pageNumOfTotal="page %1 of %2";this.myRecent="My Recent";this.menu="Menu";this.settings="Account settings";this.playASound="Play a sound";this.whenISendAnIM="When I send an IM";this.whenIReceiveAnIM="When I receive an IM";this.deleteMyAccount="Email Meebo to delete my account";this.currentPassword="Current password";this.submit="Submit";this.clearImage="Clear image";this.pleaseEnterYourBirthday="Please enter your birthday";this.provideAge="Please provide your age";this.provideGender="Please provide your gender";this.loadingYourEmail="Loading your email";this.chatLogs2="IM history";this.changeAccountSettings="Change the email address or password for your Meebo account";this.preferenceForIMAccounts="These are the preferences for all of your IM accounts";this.welcomeToYourNetworks="Welcome to your IM network accounts";this.keepTrackOfYourIMAccounts="Keep track of all your IM accounts in one place";this.meebomeWidgetsCap="Meebo Me widgets";this.enableIMHistory="Enable IM history";this.adUpsellSuffix="%1 in meebo";this.onlyReceiveMessagesFromFriends="Only receive messages from friends";this.birthday="Birthday";this.networks="Networks";this.IMSettings="IM Settings"})();var meeboApp={};meeboApp.setupRemote=function(){var G=["lgvtk`gq,amo","emkleml,amo","qajogfng{,amo","qgcfpktg,lgv"];var C=document.location.hostname;for(var A=0;A<G.length;A++){var H=de(G[A]);var B=H.length+1;if(C.length<=B){continue}var F=C.length-B;var D=C.substr(F).toLowerCase();if(D=="."+H){document.domain=H;gRemote.domain=document.domain;gRemote.setup=true;if(parent){try{if(parent.meeboConnected){parent.meeboConnected()}}catch(E){}}break}}};meeboApp.addNavigateAwayWarnings=function(){window.onbeforeunload=function(A){A=A||window.event;gPrefs.doPreferenceSync();if(ui.isIE&&window.__flash_unloadHandler&&window.onunload==window.__flash_unloadHandler){window.onunload=window.meeboUnload}if(A&&gEventMgr&&gEventMgr.getState()!="done"&&gBuddyListDlg&&!gIsGuestGroupChat){var B=gLang.navigateAway;if(ui.isIE){A.returnValue=B}return B}};window.onunload=function(D){gWindowMgr.closeNonIMWindows();if(gBuddyListDlg&&gBuddyListDlg.isPoppedOut()){gBuddyListDlg.closeWindow()}gWindowMgr.updateOfflineWindows();ui.cleanUp();if(window.meeboUnload){var A=document.getElementsByTagName("OBJECT");for(var B=0;B<A.length;B++){var C=A[B];for(var E in C){if(typeof(C[E])=="function"){C[E]=null}}}window.meeboUnload=null}};if(ui.isIE){window.meeboUnload=window.onunload}};meeboApp.onEventMgrChangeState=function(D,A,F){if(F!="im"&&F!="done"){return}if(F=="im"&&!meeboApp.m_adTimer&&gGallery instanceof meeboApp.MediaBar){meeboApp.m_adTimer=new meeboApp.AdTimer()}var E=gWindowMgr.getConvWindows();for(var B=0;B<E.length;B++){E[B].m_scrollTop=E[B].m_history.scrollTop}var H=(F=="im"?"loggedout":"loggedin");var G=(F=="im"?"loggedin":"loggedout");addClassName(document.body,G);removeClassName(document.body,H);var E=gWindowMgr.getConvWindows();for(B=0;B<E.length;B++){E[B].m_history.scrollTop=E[B].m_scrollTop}if(F=="im"){gWindowMgr.createBuddyWindow(gLang.buddylist);gSkins.setSkin(gPrefs.getPref("meeboSkin"));gWindowMgr.rightAlignBuddy();if(!gIsGuestGroupChat&&!gWindows["email-import"]&&!gWindows.upsell){gWindowMgr.createWelcomeWindow()}if(gWait){gWait.hideWait()}}else{if(gBuddyListDlg.isPoppedOut()){gBuddyListDlg.popOutDlg(false)}else{gBuddyListDlg.moveOffscreen()}}meeboApp.updateStatusPanelIcon();if(ui.isSafari&&ui.isSafari<523){var C=$("meeboconsoleheader");if(C){C.style.border="1px solid transparent"}}};meeboApp.handleIMNotifications=function(w,buddy,msg,chat,senderString){var isReopen=false;if(!w.isVisible()){gWindowMgr.moveWindowToVisiblePos(w);w.showWindow(true);w.greyText();isReopen=true}senderString=senderString||buddy.getAlias();if(w.m_state=="min"&&!w.isMeeboGroupChat()){w.minimizeWindow(w.getElement())}if(chat&&w){senderString=w.getWindowCaption()+" - "+senderString}gBrowser.setFlash(w.m_win,true,senderString,removeHTML(msg));var shouldShowNotifier=!w.m_win.m_focus;if(!w.isActive()||(w.isPoppedOut()&&!w.m_win.m_focus)){w.startFlashWindow();if(!chat){shouldShowNotifier=true;gBuddyListDlg.showBuddyMessageFeedback(buddy,true,msg)}}else{if(buddy.getType()=="buddy"&&w.m_win.m_focus){buddy.resetUnreadMessageCount()}}if((!chat||chat.getType()!="chat")&&shouldShowNotifier&&meeboApp.util.hasMeeboExtension()){var callback=hitch(this,function(buddy){var w=gWindowMgr.createIMWindow(buddy,null,true);if(!w||!w.isPoppedOut||!w.isPoppedOut()){MeeboExtension.showMeeboTab()}},buddy);MeeboExtension.showNotification(buddy.getAlias(),removeHTML(msg),buddy.getIconURL(),"message",callback);if(w){MeeboExtension.showBlink(w.m_win)}meeboApp.updateStatusPanelIcon()}if(gPrefs.getPref("audioReceive")||(!gPrefs.getPref("audioSend")&&!gPrefs.getPref("audioReceive")&&!gSounds.isMuted())){gSounds.playSample(w.isMeeboGroupChat()?"room":"receive")}if(gRemote&&gRemote.setup&&gRemote.callback){if(parent){var mO={msg:removeHTML(msg),sender:buddy.getName(),protocol:buddy.getProtocol()};try{if(typeof gRemote.callback=="string"){eval("parent."+gRemote.callback+"(mO);")}else{if(typeof gRemote.callback=="function"){gRemote.callback(mO)}}}catch(e){}}}return isReopen};meeboApp.dispatchIM=function(A,N,J,B,O,F,I,H,L){var K=gWindowMgr.getConvWindow(O||J);if(!K){gWindowMgr.createIMWindow(O||J,F,false,false,callee.call(this,arguments));return}var D=O&&J.getPresence(O);var C=(D||J).getAlias();var G=this.handleIMNotifications(K,J,B,O,C);this.moveWindowFromUnderGallery(K);var M=K.m_trees[J.getId()];var E=K.isGroupChat()&&M&&M.getColor();if(N=="meebo.EventMgr::sentIM"){K.addHistoryIM(J.m_logon.getAlias(),B,false,false,false,E,G,I,H,L)}else{K.addHistoryIM(C,B,true,false,false,E,G,I,H,L)}};meeboApp.moveWindowFromUnderGallery=function(A){var C=A.getWindowPos();if(gGallery.isMaximized()){var B=parseInt(getCSSProp(gGallery.getElement(),"z-index"),10)||0;galleryPos=gGallery.getPos();if(C.y+30>galleryPos.y&&C.z<B){C.y=galleryPos.y-30}A.setWindowPos(-1,C.y,-1,-1)}};meeboApp.updateStatusPanelIcon=function(){if(meeboApp.util.hasMeeboExtension()){if(gEventMgr&&gEventMgr.getState()=="im"){MeeboExtension.setStatus("online");if(gBuddyListDlg){var A=gBuddyListDlg.getTotalUnreadMessageCount()}if(A){MeeboExtension.setStatus("unread",A)}else{if(gBuddyListDlg&&gBuddyListDlg.m_statusMenu){if(gBuddyListDlg.m_statusMenu.getItemValue()=="available"){MeeboExtension.setStatus("online")}else{MeeboExtension.setStatus("away")}}}}else{if(gEventMgr&&gEventMgr.inNetworkInterrupt()){MeeboExtension.setStatus("error")}else{MeeboExtension.setStatus("offline")}}}};meeboApp.joinRoom=function(B,K,E,I,J){if(typeof B=="string"){var D=B;B=gBuddyList.addRoom(D,null,gLogon.getMeeboMeLogon())}else{D=B.getChatName()}if(gIsGuestGroupChat&&gNotice.m_flashEnabled&&(gNotice.onNotice(D)||gNotice.isLockedOut())){gWindowMgr.createNotifyDlg({id:getUniqueId()+"-notify",caption:gLang.bannedTitle},gLang.bannedFromRoom);if(J){J(null,false,null)}return}B.m_isLeaving=false;if(K){B.setPassword(K)}var H=true;var G=gWindowMgr.getConvWindow(B);if(!G){var C=gWindowMgr.createIMWindow(B,null,true)}else{if(!G.m_isShowingPasswordPrompt){gWindowMgr.createIMWindow(B,null,true);if(!G.isOffline()){H=false}else{G.clearHistory();G.clearBuddyList();G.clearMediaList();G.m_bMediaRequested=false}}}var F=function(M,L,N){if(J){J(M,L,N)}if(!L||!M){if(C){C._("showOverlayMessage",gLang.disabledRoom)}else{if(G){G.showOverlayMessage(gLang.disabledRoom)}}}};if(H){var A=gPrefs.getRoomPref(D,"nick")||B.getLogin().getAlias();runInMainContext(gNetworkMgr,gNetworkMgr.requestJoinRoom,F,D,A,K,E,I)}return B};meeboApp.onChatChangeChatId=function(K,J,C){if(!C){return}var D=K.getType()=="protocolchat"&&K.getBuddyParent();var H=K.getProtocol();var E=K.getUser();var G=gWindowMgr.getConvWindow(K);if(!G){var B=ui.deferredDlg.getWndOpening(getIMId(D,H,E));var F=argsToArray(arguments);var A=callee;var I=hitch(this,function(L){A.call(this,F);L.onChatChangeChatId(K,J,C)});if(B){B.addBoth(I)}else{if(K.constructor==meebo.ApplicationRoom){meeboApp.Application.onAppLoaded(K)}else{if(K.getType()=="chat"){K.setLastMsg()}}gWindowMgr.createIMWindow(K,K.getChatId(),true,false,I)}}else{if(K.constructor==meebo.ApplicationRoom){if(K.getAbandoned()){if(K&&K.getChatId()){gNetworkMgr.requestChatAction(null,"l",null,K,K.getChatId(),null);gWindowMgr.unregisterGroupChat(getGroupChatId(K.getProtocol(),K.getUser(),K.getChatId()))}G.setApplicationRoom(null);G.onAbandonedApp();return}G.setApplicationRoom(K);K.getApplication().join(K.getChatName())}else{if(K.getType()=="protocolchat"){G.setImObject(K)}}}};meeboApp.onChatInvite=function(B,K,F,M,A,D,I){var L=gBuddyList.getRoomByName(A);if(K=="meebo.EventMgr::roomInvite"){var H=hitch(this,function(O,N){if(O){L=meeboApp.joinRoom(L||A,I,F.getUser(),F.getProtocol());L.m_shouldAddToBuddylist=N}gNetworkMgr.doUILog("roomsinvite",F.getProtocol(),O?"1":"0",true)});var C=gLogon.getMeeboMeLogon();var J=M.length>1?sprintf(gLang.inviteToChatWithMessage,F.getName(),F.getUser(),D,M):sprintf(gLang.inviteToChat,F.getName(),F.getUser(),D);gWindowMgr.createAcceptDenyDlg({id:getUniqueId()+"-accept",caption:gLang.roomInvite},{buddy:A,protocol:"meebome",user:C?C.getName():null,message:J,joinButtonText:gLang.joinRoom,joinAndAddButtonText:(!L||!L.isOnlist())&&(gLogon.getMeeboUser()?gLang.joinRoomAndAdd:"")},H)}else{var G=gWindowMgr.getConvWindow(F);if(!G){gWindowMgr.createIMWindow(F,null,false,false,callee.call(this,arguments));return}var E=this.handleIMNotifications(G,F,M);G.addAppRoomInvite(M,A,E)}};meeboApp.onAppRegister=function(B,A,E,D){var F=gWindowMgr.getConvWindow(E);if(!F){var C=hitch(this,function(G){G.setApplicationRoom(E);meeboApp.onAppRegister(B,A,E,D)});gWindowMgr.createIMWindow(E,E.getChatId(),true,false,C);return}E.logLoadTime("tojoin");meeboApp.platform.createApp(E.getChatName(),E);E.setJoinParams(D.time,D.hash);F.initApp(E.getApplication())};meeboApp.onBuddyAddRequest=function(E,A,D,G,C){var F=function(K,I){var J={user:C,protocol:G,buddy:D,authorized:K};if(I){J.ad=meebo.util.getDefaultGroup(G)}gNetworkMgr.doRequest("auth",J,hitch(gNetworkMgr,"receiveAuthBuddy"))};var B=gWindowMgr.createAcceptDenyDlg({id:getUniqueId()+"-accept",caption:gLang.acceptHeader},{buddy:D,protocol:G,user:C,message:sprintf(gLang.wantsAdd,D+" ("+G+")",C),joinButtonText:gLang.acceptBtn,joinAndAddButtonText:gLang.acceptAndAddBtnTT},F);if(meeboApp.util.hasMeeboExtension()){var H=hitch(this,function(I){if(!I.isPoppedOut()){MeeboExtension.showMeeboTab();I.callActivate()}else{I.m_win.focus()}},B);MeeboExtension.showNotification(gLang.acceptHeader,sprintf(gLang.wantsAdd,D+" ("+G+")",C),null,"invitation",H)}};meeboApp.preloadImages=function(){var C=["buttons/button.orange.normal.left.png","buttons/button.orange.normal.center.png","buttons/button.orange.normal.right.png","buttons/button.orange.hot.left.png","buttons/button.orange.hot.center.png","buttons/button.orange.hot.right.png","buttons/button.orange.down.left.png","buttons/button.orange.down.center.png","buttons/button.orange.down.right.png","buttons/button.orange.disabled.left.png","buttons/button.orange.disabled.center.png","buttons/button.orange.disabled.right.png","background_grayed.gif","meeboConsoleHeaderNW.gif","meeboConsoleHeaderNE.gif","meeboConsoleHeaderSW.gif","meeboConsoleHeaderSE.gif","chats_logo_small_grayed.gif"];for(var B=0;B<C.length;B++){var A=document.createElement("img");gImages.requestImage(C[B],A)}};meeboApp.initGlobals=function(){gWindows=[];gTimerMgr=new ui.timerMgr();gWindowMgr=new meeboApp.WindowMgr();gConsoleMgr=new meeboApp.consoleMgr();gInfoDlg=new meeboApp.info();gSerializer=new lib.serializer();gSkins=new meeboApp.skins();gWidgets=new meebo.Widgets();gDragManager=new ui.drag.DragManager();gColorMgr=new ui.colorMgr();gWait=new meeboApp.logonWaitDlg();gSounds=new ui.soundmanager();gSounds.init();gFrontPage=new meeboApp.FrontPage();gFrontPage.initAudioButton();gNotice=new ui.notice();gNotice.registerProbationCallback(hitch(gWindowMgr,"checkMuteRooms"));gBrowser=new meeboApp.browser();gBrowser.init();gBrowser.setFavIconSrc("favicon",window);gRemote={};meeboApp.setupRemote();gIsGuestApplication=meebo.util.getMeeboApplicationLink(document.location)!=null;gIsGuestGroupChat=meebo.util.getMeeboGroupChatLink(document.location)!=null||gIsGuestApplication;var B=ui.isMac&&isNumber(ui.isFirefox)&&ui.isFirefox<3;gRoomsCategories=[];meeboApp.requestRoomsCategories();if(!B){gGallery=new meeboApp.MediaBar()}else{gGallery=new meeboApp.roomGallery()}gGallery.create(document.body);gInfoDlg.create();if(gLog||gEventLog||gNetworkLog){try{gWindowMgr.createDebugDlg()}catch(A){}}meeboApp.share=new meeboApp.Share();meeboApp.imShareBucket=loadCookie("imShareBucket")||(Math.floor(Math.random()*2)+1);saveCookie("imShareBucket",meeboApp.imShareBucket);meeboApp.adShareBucket=loadCookie("adShareBucket")||(Math.floor(Math.random()*3)+1);saveCookie("adShareBucket",meeboApp.adShareBucket)};meeboApp.IMBUCKET_SHAREPALETTE=1;meeboApp.IMBUCKET_NEWGLEAM=2;meeboApp.ADBUCKET_AUTOCOMPLETE=1;meeboApp.ADBUCKET_LINK=2;meeboApp.ADBUCKET_SHAREMENU=3;meeboApp.requestRoomsCategories=function(){if(!gRoomsCategories||gRoomsCategories.length==0){dojo.getText("/rooms/categories.txt?"+(new Date().getTime()),hitch(meeboApp,"receiveRoomsCategories"),null,null,false,false)}};meeboApp.receiveRoomsCategories=function(){for(var A=0;A<gRoomsCategories.length;A++){gRoomsCategories[A].name=gLang[gRoomsCategories[A].id]||gRoomsCategories[A].title;gRoomsCategories[A].xml="gallery_"+gRoomsCategories[A].id+".xml"}};meeboApp.setVersions=function(){dojo.setPath(gConfig.getJsServer());var A=gConfig.getVersion();if(A){dojo.setVersion("_v"+A)}var B=gConfig.getTimeStamp();if(B){dojo.setSuffix(".js?"+B)}};meeboApp.initBasicMeebo=function(){if(document.location.host=="beta.meebo.com"){meeboApp.adId=getHashVariable("ad")}meeboApp.adRequireHttps=((ui.isIE||ui.isFirefox)&&document.location.protocol=="https:");if(gEventMgr.getState()=="im"){gFrontPage.updateInnerMeebo();gGallery.initContent();gGallery.setDisplay(true);gSkins.setSkin(gPrefs.getPref("meeboSkin"));meeboApp.onEventMgrChangeState(gEventMgr,"meebo.EventMgr::changeState","im")}else{if(getHashVariable("ff")){window.location.hash="#";addClassName(document.body,"extensionloggingin");gWait.showWait(gLang.signOnWait,gImages.getPath()+"wait_ax.gif",document.body);gPubSub.subscribe("meebo.Logon::changeState",meeboApp,function(B,A,C){removeClassName(document.body,"extensionloggingin");if(gWait){gWait.hideWait()}gPubSub.unsubscribe("meebo.Logon::changeState",this);if(C=="error"){gFrontPage.init();return}else{if(C="online"){if(meeboApp.util.hasMeeboExtension()){MeeboExtension.markSuccessfulLogin()}gFrontPage.updateInnerMeebo()}}});gPubSub.subscribe("meebo.EventMgr::changeState",meeboApp,function(B,A,C){if(C=="done"&&gEventMgr.inNetworkInterrupt()){if(gWait){gWait.hideWait()}removeClassName(document.body,"extensionloggingin");gPubSub.unsubscribe("meebo::EventMgr::changeState",this)}})}else{gFrontPage.init()}}};meeboApp.initGuestMeebo=function(){var B=getHashVariable("u");var D=getHashVariable("p");gWindowMgr.createBuddyWindow(gLang.buddyList);gBuddyListDlg.setUpsell(D||"aim",B||"");gFrontPage.updateInnerMeebo();var C=meebo.util.getMeeboGroupChatLink(document.location)!=null;var A=meebo.util.getMeeboApplicationLink(document.location)!=null;if(A){gBuddyListDlg.m_element.style.visibility="hidden"}meeboApp.queryHash=document.location.hash.substring(1);gNetworkMgr.requestSessionKey(hitch(this,function(){if(C){this.initGroupChat(B,D)}else{if(A){this.initApplication(B,D)}else{this.initFileTransfer()}}}));gPubSub.subscribe("meebo.Logon::changeState",meeboApp,function(G,E,H){if(G.isAnonymous()||!G.isOnline()){return}gIsGuestGroupChat=false;gBuddyListDlg.m_element.style.visibility="visible";gWindowMgr.rightAlignBuddy();gPubSub.unsubscribe("meebo.Logon::changeState",this);var F=$("guestDownload");if(F){F.parentNode.removeChild(F);if(!meeboApp.GuestDownload.m_errorCode){gWindowMgr.createOkDlg({id:"acceptFile",caption:gLang.fileTransfer},meeboApp.GuestDownload.getHeaderText(),hitch(meeboApp.GuestDownload,"acceptFile"),null,gLang.acceptBtn,null,"file_download.gif")}gNetworkMgr.doUILog("filetransfer","login","true",true)}})};meeboApp.initGroupChat=function(B,G){var E=getHashVariable("pass");var A=getHashVariable("m");if(String(document.location).indexOf("#")!=-1){document.location="#?"}var D=meebo.util.getMeeboGroupChatLink(document.location);if(isDefined(A)){gNetworkMgr.doUILog("invite-msg-receive",A,"true",true)}gEventMgr.setState("im");var C=hitch(this,function(){if(!gNotice.isLocalStorageEnabled()){var H='<a href="http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager03.html" target="_blank">';gWindowMgr.createNotifyDlg({id:getUniqueId()+"-notify",caption:gLang.sorry,h:160},sprintf(gLang.flashLocalStorageRequired,D,H,"</a>"));gNetworkMgr.doUILog("guestroomsinvite",G||"none","nolocalstorage");return}meeboApp.joinRoom(D,E,B,G,function(){gAjax.initListener();gNetworkMgr.doUILog("guestroomsinvite",G||"none","1")});gNetworkMgr.doUILog("meebo","load",(gUILogging?"stats":"nostats")+"-ggc",true)});if(!gNotice.m_flashEnabled){var F='<a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" target="_blank">';gWindowMgr.createNotifyDlg({id:getUniqueId()+"-notify",caption:gLang.sorry},sprintf(gLang.flashRequiredToJoinRoom,D,F,"</a>"));gNetworkMgr.doUILog("guestroomsinvite",G||"none","noflash")}else{gNotice.executeWhenReady(C)}};meeboApp.initApplication=function(A,C){var D=getHashVariable("mu");if(String(document.location).indexOf("#")!=-1){document.location="#?"}gEventMgr.setState("im");var B=meebo.util.getMeeboApplicationLink(document.location);meebo.applicationMgr.loadGuest(hitch(this,function(G,E){if(E){gPubSub.publish(this,"meeboApp::loadGuestIcon",E)}gAjax.initListener();var F=meeboApp.Application.joinApp(A||null,A||null,C,B,G);gWindowMgr.createIMWindow(F,null,true,false,function(H){H.setApplicationRoom(F)})}),D,B)};meeboApp.initFileTransfer=function(){gNetworkMgr.doUILog("filetransfer","guest","true",true);gWindowMgr.rightAlignBuddy();meeboApp.GuestDownload.create("guestDownload",document.body,getHashVariable("fileid"),getHashVariable("mu"));meeboApp.GuestDownload.addClassName("downloadPage")};meeboApp.initMeeboInvite=function(C,E,A){var B=gBuddyList.getBuddy(C,E,A);if(B){var D=sprintf(gLang.askToSendIMInvite,gLang.sendInvitesMessageDefault,B.getAlias());gWindowMgr.createOkDlg({id:"inviteToMeebo-"+getUniqueId(),caption:sprintf(gLang.notOnMeebo,B.getAlias())},D,hitch(meeboApp,"sendIMInvite",B,gLang.sendInvitesMessageDefault),null,gLang.sendBtn,null,"inviteAppChat.gif");gInfoDlg.hideInfo()}};meeboApp.sendIMInvite=function(B,D){var C=gWindowMgr.getConvWindow(B);var A={sender:B.getUser(),receiver:B.getName(),protocol:B.getProtocol(),msg:D};gNetworkMgr.doRequest("send",A,hitch(meeboApp,"onSentIMInvites"));if(C){C.addHistoryIM(C.getImObject().getUser(),D,false,false)}};meeboApp.onSentIMInvites=function(B,A){if(A){gNetworkMgr.doUILog("m2m","invite","profile",true);var C=gWindowMgr.createNotifyDlg({id:getUniqueId()+"-notify",caption:gLang.inviteSent},gLang.thanksForIMInvite)}else{var C=gWindowMgr.createNotifyDlg({id:getUniqueId()+"-notify",caption:gLang.sendInviteErrorHeader},gLang.sendInviteTryAgain)}};meeboApp.onInput=function(){if(!meeboApp.m_adTimer){return}meeboApp.m_adTimer.checkIntervals()};meeboApp.createTrackingPixel=function(A,C,D){if(C){if(!(C instanceof Array)){C=[C]}for(var B=0;B<C.length;B++){A["ln"+B]=C[B].getName();A["lp"+B]=C[B].getProtocol()}}if(D){if(!(D instanceof Array)){D=[D]}for(var B=0;B<D.length;B++){A["bn"+B]=D[B].getName();A["bp"+B]=D[B].getProtocol()}}new ui.TrackingPixel(A)};meeboApp.updateTargetingInfo=function(B,A,C){meeboApp.m_targetingInfo=C;age=meeboApp.m_targetingInfo.age;gender=meeboApp.m_targetingInfo.gender;gNetworkMgr.doUILog("meebo","demographic","age:"+age+",gender:"+gender,true)};meeboApp.fluidUpdateMessageCount=function(B,A,E){var D=0,F=gBuddyList.getBuddies({type:"buddy"});for(var C=0,B;(B=F[C]);C++){D+=B.getUnreadMessageCount()}window.fluid.dockBadge=D?String(D):""};meeboApp.logonWaitDlg=function(){this.m_numWait=0;this.m_html;this.m_element;this.m_win=window;this.setPos=function(A,E,B,D){var C=$("wait")||this.m_element;if(!C){return}C.style.position="absolute";if(A){C.style.left=A+"px"}if(E){C.style.top=E+"px"}if(B){C.style.width=B+"px"}if(D){C.getElementsByTagName("div")[0].style.height=D+"px"}};this.positionRelativeTo=function(B){var C=posWithRespectTo(B,this.m_win.document.body);var A=C.x+((B.offsetWidth/2)-(this.m_element.offsetWidth/2));var D=C.y+((B.offsetHeight/2)-(this.m_element.offsetHeight/2));this.setPos(A,D)};this.showWait=function(H,I,G){this.m_win=gWin(G);this.m_win.document.body.style.cursor="default";var A=$("wait");var B=false;if(!A){B=true;A=this.m_win.document.createElement("div");A.innerHTML='<b class="corner waitcorner">    <b class="waitcorner1"></b><b class="waitcorner2"></b>    <b class="waitcorner3"></b><b class="waitcorner4"></b>    <b class="waitcorner5"></b></b>    <div id="waitcontent"></div>    <b class="corner waitcorner"><b class="waitcorner5"></b>    <b class="waitcorner4"></b><b class="waitcorner3"></b>    <b class="waitcorner2"></b><b class="waitcorner1"></b></b>';A.id="wait"}this.m_element=A;var E="<table><tr><td>"+H+"</tr></table>";A.getElementsByTagName("div")[0].innerHTML=this.m_html=E;A.style.visibility="visible";if(I){var D=document.createElement("img");D.src=I;if(D.height){fixPng(D)}else{D.className="fixPng";D.onload=function(){fixPng(D)}}var C=document.createElement("td");C.appendChild(D);var F=A.getElementsByTagName("tr")[0];F.insertBefore(C,F.firstChild)}this.setPos(null,null,200,null);if(B){this.m_win.document.body.appendChild(A)}if(G){this.positionRelativeTo(G)}};this.hideWait=function(){this.m_win.document.body.style.cursor="";this.setPos(-999,-999,0,0);this.m_numWait=0;removeElement($("wait"))};this.isShowing=function(){return this.m_element&&this.m_win&&this.m_element.parentNode==this.m_win.document.body};this.updateWait=function(A){if(!this.isShowing()){return}this.showWait(this.m_html+'<br><span class="fineprint">'+A+"</span>")};this.decrementWait=function(){this.m_numWait--;if(this.m_numWait<=0){this.hideWait()}};this.incrementWait=function(){this.m_numWait++}};var gLog=false;var gEventLog=false;var gNetworkLog=false;var gDebug=false;var gLogTimer={};function eventlog(A){if(!gEventLog||!gDebugger){return false}gDebugger.addText(A);gDebugger.m_dlg.showWindow(true);return true}function networklog(A){if(!gNetworkLog||!gDebugger){return false}gDebugger.addText(A);gDebugger.m_dlg.showWindow(true);return true}function startlogtime(B,A){gLogTimer[B]={time:A||new Date().getTime(),timing:true}}function stoplogtime(A){gLogTimer[A].time=new Date().getTime()-gLogTimer[A].time;gLogTimer[A].timing=false;return gLogTimer[A].time}function islogtiming(A){return gLogTimer[A]&&gLogTimer[A].timing}function clearlogtime(A){delete gLogTimer[A]}function log(B,A){if(!gLog||!gDebugger){return false}gDebugger.addText(B,A,false,false);gDebugger.m_dlg.showWindow(true);return true}log.timedelta=function(A){function B(D,E){D=String(D);E=E||2;while(D.length<E){D="0"+D}return D}var C=new Date().getTime()-A;return B(Math.floor(C/60000))+":"+B(Math.floor((C%60000)/1000))+"."+B(Math.floor(C%1000),3)};function logSpeed(){startTime=typeof startTime=="number"?startTime:0;var A=log.timedelta(startTime)+" "+Array.prototype.join.call(arguments," ");log(A)}function initDebugging(B,A,F,D){var C=["/script/meeboApp/debugDlg"];if(D){C.push("/script/meeboApp/debugEvents")}if(!dojo.loadFile(C,callee.call(this,arguments))){return}gLog=B;gEventLog=A;gNetworkLog=F;gDebug=D;if(!gDebugger&&(gLog||gEventLog||gNetworkLog)){try{gWindowMgr.createDebugDlg()}catch(E){}}}var biRadixBase=2;var biRadixBits=16;var bitsPerDigit=biRadixBits;var biRadix=1<<16;var biHalfRadix=biRadix>>>1;var biRadixSquared=biRadix*biRadix;var maxDigitVal=biRadix-1;var maxInteger=9999999999999998;var maxDigits;var ZERO_ARRAY;var bigZero,bigOne;function setMaxDigits(B){maxDigits=B;ZERO_ARRAY=new Array(maxDigits);for(var A=0;A<ZERO_ARRAY.length;A++){ZERO_ARRAY[A]=0}bigZero=new BigInt();bigOne=new BigInt();bigOne.digits[0]=1}setMaxDigits(20);var dpl10=15;var lr10=biFromNumber(1000000000000000);function BigInt(A){if(typeof A=="boolean"&&A==true){this.digits=null}else{this.digits=ZERO_ARRAY.slice(0)}this.isNeg=false}function biFromDecimal(D){var C=D.charAt(0)=="-";var A=C?1:0;var E;while(A<D.length&&D.charAt(A)=="0"){++A}if(A==D.length){E=new BigInt()}else{var B=D.length-A;var F=B%dpl10;if(F==0){F=dpl10}E=biFromNumber(Number(D.substr(A,F)));A+=F;while(A<D.length){E=biAdd(biMultiply(E,lr10),biFromNumber(Number(D.substr(A,dpl10))));A+=dpl10}E.isNeg=C}return E}function biCopy(A){var B=new BigInt(true);B.digits=A.digits.slice(0);B.isNeg=A.isNeg;return B}function biFromNumber(B){var C=new BigInt();C.isNeg=B<0;B=Math.abs(B);var A=0;while(B>0){C.digits[A++]=B&maxDigitVal;B=Math.floor(B/biRadix)}return C}function reverseStr(B){var C="";for(var A=B.length-1;A>-1;--A){C+=B.charAt(A)}return C}var hexatrigesimalToChar=new Array("0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z");function biToString(B,D){var A=new BigInt();A.digits[0]=D;var C=biDivideModulo(B,A);var E=hexatrigesimalToChar[C[1].digits[0]];while(biCompare(C[0],bigZero)==1){C=biDivideModulo(C[0],A);digit=C[1].digits[0];E+=hexatrigesimalToChar[C[1].digits[0]]}return(B.isNeg?"-":"")+reverseStr(E)}function biToDecimal(B){var A=new BigInt();A.digits[0]=10;var C=biDivideModulo(B,A);var D=String(C[1].digits[0]);while(biCompare(C[0],bigZero)==1){C=biDivideModulo(C[0],A);D+=String(C[1].digits[0])}return(B.isNeg?"-":"")+reverseStr(D)}var hexToChar=new Array("0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f");function digitToHex(C){var A=15;var B="";for(i=0;i<4;++i){B+=hexToChar[C&A];C>>>=4}return reverseStr(B)}function biToHex(A){var C="";var D=biHighIndex(A);for(var B=biHighIndex(A);B>-1;--B){C+=digitToHex(A.digits[B])}return C}function charToHex(H){var B=48;var A=B+9;var C=97;var G=C+25;var F=65;var D=65+25;var E;if(H>=B&&H<=A){E=H-B}else{if(H>=F&&H<=D){E=10+H-F}else{if(H>=C&&H<=G){E=10+H-C}else{E=0}}}return E}function hexToDigit(C){var D=0;var A=Math.min(C.length,4);for(var B=0;B<A;++B){D<<=4;D|=charToHex(C.charCodeAt(B))}return D}function biFromHex(D){var E=new BigInt();var A=D.length;for(var C=A,B=0;C>0;C-=4,++B){E.digits[B]=hexToDigit(D.substr(Math.max(C-4,0),Math.min(C,4)))}return E}function biFromString(J,H){var A=J.charAt(0)=="-";var D=A?1:0;var G=new BigInt();var B=new BigInt();B.digits[0]=1;for(var C=J.length-1;C>=D;C--){var E=J.charCodeAt(C);var F=charToHex(E);var I=biMultiplyDigit(B,F);G=biAdd(G,I);B=biMultiplyDigit(B,H)}G.isNeg=A;return G}function biDump(A){return(A.isNeg?"-":"")+A.digits.join(" ")}function biAdd(A,F){var C;if(A.isNeg!=F.isNeg){F.isNeg=!F.isNeg;C=biSubtract(A,F);F.isNeg=!F.isNeg}else{C=new BigInt();var E=0;var D;for(var B=0;B<A.digits.length;++B){D=A.digits[B]+F.digits[B]+E;C.digits[B]=D%biRadix;E=Number(D>=biRadix)}C.isNeg=A.isNeg}return C}function biSubtract(A,F){var C;if(A.isNeg!=F.isNeg){F.isNeg=!F.isNeg;C=biAdd(A,F);F.isNeg=!F.isNeg}else{C=new BigInt();var E,D;D=0;for(var B=0;B<A.digits.length;++B){E=A.digits[B]-F.digits[B]+D;C.digits[B]=E%biRadix;if(C.digits[B]<0){C.digits[B]+=biRadix}D=0-Number(E<0)}if(D==-1){D=0;for(var B=0;B<A.digits.length;++B){E=0-C.digits[B]+D;C.digits[B]=E%biRadix;if(C.digits[B]<0){C.digits[B]+=biRadix}D=0-Number(E<0)}C.isNeg=!A.isNeg}else{C.isNeg=A.isNeg}}return C}function biHighIndex(A){var B=A.digits.length-1;while(B>0&&A.digits[B]==0){--B}return B}function biNumBits(B){var E=biHighIndex(B);var D=B.digits[E];var A=(E+1)*bitsPerDigit;var C;for(C=A;C>A-bitsPerDigit;--C){if((D&32768)!=0){break}D<<=1}return C}function biMultiply(H,G){var F=new BigInt();var E;var B=biHighIndex(H);var J=biHighIndex(G);var I,A,C;for(var D=0;D<=J;++D){E=0;C=D;for(j=0;j<=B;++j,++C){A=F.digits[C]+H.digits[j]*G.digits[D]+E;F.digits[C]=A&maxDigitVal;E=A>>>biRadixBits}F.digits[D+B+1]=E}F.isNeg=H.isNeg!=G.isNeg;return F}function biMultiplyDigit(A,F){var E,D,C;result=new BigInt();E=biHighIndex(A);D=0;for(var B=0;B<=E;++B){C=result.digits[B]+A.digits[B]*F+D;result.digits[B]=C&maxDigitVal;D=C>>>biRadixBits}result.digits[1+E]=D;return result}function arrayCopy(F,E,C,H,G){var A=Math.min(E+G,F.length);for(var D=E,B=H;D<A;++D,++B){C[B]=F[D]}}var highBitMasks=new Array(0,32768,49152,57344,61440,63488,64512,65024,65280,65408,65472,65504,65520,65528,65532,65534,65535);function biShiftLeft(A,H){var D=Math.floor(H/bitsPerDigit);var G=new BigInt();arrayCopy(A.digits,0,G.digits,D,G.digits.length-D);var F=H%bitsPerDigit;var C=bitsPerDigit-F;for(var B=G.digits.length-1,E=B-1;B>0;--B,--E){G.digits[B]=((G.digits[B]<<F)&maxDigitVal)|((G.digits[E]&highBitMasks[F])>>>(C))}G.digits[0]=((G.digits[B]<<F)&maxDigitVal);G.isNeg=A.isNeg;return G}var lowBitMasks=new Array(0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535);function biShiftRight(A,H){var C=Math.floor(H/bitsPerDigit);var F=new BigInt();arrayCopy(A.digits,C,F.digits,0,A.digits.length-C);var E=H%bitsPerDigit;var G=bitsPerDigit-E;for(var B=0,D=B+1;B<F.digits.length-1;++B,++D){F.digits[B]=(F.digits[B]>>>E)|((F.digits[D]&lowBitMasks[E])<<G)}F.digits[F.digits.length-1]>>>=E;F.isNeg=A.isNeg;return F}function biMultiplyByRadixPower(A,C){var B=new BigInt();arrayCopy(A.digits,0,B.digits,C,B.digits.length-C);return B}function biDivideByRadixPower(A,C){var B=new BigInt();arrayCopy(A.digits,C,B.digits,0,B.digits.length-C);return B}function biModuloByRadixPower(A,C){var B=new BigInt();arrayCopy(A.digits,0,B.digits,0,C);return B}function biCompare(A,C){if(A.isNeg!=C.isNeg){return 1-2*Number(A.isNeg)}for(var B=A.digits.length-1;B>=0;--B){if(A.digits[B]!=C.digits[B]){if(A.isNeg){return 1-2*Number(A.digits[B]>C.digits[B])}else{return 1-2*Number(A.digits[B]<C.digits[B])}}}return 0}function biDivideModulo(G,F){var B=biNumBits(G);var E=biNumBits(F);var C=F.isNeg;var K,I;if(B<E){if(G.isNeg){K=biCopy(bigOne);K.isNeg=!F.isNeg;G.isNeg=false;F.isNeg=false;I=biSubtract(F,G);G.isNeg=true;F.isNeg=C}else{K=new BigInt();I=biCopy(G)}return new Array(K,I)}K=new BigInt();I=G;var H=Math.ceil(E/bitsPerDigit)-1;var A=0;while(F.digits[H]<biHalfRadix){F=biShiftLeft(F,1);++A;++E;H=Math.ceil(E/bitsPerDigit)-1}I=biShiftLeft(I,A);B+=A;var N=Math.ceil(B/bitsPerDigit)-1;var S=biMultiplyByRadixPower(F,N-H);while(biCompare(I,S)!=-1){++K.digits[N-H];I=biSubtract(I,S)}for(var R=N;R>H;--R){var J=(R>=I.digits.length)?0:I.digits[R];var Q=(R-1>=I.digits.length)?0:I.digits[R-1];var P=(R-2>=I.digits.length)?0:I.digits[R-2];var O=(H>=F.digits.length)?0:F.digits[H];var D=(H-1>=F.digits.length)?0:F.digits[H-1];if(J==O){K.digits[R-H-1]=maxDigitVal}else{K.digits[R-H-1]=Math.floor((J*biRadix+Q)/O)}var M=K.digits[R-H-1]*((O*biRadix)+D);var L=(J*biRadixSquared)+((Q*biRadix)+P);while(M>L){--K.digits[R-H-1];M=K.digits[R-H-1]*((O*biRadix)|D);L=(J*biRadix*biRadix)+((Q*biRadix)+P)}S=biMultiplyByRadixPower(F,R-H-1);I=biSubtract(I,biMultiplyDigit(S,K.digits[R-H-1]));if(I.isNeg){I=biAdd(I,S);--K.digits[R-H-1]}}I=biShiftRight(I,A);K.isNeg=G.isNeg!=C;if(G.isNeg){if(C){K=biAdd(K,bigOne)}else{K=biSubtract(K,bigOne)}F=biShiftRight(F,A);I=biSubtract(F,I)}if(I.digits[0]==0&&biHighIndex(I)==0){I.isNeg=false}return new Array(K,I)}function biDivide(A,B){return biDivideModulo(A,B)[0]}function biModulo(A,B){return biDivideModulo(A,B)[1]}function biMultiplyMod(B,C,A){return biModulo(biMultiply(B,C),A)}function biPow(A,D){var C=bigOne;var B=A;while(true){if((D&1)!=0){C=biMultiply(C,B)}D>>=1;if(D==0){break}B=biMultiply(B,B)}return C}function biPowMod(B,F,A){var E=bigOne;var C=B;var D=F;while(true){if((D.digits[0]&1)!=0){E=biMultiplyMod(E,C,A)}D=biShiftRight(D,1);if(D.digits[0]==0&&biHighIndex(D)==0){break}C=biMultiplyMod(C,C,A)}return E}function BarrettMu(A){this.modulus=biCopy(A);this.k=biHighIndex(this.modulus)+1;var B=new BigInt();B.digits[2*this.k]=1;this.mu=biDivide(B,this.modulus);this.bkplus1=new BigInt();this.bkplus1.digits[this.k+1]=1;this.modulo=BarrettMu_modulo;this.multiplyMod=BarrettMu_multiplyMod;this.powMod=BarrettMu_powMod}function BarrettMu_modulo(H){var G=biDivideByRadixPower(H,this.k-1);var E=biMultiply(G,this.mu);var D=biDivideByRadixPower(E,this.k+1);var C=biModuloByRadixPower(H,this.k+1);var I=biMultiply(D,this.modulus);var B=biModuloByRadixPower(I,this.k+1);var A=biSubtract(C,B);if(A.isNeg){A=biAdd(A,this.bkplus1)}var F=biCompare(A,this.modulus)>=0;while(F){A=biSubtract(A,this.modulus);F=biCompare(A,this.modulus)>=0}return A}function BarrettMu_multiplyMod(A,C){var B=biMultiply(A,C);return this.modulo(B)}function BarrettMu_powMod(A,E){var D=new BigInt();D.digits[0]=1;var B=A;var C=E;while(true){if((C.digits[0]&1)!=0){D=this.multiplyMod(D,B)}C=biShiftRight(C,1);if(C.digits[0]==0&&biHighIndex(C)==0){break}B=this.multiplyMod(B,B)}return D}function RSAKeyPair(B,C,A){this.e=biFromHex(B);this.d=biFromHex(C);this.m=biFromHex(A);this.digitSize=2*biHighIndex(this.m)+2;this.chunkSize=this.digitSize-11;this.radix=16;this.barrett=new BarrettMu(this.m)}function twoDigit(A){return(A<10?"0":"")+String(A)}function encryptedString(K,P){if(K.chunkSize>K.digitSize-11){return"Error"}var J=new Array();var A=P.length;var E=0;while(E<A){J[E]=P.charCodeAt(E);E++}var F=J.length;var H="";var D,C,B;for(E=0;E<F;E+=K.chunkSize){B=new BigInt();D=0;var I;var O=(E+K.chunkSize)>F?F%K.chunkSize:K.chunkSize;var G=new Array();for(I=0;I<O;I++){G[I]=J[E+O-1-I]}G[O]=0;var N=Math.max(8,K.digitSize-3-O);for(I=0;I<N;I++){G[O+1+I]=Math.floor(Math.random()*254)+1}G[K.digitSize-2]=2;G[K.digitSize-1]=0;for(C=0;C<K.digitSize;++D){B.digits[D]=G[C++];B.digits[D]+=G[C++]<<8}var M=K.barrett.powMod(B,K.e);var L=K.radix==16?biToHex(M):biToString(M,K.radix);H+=L+" "}return H.substring(0,H.length-1)}function rsaEncrypt(D){if(!D){return""}var A=arguments.callee.cache;if(!A){A=arguments.callee.cache={}}if(D in A){return A[D]}var C=new Date().getTime();setMaxDigits(160);var E=new RSAKeyPair("25","","00846e46d25bc8743ac45c12c5ae9acbdb1ae2d632d9fdda3bc50ad0c02afbb3060ac5350af7d774014e4c01feef522edbc8f68d3b066025066b78e3de201fa2ec5e0f2006599c9f993ca18316ee940be6f7185b2fbd797fb692740da782e0c41b33e8b2dcb392f93b650526a4470ea9b6ae510dc6c84a69f0b1f27b3dbb43f615");var B=encryptedString(E,D);A[D]=B;return B}function rgbToHex(A){var C=/rgb\(([\d]+), ([\d]+), ([\d]+)\)/;var B=A.match(C);return"#"+toHex(B[1],2)+toHex(B[2],2)+toHex(B[3],2)}function toHex(A,B){var D="0123456789ABCDEF";var C=D.charAt(A&15);while(A>15){A=A>>4;C=D.charAt(A&15)+C}while(C.length<B){C="0"+C}return C}function decToHex(A){if(typeof A=="string"){A=parseInt(A)}return A.toString(16)}function isInRect(D,C,A,F,B,E){if((D<A)||(D>=A+B)){return false}if((C<F)||(C>=F+E)){return false}return true}function computeFileSize(B){var A=["K","M","G","T","P"];var C=-1;while(B/1024>1){B/=1024;C++}B=Math.floor(B*10)/10;return B+" "+(C>-1?A[C]:"")+"B"}var g_currentUniqueId=1;function getUniqueId(){return String(++g_currentUniqueId)}function insertChar(E,B,D){if(!E){E=""}if(D<=0){return B+E}if(D>=E.length){return E+B}var C=E.slice(0,D);var A=E.slice(D);return C+B+A}function deleteChar(B,A){if(A<0){return B}return B.slice(0,A-1)+B.slice(A)}function parseGET(E){var A={};var B=E.split("&");for(var C=0;C<B.length;C++){var D=B[C].split("=");A[D[0]]=decodeURIComponent(D[1])}return A}function stripWhitespace(A){return(A||"").replace(/(^\s+|\s+$)/g,"")}function capitalize(A){if(!A||!A.length||!A.charAt){return A}var B=A.charAt(0);B=B.toUpperCase();return B+A.substring(1)}function isEmail(A){return A&&A.match(/^[a-z0-9!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+\/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i)}function unescapeHTML(A){if(!A||!A.length){return A}A=A.replace(/&quot;/g,'"');A=A.replace(/&lt;/g,"<");A=A.replace(/&gt;/g,">");A=A.replace(/&apos;/g,"'");A=A.replace(/&#39;/g,"'");A=A.replace(/&amp;/g,"&");return A}function escapeHTML(B,A){if(!B||!B.length){return B}B=B.replace(/&/g,"&amp;");B=B.replace(/"/g,"&quot;");B=B.replace(/</g,"&lt;");B=B.replace(/>/g,"&gt;");B=B.replace(/(\r\n|\r|\n)/g,"<br>");if(!A){}return B}function removeHTML(B){if(!B){return B}var A=unescapeHTML(B.replace(/<[^<>]+>/g,""));return A}function normalizeString(C){if(!C){return C}var B=C.toLowerCase();var A=B.replace(/\s/g,"");return A}function compressSpaces(A){return stripWhitespace(A).replace(/\s\s*/g," ")}function isStringNumber(B){if(typeof B=="string"){return true}var A=/^[0-9]+$/;return(B.match(A)!=null)}function linkify(D){var E=/(^|[^'\"])(\bhttps?:\/\/[^\s\"\<\>)]+)/ig;var A='$1<a href="$2" target="_blank">$2</a>';D=D.replace(E,A);var B=/(^|[^'\"])(^|\s+)(www\.[^\s\"\<\>)]+)/ig;var C='$1$2<a href="http://$3" target="_blank">$3</a>';D=D.replace(B,C);return D}function isInsideTag(B,A){var F=B.lastIndexOf("<",A);var D=B.lastIndexOf(">",A);var C=B.indexOf("<",A);var E=B.indexOf(">",A);return!(D>=F&&C<=E)}function isInsideEntity(B,A){var D=B.lastIndexOf("&",A-1);var C=B.lastIndexOf(";",A-1);return A&&C<D}function appendWbrUrl(C,D){var B;var F=Array();F[0]=/\b(https?:\/\/[^\s+\"\<\>]+)\b/ig;F[1]=/\b(www\.[^\s+\"\<\>]+)\b/ig;for(var A=0;A<F.length;A++){var E=0;tmpHtml="";while(B=F[A].exec(C)){tmpHtml+=C.substr(E,B.index-E);if(!isInsideTag(C,B.index)){tmpHtml+=insertWbrText(B[1],D)}else{tmpHtml+=B[1]}E=B.index+B[1].length}tmpHtml+=C.substr(E,C.length-E);C=tmpHtml}return C}function insertWbrText(E,D){var A=0;var C="";for(var B=0;B<E.length;B++){if(++A>=D&&!isInsideEntity(E,B)){A=0;C+="<wbr>"}C+=E.charAt(B)}return C}function pad(C,B){if(!C){C=""}for(var A=0;A<B;A++){if(C.length==B){return C}C="0"+C}return C}function isdigit(A){return((A>="0")&&(A<="9"))}function insertTargets(A,B){if(!A||!A.indexOf){return A}A=A.replace(/(<\s*a\s+[^>]*href\s*=\s*[\"\']?)([^\"\' >:]{5,6}[^:][^\"\' >:]+)/gi,"$1http://$2");if(!B){B="_blank"}A=A.replace(/<a /gi,'<a target="'+B+'" ');return A}function de(A){var B="";for(i=0;i<A.length;i++){B+=String.fromCharCode(2^A.charCodeAt(i))}return B}function reverseString(C){var B="";for(var A=C.length-1;A>=0;A--){B+=C.charAt(A)}return B}function makeTextSplittable(A){return A.replace(/(@|\/|\\)/g,"$1<wbr>")}function escapeRegexp(B){if(!arguments.callee.sRE){var A=["/",".","*","+","?","|","(",")","[","]","{","}","\\"];arguments.callee.sRE=new RegExp("(\\"+A.join("|\\")+")","g")}return B.replace(arguments.callee.sRE,"\\$1")}function $(E){for(var C=0,D;(D=$.docs[C]);C++){try{var B=D.getElementById(E);if(B){return B}}catch(A){}}}$.docs=[document];$.remember=function(B){for(var A=0;A<$.docs.length;++A){if(B===$.docs[A]){return}}$.docs.push(B)};$.forget=function(C){var A=[];for(var B=0;B<$.docs.length;++B){if($.docs[B]!==C){A.push($.docs[B])}}$.docs=A};function gDoc(B){if(B){if(B.ownerDocument){return B.ownerDocument}else{if(B.document){return B.document}else{if(typeof(B.nodeName)=="string"){if(B.nodeName.match(/document/i)){return B}else{if(gWin.isWindow(B)){return B.document}}}}}var A=B.target||B.srcElement;if(A){return gDoc(A)}}return gDoc._doc}gDoc._doc=document;function gWin(C){if(gWin.wins.length==1){return gWin.wins[0]}if(gWin.isWindow(C)){return C}var B=gDoc(C);for(var A=0;A<gWin.wins.length;A++){if(gWin.wins[A].document===B){return gWin.wins[A]}}var D=B.parentWindow||B.defaultView;return D||gWin.wins[0]}gWin.wins=[window];gWin.isWindow=function(C){var A=false;try{A=(C&&typeof C.screen=="object")}catch(B){A=true}return A};gWin.map=function(B){for(var A=0;A<gWin.wins.length;++A){B(gWin.wins[A])}};gWin.remember=function(A){if(isDefined(A._gWinPos)){return}A._gWinPos=gWin.wins.length;gWin.wins.push(A)};gWin.forget=function(C){if(!isDefined(C._gWinPos)){return}gWin.wins.splice(C._gWinPos,1);for(var B=C._gWinPos;B<gWin.wins.length;B++){gWin.wins[B]._gWinPos=B}try{delete C._gWinPos}catch(A){}};function getChild(A,C){if(!A){return}if(!A.hasChildNodes){return}var B=A.firstChild;while(B){if(B.id==C){return B}B=B.nextSibling}}function recursiveGetPart(A,D){if(!A||!D){return}if(!A.hasChildNodes()){return}var C=A.firstChild;while(C){if(C.id==D){return C}var B=recursiveGetPart(C,D);if(B){return B}C=C.nextSibling}return null}function posWithRespectTo(B,A){var D={x:0,y:0,w:0,h:0};if(B){D.w=B.offsetWidth;D.h=B.offsetHeight}var C=B;while(C){if(C===A){break}D.x+=C.offsetLeft;D.y+=C.offsetTop;if(C!=B){D.x-=C.scrollLeft;D.y-=C.scrollTop}C=C.offsetParent}D.left=D.x;D.top=D.y;return D}function getElementPosition(A){if(!A){return}var B=gDoc(A),C=posWithRespectTo(A);if(navigator.userAgent.indexOf("Mac")!=-1&&isDefined(B.body.leftMargin)){C.x+=B.body.leftMargin;C.left=C.x;C.y+=B.body.topMargin;C.top=C.y}return C}function getPartFromElement(A,B){if(A){return recursiveGetPart(A,B)}}function removeChildren(A){if(A){var B;while(B=A.firstChild){A.removeChild(B)}}return A}function removeElement(B){try{if(!B||!B.parentNode){return B}return B.parentNode.removeChild(B)}catch(A){B.style.visibility="hidden";return B}}function getTextContent(A,B){var E=A.getElementsByTagName(B)[0];if(!E){var D=A.getElementsByTagName("*");for(var C=0;C<D.length;C++){if(D[C].tagName==B){E=D[C];break}}if(!E){return""}}if("text"in E){return unescapeHTML(unescape(E.text))}else{if("textContent"in E){return E.textContent}else{if(E.firstChild){return E.firstChild.nodeValue}}}return""}function getValue(C){var A=$(C);if(!A||!isDefined(A.value)){return""}var B=A.value;if(!B){return""}return B}function getCSSProp(E,B){if(E.currentStyle){var D=getCSSProp.camelProp[B]||(getCSSProp.camelProp[B]=B.replace(/-\D/gi,getCSSProp.capitalize));var A=E.style.display;E.style.display=(A=="block"?"inline":"block");E.style.display=A;var F=/font/i;if(F.test(D)){addClassName(E,"fontHack");removeClassName(E,"fontHack")}try{var C=E.currentStyle[D]}catch(I){}return C}else{var H=gWin(E);if(H.document.defaultView){var G=H.document.defaultView.getComputedStyle(E,"");if(G){return G.getPropertyValue(B)}}}if(E.style.getPropertyValue){return E.style.getPropertyValue(B)}return null}getCSSProp.capitalize=function(A){return A.charAt(A.length-1).toUpperCase()};getCSSProp.camelProp={};function getTextHeight(E,B,A){if(!E||E.length<=0){return 0}var C=setupRuler(A);if(B){C.style.width=B+"px"}else{C.style.width=document.body.offsetWidth+"px"}setText(C,E);C.className="";var D=C.offsetHeight;C.style.width="";return D}function setupRuler(B){var C=$("ruler");var E;var A;var D;if(!C){C=document.createElement("span");C.id="ruler";C.style.left="400px";C.style.top="0px";C.style.position="absolute";C.style.visibility="hidden";C=document.body.appendChild(C)}if(B){var E=getCSSProp(B,"font-size");var A=getCSSProp(B,"font-weight");var D=getCSSProp(B,"font-family");C.style.fontSize=E?E:"11px";C.style.fontWeight=A?A:"normal";C.style.fontFamily=D?D:"Tahoma, Arial, sans serif"}return C}function getFittedHeightText(H,A,B,C){if(C<=0){return""}if(ui.isGecko){var D=15;var F=H.split(" ");for(var E=0;E<F.length;E++){if(F[E].length>D){F.splice(E+1,0,F[E].substring(D));F[E]=F[E].substring(0,D)}}H=F.join(" ")}var G=getTextHeight(H,A,B);while(G>C){var I=H.lastIndexOf(" ");if(I==-1){return""}H=H.substr(0,I);H+="...";G=getTextHeight(H,A,B)}return H}function getbAttribute(A,B){if(!A||!A.getAttribute){return false}var C=A.getAttribute(B);if((!C)||(C.length<=0)){return false}return C}function truncateMiddle(D,B){if(D.length<=B){return D}var A=Math.ceil(B/2);var C=Math.floor(B/2);return D.substr(0,A)+"\u2026"+D.substr(D.length-C)}function truncateEnd(B,A){return B.substr(0,A)+"\u2026"}function getTruncatedText(D,C,A,B){if(!D){return""}B=B||arguments.callee.textbox;if(!B){B=document.createElement("div");B.style.fontSize="11px";B.style.fontWeight="normal";B.style.fontFamily="Tahoma, Arial, sans-serif";B.style.position="absolute";B.style.top=B.style.left="-999px";B.style.visibility="hidden";document.body.appendChild(B);arguments.callee.textbox=B}setTruncatedTextContent(B,D,C,A);return B.firstChild.nodeValue}function setTruncatedTextContent(E,K,C,I,H,G){I=I||truncateEnd;H=H||{};if(C<0){C=0}var L=arguments.callee.ruler;if(!L){G=G||window;L=G.document.createElement("div");L.style.whiteSpace="nowrap";L.style.position="absolute";L.style.top=L.style.left="-999px";L.style.visibility="hidden";G.document.body.appendChild(L);arguments.callee.ruler=L}L.style.fontSize=H.fontSize||getCSSProp(E,"font-size")||"";L.style.fontWeight=H.fontWeight||getCSSProp(E,"font-weight")||"";L.style.fontFamilty=H.fontFamily||getCSSProp(E,"font-family")||"";setText(L,K);var B=K;var A=L.offsetWidth;if(C&&A>C){var J=K.length,D=0,F=K.length/2;do{D=J;J=Math.floor((C/A)*J);B=I(K,J);setText(L,B);A=L.offsetWidth}while(F-->0&&(Math.abs(J-D)>1||(J!=D&&A>C)));B=I(K,Math.min(J,D))}setText(E,B);return A}function isCursorInElement(B,C){if(!C){C=gWin(B).event}if(!C||!B){return false}var E=getElementPosition(B);var A=ui.getCursorX(C);var D=ui.getCursorY(C);return isInRect(A,D,E.x,E.y,E.w,E.h)}function isChecked(B){var A=$(B);if(A){return A.checked}return false}function moveToEnd(C){if(!C){return}if(ui.isSafari){return}try{if(C.createTextRange){var B=C.createTextRange();B.collapse(false);B.select()}else{C.focus();var A=C.value.length;if(C.setSelectionRange&&A){C.setSelectionRange(A,A)}}}catch(D){}}function sendMouseEvent(E,J,G,F,D,C,K,B,H,L){var M=gDoc(E);var I=gWin(M);if(ui.isIE){var A=M.createEventObject();A.detail=0;A.screenX=G;A.screenY=F;A.clientX=D;A.clientY=C;A.button=K;A.ctrlKey=B;A.altKey=H;A.shiftKey=L;A.metaKey=false;A.relatedTarget=null;E.fireEvent("on"+J,A)}else{if(ui.isGecko){var A=M.createEvent("MouseEvents");A.initMouseEvent(J,true,true,I,1,G,F,D,C,B,H,L,false,0,null);E.dispatchEvent(A)}}}function unselectText(B){var A,E=gWin(B);var D=E.document;if(D.selection){var C=D.selection;if(!C||!C.createTextRange){return}A=C.createTextRange();if(!A||!A.collapse){A.collapse(false)}}else{if(E&&E.getSelection){var C=E.getSelection();if(!C||!C.removeRange){return}if(C.rangeCount<=0){return}var A=C.getRangeAt(0);if(!A){return}C.removeRange(A)}}}function calcWinChrome(A){if(isDefined(A.outerWidth)){return{w:A.outerWidth-A.innerWidth-2,h:A.outerHeight-A.innerHeight-30}}else{if(A===window){return{w:0,h:0}}else{return{w:5,h:52}}}}function calcWinPos(A){if(isDefined(A.screenLeft)){return{x:A.screenLeft,y:A.screenTop,w:A.document.body.clientWidth,h:A.document.body.clientHeight}}else{return{x:A.screenX,y:A.screenY,w:A.innerWidth,h:A.innerHeight}}}function fixPng(A){if(arguments.length==0){A=this}if(navigator.platform=="Win32"&&navigator.appName=="Microsoft Internet Explorer"&&typeof A.style.filter=="string"&&A.src.match(/\.png$/i)!=null){var B=A.src;if(A.width){A.style.width=A.width+"px"}if(A.height){A.style.height=A.height+"px"}A.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+B+"', sizingMethod='scale')";A.onload=function(){A.className=A.className.replace(/\bfixPng\b/g,"")};A.src=gImages.getPath()+"blank.gif"}else{A.className=A.className.replace(/\bfixPng\b/g,"")}}if(navigator.platform=="Win32"&&navigator.appName=="Microsoft Internet Explorer"){document.write('<style type="text/css"> .fixPng { visibility: hidden; } </style>')}function disableSelection(B,A){if(A){var D=B.all||B.getElementsByTagName("*");for(var C=0;C<D.length;C++){arguments.callee(D[C])}}else{B.style.MozUserSelect="none";B.style.KhtmlUserSelect="none";B.unselectable="on"}}function enableSelection(B,A){if(A){var D=B.all||B.getElementsByTagName("*");for(var C=0;C<D.length;C++){arguments.callee(D[C])}}else{B.style.MozUserSelect="";B.style.KhtmlUserSelect="";B.unselectable="off"}}function isSelectionCollapsed(B){var D=gDoc(B);var C=gWin(D);if(D.selection){return D.selection.createRange().text==""}else{if(C.getSelection){var A=C.getSelection();if(typeof A=="string"){return A==""}else{return A.isCollapsed}}}}function setText(A,B){B=String(B);B=B.replace(/&amp;/g,"&");if("textContent"in A){A.textContent=B}else{if("innerText"in A){A.innerText=B.replace(/\n/g," ")}else{A.innerHTML="";A.appendChild(gDoc(A).createTextNode(B))}}return A}function attachIframeCallback(A,B){A.onload=function(){A.onload=null;A.onreadystatechange=null;B.call(this)};A.onreadystatechange=function(){if(this.readyState=="complete"){A.onload=null;A.onreadystatechange=null;B.call(this)}}}function attachIframeMouseHandlers(E,D,B,A){var C=ui.isIE?E.contentWindow.document:E.contentDocument;function F(J,H,I,K){var N=true;if(K){N=K(J)}var M=getElementPosition(E);if(ui.isFirefox==1){M={left:0,top:0}}var G=J.clientX+M.left;var L=J.clientY+M.top;sendMouseEvent(E.parentNode,H,G,L,G,L,I,false,false,false);return N}ui.connectEvent(C,"mousemove",this,F,true,false,"mousemove",0,D);ui.connectEvent(C,"mousedown",this,F,true,false,"mousedown",0,A);ui.connectEvent(C,"mouseup",this,F,true,false,"mouseup",0,A)}function scrollToItem(B,H){if(!B||!B.style||!H||!H.style){return}var G=B.scrollTop;var A=B.offsetHeight;var F=G+A;var D=H.offsetTop;var E=H.scrollHeight;var C=D+E;if((G<D)&&(C<F)){return}if(G>D){B.scrollTop=D;return}if(C>F){B.scrollTop=D-A+E}}function scaleImage(B,D,F){var G=B.height,A=B.width;var E=F,C=D;if(E!=G){B.height=E=Math.min(E,G);B.width=C=(D/F)*E}if(C>A){B.width=C=A;B.height=E=(F/D)*C}B.style.borderStyle="solid";B.style.borderTopWidth=Math.floor((G-E)/2)+"px";B.style.borderBottomWidth=Math.ceil((G-E)/2)+"px";B.style.borderLeftWidth=Math.floor((A-C)/2)+"px";B.style.borderRightWidth=Math.ceil((A-C)/2)+"px"}function isDefined(A){return typeof A!="undefined"}function isNumber(A){return typeof A=="number"||A instanceof Number}function isString(A){return typeof A=="string"||A instanceof String}function isFunction(A){return typeof A=="function"||A instanceof Function}function isArray(A){return A instanceof Array}function callee(A){var C=A.callee,B=this;return function(){return C.apply(B,A)}}function safeEval(func){try{eval(func)}catch(e){return false}return true}function argsToArray(A){return Array.prototype.slice.call(A,0)}function objectToArray(A){if(!A){return[]}var C=[];for(var B in A){if(A[B]){C.push(A[B])}}return C}function arrayToObject(A){if(!A){return{}}var C={};for(var B=0;B<A.length;B++){C[String(A[B])]=A[B]}return C}function isEmpty(A){if(!A){return false}for(var B in A){if(A[B]!=null){return false}}return true}function doFunctions(A){if(!A){return}var B=argsToArray(arguments);if(B){B=B.slice(1)}for(var C=0;C<A.length;C++){if(A[C]){A[C].apply(this,B)}}}function sprintf(){if(!arguments||arguments.length<1||!RegExp||!arguments[0]){return}var B=arguments[0];for(var A=1;A<arguments.length;A++){B=B.replace(new RegExp("%"+A,"g"),arguments[A]||"")}return B}function runInMainContext(){var B=null;var C=arguments[0];if(typeof C!="function"){B=arguments[0];C=arguments[1];if(typeof C=="string"){C=B[C]}}var A=argsToArray(arguments).slice(B!=null?2:1);setTimeout(function(){try{C.apply(B,A)}catch(D){}},0)}function hitch(C,D){var B=Array.prototype.slice.call(arguments,2);function A(){var E=(C===null?this:C);var F=(typeof D=="function"?D:E[D]);return F.apply(E,B.concat(Array.prototype.slice.call(arguments)))}A.methodName=D;return A}function getObjectAsString(C){var D="";if(typeof(C)=="string"){D='"'+C.replace(/(["\\])/g,"\\$1")+'"'.replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r")}else{if(C instanceof Array){var A=[];for(var B=0;B<C.length;B++){A.push(getObjectAsString(C[B]))}D="["+A.join(", ")+"]"}else{if(C==null){D="null"}else{if(typeof(C)=="object"){var A=[];for(var E in C){A.push(getObjectAsString(E)+": "+getObjectAsString(C[E]))}D="{"+A.join(", ")+"}"}else{D=String(C)}}}}return D}function createHandler(B){var A="m_on"+B;var C="addOn"+B;var E="removeOn"+B;var D="on"+B;if(!this[A]){this[A]=[]}this[C]=function(F){this[A].push(F);return F};this[E]=function(G){if(!G){this[A]=[];return}for(var F=this[A].length;F>=0;F--){if(this[A][F]==G){this[A].splice(F,1);break}}};this[D]=function(){var F=argsToArray(arguments);F.splice(0,0,this[A].slice());doFunctions.apply(null,F)}}function createSetter(B,A){return function(D){if(this["m_"+B]==D){return}var C=this["m_"+B];this["m_"+B]=D;if(A){gPubSub.publish(this,A,D,C)}}}function saveCookie(C,E,H){if(!H){H=(365*24*60*60*1000)}var B=new Date();B.setTime(B.getTime()+H);var G=C+"="+E+"; ";var D="expires="+B.toGMTString()+"; ";var A="domain=.meebo.com; ";var F="path=/; ";document.cookie=G+D+A+F}function eraseCookie(A){saveCookie(A,"",-1)}function loadCookie(B){var E=document.cookie;if(E.length==0){return}var D=E.split(";");var F=B+"=";for(var C=0;C<D.length;C++){var A=D[C];if(A.length==0){continue}while(A.charAt(0)==" "){A=A.substring(1,A.length)}if(A.indexOf(F)==0){return A.substring(F.length,A.length)}}return null}function addClassName(C,B){var D=typeof C=="string";if((!D&&!C)||!B){return}var A=D?C:C.className;if((" "+A+" ").indexOf(" "+B+" ")==-1){A+=(A?" ":"")+B}if(!D){C.className=A}return A}function removeClassName(C,B){var D=typeof C=="string";if((!D&&!C)||!B){return}var A=D?C:C.className;A=(" "+A+" ").replace(" "+B+" "," ").replace(/^\s+|\s+$/g,"");if(!D){C.className=A}return A}function removeClassNames(A){for(var B=1;B<arguments.length;B++){removeClassName(A,arguments[B])}}function hasClassName(C,B){var D=typeof C=="string";if((!D&&!C)||!B){return}var A=D?C:C.className;return((" "+A+" ").indexOf(" "+B+" ")!=-1)}function roundElementCorners(A){if(ui.isFirefox||ui.isSafari){addClassName(A,"roundCorners")}else{var H=gDoc(A);var I=A.parentNode;var D=H.createElement("div");I.removeChild(A);D.appendChild(A);I.appendChild(D);addClassName(D,"stackedCorners");addClassName(A,"stackedContent");var G=H.createElement("b");var E=H.createElement("b");addClassName(G,"stack-top");addClassName(E,"stack-bot");for(var B=1;B<=3;B++){var F=H.createElement("b");addClassName(F,"stack"+B);G.appendChild(F)}for(var B=3;B>=1;B--){var F=H.createElement("b");addClassName(F,"stack"+B);E.appendChild(F)}var C=A.firstChild;if(!C){C=A.ownerDocument.createElement("div");A.appendChild(C)}C.style.padding="0px 1px 0px";A.parentNode.insertBefore(G,A);A.parentNode.appendChild(E)}}Ajax=function(){this.m_httpListen=null;this.m_httpListenTimestamp=0;this.m_pendingRequests=0;this.m_eventPollDuration=45000;this.m_networkPollDuration=10000;this.m_serverTimeoutDuration=180000;this.m_messageRev=0;this.m_keepAliveListenerTimerId=-1;this.m_listenTimerId=-1;this.m_noResponseLimit=12;this.m_noResponses=0;this.m_secureDomain="";this.m_commandPath="cmd";this.m_modulePath="mcmd";this.m_timerArray=new Array();this.m_intervalArray=new Array();this.m_bTest=false;this.m_testXHR;this.m_sessionKey;this.m_sessionId=0;this.m_onResume;this.m_onFailTest;this.m_onStopAjax;this.m_onAbort;this.m_onEvent;this.m_onPostData;this.m_onEvalError};Ajax.prototype.getSessionKey=function(){return this.m_sessionKey||""};Ajax.prototype.setSessionKey=function(A,B){this.m_sessionKey=A;if(B){this.m_messageRev=B}};Ajax.prototype.getSessionId=function(){return this.m_sessionId||0};Ajax.prototype.setSessionId=function(A){this.m_sessionId=A};Ajax.prototype.setCallbacks=function(E,G,D,B,A,C,F){if(E){this.m_onEvent=E}if(G){this.m_onResume=G}if(D){this.m_onFailTest=D}if(B){this.m_onStopAjax=B}if(A){this.m_onAbort=A}if(C){this.m_onPostData=C}if(F){this.m_onEvalError=F}};Ajax.prototype.onEvent=function(A){if(this.m_onEvent){this.m_onEvent(A)}};Ajax.prototype.onResume=function(){if(this.m_onResume){this.m_onResume()}};Ajax.prototype.onStopAjax=function(){if(this.m_onStopAjax){this.m_onStopAjax()}};Ajax.prototype.onFailTest=function(A){if(this.m_onFailTest){this.m_onFailTest(A)}};Ajax.prototype.onAbort=function(){if(this.m_onAbort){this.m_onAbort()}};Ajax.prototype.getTestFlag=function(){return this.m_bTest};Ajax.prototype.setTestFlag=function(A){this.m_bTest=A};Ajax.prototype.getPendingRequests=function(){return this.m_pendingRequests};Ajax.prototype.incrementPendingRequests=function(){this.m_pendingRequests++};Ajax.prototype.decrementPendingRequests=function(){this.m_pendingRequests--};Ajax.prototype.getCGIDomain=function(A){return(A&&this.m_secureDomain||(typeof MeeboExtensionDomain!="undefined"?MeeboExtensionDomain:""))};Ajax.prototype.getCGIURL=function(C,B){var A=this.getCGIDomain(B)||window.location.hostname;if(A){A=(B?"https://":"http://")+A}return A+"/"+(C?this.m_modulePath:this.m_commandPath)+"/"};Ajax.prototype.getMaxNoResponseLimit=function(){return this.m_noResponseLimit};Ajax.prototype.clearTimeouts=function(){while(this.m_timerArray.length){clearTimeout(this.m_timerArray.pop())}};Ajax.prototype.clearIntervals=function(){while(this.m_intervalArray.length){clearInterval(this.m_intervalArray.pop())}};Ajax.prototype.addTimeout=function(A){this.m_timerArray.push(A)};Ajax.prototype.addInterval=function(A){this.m_intervalArray.push(A)};Ajax.prototype.getLogout=function(){return!this.m_sessionKey};Ajax.prototype.stopAjax=function(){this.onStopAjax();if(this.m_keepAliveListenerTimerId!=-1){this.m_keepAliveListenerTimerId=-1}this.clearTimeouts();this.clearIntervals();if(this.m_httpListen){this.m_httpListen=null;this.m_httpListenTimestamp=0}if(this.m_testXHR){this.m_testXHR=null}this.m_messageRev=0;this.m_sessionKey=null;this.resetNoResponseCount();this.setTestFlag(false)};Ajax.prototype.createListener=function(){if(this.m_httpListen){this.m_httpListen=null;this.m_httpListenTimestamp=0}this.m_httpListen=this.getHTTPObject();this.ajaxListener()};Ajax.prototype.initListener=function(){if(this.m_httpListen){return}this.createListener()};Ajax.prototype.getHTTPObject=function(){var A=false;if(typeof XMLHttpRequest!="undefined"){try{A=new XMLHttpRequest();return A}catch(B){A=false}}else{if(typeof Components!="undefined"){A=Components.classes["@mozilla.org/xmlextras/xmlhttprequest;1"].createInstance();A.QueryInterface(Components.interfaces.nsIXMLHttpRequest)}}if(!A){try{A=new ActiveXObject("Msxml2.XMLHTTP");return A}catch(B){try{A=new ActiveXObject("Microsoft.XMLHTTP");return A}catch(B){A=false}}}if(A==false){alert("Meebo does not support your browser yet.  Stay tuned!")}return A};Ajax.prototype.ajaxRequest=function(E,I,J,F,C,B){var G=new Date().getTime();if(/(^|\?|&)sessionKey=/.test(E)&&this.getLogout()){this.handleAjaxRequestError(gLang.ajaxLogoutError,F,20,J);return false}if(!F&&(this.getNoResponseCount()>0)){this.handleAjaxRequestError(gLang.ajaxConnectError,F,21,J);return false}if(F){if(this.m_testXHR){this.m_testXHR.abort();this.m_testXHR=null}this.incrementNoResponseCount();this.onFailTest(this.getNoResponseCount());if((this.getNoResponseCount()>=this.m_noResponseLimit)&&!this.getLogout()){this.reconnectNetwork("","handleNetworkError is requesting new connect when available");this.handleAjaxRequestError(gLang.ajaxError,F,22,J);return false}}var L=this.getHTTPObject();if(!L){this.handleNetworkError(true,"ajaxRequest m_httpRequest is invalid",23);this.handleAjaxRequestError(gLang.ajaxError,F,23,J);return false}if(F){this.m_testXHR=L}var D=true;var K;try{K=L.readyState}catch(H){this.handleNetworkError(true,"ajaxRequest could not access readyState",24);this.handleAjaxRequestError(gLang.ajaxError,F,24,J);return false}var A=this.getCGIURL(C,B);if(L.readyState==4||L.readyState==0){var M=setTimeout(hitch(this,"handleNetworkError",true,"ajaxRequest was not returned in time",25),this.m_eventPollDuration);this.addTimeout(M);L.open("POST",A+E,D);L.setRequestHeader("Content-Type","application/x-www-form-urlencoded");L.onreadystatechange=hitch(this,F?"callbackAjaxTest":"callbackAjaxRequest",L,E,J,M,new Date().getTime());try{L.send(I);this.incrementPendingRequests();networklog("ajaxRequest: took "+(new Date().getTime()-G)+" ms")}catch(H){this.handleNetworkError(true,"ajaxRequest "+E+" send failed with args = "+I,26);this.handleAjaxRequestError(gLang.ajaxError,F,26,J);return false}}};Ajax.prototype.callbackAjaxRequest=function(xhr,request,callback,timeout,startTime){if(typeof gAjax=="undefined"||!gAjax){return}if(/(^|\?|&)sessionKey=/.test(request)&&this.getLogout()){this.handleAjaxRequestError("Sorry, you are currently logged out.",false,1,callback);return}if(this.getNoResponseCount()){this.handleAjaxRequestError("Sorry, meebo is having difficulties connecting to the network.",false,2,callback);return}clearTimeout(timeout);if(!xhr){this.handleNetworkError(true,"callbackAjaxRequest could not get valid m_httpRequest",3);this.handleAjaxRequestError(gLang.ajaxError,false,3,callback);return}var connectivityTest;try{connectivityTest=xhr.readyState}catch(e){this.handleNetworkError(true,"callbackAjaxRequest could not access readyState",4);this.handleAjaxRequestError(gLang.ajaxError,false,4,callback);return}if(xhr.readyState==4){var status;try{status=xhr.status}catch(e){this.handleNetworkError(true,"callbackAjaxRequest could not examine status",5);this.handleAjaxRequestError(gLang.ajaxError,false,5,callback);return}if((status==404)||(status==500)){this.handleAjaxRequestError(gLang.ajaxError,false,status,callback);return}if(status!=200){this.handleAjaxRequestError(gLang.ajaxError,false,status,callback);return}try{var response=xhr.responseText;this.decrementPendingRequests()}catch(e){this.handleNetworkError(true,"callbackAjaxRequest could not examine responseText",6);this.handleAjaxRequestError(gLang.ajaxError,false,6,callback);return}if(!response.length&&!this.getLogout()){this.handleNetworkError(true,"callbackAjaxRequest received null response",7);this.handleAjaxRequestError(gLang.ajaxError,false,7,callback);return}if(!response.length){this.handleNetworkError(true,"callbackAjaxRequest received null response after new line character",8);this.handleAjaxRequestError(gLang.ajaxError,false,8,callback);return}if(response=='"failure"'&&!this.getLogout()){this.handleAjaxRequestError(gLang.ajaxError,false,9,callback);this.reconnectNetwork("","callbackAjaxListener received failure");return}if(callback){var bFunc=typeof callback=="function";try{if(bFunc){callback(eval("("+response+")"),true,0)}else{eval(callback+"("+response+", true, 0)")}}catch(e){if(this.m_onEvalError){this.m_onEvalError(e,bFunc,callback,response)}this.handleAjaxRequestError(gLang.ajaxError,false,10,callback);return}networklog("ajax loop: "+callback+" took "+(new Date().getTime()-startTime)+" ms");return}}};Ajax.prototype.handleAjaxRequestError=function(errorMsg,bTest,retCode,callback){if(callback){try{if(typeof callback=="function"){callback(errorMsg,false,retCode)}else{eval(callback+'("'+errorMsg+'", false, '+retCode+")")}}catch(e){}}};Ajax.prototype.callbackAjaxTest=function(E){if(typeof gAjax=="undefined"||!gAjax){return}if(this.getLogout()){this.stopAjax();return}if(!E){this.handleNetworkError(true,"callbackAjaxTest m_httpRequest is null",60);return}var A;try{A=E.readyState}catch(D){this.handleNetworkError(true,"callbackAjaxTest could not access readyState",61);return}if(E.readyState==4){var C;try{C=E.status}catch(D){this.handleNetworkError(true,"callbackAjaxTest could not examine status",62);return}if(C==404||C==500){this.reconnectNetwork("","test request returned HTTP failure code");return}if(C!=200){this.handleNetworkError(true,"callbackAjaxTest had non-200 status",1062);return}try{var B=E.responseText;this.decrementPendingRequests()}catch(D){this.handleNetworkError(true,"callbackAjaxTest could not examine responseText",63);return}if(!B.length&&!this.getLogout()){this.handleNetworkError(true,"callbackAjaxTest received null response",64);return}if(!B.length){this.handleNetworkError(true,"callbackAjaxRequest received null response after new line character",65);return}if((B=='"failure"')&&!this.getLogout()){this.reconnectNetwork("","test request returned failure");return}this.handleNetworkResume(B);return}};Ajax.prototype.ajaxListener=function(){if(this.getLogout()){return}if(this.getNoResponseCount()>0){return}if(!this.m_httpListen){this.handleNetworkError(false,"ajaxListener could not find valid m_httpListen",101);return}if(this.m_keepAliveListenerTimerId!=-1){clearTimeout(this.m_keepAliveListenerTimerId);this.m_keepAliveListenerTimerId=-1}var B;try{B=this.m_httpListen.readyState}catch(D){this.handleNetworkError(false,"ajaxListener could not access readyState",102);return}if(this.m_httpListen.readyState==4||this.m_httpListen.readyState==0){try{this.m_httpListen.open("POST",this.getCGIURL(true)+"events",true);this.m_httpListen.setRequestHeader("Content-Type","application/x-www-form-urlencoded");this.m_httpListen.onreadystatechange=hitch(this,"callbackAjaxListener")}catch(D){this.handleNetworkError(false,"ajaxListener could not configure httpListen",103);return}var A=this.m_onPostData?"&"+this.m_onPostData():"";var C="sessionKey="+this.getSessionKey()+"&rev="+this.m_messageRev+"&sessionId="+this.getSessionId()+A;this.m_keepAliveListenerTimerId=setTimeout(hitch(this,"handleNetworkError",false,"ajaxListener did not return callback fast enough",105),this.m_eventPollDuration);this.addTimeout(this.m_keepAliveListenerTimerId);this.m_httpListenTimestamp=new Date().getTime();try{this.m_httpListen.send(C);this.incrementPendingRequests()}catch(D){this.handleNetworkError(false,"ajaxListener could not send request",106);return}}};Ajax.prototype.callbackAjaxListener=function(){if(this.getLogout()){return}if(!this.m_httpListen){this.handleNetworkError(false,"callbackAjaxListener could not find valid m_httpListen",201);return}var A;try{A=this.m_httpListen.readyState}catch(D){this.handleNetworkError(false,"callbackAjaxListener could not access readyState",202);return}if(this.m_httpListen.readyState==4){var C;try{C=this.m_httpListen.status}catch(D){this.handleNetworkError(false,"callbackAjaxListener could not access status",203);return}if(C==404){this.reconnectNetwork("","callbackAjaxListener received 404");return}if(C==500){this.handleNetworkError(false,"status was 500",1203);return}if(C!=200){this.handleNetworkError(false,"status was not 200",1203);return}if(this.m_keepAliveListenerTimerId!=-1){clearTimeout(this.m_keepAliveListenerTimerId);this.m_keepAliveListenerTimerId=-1}var B=this.m_httpListen.responseText;this.decrementPendingRequests();if(!B.length&&!this.getLogout()){this.handleNetworkError(false,"callbackajaxListener received null response from server",204);return}if(!B.length){this.handleNetworkError(false,"callbackAjaxListener received null response from server after character termination");return}if(B=='"failure"'&&!this.getLogout()){this.reconnectNetwork("","callbackAjaxListener received failure");return}try{networklog("callbackAjaxListener: received response from server, response = "+B);if(B.length){this.dispatchEvent(B)}}catch(D){}setTimeout(hitch(this,"ajaxListener"),0)}};Ajax.prototype.dispatchEvent=function(response){var ev;try{eval("ev = "+response+";")}catch(e){this.handleNetworkError(false);return}if(this.isValidEvent(ev)){networklog("dispatchEvents: message Rev = "+ev.rev);if(ev.rev&&(ev.rev>0)){this.m_messageRev=ev.rev}this.onEvent(ev)}else{this.handleNetworkError(false)}};Ajax.prototype.isValidEvent=function(A){try{if(!A){this.stopAjax();this.onAbort();return false}if(!A.rev){this.stopAjax();this.onAbort();return false}}catch(B){return false}return true};Ajax.prototype.handleNetworkError=function(D,B,C){networklog("handleNetworkError: received network error, request - "+D+" error msg = "+B+" ret code="+C);networklog("handleNetworkError: logout:"+this.getLogout());if(this.getLogout()){networklog("handleNetworkError stop Ajax");this.stopAjax();return}networklog("handleNetworkError: number of no responses is "+this.getNoResponseCount());if(this.getNoResponseCount()>0){networklog("handleNetworkError: already doing some error handling, returning now");return}if(this.m_httpListenTimestamp&&new Date().getTime()-this.m_httpListenTimestamp>this.m_serverTimeoutDuration){this.reconnectNetwork("","the session has been inactive for more than 3 minutes");return}var A=this.getTestFlag();this.setTestFlag(true);this.m_httpListen=null;this.m_httpListenTimestamp=0;networklog("handleNetworkError: canceling listener and restarting polling in "+this.m_networkPollDuration+" ms");if(!A){this.setTestFlag(true);this.m_listenTimerId=setInterval(hitch(this,"ajaxRequest","test","sessionKey="+this.getSessionKey(),"",true,true),this.m_networkPollDuration);this.addInterval(this.m_listenTimerId);this.ajaxRequest("test","sessionKey="+this.getSessionKey(),"",true,true);this.onFailTest(0)}};Ajax.prototype.handleNetworkResume=function(A){if(this.getLogout()){networklog("handleNetworkResume stop Ajax");this.stopAjax();return}this.clearIntervals();this.clearTimeouts();this.resetNoResponseCount();this.setTestFlag(false);this.onResume();this.createListener()};Ajax.prototype.setNoResponseCount=function(A){this.m_noResponses=A};Ajax.prototype.getNoResponseCount=function(){return this.m_noResponses};Ajax.prototype.incrementNoResponseCount=function(){this.m_noResponses++};Ajax.prototype.resetNoResponseCount=function(){this.setNoResponseCount(0)};Ajax.prototype.reconnectNetwork=function(A,C,B){networklog("reconnectNetwork: trying to logout (stopping AJAX)");this.stopAjax();this.onAbort();return};var ui={};ui.KEY_BACKSPACE=8;ui.KEY_TAB=9;ui.KEY_RETURN=13;ui.KEY_ESC=27;ui.KEY_LEFT=37;ui.KEY_UP=38;ui.KEY_RIGHT=39;ui.KEY_DOWN=40;ui.KEY_DELETE=46;ui.initControl=function(elem){if(!elem){return}var control=elem.getAttribute("control");if(!control){return}var c;var str="c = new "+control+"(";var args=arguments;for(var i=1;i<arguments.length;i++){if(i!=1){str+=","}str+=" args["+i+"]"}str+=");";eval(str);c.init(elem)};ui.bEnabled=true;ui.enableEvents=function(){ui.bEnabled=true};ui.disableEvents=function(){ui.bEnabled=false};ui.globalEvents={};ui.connectGlobalEvent=function(C,A,B){var D=ui.retrieveEventId(C.body);if(!this.globalEvents[D]){this.globalEvents[D]={}}if(this.globalEvents[D][A]){ui.disconnectGlobalEvent(C,A)}this.globalEvents[D][A]=B;ui.attachEvent(C.body,A,B,true)};ui.disconnectGlobalEvent=function(C,A){var D=ui.retrieveEventId(C.body);if(!this.globalEvents[D]||!this.globalEvents[D][A]){return}var B=gWin(C);if(ui.isIE&&!arguments.callee.disconnecting&&B.event&&B.event.type==A&&B.event.srcElement!=C.body){arguments.callee.disconnecting=true;this.globalEvents[D][A](B.event);arguments.callee.disconnecting=false}ui.detachEvent(C.body,A,this.globalEvents[D][A],true);delete this.globalEvents[D][A]};ui.retrieveEventId=function(A){if(!A||!A.getAttribute){return}var B=A.getAttribute("ev_id");if(!B){B=String(getUniqueId());A.setAttribute("ev_id",B)}return B};ui.hookEvents={};ui.hookCallback=null;ui.setHookEvents=function(D,B){if(!D||!B){return}ui.hookEvents={};ui.hookCallback=B;var C;for(var A=0;(C=D[A]);A++){ui.hookEvents[C]=true}};ui.__state={};ui.__pending=false;ui.__pendingClear={};ui.requestSet=function(A){if(typeof gEventMgr!="undefined"&&gEventMgr.getState()=="im"){gNetworkMgr.requestSetUiState(A,getObjectAsString(ui.__state[A]))}else{ui.__pending=true;delete ui.__pendingClear[A]}};ui.requestClear=function(A){if(gEventMgr.getState()=="im"){gNetworkMgr.requestClearUiState(A)}else{ui.__pending=true;ui.__pendingClear[A]=true}};ui.flushState=function(){if(!ui.__pending){return true}if(typeof gEventMgr!="undefined"&&gEventMgr.getState()!="im"){return false}for(var A in ui.__state){gNetworkMgr.requestSetUiState(A,getObjectAsString(ui.__state[A]))}for(var A in ui.__pendingClear){gNetworkMgr.requestClearUiState(A)}ui.__pending=false;ui.__pendingClear={};return true};ui.setState=function(C,A){if(!ui.__state[C]){ui.__state[C]={}}for(var B in A){ui.__state[C][B]=A[B]}ui.requestSet(C)};ui.clearState=function(A){delete ui.__state[A];ui.requestClear(A)};ui.receiveState=function(B){for(var C in B){var A=B[C];ui.__state[C]=A;gPubSub.publish(ui,"ui::stateChanged",C,A)}};ui.receiveClearState=function(A){delete ui.__state[A];gPubSub.publish(ui,"ui::stateChanged",A,null)};ui.getState=function(A){return ui.__state[A]};ui.connectedEvents={};ui.connectEvent=function(E,A,C,I,D,H){if(!E||!A||!C||!I){return}var G=Array.prototype.slice.call(arguments,6);var F=function(L){if(typeof ui=="undefined"||!ui.bEnabled){return}var M=L||gWin(E).event;var K=(D?(H?[M,E]:[M]):(H?[E]:[])).concat(G);var J=hitch(C,I).apply(C,K);eventlog(E.id+" "+L);return J};if(!E.__eventHash){E.__eventHash={}}if(E.__eventHash[A]){ui.disconnectEvent(E,A,E.__eventHash[A])}E.__eventHash[A]=F;var B=ui.retrieveEventId(E);if(B){ui.connectedEvents[B]=E}ui.attachEvent(E,A,F)};ui.disconnectEvent=function(A,B){if(!A||!B||!A.__eventHash){return}var C=A.__eventHash[B];if(!C){return}delete A.__eventHash[B];ui.detachEvent(A,B,C)};ui.disconnectAllEvents=function(A){var C=gDoc(A);if(A==C){for(var D in ui.connectedEvents){var A=ui.connectedEvents[D];if(C==document||C==gDoc(A)){arguments.callee(A)}}}else{for(var B in A.__eventHash){try{ui.detachEvent(A,B,A.__eventHash[B])}finally{delete A.__eventHash[B]}}delete ui.connectedEvents[A.getAttribute("ev_id")]}};ui.USE_CAPTURE=false;ui.normaliseEvent=function(A,B,C){var E=gDoc(A);var D=gWin(A);if(B=="focus"&&A==D){if(isDefined(E.onfocusin)){B="focusin";A=E}else{if(isDefined(D.onfocus)){B="focus"}else{B="focus";A=E;C=true}}}else{if(B=="blur"&&A==D){if(isDefined(E.onfocusout)){B="focusout";A=E}else{if(isDefined(D.onblur)){B="blur"}else{B="blur";A=E;C=true}}}else{if(B=="focusie7"&&A==D){B="focus";A=D}}}return{element:A,event:B,useCapture:C}};ui.attachEvent=function(B,C,E,D){if(!B||!C||!E){return}var A=ui.normaliseEvent(B,C,D);B=A.element;C=A.event;D=A.useCapture;if(B.attachEvent){B.attachEvent("on"+C,E)}else{if(B.addEventListener){if(C.toLowerCase()=="mousewheel"){C="DOMMouseScroll"}if(ui.isSafari&&C.toLowerCase()=="dblclick"){B.ondblclick=E}else{B.addEventListener(C,E,typeof D=="boolean"?D:ui.USE_CAPTURE)}}}};ui.detachEvent=function(B,C,E,D){if(!B||!C||!E){return}var A=ui.normaliseEvent(B,C,D);B=A.element;C=A.event;D=A.useCapture;if(B.detachEvent){B.detachEvent("on"+C,E)}else{if(B.removeEventListener){if(C.toLowerCase()=="mousewheel"){C="DOMMouseScroll"}if(ui.isSafari&&C.toLowerCase()=="dblclick"){delete B.ondblclick}else{B.removeEventListener(C,E,typeof D=="boolean"?D:ui.USE_CAPTURE)}}}};ui.setEventHandled=function(A){if(!A){A=window.event}if(ui.hookEvents[A.type]){ui.hookCallback()}if(A&&A.preventDefault){A.stopPropagation()}else{A.cancelBubble=true}ui.preventDefault(A)};ui.preventDefault=function(A){if(A.preventDefault){A.preventDefault()}else{A.returnValue=false}};ui.isCursorInClient=function isCursorInClient(B){var C=ui.getClientRect();var A=ui.getCursorX(B);if(A<0||A>=C.w){return false}var D=ui.getCursorY(B);if(D<0||D>=C.h){return false}return true};ui.getCursorPos=function getCursorPos(A){return{x:ui.getCursorX(A),y:ui.getCursorY(A)}};ui.getCursorX=function getCursorX(B){if(ui.isSafari&&B&&!isDefined(B.clientX)){return(B.target)?0:-1}var D=gDoc(B&&(B.target||B.srcElement));if(ui.isIE&&ui.isIE<=5.5){D=gDoc()}var C=gWin(D);var A=0;if(ui.isIE||ui.isOpera){A=C.event.clientX+D.documentElement.scrollLeft+D.body.scrollLeft-(D.documentElement.clientLeft+D.body.clientLeft)}else{A=B.clientX+C.scrollX}return A};ui.getCursorY=function getCursorY(A){if(ui.isSafari&&A&&!isDefined(A.clientY)){return(A.target)?0:-1}var C=gDoc(A&&(A.target||A.srcElement));if(ui.isIE&&ui.isIE<=5.5){C=gDoc()}var B=gWin(C);var D=0;if(ui.isIE||ui.isOpera){D=B.event.clientY+C.documentElement.scrollTop+C.body.scrollTop-(C.documentElement.clientTop+C.body.clientTop)}else{D=A.clientY+B.scrollY}return D};ui.getMouseButton=function(B){var C=gWin(B);if(!B){B=C.event}var A=B.button;if(ui.isIE||ui.isSafari){if(A&1){A=0}else{if(A&2){A=2}else{if(A&4){A=1}}}}return A};ui.getClientRect=function getClientRect(A){var B=gDoc(A);return new ui.rect(0,0,B.body.clientWidth,B.body.clientHeight)};ui.getClientCenter=function(A){var B=ui.getClientRect(A);return{x:parseInt(B.w/2),y:parseInt(B.h/2)}};ui.isBrowser=function(A){var C=navigator.userAgent,B;if((B=C.indexOf(A))>=0){ui.m_version=parseFloat(C.substr(B+A.length+1));return ui.m_version}return false};ui.isOS=function(A){var B=navigator.userAgent.toLowerCase();return(B.indexOf(A)>=0)};ui.isOS;ui.isSafari=ui.isBrowser("Safari");ui.isSafari3=ui.isSafari&&navigator.userAgent.indexOf("Version/3.")>=0;ui.isSafari2=ui.isSafari&&!ui.isSafari3;ui.isFluid=(window.fluid!=null);ui.isIPhone=navigator.userAgent.indexOf("iPhone")>=0;ui.isIE=ui.isBrowser("MSIE");ui.isOpera=ui.isBrowser("Opera");ui.isOpera9=ui.isOpera&&navigator.userAgent.indexOf("Opera/9")>=0;ui.isNS=ui.isBrowser("Netscape6/");ui.isGecko=ui.isBrowser("Gecko")&&!ui.isSafari;ui.isFirefox=ui.isBrowser("Firefox");ui.isFirefox3=ui.isFirefox&&navigator.userAgent.indexOf("Firefox/3")>=0;ui.isMac=ui.isOS("mac");ui.isWin=ui.isOS("win");ui.isLinux=ui.isOS("linux");ui.isUnix=ui.isOS("x11");ui.isHttps=(document.location.href.indexOf("https")==0);ui.isIE7=(ui.isIE&&ui.m_version>=7);ui.getVersion=function(){return ui.m_version};ui.getClient=function(){if(ui.isSafari){return"Safari"}else{if(ui.isIPhone){return"iPhone"}else{if(ui.isIE){return"MSIE"}else{if(ui.isOpera){return"Opera"}else{if(ui.isNS){return"Netscape"}else{if(ui.isFirefox){return"Firefox"}else{if(ui.isGecko){return"Gecko"}else{return"unknown"}}}}}}}};if(ui.isSafari){ui.isGecko=false}ui.cleanUp=function(A){var D=gDoc(A);ui.disconnectAllEvents(D);var C=D.getElementsByTagName("DIV");for(var B=0;B<C.length;B++){if(C[B].ptr){C[B].ptr=null}}};ui.emptyTags=/^(?:base|basefont|br|frame|hr|img|input|isindex|link|meta|nextid|range|spacer|wbr|audioscope|area|param|keygen|col|limittext|spot|tab|over|right|left|choose|atop|of)$/i;ui.createHTML=function(F){if(isString(F)){return F}var D="<"+F.tag;for(attribute in F){var E=F[attribute];switch(attribute){case"tag":case"textContent":case"children":continue;break;case"className":attribute="class";break;case"htmlFor":attribute="for";break;case"style":if(!isString(E)){var A=E;E="";for(style in A){var C=style=="cssFloat"?"float":style.replace(/([A-Z])/g,"-$1").toLowerCase();E+=C+": "+A[style]+";"}}}D+=" "+attribute+'="'+E+'"'}D+=">";if(!ui.emptyTags.test(F.tag)){if(F.children){for(var B=0;B<F.children.length;B++){D+=arguments.callee(F.children[B])}}else{if(F.textContent){D+=escapeHTML(F.textContent)}}D+="</"+F.tag+">"}return D};ui.createDOM=function(B,A){A=A||document;var C=A.createElement("div");C.innerHTML=ui.createHTML(B);return C.firstChild};ui.rect=function(A,D,B,C){this.x=A;this.y=D;this.w=B;this.h=C;this.x2=A+B;this.y2=D+C};ui.effectMgr=function(){this.m_minIncrement=40;this.intervalTimers=new Object();this.intervalFaders=new Object();this.fontDecoration=function(A,B){if(A&&A.style){A.style.textDecoration=B}};this.setOpacity=function(A,C){if(A&&A.style){var B=A.style;if(ui.isIE){B.filter="alpha(opacity="+C+")"}else{B.opacity=(C/100);B.MozOpacity=(C/100);B.KhtmlOpacity=(C/100)}}};this.startFade=function(B,D,I,C,H){if(C<this.m_minIncrement){C=this.m_minIncrement}var G=Math.abs(I-D);var F=1;if(C){numberIntervals=parseInt(C/this.m_minIncrement)}var A=0;if(G>0){A=parseInt(G/numberIntervals)}if(!isDefined(B.length)){B=[B]}if(this.intervalTimers[B[0].id]&&this.intervalTimers[B[0].id]!=null){clearInterval(this.intervalTimers[B[0].id]);this.intervalTimers[B[0].id]=null}for(var E=0;E<B.length;E++){this.setOpacity(B[E],D)}this.intervalFaders[B[0].id]=D;this.intervalTimers[B[0].id]=setInterval(function(){gEffects.fadeAnimationStep(B,I,A,H)},this.m_minIncrement)};this.fadeAnimationStep=function(G,C,F,A){if(!G||!G[0].id){return}var B=C-this.intervalFaders[G[0].id];var E=Math.abs(B);if(B==0){clearTimeout(this.intervalTimers[G[0].id]);this.intervalTimers[G[0].id]=null;if(A){A()}return}if(E<F){F=E}if(B<0){F*=-1}for(var D=0;D<G.length;D++){this.setOpacity(G[D],this.intervalFaders[G[0].id]+F)}this.intervalFaders[G[0].id]+=F};this.startResize=function(A,K,F,B,E,G,M){if(!A){return}var I=E();var D=Math.abs(K-I.w);var H=Math.abs(F-I.h);var J=1;if(B){J=parseInt(B/this.m_minIncrement)}if(J<=1){G(I.x,I.y,K,F);if(M){M()}return}var C=0;var N=0;if(D){C=parseInt(D/J)}if(H){N=parseInt(H/J)}A.timerId="timer"+getUniqueId();if(this.intervalTimers[A.timerId]&&this.intervalTimers[A.timerId]!=null){clearInterval(this.intervalTimers[A.timerId]);this.intervalTimers[A.timerId]=null}var L=ui.isIE?0:((parseInt(getCSSProp(A,"border-left-width"))||0)+(parseInt(getCSSProp(A,"border-right-width"))||0));this.intervalTimers[A.timerId]=setInterval(function(){try{gEffects.resizeAnimationStep(A,K,F,C,N,E,G,L,M)}catch(O){}},this.m_minIncrement)};this.stopAllAnimations=function(A){if(!A||!A.timerId){return}if(this.intervalTimers[A.timerId]&&this.intervalTimers[A.timerId]!=null){clearInterval(this.intervalTimers[A.timerId]);this.intervalTimers[A.timerId]=null}};this.resizeAnimationStep=function(C,M,G,F,N,E,H,K,L){var I=E();if(I.w-K==M&&I.h==G){clearInterval(this.intervalTimers[C.timerId]);this.intervalTimers[C.timerId]=null;if(L){L()}return}var B=G-I.h;var J=Math.abs(B);var D=M-I.w;var A=Math.abs(D);if(J<N){N=J}if(A<F){F=A}if(B<0){N*=-1}if(D<0){F*=-1}H(I.x,I.y,I.w+F,I.h+N)};this.startMove=function(C,A,B,L,I,D,P){var Q=true;var R=true;var O="left";var M="top";if(!L){O="right"}if(!I){M="bottom"}if(A==null){Q=false}if(B==null){R=false}var S=Math.floor(D/32);if(!S){return}var J=0;var G=0;var K=C.offsetLeft;var H=C.offsetTop;if(!I){H=gDoc(C).body.clientHeight-(C.offsetTop+C.offsetHeight)}if(Q){J=(A-K)/S}if(R){G=(B-H)/S}var F=K;var E=H;var N=setInterval(function(){F+=J;E+=G;if(Q){C.style[O]=Math.round(F)+"px"}if(R){C.style[M]=Math.round(E)+"px"}S--;if(S==0){clearInterval(N);if(P){P()}}},32);return N};this.stopMove=function(A){clearInterval(A)}};var gEffects=new ui.effectMgr();Class("ui.imagecache",function(){this.initialize=function(){this.m_ctrlname="uiimgcache";this.m_currentSkin="default";this.m_path="/skin/"+this.m_currentSkin+"/img/";this.m_images=new Object();this.m_directory=new Object();this.m_pending=new Object();this.m_loadQueue=[];this.m_cssQueue=[]};function C(E,H){var F=E.replace(/^(https?:\/\/)?.*[\/]?skin\/[^\/]*\/img\//,"");if(E.toLowerCase().indexOf("http://")==-1&&E.toLowerCase().indexOf("https://")==-1&&E.substr(0,1)!="/"){E=this.getPath()+E}if(!H.getAttribute){return}var G=H.getAttribute(this.m_ctrlname);if(G&&this.m_directory[G]){if(this.m_directory[G].getURL().indexOf(E)!=-1){return}this.m_directory[G].removeObject(G)}else{G=this.stampObject(H)}if(!this.m_images[F]){if(gWin(H)!=window){runInMainContext(this,this.loadImage,E,H,G)}else{this.loadImage(E,H,G)}return}this.m_directory[G]=this.m_images[F];this.m_images[F].addObject(H,G)}this.requestImage=function(E,F){if(!F||!E){return}C.call(this,E,F)};this.stampObject=function(F){var E=getUniqueId();F.setAttribute(this.m_ctrlname,E);return E};this.loadImage=function(F,I,H){var G=F.replace(/^(https?:\/\/)?.*[\/]?skin\/[^\/]*\/img\//,"");var E=new ui.image();E.setFilename(G);this.m_images[G]=E;this.m_directory[H]=this.m_images[G];E.addObject(I,H);E.load(F)};this.getPath=function(){return this.m_path};this.setPath=function(E){this.m_path=E};this.setIEPNG=function(F,E,G){if(!G||!G.length){G="image"}if(ui.isIE){F.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+E+"', sizingMethod='"+G+"')"}};function A(){if(this.m_cssDone){this.m_cssDone.newLink.disabled=false;removeElement(this.m_cssDone.link);this.m_cssDone=null}if(this.m_cssQueue.length){var F=this.m_cssQueue.shift();try{var E=F.link.cloneNode(false);E.disabled=true;var H=hitch(this,arguments.callee);E.onload=H;E.onerror=H;F.link.parentNode.insertBefore(E,F.link);E.href=F.url;F.newLink=E}catch(G){}this.m_cssDone=F}}function B(L){this.m_cssQueue=[];var K=window;var I=K.document.getElementsByTagName("head")[0];if(!I){return}var E=I.getElementsByTagName("link");if(!E){return}for(var H=0;H<E.length;H++){if(E[H].rel=="stylesheet"&&E[H].type=="text/css"){var F=E[H].href;F=F.replace(/skin\/[^\/]*(\/.*)/,L+"$1");if(ui.isIE){this.m_cssQueue.push({link:E[H],url:F})}else{var J=E[H];var G=J.cloneNode(false);G.disabled=true;G.href=F;J.parentNode.insertBefore(G,J);this.m_cssQueue.push({link:J,newLink:G});H++}}}if(ui.isIE){A.call(this)}else{setTimeout(hitch(this,function(){while(this.m_cssQueue.length){var M=this.m_cssQueue.pop();M.newLink.disabled=false;removeElement(M.link)}}),1000)}setTimeout(hitch(gPubSub,"publish",this,"ui.imagecache::skinLoaded",L),1500)}function D(){for(var F in this.m_images){this.m_numImages++;var E=F;if(E.toLowerCase().indexOf("http://")==-1&&E.toLowerCase().indexOf("https://")==-1&&E.substr(0,1)!="/"){E=this.getPath()+E}this.m_images[F].reloadAllImages(E,null)}}this.swapSkin=function(F){if(this.m_currentSkin==F){return}var E=this.m_path.replace(this.m_currentSkin,F);this.m_currentSkin=F;this.m_pending={};this.m_timeout=64;this.m_numImages=0;this.setPath(E);B.call(this,"skin/"+F);D.call(this)}});ui.image=function(){this.setFilename=function(A){this.m_filename=A};this.copyToObjects=function(){if(!this.m_requests){return}for(var B in this.m_requests){if(this.m_requests[B]){try{this.copyToObject(this.m_requests[B])}catch(A){}}}this.m_requests=null};this.copyToObject=function(A){if(!A){return}if(this.m_bIECachingBug){return}if(String(A.png)=="true"&&ui.isIE&&typeof A.style.filter=="string"&&/\.png$/i.test(this.m_image.src)){A.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+this.m_image.src+"', sizingMethod='scale')";A.src=gImages.getPath()+"blank.gif";A.height=this.m_image.height;A.width=this.m_image.width}else{A.src=this.m_image.src;if(ui.isIE){A.style.filter=""}}if(typeof ui!="undefined"&&(ui.isIE&&A.readyState!="complete")&&this.isWindowObject(A)){this.m_bIECachingBug=true}};this.isWindowObject=function(A){if(A.id&&A.id.indexOf("wimg")&&A.src&&(A.src.indexOf("dis")!=-1)){return true}return false};this.onload=function(){this.m_bLoaded=true;this.copyToObjects();if(this.m_finishCallback){this.m_finishCallback(this.m_filename)}this.m_finishCallback=null;return true};this.reloadAllImages=function(B,A){this.m_finishCallback=A;if(!this.m_requests){this.m_requests=new Object()}for(var C in this.m_objects){this.m_requests[C]=this.m_objects[C]}this.load(B)};this.load=function(A){this.m_bLoaded=false;this.m_image.onload=hitch(this,"onload");try{this.m_image.src=A}catch(B){}};this.removeObject=function(A){if(this.m_objects&&this.m_objects[A]){this.m_objects[A]=null}if(this.m_requests&&this.m_requests[A]){this.m_requests[A]=null}};this.getURL=function(){return this.m_image.src};this.addObject=function(A,B){if(!A){return}if(this.m_objects){this.m_objects[B]=A}if(this.m_bLoaded){this.copyToObject(A)}else{if(this.m_requests){this.m_requests[B]=A}}};this.m_bLoaded=false;this.m_requests=new Object();this.m_objects=new Object();this.m_image=new Image();this.m_bIECachingBug=false;this.m_filename=null;this.m_finishCallback=null};var gImages=new ui.imagecache();gImages.setPath(gConfig.getImageServer());Class("ui.element",function(){this.m_visDisplay="block";this.m_className="";this.m_element=null;this.m_id="";this.m_title="";this.m_win=window;this.initialize=function(A){if(A){this.m_win=gWin(A);this.m_element=A;this.m_id=A.id}};this.getId=function(){return this.m_id||(this.m_element&&this.m_element.id)||""};this.getElement=function(){return this.m_element||$(String(this.getId()))};this.getTitle=function(){return this.m_title};this.setTitle=function(A){this.m_title=A||"";if(this.getElement()){this.getElement().title=this.m_title}};this.setPos=function(A,E,B,D){if(!this.getElement()){return}var C=this.getElement().style;if(A!=null&&parseInt(C.right)){C.right=A+"px"}else{if(A!=null){C.left=A+"px"}}if(E!=null&&parseInt(C.bottom)){C.bottom=E+"px"}else{if(E!=null){C.top=E+"px"}}if(B!=null&&B>=0){C.width=B+"px"}if(D!=null&&D>=0){C.height=D+"px"}};this.getPos=function(){var A=this.getElement();return{w:A.offsetWidth,h:A.offsetHeight,x:A.offsetLeft,y:A.offsetTop}};this.getAbsolutePos=function(){return getElementPosition(this.getElement())};this.setVisibility=function(A){if(this.getElement()){this.getElement().style.visibility=A?"visible":"hidden"}};this.getVisibility=function(){return Boolean(this.getElement()&&this.getElement().style.visibility!="hidden")};this.setDisplay=function(A){if(!this.getElement()){return}if(typeof(A)=="string"){this.getElement().style.display=A}else{this.getElement().style.display=A?"block":"none"}};this.getDisplay=function(){if(this.getElement()){return this.getElement().style.display}};this.setStyle=function(A,B){if(this.getElement()){this.getElement().style[A]=B}};this.addClassName=function(A){this.m_className=addClassName(this.m_className,A);var B=this.getElement();if(B){addClassName(B,A)}};this.removeClassName=function(A){this.m_className=removeClassName(this.m_className,A);var B=this.getElement();if(B){removeClassName(B,A)}};this.hasClassName=function(A){return hasClassName(this.getElement()||this.m_className,A)};this.createHandler=createHandler;this.onRender=function(){this.connectEvents()};this.setInnerHTML=function(A){if(!this.getElement()){return}this.getElement().innerHTML=A};this.connectEvents=function(){if(!this.getElement()){return}for(var A in this.eventHash){ui.connectEvent(this.getElement(),A,this,this.eventHash[A])}}});Class("ui.button",ui.element,function(){this.initialize=function(){this.supa("initialize");this.m_control="ui.Button";this.m_className="uiButton";this.m_img=null;this.m_imageBase=null;this.m_imageType=null;this.m_bPreload=false;this.m_isLegacy=false;this.m_label=new ui.label();this.m_isDisabled=false;this.m_bHover=false;this.m_onMouseOver=new Array();this.m_onMouseUp=new Array();this.m_onMouseDown=new Array();this.m_leftDiv;this.m_centerDiv;this.m_rightDiv;this.m_skin="";this.m_state="normal"};this.init=function(E){this.m_element=E;var A=E.id||"";var C=E.parentNode;var D=Boolean(E.getAttribute("imgType"));if(!D){var L=E.getAttribute("label");var I=E.getAttribute("img");this.create(A,C,L,I);this.setSkin(E.getAttribute("skin"))}else{var I=E.getAttribute("img");var H=E.getAttribute("imgType");var K=E.getAttribute("imgW");var G=E.getAttribute("imgH");var F=E.getAttribute("imgAlt");var B=E.getAttribute("imgPreload")!=false;var J=E.getAttribute("png")=="true";this.create(A,C,I,H,K,G,F,B,J)}};this.create=function(D,C,B,A){this.m_id=D;this.m_isLegacy=arguments.length>4;if(!this.m_isLegacy){this.m_labelText=B;this.m_img=A}else{this.m_imageBase=arguments[2];this.m_imageType=arguments[3];this.m_imgW=arguments[4];this.m_imgH=arguments[5];this.m_imgAlt=arguments[6];this.m_bPreload=arguments[7];this.m_isPng=arguments[8]}if(C&&this.constructor==ui.button){this.createDOMNode(C)}};this.createDOMNode=function(B){this.m_win=gWin(B||this.m_win);if(!this.m_element){this.m_element=this.m_win.document.createElement("div");if(B){B.appendChild(this.m_element)}}var A=this.m_element;A.id=this.m_id;A.setAttribute("control",this.m_control);A.title=this.m_title;if(!this.m_isLegacy){this.addClassName(this.m_className);this.setSkin(this.m_skin,true);var C=this.m_win.document;this.m_leftDiv=C.createElement("div");this.m_leftDiv.className="uiButtonLeft uiButtonLeft-normal";this.m_centerDiv=C.createElement("div");this.m_centerDiv.className="uiButtonCenter uiButtonCenter-normal";this.m_label.create(this.m_id+"_label"+getUniqueId(),this.m_centerDiv,this.m_img,this.m_labelText);this.m_rightDiv=C.createElement("div");this.m_rightDiv.className="uiButtonRight uiButtonRight-normal";A.appendChild(this.m_leftDiv);A.appendChild(this.m_centerDiv);A.appendChild(this.m_rightDiv);var D=C.createElement("div");D.style.position="absolute";D.style.top="0";D.style.left="0";if(ui.isIE){D.style.width=A.offsetWidth;D.style.height=A.offsetHeight}else{D.style.bottom="0";D.style.right="0"}if(!ui.isSafari){D.className="blankBackground"}A.appendChild(D);this.m_eventsDiv=D}else{this.addClassName("uiButtonLegacy");this.m_img=createImg(A.id+"img",A,this.m_imgW,this.m_imgH,this.m_imageBase+"."+this.m_imageType,this.m_imgAlt,this.m_bPreload,null,this.m_isPng);A.appendChild(this.m_img)}A.ptr=this;disableSelection(A,true);ui.connectEvent(A,"mouseover",this,"onMouseAction",true,true,"over");ui.connectEvent(A,"mouseout",this,"onMouseAction",true,true,"out");ui.connectEvent(A,"mouseup",this,"onMouseAction",true,true,"up");ui.connectEvent(A,"mousedown",this,"onMouseAction",true,true,"down");ui.connectEvent(A,"keypress",this,"onKeyPress",true,true,"keypress")};this.destroy=function(){ui.disconnectAllEvents(this.m_element);removeElement(this.m_element)};this.getLabel=function(){return this.m_label};this.onKeyPress=function(C,A){if(C){var B=C.keyCode;if(B!=13){return true}ui.setEventHandled(C)}doFunctions(this.m_onMouseUp,C,A);if(C){return false}};this.onMouseAction=function(D,B,C){if(this.m_isDisabled){return}ui.setEventHandled(D);var E="";var F="";switch(C){case"over":if(!this.m_isLegacy&&ui.isIE){this.m_eventsDiv.style.display="inline";this.m_eventsDiv.style.width=this.m_element.offsetWidth;this.m_eventsDiv.style.height=this.m_element.offsetHeight;this.m_eventsDiv.style.display="block"}if(this.m_state=="down"){return}E="_hot";this.m_bHover=true;F=this.m_onMouseOver;this.setState("hot");break;case"out":E="";this.m_bHover=false;F=this.m_onMouseOut;this.setState("normal");break;case"up":E="";this.m_bHover=true;F=this.m_onMouseUp;this.setState("hot");break;case"down":E="_down";F=this.m_onMouseDown;this.setState("down");break}if(this.m_isLegacy){var A=this.m_imageBase+E+"."+this.m_imageType;this.swapImage(A)}if(F){doFunctions(F,D,B)}};this.setSkin=function(A,B){if(!B&&A==this.m_skin){return}var C=this.m_control.replace(/\./g,"");this.removeClassName(C+"-"+this.m_skin);this.removeClassName(C+"-"+this.m_skin+"-"+this.m_state);this.m_skin=A;if(this.m_skin){this.addClassName(C+"-"+this.m_skin);this.addClassName(C+"-"+this.m_skin+"-"+this.m_state)}};this.setState=function(A){if(this.m_isLegacy||this.m_state==A){return}var B=this.m_control.replace(/\./g,"");this.removeClassName(B+"-"+this.m_state);this.removeClassName(B+"-"+this.m_skin+"-"+this.m_state);this.m_state=A;this.addClassName(B+"-"+this.m_state);this.addClassName(B+"-"+this.m_skin+"-"+this.m_state);if(this.m_element){this.m_leftDiv.className="uiButtonLeft uiButtonLeft-"+A;this.m_centerDiv.className="uiButtonCenter uiButtonCenter-"+A;this.m_rightDiv.className="uiButtonRight uiButtonRight-"+A}};this.refreshImage=function(){this.swapImage(this.m_imageBase+"."+this.m_imageType)};this.swapImage=function(A){if(this.m_bPreload&&window.gImages){gImages.requestImage(A,this.m_img)}else{this.m_img.src=A}};this.addOnMouseUp=function(A){this.m_onMouseUp.push(A)};this.addOnMouseDown=function(A){this.m_onMouseDown.push(A)};this.enable=function(){this.setDisabled(false)};this.disable=function(){this.setDisabled(true)};this.setDisabled=function(A){A=Boolean(A);if(this.m_isDisabled==A){return}this.m_isDisabled=A;if(!this.m_isLegacy){this.setState(A?"disabled":"normal");var B=this.getImage();if(B){this.setImage(B.replace(/(?:_disabled)?\.([a-zA-Z]+)$/,(A?"_disabled":"")+".$1"))}}else{this.swapImage(this.m_imageBase+(A?"_disabled":"")+"."+this.m_imageType)}};this.isDisabled=function(){return this.m_isDisabled};this.setTabIndex=function(A){this.m_element.tabIndex=A};this.getImage=function(){return this.m_label.getPreImg()};this.setImage=function(B,A,C){this.m_label.setPreImg(B,A,C)};this.getText=function(){return this.m_label.getText()};this.setText=function(A){this.m_label.setText(A)}});function cacheImg(I,K){var C=new Object();var F=0;var L=I.indexOf("<img");var H=F;var G=F;var J=F;while(L!=-1){G=I.indexOf("src=",F);J=I.indexOf(" ",G+5)-1;H=I.indexOf(">",L);if((J<0)||(H<J)){J=H}var B=I.slice(G+5,J-1);var E=getUniqueId();var D=I.slice(0,G)+" id="+E+" "+I.slice(J);I=D;C[E]=B;F=L=I.indexOf("<img",G)}K.innerHTML+=I;for(E in C){var A=getPartFromElement(K,E);if(A){gImages.requestImage(C[E],A)}}}function chunkTextImg(G,L,H,F){var D;while((D=G.indexOf("<img"))!=-1){var C=G.indexOf(">",D);G=G.substr(0,C+1)+"[content]</span>"+G.substr(C+1,G.length-C-1);G=G.replace(/<img/,'<span type="img"')}L.appendChild(spanNodeCreator(L)(G));var E=L.getElementsByTagName("span");for(var D=0;D<E.length;D++){var J=E[D];if(J.getAttribute("type")=="img"){J.innerHTML="";var A=J.getAttribute("src");var B=J.getAttribute("width")?J.getAttribute("width"):"";var I=J.getAttribute("height")?J.getAttribute("height"):"";var K=createImg("",L,B,I,A,"",true);J.appendChild(K)}}return L}function spanNodeCreator(A){var B=gDoc(A);return function(C){var D=B.createElement("span");D.innerHTML=C;return D}}function createHTMLImg(C,A,B){return chunkTextImg(C,A,B)}function createTextImg(B,A){return chunkTextImg(B,A,true)}function createImg(C,I,B,H,A,E,J,G,F){var D=gDoc(I).createElement("img");if(!D){return}if(C){D.id=C}if(E){D.setAttribute("title",E)}if(G){D.setAttribute("align",typeof G=="boolean"?"top":G)}if(!J&&A){if(F){D.onload=hitch(D,fixPng);addClassName(D,"fixPng")}D.src=A}else{if(A){if(F){D.png=true}gImages.requestImage(A,D)}}if(B){D.width=B}if(H){D.height=H}return D}function cacheImgs(A){if(A.tagName.toLowerCase()=="img"){gImages.requestImage(A.getAttribute("src"),A)}else{var E=A.getElementsByTagName("img");for(var C=0,B;(B=E[C]);C++){var D=B.getAttribute("path")||B.getAttribute("src");gImages.requestImage(D,B)}}}Class("ui.label",ui.element,function(){this.m_preImgO;this.m_postImg;this.m_postImgW=0;this.m_postImgPadding=0;this.m_textO;this.m_text="";this.m_width=0;this.m_height=0;this.m_control="uiLabel";this.m_className="uiLabel";this.m_bShrinkToSize=false;this.m_paddingLeft=3;this.m_paddingRight=2;this.m_padding=4;this.m_customizeInProgress=null;this.m_force=false;this.m_textTruncate=truncateEnd;this.initialize=function(){this.supa("initialize");this.m_preImg={id:""};this.m_cssProperties={}};this.init=function(E){this.m_element=E;var B=E.id||"";var I=E.label||E.getAttribute("label")||null;var F=E.img||E.getAttribute("img")||null;var G=E.postimg||E.getAttribute("postimg")||null;var C=E.postimgw||E.getAttribute("postimgw")||null;var A=parseInt(E.width)||parseInt(E.getAttribute("width"));var H=parseInt(E.height)||parseInt(E.getAttribute("height"));var D=E.parentNode;if(F=="null"){F=null}this.create(B,D,F,I,G,C,A,H)};this.create=function(H,F,B,G,D,A,C,E){this.m_win=gWin(F||this.m_element);this.m_id=H;this.m_preImg.id="preimg"+getUniqueId();if(isNumber(C)&&!isNaN(C)){this.m_width=C}if(isNumber(E)&&!isNaN(E)){this.m_height=E}if(G){this.setText(G)}if(B){this.setPreImg(B)}if(D){this.setPostImg(D,A)}if(F&&this.constructor==ui.label){this.createDOMNode(F)}};this.createDOMNode=function(A){this.m_win=gWin(A||this.m_win);if(!this.m_element){this.m_element=this.m_win.document.createElement("div");if(A){A.appendChild(this.m_element)}}this.m_element.id=this.getId();this.m_element.className=this.m_className;this.m_element.setAttribute("control",this.m_control);this.m_element.title=this.m_title;this.m_element.style.width=this.m_width?this.m_width+"px":"auto";this.m_element.style.height=this.m_height?this.m_height+"px":"auto";this.m_textO=this.m_win.document.createElement("span");this.m_element.appendChild(this.m_textO);this.m_force=true;this.setText(this.m_text);this.setPreImg(this.m_preImg);this.setPostImg(this.m_postImg,this.m_postImgW);this.m_force=false;return this.m_element};this.getHTMLString=function(){return('<div id="'+this.m_id+'" class="'+this.m_className+'" control="uiLabel" title="'+escapeHTML(this.m_title)+'" style="width: '+(this.m_width?this.m_width+"px":"auto")+";height: "+(this.m_height?this.m_height+"px":"auto")+(this.m_preImg.src?';"><img path="'+this.m_preImg.src+'" align="top">':';">')+'<span style="">'+escapeHTML(this.m_text)+"</span></div>")};this.onRender=function(A){this.m_element=A||$(this.m_id)||this.m_element;this.m_win=gWin(this.m_element)};this.setShrinkToSize=function(A){if(A==this.m_bShrinkToSize){return}this.m_bShrinkToSize=A;if(this.m_bShrinkToSize&&this.getTextO()){this.getTextO().style.width=""}if(A){this.setText(this.m_text,true)}};this.shrinkToSize=function(F){if(!this.m_bShrinkToSize||!this.getElement()||!this.getTextO().offsetWidth){return}if(arguments.length==0){return this.setText(this.m_text,true)}if(this.getTextO().offsetWidth&&!this.m_postImg){var B=this.getTextO().offsetWidth;if(this.m_preImg.w){B+=this.m_preImg.w+this.m_paddingLeft+this.m_paddingRight}this.getElement().style.width=B+"px"}else{var A=this.getPreImgO();var C=F+this.m_paddingLeft+this.m_paddingRight;var E=A?A.offsetWidth:this.m_preImg.w;if(E<=1){E=this.m_preImg.w}var G=this.m_postImgW+this.m_postImgPadding;var D=C+E+G+this.m_padding;this.getElement().style.width=D+"px";this.getTextO().style.width=C+"px";if(this.m_postImg&&this.m_postImgW){this.setPostImg(this.m_postImg,this.m_postImgW)}}};this.setTrunctation=function(A){this.m_textTruncate=A};this.getTextO=function(){return this.m_textO||(this.getElement()&&(this.m_textO=this.getElement().getElementsByTagName("span")[0]))};this.show=function(A){A=(typeof(A)=="undefined"?true:!!A);this.getElement().style.visibility=(A?"visible":"hidden")};this.getPreImgWidth=function(){return this.m_preImg.w};this.getPostImg=function(){return this.m_postImg};this.getPostImgWidth=function(){return this.m_postImgW};this.setPostImgPadding=function(A){this.m_postImgPadding=A};this.getPreImg=function(){return this.m_preImg.src};this.getPreImgO=function(){return this.m_preImgO||(this.getElement()&&(this.m_preImgO=this.getElement().getElementsByTagName("img")[0]))};this.setPreImg=function(B,C,D){if(B&&typeof B=="object"){C=B.w;D=B.h;B=B.src}if(B=="null"){B=null}if(!this.m_force&&B==this.m_preImg.src){return}this.m_preImg.src=B;if(C){this.m_preImg.w=C}if(D){this.m_preImg.h=D}var A=this.getPreImgO();if(!this.m_preImg.src){if(A){removeElement(A);this.m_preImgO=null}this.m_preImg.w=this.m_preImg.h=0;return}if(!this.getElement()){return}if(!A){this.m_preImgO=A=createImg(this.m_preImg.id,this.getElement(),this.m_preImg.w,this.m_preImg.h,this.m_preImg.src,"",true,null,/png$/i.test(B));A.align="top";if(this.getElement().firstChild){this.getElement().insertBefore(A,this.getElement().firstChild)}else{this.getElement().appendChild(A)}}else{gImages.requestImage(this.m_preImg.src,A);if(this.m_preImg.w){A.style.width=this.m_preImg.w+"px"}if(this.m_preImg.h){A.style.height=this.m_preImg.h+"px"}}};this.setPostImg=function(B,C,A){if(!B||!B.length||(B=="null")){return}if(B&&C){this.m_postImg=B;this.m_postImgW=C||0}if(this.m_postImg!=undefined&&this.getElement()){this.m_element.style.backgroundImage=this.m_postImg?"url("+gImages.getPath()+this.m_postImg+")":"";this.m_element.style.backgroundRepeat="no-repeat";this.getElement().style.backgroundPosition="center right"}};this.getText=function(){return this.m_text};this.setText=function(F,D){F=F||"";if(!this.m_force&&!D&&this.m_text==F){return}this.m_text=F;if(!this.getTextO()){return}var C=this.getTextO().parentNode;if(!C){return}var A=4;var B=this.m_width-(this.m_preImg.w||0)-this.m_postImgW-(ui.isIE?0:A);var E=0;if(B<=0){setText(this.getTextO(),F);E=this.getTextO().offsetWidth}else{E=setTruncatedTextContent(this.getTextO(),F,B,this.m_textTruncate,this.m_cssProperties)}if(this.m_bShrinkToSize){this.shrinkToSize(E)}};this.setPosition=function(D,C,A,B){if(D){this.m_element.style.left=D+"px"}if(C){this.m_element.style.top=C+"px"}this.resize(A,B)};this.resize=function(A,C){if(!A){return}var B=this.m_width;if(A>0){if(!ui.isIE){A-=4}this.m_width=this.m_element.width=A;if(A>0){this.m_element.style.width=A+"px"}B=A-this.m_preImg.w-this.m_postImgW}if(C>0){this.m_height=this.m_element.height=C;this.m_element.style.height=C+"px"}this.setText(this.m_text,true);if(this.m_postImg&&this.m_postImgW){this.setPostImg(this.m_postImg,this.m_postImgW)}if(!this.m_bShrinkToSize&&B>0){this.getTextO().style.width=B}}});ui.colorPicker=function(){this.m_element=null;this.m_currentColor="000000";this.m_swatch=null;this.m_colorBox=null;this.m_rgbInput=null;this.m_bShow=false;this.m_hsteps=24;this.m_ssteps=6;this.m_vsteps=6;this.m_callback=null;this.create=function(){var D=document.createElement("div");D.style.position="absolute";D.style.display="none";D.style.width=(8*this.m_hsteps)+"px";D.style.top="0px";D.style.left="0px";D.style.border="1px solid #DFECFF";D.style.backgroundColor="#ffffff";var J=document.createElement("table");J.className="colorpicker";J.cellPadding="0";J.cellSpacing="0";J.border="0";var F=new Array();for(var G=0;G<this.m_hsteps;G++){F.push(Math.round(G/this.m_hsteps*360))}for(var I=-this.m_ssteps;I<=(this.m_vsteps+2);I++){var P=J.insertRow(-1);var O=1;var M=1;if(I<0){O=(I+this.m_ssteps)/this.m_ssteps}else{M=(this.m_vsteps-I)/this.m_vsteps}if(I>this.m_vsteps){var N=(I==this.m_vsteps+2)?(this.m_hsteps+1):0}for(var G=0;G<this.m_hsteps;G++){var L=P.insertCell(-1);if(I>this.m_vsteps){var E=pad(decToHex(Math.round((G+N)/(this.m_hsteps*2)*255)),2);var K=E.toString()+E.toString()+E.toString()+""}else{var K=this.hsvToRgb(F[G],O,M)}L.style.backgroundColor="#"+K;L.rgbvalue=K}}this.m_swatch=D.appendChild(J);var B=document.createElement("div");B.id="colorbox";B.style.width="30px";B.style.height="30px";B.style.margin="5px";B.style.border="1px solid #000000";this.m_colorBox=D.appendChild(B);var A=document.createElement("span");A.style.margin="5px";A.style.position="absolute";A.style.right="0px";A.style.bottom="0px";A.appendChild(document.createTextNode("rgb: #"));var C=document.createElement("input");C.maxLength=6;C.id="rgbinput";C.style.width="50px";C.style.fontSize="10px";this.m_rgbInput=A.appendChild(C);D.appendChild(A);var H=this;this.m_rgbInput.onkeyup=function(R,Q){return H.onRGBKeyPress(R,Q)};this.m_element=D;return this.m_element};this.show=function(A){this.m_bShow=A;this.m_element.style.display=this.m_bShow?"block":"none";if(this.m_bShow){ui.connectEvent(this.m_swatch,"mousedown",this,"onColorMouseDown",true,true);ui.connectEvent(this.m_swatch,"mousemove",this,"onColorMouseMove",true,true);ui.connectEvent(this.m_swatch,"mouseout",this,"onColorMouseOut",true,true);ui.connectGlobalEvent(gDoc(this.m_element),"mousedown",hitch(this,"onMouseOut"))}else{ui.disconnectGlobalEvent(gDoc(this.m_element),"mousedown")}};this.isShowing=function(){return this.m_bShow};this.setPos=function(B,A){this.m_element.style.left=B+"px";this.m_element.style.top=A+"px"};this.setCurrentColor=function(A){if(this.validRGB(A)){this.m_currentColor=A;this.m_colorBox.style.backgroundColor="#"+A;this.m_rgbInput.value=A}};this.getCurrentColor=function(){return this.m_currentColor};this.setCallback=function(A){this.m_callback=A};this.setHighlightCallback=function(A){this.m_highlightCallback=A};this.onRGBKeyPress=function(B,A){if(!B){B=window.event}var C=this.m_rgbInput.value;if(this.validRGB(C)){this.m_colorBox.style.backgroundColor="#"+C;if(this.m_highlightCallback){this.m_highlightCallback(C)}if(B.keyCode==13){if(this.m_callback){this.m_callback(this.m_rgbInput.value)}this.show(false);return false}}if(B.keyCode==27){if(this.m_highlightCallback){this.m_highlightCallback(this.m_currentColor)}this.show(false)}return true};this.getColorFromEvent=function(C){var F=getElementPosition(this.m_swatch);var B=C.x-F.left;var E=(C.y-4)-F.top;var D=Math.max(Math.min(Math.floor(E/8),this.m_swatch.rows.length-1),0);var A=Math.max(Math.min(Math.floor(B/8),this.m_swatch.rows[D].cells.length-1),0);return this.m_swatch.rows[D].cells[A]};this.onColorMouseDown=function(C,A){if(!C){C=window.event}if(C){if(ui.isSafari){var B=this.getColorFromEvent(C)}else{var B=C.target||C.srcElement}if(B.rgbvalue&&this.validRGB(B.rgbvalue)){if(this.m_callback){this.m_callback(B.rgbvalue)}this.show(false)}}};this.onColorMouseMove=function(C,A){if(!C){C=window.event}if(C){if(ui.isSafari){var B=this.getColorFromEvent(C)}else{var B=C.target||C.srcElement}if(B.rgbvalue&&this.validRGB(B.rgbvalue)){this.m_colorBox.style.backgroundColor="#"+B.rgbvalue;this.m_rgbInput.value=B.rgbvalue;if(this.m_highlightCallback){this.m_highlightCallback(B.rgbvalue)}}}};this.onColorMouseOut=function(B,A){if(!this.m_bShow){return}this.m_colorBox.style.backgroundColor="#"+this.m_currentColor;this.m_rgbInput.value=this.m_currentColor;if(this.m_highlightCallback){this.m_highlightCallback(this.m_currentColor)}};this.isInsideColorPicker=function(A,C){var B=getElementPosition(this.m_element);return(B.left<=A&&A<=(B.left+this.m_element.offsetWidth)&&B.top<=C&&C<=(B.top+this.m_element.offsetHeight))};this.onMouseOut=function(B,A){if(ui.isSafari){if(this.isInsideColorPicker(B.x,B.y)){return true}}else{if(isCursorInElement(this.m_element,B)){return true}}if(this.m_highlightCallback){this.m_highlightCallback(this.m_currentColor)}this.show(false);return false};this.hsvToRgb=function(E,K,I){var A;var F;var H;if(K==0){A=F=H=I}else{E/=60;var D=Math.floor(E);var G=E-D;var C=I*(1-K);var B=I*(1-K*G);var J=I*(1-K*(1-G));switch(D){case 0:A=I;F=J;H=C;break;case 1:A=B;F=I;H=C;break;case 2:A=C;F=I;H=J;break;case 3:A=C;F=B;H=I;break;case 4:A=J;F=C;H=I;break;default:A=I;F=C;H=B;break}}return(pad(decToHex(Math.round(A*255)),2)+pad(decToHex(Math.round(F*255)),2)+pad(decToHex(Math.round(H*255)),2))};this.validRGB=function(A){if(A==null||A==""){return false}return A.match(/^#?[0-9A-Fa-f]{6}$/)}};Class("meeboApp.info",ui.element,function(){this.initialize=function(){this.m_win=window;this.m_id="infoTooltip";this.m_infoTimer;this.m_hideTimer;this.m_m2mTimer;this.m_treeWithHover;gPubSub.subscribe("meebo.EventMgr::changeState",this,"onEventMgrChangeState")};this.create=function(){this.m_element=this.m_win.document.createElement("div");this.m_element.style.display="none";this.m_win.document.body.appendChild(this.m_element);this.m_element.id=this.m_id;this.m_element.innerHTML='   <b class="corner"><b class="corner1"><b></b></b>   <b class="corner2"><b></b></b><b class="corner3"></b>   <b class="corner4"></b><b class="corner5"></b></b>   <div id="infoTooltipContent"></div>   <b class="corner"><b class="corner5"></b>   <b class="corner4"></b><b class="corner3"></b>   <b class="corner2"><b></b></b><b class="corner1"><b></b></b></b>';ui.connectEvent(this.m_element,"mouseout",this,"setHideTimeout",false,false,0);ui.connectEvent(this.m_element,"mouseover",this,"clearHideTimeout",false,false)};this.getBody=function(){return $("infoTooltipContent")};this.moveToTop=function(){this.m_element.style.zIndex=gWindowMgr.getNextZIndex()+2};this.hideInfo=function(){clearTimeout(this.m_m2mTimer);this.m_m2mTimer=-1;this.clearTimeout();this.m_element.style.display="none";this.setTreeWithHover(null)};this.showInfo=function(I){if(this.m_m2mTimer!=-1){clearTimeout(this.m_m2mTimer)}if(this.m_infoTimer!=-1){return}var F=I.getExtra();if(!F){return}var A=I.getPresence?I.getPresence():null;var C=this.m_element;var D=this.getBody();D.style.height="";var G=I.getElement();var B=posWithRespectTo(G);var H=I.m_root.getElement();var E=posWithRespectTo(H);if(!this.isVisible()){this.setPos(-999,-999)}this.m_element.style.display="";this.setInfo(F,A);this.positionRelativeTo(E.x,B.y-11,H.offsetWidth,G.offsetHeight);this.makeVisible();if(F.getType()=="buddy"){this.m_m2mTimer=setTimeout(hitch(F,"requestOnMeeboStatus"),500)}};this.positionRelativeTo=function(B,H,C,E){var A=this.getBody();var D=ui.getClientRect(A);var G=B+C-10;var F=H;if(A.offsetHeight>D.h){A.style.height=(D.h-50)+"px";F=5}else{if(F+A.offsetHeight>D.h){F=D.h-(A.offsetHeight+5)}}if(G+C>D.w){G=B-A.offsetWidth+10}this.setPos(G,F)};this.makeVisible=function(){this.m_element.style.display="";this.moveToTop()};this.setInfo=function(C,B){var A=this.setInfoHtml(this.getInfoForBuddy(C,B));var E=C.getIconURL();if(E){var D=createImg(this.m_id+"-icon",A,48,48,E,false,false);if(D){D.className="buddyIcon";if(!A.firstChild){A.appendChild(D)}else{A.insertBefore(D,A.firstChild)}}}};this.setInfoHtml=function(C){var B=this.m_win.document.createElement("div");B.innerHTML=C;cacheImgs(B);var A=this.getBody();A.innerHTML='<div style="clear: both;"></div>';A.insertBefore(B,A.firstChild);return B};this.getInfoForBuddy=function(C,B){var G="";if(B&&B.getChat()&&B.getChat().getType()=="chat"){G+="<b>"+C.getName().split("@")[0]+"</b><br><br>";var F=B.getMedia();if(F.length){G+=gLang.mostRecentShares;G+="<table border=0 cellpadding=2 cellspacing=2>";for(var D=F.length-1;D>=0;D--){G+='<tr><td><div style="position: relative;"><img src="'+escapeHTML(F[D].thumbnailUrl)+'"        style="width: 50px; height: 50px;"><img path="'+escapeHTML(F[D].type)+'-frame.gif"        style="position: absolute; top: -1px; left: -1px;"></div></td><td style="color: #667788">'+escapeHTML(F[D].description)+"</td></tr>"}G+="</table>"}else{G+=gLang.noRecentShares}if(B.getWarnCount()){G+="<br><br>"+gLang.warnCount+": "+B.getWarnCount()}}else{G=meebo.util.emoticons.insertMeeboEmoticons(C.getInfo());G=G.replace(/src="emoticons\//g,'src="'+gImages.getPath()+"emoticons/");var E=C.getGroups();for(var D=0;D<E.length;D++){E[D]=E[D].getName()}var A="<b>"+(E.length==1?gLang.group:gLang.groups)+"</b>: "+E.join(", ")+"<br><br>";G=this.insertName(C,!C.isOnline()?A:G||"<b>"+gLang.fetchingInfo+"</b>");if(gShowChatlogLinks&&C.getType()=="chat"&&!C.isPrivate()){G+='<hr><div><a href="'+C.getChatlogURL()+'" target="_blank">'+gLang.viewChatLogs+"</a></div>"}if(C.getType()=="buddy"){var H=C.getOnMeeboStatus();G+='<div class="tooltipOnMeebo">';if(H=="OnMeebo"){G+='<img align="left" src="'+gImages.getPath()+'meebo_logo_small.gif">'+sprintf(gLang.onMeebo,escapeHTML(C.getAlias()))}else{if(H!=null){G+='<a href="javascript:" onclick="meeboApp.initMeeboInvite(\''+C.getName()+"','"+C.getProtocol()+"','"+C.getUser()+"'); return false;\">"+sprintf(gLang.notOnMeebo,escapeHTML(C.getAlias()))+"</a>"}}G+="</div>"}}return G};this.clearTimeout=function(){clearTimeout(this.m_infoTimer);this.m_infoTimer=-1};this.setTimeout=function(B,A){this.clearTimeout();this.m_infoTimer=setTimeout(hitch(this,function(){this.m_infoTimer=-1;B()}),A)};this.setHideTimeout=function(A){this.clearHideTimeout();A=A||0;this.m_hideTimer=setTimeout(hitch(this,function(){this.m_hideTimer=-1;this.hideInfo()}),A)};this.clearHideTimeout=function(){clearTimeout(this.m_hideTimer);this.m_hideTimer=-1};this.isVisible=function(){return this.m_element.style.display!="none"};this.getTreeWithHover=function(){return this.m_treeWithHover};this.setTreeWithHover=function(A){this.clearHideTimeout();if(this.m_treeWithHover==A){return}if(this.m_treeWithHover){var B=this.m_treeWithHover.getExtra();gPubSub.unsubscribe(B,"meebo.IMObject::changeInfo",this);gPubSub.unsubscribe(B,"meebo.IMObject::changeIcon",this)}this.m_treeWithHover=A;if(!A){return}var B=A.getExtra();if(!B){return}gPubSub.subscribe(B,"meebo.IMObject::changeInfo",this,"onBuddyChange");gPubSub.subscribe(B,"meebo.IMObject::changeIcon",this,"onBuddyChange");if(!this.isVisible()){this.setTimeout(hitch(this,function(){this.showInfo(A,true);B.requestInfo()}),1500)}else{this.clearTimeout();this.showInfo(A);this.setTimeout(hitch(B,"requestInfo"),500)}};this.clearTreeWithHover=function(){this.setHideTimeout(0)};this.handleGroupOn=function(){if(this.isVisible()){this.setPos(-999,-999);this.setHideTimeout(500)}};this.onEventMgrChangeState=function(B,A,C){if(C=="done"){this.hideInfo()}};this.onBuddyChange=function(B,A){if(this.isVisible()){this.showInfo(this.m_treeWithHover)}};this.makeNameSplittable=function(A){A=A||"";return ui.isGecko?makeTextSplittable(A):A};this.insertName=function(C,E){var B=C.getName();var F=C.getProtocol();var A=C.getUser();var D="";if(C.isMeebome()){B=C.getAlias()||B;A=gLogon.getMeeboUser()}if(C.getType()=="chat"){B=C.getChatName();A=gLogon.getMeeboUser()}if(F.toString()=="aim"){D='<a class="tooltipProfileLink" target="_blank" href="http://profiles.aim.com/'+B+'">('+gLang.profile.toLowerCase()+")</a>"}return'<img align=left src="'+gImages.getPath()+F+'_logo_small.gif"><div class="tooltipUserName"><b>'+this.makeNameSplittable(escapeHTML(B))+"</b> "+D+"<br>("+this.makeNameSplittable(escapeHTML(A))+")</div>"+E};this.updateIdleInfo=function(D,C,E){if(!D||!E||(E==-1)){return D}var J=D.indexOf("Idle:</b>");var A=J+9;if(J==-1){return D}var G=D.indexOf("\n",J);var N=D.slice(0,A);N+="&nbsp;";var B="";if(!C){var L=D.indexOf("<b>Idle:");if(L==-1){L=D.indexOf("<b> Idle:");if(L==-1){return D}}var K=D.slice(0,L);if(G==-1){G=D.length}var I=D.slice(G,D.length);return K+I}if(G!=-1){B=D.slice(G,D.length)}var F=new Date().getTime();F=F/1000;var H=F-E;var M=getTimeString(Math.floor(H));return N+M+B};this.updatePersistenceInfo=function(C,B){var D=/<b>Description:<\/b> [\d]+/;var A=getTimeString(Math.floor(B));return C.replace(D,"<b>Time on page:</b> "+A)}});meeboApp.wizardMgr=function(){this.m_widgetName="mypage";this.m_displayName="me";this.m_widgetW=190;this.m_widgetH=275;this.m_widgetHash;this.m_bNewUser=true;this.m_bValidated=false;this.m_widgets=null;this.m_widgetArgs=null;this.m_meeboId="";this.m_name="";this.m_email="";this.m_pass="";this.m_sessionKey;this.m_flashElem;this.m_advancedElem=null;this.m_bShowAdvanced=false;this.m_advancedToggleElem=null;this.blc;this.bfc;this.tbc;this.tbc2;this.tbc3;this.tbc4;this.sbfc;this.hbfc;this.ibfc;this.tbtc;this.dtc;this.m_colorPicker=null;this.m_bLoadedColorPicker=false;this.presets={meebome:["DBDBDC","F3F4F6","F7F7F9","F3F4F6","DDDDDD","CCCCCC","F3F4F6","FFFFFF","FFFFFF","66667E","000000"],meebo:["BCD2EA","EEEFE5","F7F7F9","CCE0F6","9EBFDF","9EBFDF","EEEFE5","FFFFFF","FFFFFF","66667E","000000"],veggie:["BDD99E","F3FFEA","D9F0DB","28B128","80DA3B","80DA3B","F3FFEA","FFFFFF","FFFFFF","66667E","000000"],"pink girl":["FFACD9","FFF3F8","F7F7F9","FFADDA","FFE4F0","FF90E4","FFF3F8","FFFFFF","FFFFFF","66667E","000000"],mac:["989A95","C5C5C5","F7F7F9","E5E5E5","BABABA","989898","C5C5C5","FFFFFF","FFFFFF","66667E","000000"],xp:["989A95","EBE8D7","F7F7F9","007BD7","00A4FC","0080DB","EBE8D7","FFFFFF","FFFFFF","66667E","000000"],"pink punk":["FF90E4","FFC9F3","F7F7F9","FF36D1","FF90E4","FF2DCF","FFC9F3","FFFFFF","FFFFFF","66667E","000000"],grape:["C2C4B8","F3F6E9","F7F7F9","CEC4F9","8180C1","4E4E96","F3F6E9","FFFFFF","FFFFFF","66667E","000000"],black:["505050","787878","F7F7F9","515151","787878","787878","787878","FFFFFF","FFFFFF","CCCCCC","000000"]};this.demotext={"pink girl":"oooh look at me! i'm pink!",mac:"all hail THE STEVE",xp:"all hail THE GATES",grape:"all hail koolaid man OH YEAH!",black:"who turned out the lights?",veggie:"mmm greens",meebome:"sweet sweet arugula pies",meebo:"classic","pink punk":"right on!"};this.m_callbackURL=null;this.m_widgetXML=null;this.loadPreset=function(B){var A=this.presets[B];if(A&&this.m_flashElem){this.setColor("blc",A[0],true);this.setColor("bfc",A[1],true);this.setColor("tbc",A[2],true);this.setColor("tbc2",A[3],true);this.setColor("tbc3",A[4],true);this.setColor("tbc4",A[5],true);this.setColor("sbfc",A[6],true);this.setColor("hbfc",A[7],true);this.setColor("ibfc",A[8],true);this.setColor("tbtc",A[9],true);this.setColor("dtc",A[10],true);this.updateWidgetTitle();this.clearDemoText();if(this.demotext[B]){this.sendDemoText(this.demotext[B])}}};this.setColor=function(E,C,B){if(C!=""&&C.length>=6){var A="0x"+C.substr(C.length-6,6)}if(A&&this.m_flashElem){this.m_flashElem.SetVariable("_root."+E,A);var D=$(E+"_cb");if(D){D.rgbvalue=C;D.style.backgroundColor="#"+C}}if(B==null||!B){this.checkSpecialColors(E,C)}};this.checkSpecialColors=function(B,A){if(B=="hbfc"){this.setColor("ibfc",A)}else{if(B=="tbc2"){this.setColor("tbc3",this.darkenRGB(A,-20,true));this.setColor("tbc",this.presets.meebome[2]);this.setColor("tbc4",this.presets.meebome[5])}else{if(B=="bfc"){this.setColor("sbfc",A);this.setColor("blc",this.darkenRGB(A,20,true))}else{if(B=="dtc"){this.clearDemoText();this.sendDemoText("and here's me chatting it up meebo style")}}}}};this.darkenRGB=function(D,C,G){var F=parseInt(D.substr(0,2),16)-C;var E=parseInt(D.substr(2,2),16)-C;var B=parseInt(D.substr(4,2),16)-C;if(F<0){F=G?-F:0}if(E<0){E=G?-E:0}if(B<0){B=G?-B:0}if(F>255){F=G?(510-F):255}if(E>255){E=G?(510-E):255}if(B>255){B=G?(510-B):255}var A=pad(decToHex(F),2)+pad(decToHex(E),2)+pad(decToHex(F),2);return A};this.setColorFromWidget=function(C){if(this.m_flashElem){var A=pad(decToHex(this.m_flashElem.GetVariable("_root."+C)),6);var B=$(C+"_cb");if(B){B.rgbvalue=A;B.style.backgroundColor="#"+A}}};this.sendDemoText=function(A){if(A!=""&&this.m_flashElem){this.m_flashElem.SetVariable("_root.demotext",A)}};this.clearDemoText=function(){if(this.m_flashElem){this.m_flashElem.SetVariable("_root.demotext","")}};this.toggleAdvancedColors=function(){if(!this.m_advancedElem){return}this.m_advancedElem.style.display=this.m_bShowAdvanced?"none":"block";this.m_bShowAdvanced=!this.m_bShowAdvanced;if(!this.m_bShowAdvanced){this.setWidgetSize(this.m_widgetW,this.m_widgetH)}if(this.m_advancedToggleElem){this.m_advancedToggleElem.innerHTML=this.m_bShowAdvanced?"Close":"Customize it..."}if(!this.m_bLoadedColorPicker){this.loadColorPicker()}};this.showColorPicker=function(A,D){if(!this.m_advancedElem){return}this.m_colorTarget=A;var B=getElementPosition(A);this.m_colorPicker.show(false);this.m_colorPicker.setPos((B.left+Math.round(3*A.offsetWidth/4)),B.top+Math.round(3*A.offsetHeight/4));this.m_colorPicker.setCurrentColor(A.rgbvalue);var C=this;this.m_colorPicker.setHighlightCallback(function(E){C.setColor(D,E)});this.m_colorPicker.setCallback(function(E){C.setColor(D,E)});this.m_colorPicker.show(true)};this.loadColorPicker=function(){this.m_colorPicker=new ui.colorPicker();this.m_colorPicker.create();if(this.m_advancedElem){this.m_colorPicker.m_element.className+=" defaulttext";this.m_colorPicker.m_element=document.body.appendChild(this.m_colorPicker.m_element);this.m_colorPicker.m_element.style.zIndex=5;this.m_bLoadedColorPicker=true}};this.grabSettingsFromWidget=function(){if(this.m_flashElem){this.setColorFromWidget("blc");this.setColorFromWidget("bfc");this.setColorFromWidget("tbc");this.setColorFromWidget("tbc2");this.setColorFromWidget("tbc3");this.setColorFromWidget("tbc4");this.setColorFromWidget("sbfc");this.setColorFromWidget("hbfc");this.setColorFromWidget("ibfc");this.setColorFromWidget("tbtc");this.setColorFromWidget("dtc");var J=this.m_flashElem.GetVariable("_root.wtitle");if(J&&J!=""){var H=$("wname");if(H){H.value=J}}var F=this.m_flashElem.GetVariable("_root.alias");if(F&&F!=""){var E=$("dname");if(E){E.value=F}}var K=this.m_flashElem.GetVariable("_root.config_w");var G=this.m_flashElem.GetVariable("_root.config_h");if(K&&G&&K!=""&&G!=""){if(K=="160"&&G=="250"){var D=$("r1");if(D){D.defaultChecked=D.checked=true}}else{if(K=="190"&&G=="275"){var C=$("r2");if(C){C.defaultChecked=C.checked=true}}else{var B=$("r3");var A=$("r3_w");var I=$("r3_h");if(B&&A&&I){B.defaultChecked=B.checked=true;A.value=K;I.value=G}}}this.setWidgetSize(K,G)}}else{this.loadPreset("meebome")}};this.flashReady=function(){if(ui.isIE){this.m_flashElem=window.preview}else{this.m_flashElem=document.preview}if(this.m_flashElem){if(this.m_widgetXML){this.m_flashElem.SetVariable("_root.configxml",this.m_widgetXML)}else{for(var A=0;A<3;A++){var B=document.getElementById("r"+(A+1));if(B&&B.checked){if(A==0){this.setWidgetSize(160,250);break}else{if(A==1){this.setWidgetSize(190,275);break}else{this.updateWidgetSizeToCustom();break}}}}this.updateWidgetTitle();this.updateWidgetAlias();this.loadPreset("meebome")}}};this.goTo=function(A){document.location.href=A};this.back=function(){var A=document.referrer;var B=-1;if(A&&A.length){B=A.indexOf("/meebome/")}if(B>=0){if(A.indexOf("step3.html")<0){history.go(-1);return}}this.goTo("http://www.meebome.com/")};this.splitArgs=function(B){var I=B.indexOf("?");if(I<0){return}var G=B.slice(I+1);var F=G.split("&");var H;var A;var C=new Object();for(i=0;i<F.length;i++){var D=F[i];var E=D.indexOf("=");H=D.slice(0,E);A=D.slice(E+1);C[H]=A}return C};this.loadReg1=function(){this.showWait(false);var F=this.splitArgs(document.location.href);if(F&&F.cbu&&F.id){this.m_widgetXML=F.id;this.m_callbackURL=decodeURIComponent(F.cbu);var E=document.getElementById("allsteps");if(E){E.style.visibility="hidden"}var C=document.getElementById("next");if(C){C.style.display="none"}var A=document.getElementById("done");if(A){A.style.display="inline"}}this.m_advancedElem=$("advancedcolors");this.m_advancedToggleElem=$("advancedtoggle");this.blc=$("blc_cb");this.bfc=$("bfc_cb");this.tbc=$("tbc_cb");this.tbc2=$("tbc2_cb");this.tbc3=$("tbc3_cb");this.tbc4=$("tbc4_cb");this.sbfc=$("sbfc_cb");this.hbfc=$("hbfc_cb");this.ibfc=$("ibfc_cb");this.tbtc=$("tbtc_cb");this.dtc=$("dtc_cb");var D=document.getElementById("prev");if(D){D.style.visibility="hidden"}var B=document.getElementById("wname");if(B){B.select()}this.setupFlashEmbed()};this.setupFlashEmbed=function(){var A=$("widgetembed");A.style.display="block"};this.updateWidgetTitle=function(){var A=$("wname");if(A){if(this.m_flashElem){this.m_flashElem.SetVariable("_root.wtitle",A.value)}}};this.updateWidgetAlias=function(){var A=$("dname");if(A){if(this.m_flashElem){this.m_flashElem.SetVariable("_root.alias",A.value);this.clearDemoText();this.sendDemoText("picking the right name is so important")}}};this.setWidgetSize=function(C,F){if(!C||!F){return}this.m_widgetW=C;this.m_widgetH=F;var B=$("widgetpreviewspace");var G=300+Math.max(0,Math.round((B.offsetWidth-C)/2));var D=Math.max(0,Math.round((B.offsetHeight-F)/2));var A=$("widgetembed");A.style.left=G+"px";A.style.top=D+"px";var H=$("preview");if(H&&H.width&&H.height){H.width=C;H.height=F}var E=$("previewembed");if(E&&E.width&&E.height){E.width=C;E.height=F}};this.updateWidgetSizeToCustom=function(){var B=$("r3_w");var E=$("r3_h");if(B&&E){var A=parseInt(B.value);if(A>300){A=300}if(A<125){A=125}var D=parseInt(E.value);if(D>400){D=400}if(D<210){D=210}this.setWidgetSize(A,D);var C=$("r3");if(C){C.checked=C.defaultChecked=true}}};this.leaveReg1=function(){var H=this.isValidWidgetName("wname");var G=this.isValidWidgetName("dname");if(H||G){this.doError((H?H+"\n":"")+(G?G+"\n":""));return}var J=document.getElementById("wname");if(J){gWizard.m_widgetName=J.value}var I=$("dname");if(I){gWizard.m_displayName=I.value}var F=document.getElementById("r1");if(F&&F.checked){this.m_widgetW=160;this.m_widgetH=250}var D=document.getElementById("r2");if(D&&D.checked){this.m_widgetW=190;this.m_widgetH=275}var B=document.getElementById("r3");if(B&&B.checked){var C=$("r3_w");var K=$("r3_h");if(C&&C.value&&K&&K.value){var E=0;for(E=0;E<C.value.length;E++){if(!isdigit(C.value.charAt(E))){this.doError("Please enter a valid width.");return}}for(E=0;E<K.value.length;E++){if(!isdigit(K.value.charAt(E))){this.doError("Please enter a valid height.");return}}this.m_widgetW=C.value;this.m_widgetH=K.value}else{this.doError("Please enter a valid width and height.");return}}var A="http://reg.meebome.com/step2.html";if(this.m_callbackURL!=null){A=this.m_callbackURL}A+="?n="+encodeURIComponent(gWizard.m_widgetName)+"&w="+gWizard.m_widgetW+"&h="+gWizard.m_widgetH+"&a="+encodeURIComponent(gWizard.m_displayName);A+="&bfc="+this.bfc.rgbvalue+"&tbc2="+this.tbc2.rgbvalue+"&tbtc="+this.tbtc.rgbvalue+"&hbfc="+this.hbfc.rgbvalue+"&dtc="+this.dtc.rgbvalue;A+="&blc="+this.blc.rgbvalue+"&tbc="+this.tbc.rgbvalue+"&tbc3="+this.tbc3.rgbvalue+"&tbc4="+this.tbc4.rgbvalue+"&ibfc="+this.ibfc.rgbvalue+"&sbfc="+this.sbfc.rgbvalue;if(this.m_widgetXML!=null){A+="&id="+this.m_widgetXML}this.goTo(A)};this.onReg1KeyPress=function(C,B){if(!C){C=window.event}var A;if(B===document.getElementById("wname")){if(A=this.isValidWidgetName("wname")){this.setWidgetNameError(A,true,"widgetnameerror")}else{if(nButton){nButton.enable()}this.setWidgetNameError(" ",false,"widgetnameerror")}this.updateWidgetTitle()}else{if(B===document.getElementById("dname")){if(A=this.isValidWidgetName("dname")){this.setWidgetNameError(A,true,"displaynameerror")}else{if(nButton){nButton.enable()}this.setWidgetNameError(" ",false,"displaynameerror")}this.updateWidgetAlias()}}if(C.keyCode==13){this.leaveReg1();return false}return true};this.onRadioClick=function(A){A.checked=true};this.onRadioMouseUp=function(B,A){A.defaultChecked=A.checked=true;ui.setEventHandled(event)};this.doUnderline=function(B,A){gEffects.fontDecoration(B,A?"underline":"");if(A){if(ui.isIE&&ui.getVersion()<=5.5){B.style.cursor="hand"}else{B.style.cursor="pointer"}}else{B.style.cursor="default"}};this.onReg2KeyPress=function(C,B){if(!C){C=window.event}if(C.keyCode==13){this.leaveReg2();return false}if(C.keyCode==9&&B&&B.id=="pass"){var A=document.getElementById("next");if(A&&A.select){A.select()}return false}return true};this.setWidgetNameError=function(C,B,D){var A=document.getElementById(D);if(A){removeChildren(A);A.appendChild(document.createTextNode(C));if(B){A.style.color="#FF0000"}else{A.style.color="#009900"}}};this.onFloaterKeyPress=function(D,C){if(!D){D=window.event}if(D.keyCode==27){this.showNameFloater(false);return false}var B=this.isValidWidgetName("widgetname");var A=false;if(this.m_widgets){if(!B){if(this.isDuplicateWidgetName(stripWhitespace(C.value))){A=true}}}if(!B&&!A){oButton.enable()}else{oButton.disable()}if(B&&C.value){this.setWidgetNameError("Please provide a name with a-z 0-9 . ' and _",true,"widgetnameerror")}else{if(A){}else{this.setWidgetNameError(" ",false,"widgetnameerror")}}if(D.keyCode==13){if(!B&&!A){this.changeWidgetName()}else{if(B){this.doError(B)}else{if(A){this.doError("You have already used this widget name. Please try again.")}}}return false}return true};this.loadReg2=function(){var A=document.getElementById("stepimg");if(A){A.src="http://www.meebome.com/meebome/skin/default/img/step_2.png"}this.m_widgetArgs=this.splitArgs(document.location.href);if(this.m_widgetArgs){this.m_widgetW=this.m_widgetArgs.w;this.m_widgetName=decodeURIComponent(this.m_widgetArgs.n);this.m_displayName=decodeURIComponent(this.m_widgetArgs.a);this.m_widgetH=this.m_widgetArgs.h}if(!this.m_widgetW||!this.m_widgetName||!this.m_widgetH||!this.m_displayName){this.doError("Sorry, your widget could not be created at this time. Please try again later.");return}var B=loadCookie("mid");var D=document.getElementById("meeboid");if(D&&B&&B.length){D.value=B;var C=document.getElementById("pass");if(C){C.select()}}};this.isValidMeeboId=function(E){var B=document.getElementById(E);var A=4;var C=100;if(!B||!B.value){return gLang.noIdError}var D=stripWhitespace(B.value);if(!D){return}if(D.length<A){return gLang.shortIdError}if(D.length>C){return gLang.longIdError}if(D.search(/[^A-Za-z0-9_.]/)!=-1){return gLang.specialCharError}this.m_meeboId=D};this.isValidMeeboName=function(C){var A=document.getElementById(C);if(!A||!A.value){return gLang.noNameError}var B=stripWhitespace(A.value);if(!B||!B.length){return"Please provide your name."}this.m_name=B};this.isValidEmail=function(C){var A=document.getElementById(C);if(!A||!A.value){return gLang.noEmailError}var B=stripWhitespace(A.value);if(!B){return gLang.noEmailError}if(!isEmail(B)){return gLang.poorEmailError}this.m_email=B};this.isValidPassword=function(E){var A=6;var C=100;var B=document.getElementById(E);if(!B||!B.value){return gLang.noPasswordError}var D=stripWhitespace(B.value);if(!D){return gLang.noPasswordError}if(D.length<6){return gLang.shortPasswordError}if(D.length>100){return gLang.longPasswordError}this.m_pass=D};this.isValidAge=function(B){var A=document.getElementById(B);if(!A||!A.value){return gLang.provideAge}this.m_age=parseInt(stripWhitespace(A.value))};this.isValidGender=function(){var A=document.getElementById("genderm");var B=document.getElementById("genderf");if(!A.checked&&!B.checked){return gLang.provideGender}this.m_gender=A.checked?"m":"f"};this.isValidConfirmPassword=function(F,C){var B=document.getElementById(F);if(!B||!B.value){return gLang.noConfirmPassword}var E=stripWhitespace(B.value);if(!E){return gLang.noConfirmPassword}var D=document.getElementById(C);var A="";if(D){A=D.value}if(E!=A){return gLang.noMatchPassword}};this.isValidWidgetName=function(E){var C=100;var A=document.getElementById(E);if(!A){return""}var B="";if(A.getAttribute("nameType")){B=A.getAttribute("nameType")}if(!A.value){return sprintf("Please provide a %1",B)}var D=stripWhitespace(A.value);if(!D||!D.length){return sprintf("Please provide a %1",B)}if(D.length>100){return sprintf("Please provide a %1 with fewer than 100 characters",B)}if(D.search(/[^A-Za-z0-9_. ']/)!=-1){return sprintf("Please provide a %1 with a-z 0-9 . ' and _",B)}};this.unhighlightFields=function(){var B=document.getElementsByTagName("input");for(var A=0;A<B.length;A++){B[A].style.backgroundColor="transparent"}document.getElementById("gendercontainer").style.backgroundColor="transparent"};this.highlightField=function(B){this.unhighlightFields();var A=document.getElementById(B);if(A){A.style.backgroundColor="#FFC1C1";if(A.select){A.select()}}};this.clearError=function(){this.doError("")};this.doError=function(B){var A=document.getElementById("errorrow");if(A){setText(A,B)}this.m_sessionKey=""};this.showWait=function(A,D){if(!A){gWait.hideWait();return}var B=150;var C=22;var E=ui.getClientCenter();E.x-=parseInt(B/2);E.y-=parseInt(C/2);gWait.showWait(D);gWait.setPos(E.x+10,E.y,B,C)};this.callbackLogin=function(B,A,C){if(!A){this.doError(gLang.netError);this.showWait(false);return}this.checkWidgets()};this.callbackCreate=function(B,A,C){if(!A){this.doError(gLang.netError);this.showWait(false);return}saveCookie("meebomemid",this.m_meeboId,false,true);this.loginUser()};this.loginUser=function(){this.m_bNewUser=false;if(!this.m_sessionKey){this.requestSessionKey();return}var B="sessionKey="+this.m_sessionKey;B+="&numLogins=1";B+="&1user="+encodeURIComponent(this.m_meeboId);var A=this.encryptPassword(this.m_pass,this.m_sessionKey);B+="&1protocol="+encodeURIComponent("meebo");B+="&1password2="+encodeURIComponent(A);B+="&1state=online";B+="&1e=false";this.doRequest("login",B,"gWizard.callbackLogin",false,true)};this.encryptPassword=function(A){if(!A){return}return rsaEncrypt(this.m_sessionKey.substring(0,32)+A)};this.showNameFloater=function(F,B){var D=document.getElementById("nameblocker");var E=document.getElementById("namefloater");if(!D||!E){return}if(F){E.style.visibility="hidden";D.style.display="block";E.style.display="block";var H=E.offsetWidth;var A=E.offsetHeight;var G=ui.getClientCenter();G.x-=parseInt(H/2);G.y-=parseInt(A/2);E.style.left=G.x+"px";E.style.top=G.y+"px";if(window.innerWidth){D.style.width=window.innerWidth+"px";D.style.height=window.innerHeight+"px"}else{D.style.width=(document.body.offsetWidth-21)+"px";D.style.height=(document.body.offsetHeight-5)+"px"}E.style.visibility="visible";document.getElementById("duplicate_fields").style.display=B?"none":"block";document.getElementById("underage_fields").style.display=B?"block":"none";if(!B){var I=document.getElementById("dupwidgetname");if(I){removeChildren(I);I.appendChild(document.createTextNode(this.m_widgetName))}var C=document.getElementById("widgetname");if(C){C.value=this.m_widgetName;C.select();oButton.disable()}}}else{D.style.display="none";E.style.display="none"}};this.changeWidgetName=function(){var A=this.isValidWidgetName("widgetname");if(A){this.doError(A);return}var B=document.getElementById("widgetname");if(B){this.m_widgetName=stripWhitespace(B.value)}this.showNameFloater(false);this.leaveReg2()};this.isDuplicateWidgetName=function(A){if(!this.m_widgets){return false}for(var B in this.m_widgets){if(!this.m_widgets[B]){continue}if(this.m_widgets[B].n.toLowerCase()==A.toLowerCase()){return true}}return false};this.callbackCheckWidgets=function(C,B,D){var A=C;if(A){this.m_widgets=A;if(this.isDuplicateWidgetName(this.m_widgetName)){this.showWait(false);this.showNameFloater(true);this.sendQuit();return}}this.createWidget()};this.checkWidgets=function(){var A="sessionKey="+this.m_sessionKey;A+="&muser="+encodeURIComponent(this.m_meeboId);this.doRequest("gwid",A,"gWizard.callbackCheckWidgets",false,false)};this.callbackCreateWidget=function(B,A,C){this.showWait(false);if(B.length!=10){if(B.length){this.doError(B)}else{this.doError("Sorry, your widget could not be created at this time. Please try again later.")}}else{this.m_widgetHash=B;this.loadReg3()}this.sendQuit()};this.createWidget=function(){var A="sessionKey="+this.m_sessionKey;A+="&o="+encodeURIComponent(this.m_meeboId);A+="&i="+encodeURIComponent(this.m_widgetName);A+="&d=false";A+="&1n=w";A+="&1v="+encodeURIComponent(this.m_widgetW);A+="&2n=h";A+="&2v="+encodeURIComponent(this.m_widgetH);A+="&3n=a";A+="&3v="+encodeURIComponent(this.m_displayName);var B=3;for(var C in this.m_widgetArgs){if(C=="blc"||C=="bfc"||C=="tbc"||C=="tbc2"||C=="tbc3"||C=="tbc4"||C=="tbtc"||C=="hbfc"||C=="ibfc"||C=="sbfc"||C=="dtc"){B++;A+="&"+B+"n="+encodeURIComponent(C);A+="&"+B+"v="+encodeURIComponent(this.m_widgetArgs[C])}}A+="&npairs="+B;this.doRequest("mmc",A,"gWizard.callbackCreateWidget",false,false)};this.createUser=function(){if(this.m_age<13){this.showNameFloater(true,true);this.showWait(false);return}if(!this.m_sessionKey){this.requestSessionKey();return}var B="sessionKey="+this.m_sessionKey;B+="&muser="+encodeURIComponent(this.m_meeboId);var A=this.encryptPassword(this.m_pass,this.m_sessionKey);B+="&name="+encodeURIComponent(this.m_name);B+="&password="+encodeURIComponent(A);B+="&email="+encodeURIComponent(this.m_email);B+="&conf="+encodeURIComponent("meebo");B+="&birthyear="+encodeURIComponent(new Date().getFullYear()-this.m_age);B+="&gender="+encodeURIComponent(this.m_gender);this.m_bNewUser=true;this.doRequest("create",B,"gWizard.callbackCreate",false,false)};this.leaveReg2=function(){this.unhighlightFields();this.showWait(true,gLang.oneMoment);var A=this.validateReg2();if(!A){this.showWait(false)}return false};this.validateReg2=function(){var D="";var B="";var C=document.getElementById("meeboid");var A=document.getElementById("pass");if(C&&A&&(C.value||A.value)){D=this.isValidMeeboId("meeboid");B="meeboid";if(!D){D=this.isValidPassword("pass");if(D){D.replace("new","")}B="pass"}if(!D){this.loginUser();return true}else{if(!getValue("nmeeboid")&&!getValue("name")&&!getValue("email")&&!getValue("npass")&&!getValue("ncpass")&&!getValue("age")&&!document.getElementById("genderm").checked&&!document.getElementById("genderf").checked){this.doError(D);this.highlightField(B);return false}}}var D=this.isValidMeeboId("nmeeboid");if(D){B="nmeeboid"}if(!D){D=this.isValidMeeboName("name");B="name"}if(!D){D=this.isValidEmail("email");B="email"}if(!D){D=this.isValidPassword("npass");B="npass"}if(!D){D=this.isValidConfirmPassword("ncpass","npass");B="ncpass"}if(!D){D=this.isValidGender();B="gendercontainer"}if(!D){D=this.isValidAge("age");B="age"}if(D){this.highlightField(B);this.doError(D);return false}this.createUser();return true};this.loadReg3=function(){this.showWait(false);var I=document.getElementById("stepimg");if(I){I.src="http://www.meebome.com/meebome/skin/default/img/step_3.png"}var P=document.getElementById("dialog-content");if(!P){return}removeChildren(P);P.style.width="600px";var O=document.createElement("span");O.className="inputheader";O.appendChild(document.createTextNode("Congratulations! Here's the code you need..."));P.appendChild(O);var N=document.createElement("p");N=P.appendChild(N);var H=document.createElement("textarea");if(H){H.readOnly=true;H.cols=70;H.rows=3;var M="<!-- Beginning of meebo me widget code.\r\nWant to talk with visitors on your page?  \r\nGo to http://www.meebome.com/ and get your widget! -->\r\n";H.value=M+'<embed src="http://widget.meebo.com/mm.swf?'+this.m_widgetHash+'" type="application/x-shockwave-flash" width="'+this.m_widgetW+'" height="'+this.m_widgetH+'"></embed>';H=N.appendChild(H);H.onmouseup=function(T){this.select();ui.setEventHandled(T);return true}}var L=document.createElement("div");L.className="inputheader";L.style.color="#677788";L.style.fontWeight="normal";L.innerHTML="<br>1.  Just copy and paste this code into your website html where you'd like the widget to appear<br><br>2.  Sign into <a style='color:#677788' href='http://www.meebo.com/'>meebo.com</a>";L.innerHTML+="<br><br>3. See the visitors on your site and start talking with your fans!";P.appendChild(L);var D=document.createElement("form");D.id="sixapartform";D.method="post";D.action="https://www.typepad.com/t/app/weblog/design/widgets";var J=document.createElement("input");J.type="hidden";J.name="service_key";J.value="52616e646f6d4956caa1e1be4a04b565b7c7649e6a51e5cacb948fbec0484af49a2c2c9c5dacfef9aacf99d0a0e8fe80";var Q=document.createElement("input");Q.type="hidden";Q.name="service_name";Q.value="meebo!";var F=document.createElement("input");F.type="hidden";F.name="service_url";F.value="http://www.meebo.com";var C=document.createElement("input");C.type="hidden";C.name="long_name";C.value="meebo me widget!";var B=document.createElement("input");B.type="hidden";B.name="short_name";B.value="meebo me widget!";var A=document.createElement("input");A.type="hidden";A.name="return_url";A.value="http://www.meebome.com";var R=document.createElement("textarea");R.style.display="none";R.name="content";R.value=H.value;D.appendChild(J);D.appendChild(Q);D.appendChild(F);D.appendChild(C);D.appendChild(B);D.appendChild(R);D.appendChild(A);var K=document.createElement("div");K.className="inputheader";K.innerHTML+="<p>Check out some places where you can put your new widget.  Click to embed!<p>";K.innerHTML+='<a target=\'_blank\' href="http://gallery.live.com/liveitemdetail.aspx?li=93d084cb-62c6-4847-991f-2782f6b0bc54&l=1"><img src="http://www.meebome.com/meebome/skin/default/img/spaces.gif" border=0></a>&nbsp;&nbsp;&nbsp;';K.innerHTML+='<a href="javascript:void(1);" onClick="gWizard.submitTypepad()"><img src="http://www.meebome.com/meebome/skin/default/img/typepad.gif" border=0></a>';K.appendChild(D);P.appendChild(K);var N=document.createElement("p");N.align="center";N.className="inputheader";N.style.color="#66a9e0";N.style.fontSize="16px";N.innerHTML="<br><br>Go to <a style='color:#66a9e0' href='http://www.meebo.com/'>meebo.com</a> now!";P.appendChild(N);var G=$("step2");var E=$("step3");G.style.display="none";E.style.display="block";try{if(!ui.isIE&&H){H.select()}}catch(S){}};this.submitTypepad=function(){var A=$("sixapartform");if(!A){return}A.submit()};this.leaveReg3=function(){return true};this.requestSessionKey=function(){this.doRequest("start","","gWizard.setSessionKey",false,true)};this.setSessionKey=function(B,A,C){if(!B||!A||(!B)||(B=='"failure"')||(B=="failure")){this.doError(gLang.ajaxError+gLang.pleaseCheck);return false}this.m_sessionKey=typeof(B)=="string"?B:B.sessionKey;if(this.m_bNewUser){this.createUser()}else{this.loginUser()}};this.sendQuit=function(){var A="sessionKey="+this.m_sessionKey;this.doRequest("quit",A,null,false,true);this.m_sessionKey=null};this.doRequest=function(D,C,F,A,B){var E=new Ajax();E.ajaxRequest(D,C,F,A,B)}};gWizard=new meeboApp.wizardMgr();gAjax=new Ajax();gAjax.m_messageRev=0;gWait=new meeboApp.logonWaitDlg();gEffects=new ui.effectMgr();gImages=new ui.imagecache();