<?xml version="1.0" encoding="UTF-8"?>
<!--
****************************************************************************

     File Name:   prefsContainer.box

****************************************************************************
   C O P Y R I G H T   A N D   C O N F I D E N T I A L I T Y   N O T I C E
****************************************************************************

//      Copyright (c) 2006 AOL LLC.  All rights reserved.
//      This software contains valuable confidential and proprietary
//      information of AOL LLC. and is subject to applicable
//      licensing agreements.  Unauthorized reproduction, transmission or
//      distribution of this file and its contents is a violation of
//      applicable laws.
//
//            A O L   C O N F I D E N T I A L

****************************************************************************
-->



<!DOCTYPE window [
   <!ENTITY % prefs SYSTEM "box://imApp/resources/prefs.dtd">
   <!ENTITY % window SYSTEM "box://imApp/resources/im.dtd">
   <!ENTITY % bl SYSTEM "box://imApp/resources/bl.dtd">
   <!ENTITY % plaxoStrings SYSTEM "box://imApp/resources/plaxoStrings.dtd">
   <!ENTITY % boxelyLocal SYSTEM "box://aimToolkit/resources/localization.dtd">
   %prefs;
   %window;
   %bl;
   %plaxoStrings;
   %boxelyLocal;
 ]>
 
<?import href="box://plaxoApp/content/plaxoToolkit.box"?>
<?import href="box://aimToolkit/content/gadgets.box"?>
<?import href="box://aimToolkit/theme/toolkit.box"?>
<?import href="box://imApp/theme/coreGadgetStyles.box"?>
<?import href="box://imApp/theme/style.box"?>
<?import href="box://imApp/content/imAppLib.box"?>
<?import href="box://imApp/content/imSmartInput.box"?>

<?import href="box://imApp/content/prefs/prefsContainerStyles.box"?>

<aimWindow xmlns="http://www.aol.com/boxely/box.xsd"
        xmlns:s="http://www.aol.com/boxely/style.xsd"
        xmlns:on="http://www.aol.com/boxely/reaction.xsd"
        id="window"
        s:minWidth="&prefs.window.minWidth;" s:width="&prefs.window.minWidth;*" 
        s:minHeight="&prefs.window.minHeight;" s:height="&prefs.window.minHeight;*" 
        s:flex="1" 
        title="&prefs.window.titlePrefix;" titleBase="&prefs.window.titlePrefix;"
        accRole="dialog"
        on:constructed="onConstructed();"
        on:initialized="onInitialized();"
        on:presented="onPresented();"
        on:close="onClose();"
        on:destroyed="onDestroyed();"
        on:displayChanged="onDisplayChanged();">


<library xmlns="http://www.aol.com/boxely/resource.xsd"
         xmlns:box="http://www.aol.com/boxely/box.xsd"
         xmlns:s="http://www.aol.com/boxely/style.xsd"
         xmlns:on="http://www.aol.com/boxely/reaction.xsd">

        <gadget id="aolDataGrid" type="datagrid">
            <attributes view="datagrid" accRole="list" rightMouseMode="cursor"/>
            <behavior inherits="box://aimToolkit/content/behaviors.box#listBox"/>
        </gadget>

        <gadget id="prefsRow" type="box" >
            <attributes enabled="false" name="" version="" vendorName="" vendorUrl="" description="" noSettings=""
            focusMode="defer"/>
            <parts>
                <box:vbox s:flex="1">
                    <box:hbox s:vAlign="center">
                        <box:aolCheckButton id="firstControl" on:toggle="togglePlugin();">
                            <box:binding elementSource="_gadget" targetProperty="toggled" path="enabled" method="twoWay" />
                        </box:aolCheckButton>
                        <box:aolLabel>
                            <box:binding elementSource="_gadget" targetProperty="value" path="name" method="oneWay" />
                            <box:binding elementSource="_gadget" targetProperty="disabled" path="enabled" method="oneWay" sourceTransformer="toolkit:not"/>
                        </box:aolLabel>
                        <box:aolLabel>
                            <box:binding elementSource="_gadget" targetProperty="value" path="version" method="oneWay" />
                            <box:binding elementSource="_gadget" targetProperty="disabled" path="enabled" method="oneWay" sourceTransformer="toolkit:not"/>
                        </box:aolLabel>
                        
                        <box:spacer s:flex="1"/>
                        <box:aolButton id="actionButton" label="Settings..." on:command="configPlugin();">
                            <box:binding elementSource="_gadget" targetProperty="disabled" path="config" method="oneWay" sourceTransformer="toolkit:not"/>
                        </box:aolButton>
                    </box:hbox>
                    <box:hbox>
                        <box:aolLabel value="Description: "/>
                        <box:aolLabel wordwrap="true"  s:flex="1">
                            <box:binding elementSource="_gadget" targetProperty="value" path="description" method="oneWay" />
                            <box:binding elementSource="_gadget" targetProperty="disabled" path="enabled" method="oneWay" sourceTransformer="toolkit:not"/>
                        </box:aolLabel>
                    </box:hbox>
                    <box:hbox id="box1" />
                    <box:hbox id="box2" />
                </box:vbox>
            </parts>
        </gadget>

        <style tag="prefFontSample" vAlign="stretch" hAlign="stretch">
            <state name="focused" stroke="#336a6a6a" strokeWidth="1" animate="url(#checkRadioStrokeFadeIn)" animateExit="url(#checkRadioStrokeFadeOut)"/>
        </style>

        <gadget id="prefFontSample" type="control">
            <attributes accRole="pushButton"/>
            <parts>
                <box:aolLabel id="text" inherits="value=label,$fontFamily=fontName,$fontSize=computedFontSize,$fontBold=bold,$fontItalics=italic,$fontUnderline=underline,$textColor=fgColor,$fill=bkColor"/>
            </parts>
            <behavior inherits="box://aimToolkit/content/behaviors.box#commandable">
                <reaction event="keyPress" ctrl="false" shift="false" keyCode="RETURN" action="toolkit:Command" />
            </behavior>
        </gadget>

        <gadget id="customPlaxoSmallBullet" type="box">
            <parts>
                <box:hbox s:vAlign="start">
                    <box:image s:margin="5 3 0 3" src="box://plaxoApp/theme/images/bullet.png" />
                    <box:aolMultilineStatic wordwrap="false" inherits="value=text,accReadText=accTabRead" style="plaxoSideboxColor" />
                </box:hbox>
            </parts>
        </gadget>
</library>

  <script id="main" language="jscript" href="box://imApp/content/prefs/prefsContainer.js"/>

    <reaction event="keyPress" keyCode="ENTER" action="save( true );"/>
    <reaction event="keyPress" keyCode="ESCAPE" action="scene.close();"/>
    <reaction event="keyPress" keyCode="f1" action="showHelp();"/>
    <reaction event="keyPress" keyCode="f3" action="focusSearch();"/>
    <reaction event="focus" action="onFocusChangeDoValidation();"/>

    
    <commandGroup>
        <command id="goForward" action="browseForward();" update="canBrowseForward();"/>
        <command id="goBack" action="browseBack();" update="canBrowseBack();"/>
        <command id="prefGeneral" action="goToTabs( 'tabBox', 'tabpanel1', 0 );"/>
        <command id="prefBuddyList" action="goToTabs( 'tabBox', 'tabpanel1', 4 );"/>
        <command id="prefPrivacy" action="goToTabs( 'tabBox', 'tabpanel1', 10 );"/>
        <command id="prefIM" action="goToTabs( 'tabBox', 'tabpanel1', 1 );"/>
        <command id="prefAway" action="goToTabs( 'tabBox', 'tabpanel1', kPrefsTabStatusMessages );"/>

        <command id="prefStatusMessages" action="goToTabs( 'tabBox', 'tabpanel1', kPrefsTabStatusMessages );"/>
    </commandGroup>

    <aolMenuBar>
        <aolMenu s:hidden="true" />
    </aolMenuBar>

    <hbox style="hbox1">
        <aolSearchInput id="search" accName="&pref.search_accName;" hideCriteriaMenu="true" s:width="220" icon="#bmp.bl.searchField.icon">
            <reaction event="attributeSet" attributeName="value" action="onSearch();"/>
            <reaction event="focus" action="initSearch();"/>
            <reaction event="keyPress" ctrl="true" shift="false" keyCode="TAB" override="true" action="advanceTab();"/>
            <reaction event="keyPress" ctrl="true" shift="true" keyCode="TAB" override="true" action="retreatTab();"/>
        </aolSearchInput>
    </hbox>

    <aolSmartBox id="autoCompletePopupAllow">
        <aolNativeLabel id="natLabel" style="completeNatLabel" value="&prefs.autoSuggestLabel;" />
        <vbox id="vBox" style="completeVbox"/>
        <aolListBox id="smartboxList" style="completeSmartBox" view="grid" >
            <columns header="false" s:maxWidth="auto" >
                <aolColumn id="aolCol" style="completeAolCol" name="Column 1" s:flex="1" />
            </columns>
            <rows>
            </rows>
        </aolListBox>
    </aolSmartBox>

    <aolSmartBox id="autoCompletePopupDeny">
        <aolNativeLabel id="natLabel" style="completeNatLabel" value="&prefs.autoSuggestLabel;" />
        <vbox id="vBox" style="completeVbox"/>
        <aolListBox id="smartboxList" style="completeSmartBox" view="grid" >
            <columns header="false" s:maxWidth="auto" >
                <aolColumn id="aolCol" style="completeAolCol" name="Column 1" s:flex="1" />
            </columns>
            <rows>
            </rows>
        </aolListBox>
    </aolSmartBox>
    
    


  <vbox id="mainContentBox" s:flex="1" s:margin="5 5 0 5" >
    <tabBox style="tabBox1" s:flex="1">
        <vbox>
            <aolTabs style="aolTabs1" axis="y" id="tabBox" panelId="tabpanel1" on:attributeSet="setTabHistory();" s:flex="1">
                <aolTabScroller id="tabscroller" s:orient="vertical" s:flex="1" s:maxHeight="auto" enableMouseScrolling="true">
                    <aolVerticalTab id="tabGeneral" justify="left" prefSetAttribute="collapsed" selected="true" label="&prefs.tabGeneral_string;"/>
                    <aolVerticalTab id="tabEnhanced" justify="left" prefSetAttribute="collapsed" label="&prefs.tabEnhanced_string;"/>
                    <aolVerticalTab id="tabOffline" justify="left" prefSetAttribute="collapsed" label="&prefs.tabOffline_string;">
                        <binding objectSource="objPrefs" targetProperty="collapsed" path="imOfflineStoredImAware" method="oneWay" sourceTransformer="toolkit:not"/>
                    </aolVerticalTab>
                    <aolVerticalTab id="tabImLogging" justify="left" prefSetAttribute="collapsed" label="&prefs.tabIMLogging_string;"/>
                    <aolVerticalTab id="tabBuddyList" justify="left" prefSetAttribute="collapsed" label="&prefs.tabBuddyList_string;"/>
                    <aolVerticalTab id="tabAddressBook" justify="left" prefSetAttribute="collapsed" label="&prefs.tabAddressBook_string;"/>                    
                    <aolVerticalTab id="tabExpressions" justify="left" prefSetAttribute="collapsed" label="&prefs.tabExpressions_string;"/>
                    <aolVerticalTab id="tabSounds" justify="left" prefSetAttribute="collapsed" label="&prefs.tabSounds_string;"/>
                    <aolVerticalTab id="tabSignInOut" justify="left" prefSetAttribute="collapsed" label="&prefs.tabSignInOut_string;"/>
                    <aolVerticalTab id="tabNotification" justify="left" prefSetAttribute="collapsed" label="&prefs.tabNotification_string;"/>
                    <aolVerticalTab id="tabPrivacy" justify="left" prefSetAttribute="collapsed" label="&prefs.tabPrivacy_string;"/>        
                    <aolVerticalTab id="tabPlugins" justify="left" label="&prefs.tabPlugins_string;" on:select="setupPlugins();"/>
                    <aolVerticalTab id="tabAboutConfig" justify="left" label="&prefs.tabAboutConfig_string;" collapsed="true" disabled="true"/>
                    <spacer id="tabEndSpacer" s:flex="1"/>
                </aolTabScroller>
                <reaction event="keyPress" keyCode="UP" action="toolkit:SelectUp"/>
                <reaction event="keyPress" keyCode="DOWN" action="toolkit:SelectDown"/>
                <reaction event="keyPress" ctrl="true" shift="false" keyCode="TAB" override="true" action="advanceTab();"/>
                <reaction event="keyPress" ctrl="true" shift="true" keyCode="TAB" override="true" action="retreatTab();"/>

            </aolTabs>
        </vbox>

        <aolTabPanels id="tabpanel1" tabId="tabBox" style="tabpanelStyle" s:flex="1"
            firstControls="chkDisplayTimeStamp,chkAutoAcceptLVI,chkImOfflineAllowStorage,chkImLoggingIm,chkBuddylistUseRecentBuddies,abManageLink,btnExpressions,receiveIMSound,showAIMCOM,chkShowNotifications,allowWhichBuddies,btnGetPlugins">
            <hbox style="hbox2" s:flex="1">
                <vbox style="vbox1" accName="&pref.General_IM;" s:flex="1">
                    <separator style="prefSeparator"/>
                    <aolLabel style="aolLabel1" value="&pref.General_IM;" autoHighlight="on"/>
                    <vbox style="prefGroupStyle">
                        <aolCheckButton id="chkDisplayTimeStamp" label="&prefs.chkDisplayTimeStamp_string;" autoHighlight="on">
                            <binding objectSource="objPrefs" targetProperty="toggled" path="imShowTimeStamp" method="twoWay"/>
                        </aolCheckButton>
                        <aolCheckButton id="chkEnterMakesCR" label="&prefs.chkEnterMakesCR1_string;" s:textHighlight="url(#highlightBrush)">
                            <binding objectSource="objPrefs" targetProperty="toggled" path="imEnterSendsIMs" method="twoWay"/>
                        </aolCheckButton>
                        <aolCheckButton id="chkEnterMakesCR" label="&prefs.chkEnterMakesCR2_string;" s:textHighlight="url(#highlightBrush)">
                            <binding objectSource="objPrefs" targetProperty="toggled" path="imGroupIMs" method="twoWay"/>
                        </aolCheckButton>
                        <aolCheckButton id="chkEnterMakesCR" label="&prefs.chkEnterMakesCR3_string;" s:textHighlight="url(#highlightBrush)">
                            <binding objectSource="objPrefs" targetProperty="toggled" path="imRemoveModelOnClose" method="twoWay" sourceTransformer="toolkit:not" targetTransformer="toolkit:not"/>
                        </aolCheckButton>
                        <aolCheckButton id="chkEnterMakesCR" collapsed="true" label="&prefs.chkLogIMs_string;" s:textHighlight="url(#highlightBrush)">
                            <binding objectSource="objPrefs" targetProperty="toggled" path="loggingLogIMs" method="twoWay" />
                        </aolCheckButton>
                        <aolCheckButton id="chkFlashWindowOnNewMessage" label="&prefs.chkFlashWindowOnNewMessage_string;" autoHighlight="on">
                            <binding objectSource="objPrefs" targetProperty="toggled" path="imFlashWindowOnReceive" method="twoWay"/>
                        </aolCheckButton>
                        <aolCheckButton id="chkEnterMakesCR" label="&prefs.chkEnterMakesCR4_string;" s:textHighlight="url(#highlightBrush)">
                            <binding objectSource="objPrefs" targetProperty="toggled" path="imUseTab" method="twoWay"/>
                        </aolCheckButton>
                        <aolCheckButton id="chkAcceptUnknownIMs" label="&prefs.chkAcceptUnknownIMs_string;" autoHighlight="on">
                            <binding objectSource="objPrefs" targetProperty="toggled" path="imCatchUnknownIMs" method="twoWay" sourceTransformer="toolkit:not" targetTransformer="toolkit:not"/>
                        </aolCheckButton>

                    </vbox>

                    <separator style="prefSeparator"/>
                    <aolLabel style="aolLabel1" value="&pref.Buddy_Chat;" autoHighlight="on"/>
                    <vbox style="prefGroupStyle" accName="&pref.Buddy_Chat;">
                        <aolCheckButton id="chkFlashWindowOnNewMessage" label="&prefs.chkChatFlashWindowOnNewMessage_string;" autoHighlight="on">
                            <binding objectSource="objPrefs" targetProperty="toggled" path="chatFlashWindowOnReceive" method="twoWay"/>
                        </aolCheckButton>
                        <aolCheckButton id="chkShowAnouncements" label="&prefs.chkShowAnouncements_string;" autoHighlight="on">
                            <binding objectSource="objPrefs" targetProperty="toggled" path="chatShowBuddyEnterLeave" method="twoWay"/>
                        </aolCheckButton>
                        <aolCheckButton id="chkBlockBuddyChatInvites" label="&prefs.chkBlockBuddyChatInvites_string;" autoHighlight="on">
                            <binding objectSource="objPrefs" targetProperty="toggled" path="imBlockBuddyChatInvitationsBuddies" method="twoWay" sourceTransformer="numToBool(scene.objPrefs.imBlockBuddyChatInvitationsBuddies)" targetTransformer="boolToNum('chkBlockBuddyChatInvites')" />
                        </aolCheckButton>
                    
                    </vbox>

                    <separator style="prefSeparator"/>
                    <aolLabel value="&pref.Default_Font;" style="aolLabel1" autoHighlight="on"/>
                    <vbox s:hAlign="stretch" accName="&pref.Default_Font;" accDescription="&pref.Default_Font_accDescription;" s:flex="1">
                        <separator style="prefSeparator"/>
                        <hbox s:maxWidth="auto">
                            <imAppFontToolbar s:flex="1" id="defaultCompose" on:command="setDirty();" fontSettingsOnly="true"/>
                            <imAppEditor id="sampleText" wantTab="false" href="box://imApp/content/prefs/messageTemplate.html" fontbar="defaultCompose" collapsed="true" s:height="40" s:width="70">
                                <reaction event="attributeSet" attributeName="editorInitialized" action="onEditorInitialized();" />
                            </imAppEditor>
                        </hbox>
                        <separator style="prefSeparator" />
                        <vbox id="textFormatBackground" style="prefGroupStyle" s:flex="1" s:hAlign="stretch" s:vAlign="stretch" s:maxHeight="auto" s:padding="5">
                            <prefFontSample id="textFormatDisplay" accRole="staticText" label="&pref.Default_Font_Text;" accName="&pref.Default_Font_Text;">
                                <binding elementSource="defaultCompose" targetProperty="computedFontSize"   path="fontSizeIndex"   method="oneWay" sourceTransformer="convertSize(false);" />
                                <binding elementSource="defaultCompose" targetProperty="computedFontSize"   path="fontSize"        method="oneWay" sourceTransformer="convertSize(true);" />
                                <binding elementSource="defaultCompose" targetProperty="fontName"           path="fontName"        method="oneWay" />
                                <binding elementSource="defaultCompose" targetProperty="bold"               path="bold"            method="oneWay" />
                                <binding elementSource="defaultCompose" targetProperty="italic"             path="italic"          method="oneWay" />
                                <binding elementSource="defaultCompose" targetProperty="underline"          path="underline"       method="oneWay" />
                                
                                <reaction event="attributeSet" attributeName="bkColorPassthrough" action="setHighlightColor();"/>
                                <reaction event="keyPress" ctrl="true" keyCode="&editor.keyCode.Font;" action="boxFGColorToEditor('sampleText', 'defaultCompose'); scene.getBoxById('sampleText').openFontDialog();"/>
                            </prefFontSample>

                        </vbox>
                    </vbox>
                </vbox>
            </hbox>

            <vbox style="vbox2" s:flex="1" >
                <separator style="prefSeparator"/>
                <aolLabel style="aolLabel1" value="&pref.Enhanced_IM;" autoHighlight="on"/>
                <vbox style="prefGroupStyle" accName="&pref.Enhanced_IM;">
                
                    <aolCheckButton id="chkAutoAcceptLVI" label="&prefs.chkAutoAcceptLVI_string;" autoHighlight="on">
                        <binding objectSource="objPrefs" targetProperty="toggled" path="eimAutoAcceptLVI" method="twoWay"/>
                    </aolCheckButton>
                    <aolCheckButton id="chkAutoAcceptTalk" label="&prefs.chkAutoAcceptTalk_string;" autoHighlight="on">
                        <binding objectSource="objPrefs" targetProperty="toggled" path="eimAutoAcceptTalk" method="twoWay"/>
                    </aolCheckButton>
                    <aolCheckButton id="chkAutoAcceptDIM" label="&prefs.chkAutoAcceptDIM_string;" autoHighlight="on">
                        <binding objectSource="objPrefs" targetProperty="toggled" path="eimAutoAcceptDIM" method="twoWay"/>
	                    <binding objectSource="objPrefs" targetProperty="collapsed" path="imDirectPermissionsBuddies" method="oneWay"/>
                    </aolCheckButton>
                    <aolCheckButton id="chkAutoAcceptFileTransfer" label="&prefs.chkAutoAcceptFileTransfer_string;" autoHighlight="on">
                        <binding objectSource="objPrefs" targetProperty="toggled" path="eimAutoAcceptFileTransfer" method="twoWay"/>
                    </aolCheckButton>
                </vbox>
                

                <separator style="prefSeparator"/>
                <aolLabel style="aolLabel1" value="&pref.Video;" autoHighlight="on"/>
                
                <hbox s:vAlign="center">
                    <aolLabel value="&prefs.label.useThisCamera;"/>

                    <aolMenuButton id="videoInputDevicesBox" label="&prefs.noCameraName;" s:width="160*" popup="_child" cameraName="">
                        <binding objectSource="objPrefs" targetProperty="cameraName" path="eimCameraName" method="twoWay"/>
                        <reaction event="keyPress" keyCode="SPACE" action="onPopMenuActions();"/> 
                        <menuPopup id="videoMenuPopup" popupAlign="cursor_center_top" on:popping="onPoppingVideoInputDevices();" on:shutting=";" s:width="168*" style="popupWithoutTransition">
                            <aolMenuItem label="&prefs.noCameraName;" cameraName="" on:command="setLabelToVideoInputDevicesBox();" s:width="160*"/>
                        </menuPopup>
                    </aolMenuButton>
                </hbox>

               <separator style="prefSeparator"/>
                <hbox>
                    <aolLabel style="aolLabel1" value="&pref.File_Transfer;" autoHighlight="on"/>
                </hbox>
                <aolLabel id="lblReceiveFolder" value="&pref.Directory_to_put_files_I_receive;" autoHighlight="on"/>
                <separator style="prefSeparator"/>
                <hbox accName="&pref.File_Transfer; &pref.Directory_to_put_files_I_receive;">
                    <separator style="prefSeparator"/>
                    <hbox s:flex="1" s:maxWidth="auto">
                        <aolReadonlyText id="editReceiveFolderName" s:flex="1" hscrollable="true">
                            <binding objectSource="objPrefs" sourceTransformer="stripBackSlash();" targetProperty="value" path="fileXferFoldersDownloads" method="twoWay"/>
                        </aolReadonlyText>
                    </hbox>
                    <aolButton id="fileBrowse" label="&prefs.fileBrowse_string;" on:command="browseForFolder( 'editReceiveFolderName' );"/>
                </hbox>                
    
                <separator style="prefSeparator"/>
                <separator style="prefSeparator"/> 
                <hbox>
                    <aolLabel style="aolLabel1" value="&pref.Mobile_Settings;" autoHighlight="on">
                        <binding objectSource="bl" targetProperty="collapsed" path="showForwardToMobile" method="oneWay" sourceTransformer="toolkit:not"/>
                    </aolLabel>
                </hbox>
                <vbox style="prefGroupStyle" s:maxWidth="auto" accName="&pref.Manage_Mobile_Settings;">
                    <separator s:height="8"/>
                    <aolTextButton id="btnMobileSettings" label="&pref.Manage_Mobile_Settings;" on:command="onForwardToMobile();">
                        <binding objectSource="bl" targetProperty="collapsed" path="showForwardToMobile" method="oneWay" sourceTransformer="toolkit:not"/>
                    </aolTextButton>
                </vbox>
            </vbox>

            <hbox style="hbox2" s:flex="1" s:hAlign="stretch">
                <vbox s:flex="1" style="prefGroupStyle" s:hAlign="stretch">
                    <separator style="prefSeparator"/>
                    <vbox style="prefGroupStyle" accName="&pref.Offline_IM;">
                        <aolLabel style="aolLabel1" value="&prefs.Offline_IMs;" autoHighlight="on"/>
                        <vbox style="prefGroupStyle" accName="&prefs.OfflineIMs;">
                            <aolCheckButton id="chkImOfflineAllowStorage" label="&prefs.chkImOfflineAllowStorage_string;" autoHighlight="on">
                                <binding objectSource="objPrefs" targetProperty="toggled" path="imOfflineAllowStorage" method="twoWay"/>
                            </aolCheckButton>
                            <aolCheckButton id="chkImOfflineSend" label="&prefs.chkImOfflineSend_string;" autoHighlight="on">
                                <binding objectSource="objPrefs" targetProperty="toggled" path="imOfflineSend" method="twoWay"/>
                            </aolCheckButton>
                            <hbox>
                                <separator style="prefSeparator"/>
                                <aolCheckButton id="chkImOfflineAskBeforeSending" label="&prefs.chkImOfflineAskBeforeSending_string;" autoHighlight="on">
                                    <binding objectSource="objPrefs" targetProperty="toggled" path="imOfflineAskBeforeSending" method="twoWay"/>
                                    <binding elementSource="chkImOfflineSend" targetProperty="disabled" path="toggled" method="twoWay" sourceTransformer="toolkit:not" targetTransformer="toolkit:not"/>
                                </aolCheckButton>
                            </hbox>
                         </vbox>
                    </vbox>
                </vbox>
            </hbox>

            <hbox style="hbox2" s:flex="1" s:hAlign="stretch">
                <vbox s:flex="1" style="prefGroupStyle" s:hAlign="stretch">
                    <separator style="prefSeparator"/>
                    <vbox style="prefGroupStyle" accName="&pref.IM_Logging;" s:hAlign="stretch" id="vboxLogging">
                        <aolLabel style="aolLabel1" value="&pref.IM_Logging;" autoHighlight="on"/>
                        <vbox style="prefGroupStyle" accName="&prefs.Logging;">
                            <aolCheckButton id="chkImLoggingIm" label="&prefs.chkImLoggingIm_string;" autoHighlight="on">
                                <binding objectSource="objPrefs" targetProperty="toggled" path="imLoggingLogIm" method="twoWay"/>
                            </aolCheckButton>
                            <aolCheckButton id="chkImLoggingChat" label="&prefs.chkImLoggingChat_string;" autoHighlight="on">
                                <binding objectSource="objPrefs" targetProperty="toggled" path="imLoggingLogChat" method="twoWay"/>
                            </aolCheckButton>

                         </vbox>
                         <separator style="prefSeparator"/>
                         <hbox style="hbox3" s:maxWidth="auto">
                             <aolLabel value="&prefs.editImLoggingPath_string;" autoHighlight="on"/>
                             <aolReadonlyText id="editImLoggingPath" s:flex="1" hscrollable="true">
                                 <binding objectSource="objPrefs" sourceTransformer="stripBackSlash();" targetProperty="value" path="imLoggingLogPath" method="twoWay"/>
                             </aolReadonlyText>
                             <aolButton id="btnLoggingBrowse" label="&prefs.fileBrowse_string;" on:command="browseForFolder( 'editImLoggingPath' );"/>
                         </hbox>
                         <separator style="prefSeparator"/>
                         <hbox>
                             <aolButton id="btnLoggingClear" label="&prefs.loggingDelete_string;" on:command="clearLoggingData();"/>
                         </hbox>
                    </vbox>
                </vbox>
            </hbox>


            <vbox accName="BL1" s:flex="1" style="prefGroupStyle">
                <separator style="prefSeparator"/>
                <vbox style="prefGroupStyle" accName="&pref.General_Buddy_List;">
                    <aolLabel style="aolLabel1" value="&pref.General_Buddy_List;" autoHighlight="on"/>
                
                    <aolCheckButton id="chkBuddylistUseRecentBuddies" label="&prefs.chkBuddylistUseRecentBuddies_string;" autoHighlight="on">
                        <binding objectSource="objPrefs" targetProperty="toggled" path="buddylistHideRecentBuddies"
                                sourceTransformer="toolkit:not" targetTransformer="toolkit:not" method="twoWay"/>
                    </aolCheckButton>
                </vbox>
                <separator style="prefSeparator"/>
                <hbox>
                    <aolLabel style="aolLabel1" value="&pref.Buddy_List_Display;" autoHighlight="on"/>
                </hbox>
                <vbox style="prefGroupStyle" accName="&pref.Buddy_List_Display;">
                    
                    <hbox style="hbox3" accRole="ignore">
                        <aolCheckButton id="chkDimIdleBuddies" label="&prefs.chkDimIdleBuddies_string;" autoHighlight="on">
                            <binding objectSource="objPrefs" targetProperty="toggled" path="buddylistShowIdleBuddiesTime" method="twoWay"/>
                        </aolCheckButton>
                        <aolInput style="aolInput1" id="editIdleTime" tooltip="&prefs.btnIdleTime_tip;" value="" filter="toolkit:numeric"
                        on:modified="pretestNumericRange(10);" maxLength="10" on:blur="validateNumericRange(10, 2000000000);"
                        accName="&pref.minutes;" >
                            <binding elementSource="_prevSibling" targetProperty="disabled" path="toggled"
                                sourceTransformer="toolkit:not" targetTransformer="toolkit:not" method="twoWay"/>
                            <binding objectSource="objPrefs" targetProperty="value" path="buddylistDimIdleBuddiesTime" method="twoWay"/>
                        </aolInput>
                        <aolLabel id="lblMinutes" value="&pref.minutes;" autoHighlight="on"/>
                    </hbox>
                    <aolCheckButton id="chkBuddylistFlashOnBuddyArriveDepart" label="&prefs.chkBuddylistFlashOnBuddyArriveDepart_string;" autoHighlight="on">
                        <binding objectSource="objPrefs" targetProperty="toggled" path="buddylistFlashOnBuddyArriveDepart" method="twoWay"/>
                    </aolCheckButton>
                    <aolCheckButton id="chkBuddylistShowMiniIcons" label="&prefs.chkBuddylistShowMiniIcons_string;" autoHighlight="on">
                        <binding objectSource="objPrefs" targetProperty="toggled" path="buddylistShowSmallIcons" method="twoWay"/>
                    </aolCheckButton>
                    <hbox collapsed="&whatsNew.hide;" s:vAlign="center">
                        <aolCheckButton id="chkBuddylistShowWhatsNewButton" label="&prefs.chkBuddylistShowWhatsNewButton_string;" autoHighlight="on">
                            <binding objectSource="objPrefs" targetProperty="toggled" path="buddylistHideWhatsNewButton"
                            sourceTransformer="toolkit:not" targetTransformer="toolkit:not" method="twoWay"/>
                            <binding objectSource="bl.objModel" targetProperty="collapsed" path="blockBuddyFeed" method="oneWay"/>
                        </aolCheckButton>
                        <aolTextButton label="&prefs.whatsNewWhatsThis.label;" on:command="launchUrl(getString('prefs.whatsNewWhatsThis.help.url'))">
                            <binding objectSource="bl.objModel" targetProperty="collapsed" path="blockBuddyFeed" method="oneWay"/>
                        </aolTextButton>
                    </hbox>
                    <separator style="prefSeparator"/>
                    <hbox>
                        <aolLabel style="aolLabel1" value="&pref.Away_Messages_Colon;" autoHighlight="on"/>
                    </hbox>
                    <vbox style="prefGroupStyle" s:maxWidth="auto" accName="&pref.Manage_Away_Messages;">
                        <separator s:height="8"/>
                        <aolTextButton id="btnForQuickAway" label="&pref.Manage_Away_Messages;" on:command="callQuickAway();"/>
                    </vbox>
                    <separator style="prefSeparator"/>
                    <hbox>
                        <binding objectSource="bl" targetProperty="collapsed" path="canLinkAccounts" method="oneWay" sourceTransformer="toolkit:not" targetTransformer="toolkit:not" />
                        <aolLabel style="aolLabel1" value="&pref.Linked_Screen_Names_Colon;" autoHighlight="on"/>
                    </hbox>
                    <vbox style="prefGroupStyle" s:maxWidth="auto" accName="&pref.Manage_Linked_Screen_Names;">
                        <binding objectSource="bl" targetProperty="collapsed" path="canLinkAccounts" method="oneWay" sourceTransformer="toolkit:not" targetTransformer="toolkit:not" />
                        <separator s:height="8"/>
                        <aolTextButton id="btnLinkedScreenName" label="&pref.Manage_Linked_Screen_Names;" on:command="onLinkedAccountMessageSetup();"/>
                    </vbox>
                    
                </vbox>
            </vbox>
            
            <vbox style="vbox3" s:flex="1" accName="&pref.addressBook.tab;" >
 				<separator style="prefSeparator"/>
 				<aolLabel style="aolLabel1" value="&plaxoStrings.settings.header;" autoHighlight="on"/>
 				<aolMultilineStatic style="aolMultilineStatic1" id="abManageText" value="&plaxoStrings.settings.text;" autoHighlight="on"/>

				<spacer style="spacer1" />
				<aolLabel style="aolLabel1" value="&plaxoStrings.settings.header2;" autoHighlight="on"/>
 				<aolMultilineStatic style="aolMultilineStatic1" id="abManageText" value="&plaxoStrings.settings.text2;" autoHighlight="on"/>

				<customPlaxoSmallBullet style="plaxoSmallBullet1" text="&plaxoStrings.settings.bullet1;" />
				<customPlaxoSmallBullet style="plaxoSmallBullet1" text="&plaxoStrings.settings.bullet2;" />
				<customPlaxoSmallBullet style="plaxoSmallBullet1" text="&plaxoStrings.settings.bullet3;" />
				
				<spacer style="spacer2" />
 				<plaxoLink style="plaxoLink1" id="abManageLink" label="&plaxoStrings.settings.link;" on:command="onManageAccount()" autoHighlight="on"/>
 				
 				<image style="image1" src="box://imApp/theme/images/plaxo/uab.png" />
            </vbox>
              
            <vbox s:flex="1" style="prefGroupStyle">
                <separator style="prefSeparator"/>
                <aolLabel style="aolLabel1" value="&pref.MyExpressions;" autoHighlight="on"/>
                <vbox style="vbox5" accName="&pref.MyExpressions;" accDescription="&pref.myBuddyIcon; &pref.myBuddyIcon2;">
                    <separator style="prefSeparator"/>
                    <hbox s:flex="1">
                        <vbox style="vbox6" s:flex="1">
                            <aolLabel style="aolLabel2" value="&pref.myBuddyIcon;" autoHighlight="on"/>
                            <aolLabel style="aolLabel2" value="&pref.myBuddyIcon2;" autoHighlight="on"/>
                            <separator s:flex="1"/>
                            <aolButton id="btnExpressions" label="&pref.expressionsButton;" on:command="onExpressions();"/>
                        </vbox>
                        <vbox style="vbox7">
                            <image style="image2" id="myIcon" />
                            <hbox>
                                <aolTextButton label="&pref.browseForIcon;" collapsed="&prefs.hideCustomIconUpload;" on:command="onBrowseForIcon();"/>
                                <aolTextButton label="&pref.clearMyBuddyIcon;" on:command="onClearIcon();"/>
                            </hbox>
                        </vbox>
                    </hbox>
                    <aolCheckButton id="chkDisplayMyExpressions" label="&prefs.chkDisplayMyExpressions_string;" autoHighlight="on">
                        <binding objectSource="objPrefs" targetProperty="toggled" path="expressionsShowMyExpressions" 
                        sourceTransformer="toolkit:not" targetTransformer="toolkit:not" method="twoWay"/>
                    </aolCheckButton>
                </vbox>
                <separator style="prefSeparator"/>
                <separator style="prefSeparator"/>
                <aolLabel style="aolLabel1" value="&pref.Expressions;" autoHighlight="on"/>
                <separator style="prefSeparator"/>
                <vbox style="prefGroupStyle" accName="&pref.Expressions;">
                    <separator style="prefSeparator"/>
                    <aolLabel value="&pref.Buddy_Icons_for_My_IM_Window;" autoHighlight="on"/>
                    <radioBox id="expressionBuddyIconSetting" accName="&pref.Buddy_Icons_for_My_IM_Window;" s:orient="vertical" style="prefGroupStyle">
                        <binding objectSource="objPrefs" targetProperty="value" path="expressionsShowIcons" method="twoWay"/>
                        <aolRadioButton label="&pref.Don_t_display_Buddy_Icons;" value="0" autoHighlight="on"/>
                        <aolRadioButton label="&pref.Display_only_official_Buddy_Icons;" value="1" autoHighlight="on"/>
                        <aolRadioButton label="&pref.Display_official_and_BL_Buddy_Icons;" value="2" autoHighlight="on"/>
                        <aolRadioButton label="&pref.Display_all_Buddy_Icons;" value="3" autoHighlight="on"/>
                    </radioBox>
                    <separator style="prefSeparator"/>
                    <vbox style="prefGroupStyle">
                        <aolCheckButton id="chkExpressionsShowSuperBuddies" label="&pref.chkExpressionsShowSuperBuddies_string;" autoHighlight="on">
                            <binding objectSource="objPrefs" targetProperty="toggled" path="expressionsShowSuperBuddies" method="twoWay"/>
                            <binding objectSource="objPrefs" targetProperty="disabled" path="expressionsShowIcons" method="oneWay" sourceTransformer="onIconsDisabled();"/>
                        </aolCheckButton>
                    </vbox>
                
                    <vbox style="prefGroupStyle">
                        <aolCheckButton id="chkDisplayBuddyWallpaper" label="&prefs.chkDisplayBuddyWallpaper_string;" autoHighlight="on">
                            <binding objectSource="objPrefs" targetProperty="toggled" path="expressionsShowWallpaper" method="twoWay"/>
                        </aolCheckButton>
                    </vbox>    
                    <vbox style="prefGroupStyle">
                        <aolCheckButton id="chkDisplaySmileyShowers" toggled="true" label="&prefs.chkDisplaySmileyShowers_string;" autoHighlight="on">
                            <binding objectSource="objPrefs" targetProperty="toggled" path="expressionsShowSmileyShowers" method="twoWay"/>
                        </aolCheckButton>
                    </vbox>
                </vbox>
            </vbox>
            <hbox style="hbox2" s:flex="1">
                <vbox id="soundPrefsScrollBox" style="vbox1" s:flex="1">
                    <separator style="prefSeparator"/>
                    <aolLabel style="aolLabel1" value="&pref.Sounds;" autoHighlight="on"/>
                    <separator style="prefSeparator"/>
                    <vbox s:maxWidth="auto" accName="&pref.Sounds;">
                        <aolTextButton id="btnScrollToChatSounds" label="&pref.Chat_Sounds;" on:command="soundScrollTo('IMChatSounds');"/>
                        <aolTextButton id="btnScrollToBuddyListSounds" label="&pref.Buddy_List_Sounds;" on:command="soundScrollTo('BLSounds');"/>
                        <aolTextButton id="btnScrollToTalkSounds" label="&pref.Talk_Sounds;" on:command="soundScrollTo('TalkSounds');"/>
                        <separator style="prefSeparator"/>
                        <aolLabel id="IMChatSounds" style="aolLabel1" value="&pref.IM__Chat_Sounds;" autoHighlight="on"/>
                        <vbox s:maxWidth="auto" accName="&pref.Chat_SoundsAccName;">
                            <separator style="prefSeparator"/>
                            <aolLabel value="&pref.When_I_receive_an_IM;" autoHighlight="on"/>
                            <vbox s:maxWidth="auto" accName="&pref.When_I_receive_an_IM;">
                                <radioBox id="receiveIMSound" s:orient="vertical" style="prefGroupStyle">
                                    <binding objectSource="objPrefs" targetProperty="value" path="soundReceiveIM" method="twoWay"/>
                                    <aolRadioButton id="rbDonotPlayIME" value="3" label="&prefs.rbDonotPlayIME_string;" autoHighlight="on"/>
                                    <aolRadioButton id="rbPlayIMExpression" value="2" label="&prefs.rbPlayIMExpression_string;" autoHighlight="on"/>
                                    <aolRadioButton id="rbPlayIMSelected" value="1" label="&prefs.rbPlayIMSelected_string;" autoHighlight="on"/>
                                </radioBox>
                                <hbox s:maxWidth="auto">
                                    <separator style="prefSeparator"/>
                                    <aolReadonlyText accName="&pref.sound.readOnlyFieldName;" id="imSoundFile" on:blur="validateEmptyFileName('imrcv.wav');" s:flex="1" hscrollable="true">
                                        <binding objectSource="objPrefs" targetProperty="value" path="soundReceiveIMFile" method="twoWay"/>
                                    </aolReadonlyText>
                                    <aolButton label="&pref.Browse;" on:command="browseForSound( 'imSoundFile' );"/>
                                    <aolButton label="&pref.Preview;" on:command="previewSound( 'imSoundFile' );"/>
                                </hbox>
                            </vbox>
                            <separator style="prefSeparator"/>
                            <separator style="prefSeparator"/>
                            <aolLabel value="&pref.When_I_send_an_IM;" autoHighlight="on"/>
                            <vbox s:maxWidth="auto" accName="&pref.When_I_send_an_IM;">
                                <radioBox id="sendIMSound" s:orient="vertical" style="prefGroupStyle" >
                                    <binding objectSource="objPrefs" targetProperty="value" path="soundSendIM" method="twoWay"/>
                                    <aolRadioButton id="rbDonotPlayIMSend" value="3" label="&prefs.rbDonotPlayIMSend_string;" autoHighlight="on"/>
                                    <aolRadioButton id="rbPlayIMSendExpression" value="2" label="&prefs.rbPlayIMSendExpression_string;" autoHighlight="on"/>
                                    <aolRadioButton id="rbPlayIMSendSelected" value="1" label="&prefs.rbPlayIMSendSelected_string;" autoHighlight="on"/>
                                </radioBox>
                                <hbox s:maxWidth="auto">
                                    <separator style="prefSeparator"/>
                                    <aolReadonlyText accName="&pref.sound.readOnlyFieldName;" s:flex="1" id="imSendSoundFile" on:blur="validateEmptyFileName('imsend.wav');" hscrollable="true">
                                        <binding objectSource="objPrefs" targetProperty="value" path="soundSendIMFile" method="twoWay"/>
                                    </aolReadonlyText>
                                    <aolButton label="&pref.Browse;" on:command="browseForSound( 'imSendSoundFile' );"/>
                                    <aolButton label="&pref.Preview;" on:command="previewSound( 'imSendSoundFile' );"/>
                                </hbox>
                            </vbox>
                        </vbox>
                   
                        <separator style="prefSeparator"/>
                        <aolCheckButton id="chkPlayOnFirstSoundOnly" label="&prefs.chkPlayOnFirstSoundOnly1_string;" autoHighlight="on">
                            <binding objectSource="objPrefs" targetProperty="toggled" path="soundImPlayFirstOnly" method="twoWay"/>
                        </aolCheckButton>
       
                        <separator style="prefSeparator"/>
                        <separator style="prefSeparator"/>
                        <aolLabel id="BLSounds" style="aolLabel1" value="&pref.Buddy_List_Sounds;" autoHighlight="on"/>
                        <separator style="prefSeparator"/>
                        <vbox s:maxWidth="auto" accName="&pref.Buddy_List_Sounds;">
                            <aolLabel value="&pref.When_buddies_Sign_In;"/>
                            <vbox s:maxWidth="auto" accName="&pref.When_buddies_Sign_In;">
                                <radioBox id="buddySignInSound" s:orient="vertical" style="prefGroupStyle" >
                                    <binding objectSource="objPrefs" targetProperty="value" path="soundBuddySignIn" method="twoWay"/>
                                    <aolRadioButton id="rbDonotPlayBLOnE" value="3" label="&prefs.rbDonotPlayBLOnE_string;" autoHighlight="on"/>
                                    <aolRadioButton id="rbPlayBLOnExpression" value="2" label="&prefs.rbPlayBLOnExpression_string;" autoHighlight="on"/>
                                    <aolRadioButton id="rbPlayBLOnSelected" value="1" label="&prefs.rbPlayBLOnSelected_string;" autoHighlight="on"/>
                                </radioBox>
                                <hbox s:maxWidth="auto">
                                    <separator style="prefSeparator"/>
                                    <aolReadonlyText accName="&pref.sound.readOnlyFieldName;" s:flex="1" id="signOnSoundFile" on:blur="validateEmptyFileName('dooropen.wav');" hscrollable="true">
                                        <binding objectSource="objPrefs" targetProperty="value" path="soundBuddySignInFile" method="twoWay"/>
                                    </aolReadonlyText>
                                    <aolButton label="&pref.Browse;" on:command="browseForSound( 'signOnSoundFile' );"/>
                                    <aolButton label="&pref.Preview;" on:command="previewSound( 'signOnSoundFile' );"/>
                                </hbox>
                            </vbox>
                            <separator style="prefSeparator"/>
                            <separator style="prefSeparator"/>
                            <aolLabel value="&pref.When_buddies_Sign_Out;"/>
                            <vbox s:maxWidth="auto" accName="&pref.When_buddies_Sign_Out;">
                                <radioBox id="buddySignOutSound" s:orient="vertical" style="prefGroupStyle" >
                                    <binding objectSource="objPrefs" targetProperty="value" path="soundBuddySignOut" method="twoWay"/>
                                    <aolRadioButton id="rbDonotPlayBLOutE" value="3" label="&prefs.rbDonotPlayBLOutE_string;" autoHighlight="on"/>
                                    <aolRadioButton id="rbPlayBLOutExpression" value="2" label="&prefs.rbPlayBLOutExpression_string;" autoHighlight="on"/>
                                    <aolRadioButton id="rbPlayBLOutSelected" value="1" label="&prefs.rbPlayBLOutSelected_string;" autoHighlight="on"/>
                                </radioBox>
                                <hbox s:maxWidth="auto">
                                    <separator style="prefSeparator"/>
                                    <aolReadonlyText accName="&pref.sound.readOnlyFieldName;" s:flex="1" id="signOutSoundFile" on:blur="validateEmptyFileName('doorslam.wav');" hscrollable="true">
                                        <binding objectSource="objPrefs" targetProperty="value" path="soundBuddySignOutFile" method="twoWay"/>
                                    </aolReadonlyText>
                                    <aolButton label="&pref.Browse;" on:command="browseForSound( 'signOutSoundFile' );"/>
                                    <aolButton label="&pref.Preview;" on:command="previewSound( 'signOutSoundFile' );"/>
                                </hbox>
                            </vbox>
                        </vbox>
                        <separator style="prefSeparator"/>
                        <separator style="prefSeparator"/>
                        <aolLabel id="TalkSounds" style="aolLabel1" value="&pref.Talk_Sounds;" autoHighlight="on"/>
                        <separator style="prefSeparator"/>
                        <vbox s:maxWidth="auto" accName="&pref.Talk_Sounds;">
                            <aolLabel value="&pref.When_starting_or_receiving_a_Talk_request;"/>
                            <vbox s:maxWidth="auto" accName="&pref.When_starting_or_receiving_a_Talk_request;">
                                <radioBox id="talkStartSound" s:orient="vertical" style="prefGroupStyle" >
                                    <binding objectSource="objPrefs" targetProperty="value" path="soundTalkStart" method="twoWay"/>
                                    <aolRadioButton id="rbDonotPlayTalkStart" value="3" label="&prefs.rbDonotPlayTalkStart_string;" autoHighlight="on"/>
                                    <aolRadioButton id="rbPlayTalkStart" value="1" label="&prefs.rbPlayTalkStart_string;" autoHighlight="on"/>
                                </radioBox>
                                <hbox s:maxWidth="auto">
                                    <separator style="prefSeparator"/>
                                    <aolReadonlyText accName="&pref.sound.readOnlyFieldName;" s:flex="1" id="talkStartSoundFile" on:blur="validateEmptyFileName('talkbeg.wav');" hscrollable="true">
                                        <binding objectSource="objPrefs" targetProperty="value" path="soundTalkStartFile" method="twoWay"/>
                                    </aolReadonlyText>
                                    <aolButton label="&pref.Browse;" on:command="browseForSound( 'talkStartSoundFile' );"/>
                                    <aolButton label="&pref.Preview;" on:command="previewSound( 'talkStartSoundFile' );"/>
                                </hbox>
                            </vbox>
                            <separator style="prefSeparator"/>
                            <separator style="prefSeparator"/>
                            <aolLabel value="&pref.When_disconnecting_from_a_Talk_session;"/>
                            <vbox s:maxWidth="auto" accName="&pref.When_disconnecting_from_a_Talk_session;">
                                <radioBox id="talkEndSound" s:orient="vertical" style="prefGroupStyle" >
                                    <binding objectSource="objPrefs" targetProperty="value" path="soundTalkEnd" method="twoWay"/>
                                    <aolRadioButton id="rbDonotPlayTalkEnd" value="3" label="&prefs.rbDonotPlayTalkEnd_string;" autoHighlight="on"/>
                                    <aolRadioButton id="rbPlayTalkEnd" value="1" label="&prefs.rbPlayTalkEnd_string;" autoHighlight="on"/>
                                </radioBox>
                                <hbox s:maxWidth="auto">
                                    <separator style="prefSeparator"/>
                                    <aolReadonlyText accName="&pref.sound.readOnlyFieldName;" s:flex="1" id="talkEndSoundFile" on:blur="validateEmptyFileName('talkend.wav');" hscrollable="true">
                                        <binding objectSource="objPrefs" targetProperty="value" path="soundTalkEndFile" method="twoWay"/>
                                    </aolReadonlyText>
                                    <aolButton label="&pref.Browse;" on:command="browseForSound( 'talkEndSoundFile' );"/>
                                    <aolButton label="&pref.Preview;" on:command="previewSound( 'talkEndSoundFile' );"/>
                                </hbox>
                            </vbox>
                        </vbox>
                        <aolCheckButton label="&prefs.disableSoundsInEIM;" autoHighlight="on">
                            <binding objectSource="objPrefs" targetProperty="toggled" path="soundDisableInEIM" method="twoWay"/>
                        </aolCheckButton>
                        
                    </vbox>
                    <reaction event="mouseWheel" detail="1" action="toolkit:MouseWheelScrollUp"/>
                    <reaction event="mouseWheel" detail="-1" action="toolkit:MouseWheelScrollDown"/>
                </vbox>
            </hbox>
            <vbox s:flex="1" style="prefGroupStyle">
                <separator style="prefSeparator"/>
                <aolLabel style="aolLabel1" value="&pref.Sign_In_Sign_Out;" autoHighlight="on"/>
                <vbox s:maxWidth="auto" accName="&pref.Sign_In_Sign_Out;">
                    <vbox id="aimTodayPrefs">
                    <binding objectSource="bl" targetProperty="collapsed" path="hideAimTodaySettings" method="oneWay"/>
                        <separator style="prefSeparator"/>
                        <vbox style="prefGroupStyle">
                            <aolLabel value="&prefs.lblShowAimToday_string;" autoHighlight="on"/>
                            <radioBox id="showAIMCOM" accName="&prefs.lblShowAimToday_string;" style="radioBox1" s:orient="&prefs.privacy.buttonOrientation;" >
                                <hbox s:flex="1">
                                    <vbox style="prefGroupStyle">
                                        <aolRadioButton id="aimtodayRadio" value="AIM" label="&prefs.rbAimToday_string;" autoHighlight="on" on:command="setDirty();" >
                                        <binding objectSource="bl" targetProperty="collapsed" path="hideAIMToday" method="oneWay"/>
                                        </aolRadioButton>
                                        <aolRadioButton id="aolRadio" value="AOL" label="&prefs.rbAOLCOM_string;" autoHighlight="on" on:command="setDirty();">
                                        <binding objectSource="bl" targetProperty="collapsed" path="hideAOLcom" method="oneWay"/>
                                        </aolRadioButton>
                                        <aolRadioButton value="none" label="&prefs.rbNoHomePage_string;" autoHighlight="on" on:command="setDirty();"/>
                                    </vbox>
                                </hbox>
                            </radioBox>
                        </vbox>
                    </vbox>

                    <separator style="prefSeparator" />
                    <vbox style="prefGroupStyle">
                        <aolCheckButton id="chkAutoStart" label="&prefs.chkAutoStart_string;" autoHighlight="on">
                            <binding objectSource="objPrefs" targetProperty="toggled" path="autoStartAim" method="twoWay" sourceTransformer="numToBool(scene.objPrefs.autoStartAim)" targetTransformer="boolToNum('chkAutoStart')" />
                        </aolCheckButton>
                        <hbox>
                            <separator style="prefSeparator"/>
                            <aolCheckButton id="chkAutoStartHideBl" label="&prefs.chkAutoStartHideBl_string;" autoHighlight="on">
                                <binding objectSource="objPrefs" targetProperty="toggled" path="autoStartHideBl" method="twoWay" sourceTransformer="numToBool(scene.objPrefs.autoStartHideBl)" targetTransformer="boolToNum('chkAutoStartHideBl')"/>
                                <binding elementSource="chkAutoStart" targetProperty="disabled" path="toggled" method="twoWay" sourceTransformer="toolkit:not" targetTransformer="toolkit:not"/>
                            </aolCheckButton>
                        </hbox>                        
                        <aolCheckButton id="chkSignOut" label="&prefs.chkSignOut_string;" autoHighlight="on">
                            <binding objectSource="objPrefs" targetProperty="toggled" path="signOutWhenBLClosed" method="twoWay"/>
                        </aolCheckButton>
                    </vbox>
                     <separator style="prefSeparator"/>
                    <hbox>
                        <aolLabel style="aolLabel1" value="&pref.Reset_Password;" autoHighlight="on"/>
                    </hbox>
                    <vbox style="prefGroupStyle" s:maxWidth="auto" accName="&pref.Manage_Linked_Screen_Names;">
                        <separator s:height="8"/>
                        <aolButton id="btnResetPassword" label="&pref.Change_My_Password;" on:command="onChangePassword();"/>
                    </vbox>
                    
                </vbox>
            </vbox>
            <vbox s:flex="1" style="prefGroupStyle">
                <separator style="prefSeparator"/>
                <aolLabel style="aolLabel1" value="&pref.Notifications;" autoHighlight="on"/>
                <separator style="prefSeparator"/>
                <vbox s:maxWidth="auto" accName="&pref.Notifications;">
                    <aolCheckButton id="chkShowNotifications" label="&prefs.chkShowNotifications0_string;" autoHighlight="on">
                        <binding objectSource="objPrefs" targetProperty="toggled" path="toastersShowAny" method="twoWay"/>
                    </aolCheckButton>
                    <hbox>
                        <separator style="prefSeparator"/>
                        <vbox s:flex="1" style="prefGroupStyle">
                            <aolCheckButton id="chkShowNotifications1" label="&prefs.chkShowNotifications1_string;" autoHighlight="on">
                                <binding objectSource="objPrefs" targetProperty="disabled" path="toastersShowAny" 
                                        method="oneWay" sourceTransformer="toolkit:not"/>
                                <binding objectSource="objPrefs" targetProperty="toggled" path="toastersShowOnNewIM" method="twoWay"/>
                            </aolCheckButton>
                            <aolCheckButton id="chkShowNotifications2" label="&prefs.chkShowNotifications2_string;" autoHighlight="on">
                                <binding objectSource="objPrefs" targetProperty="disabled" path="toastersShowAny" 
                                        method="oneWay" sourceTransformer="toolkit:not"/>
                                <binding objectSource="objPrefs" targetProperty="toggled" path="toastersShowOnKnockKnock" method="twoWay"/>
                            </aolCheckButton>
                            <aolCheckButton id="chkShowNotifications3" label="&prefs.chkShowNotifications3_string;" autoHighlight="on">
                                <binding objectSource="objPrefs" targetProperty="disabled" path="toastersShowAny" 
                                        method="oneWay" sourceTransformer="toolkit:not"/>
                                <binding objectSource="objPrefs" targetProperty="toggled" path="toastersShowOnMail" method="twoWay"/>
                            </aolCheckButton>
                            <aolCheckButton id="chkShowNotifications4" label="&prefs.chkShowNotifications4_string;" autoHighlight="on">
                                <binding objectSource="objPrefs" targetProperty="disabled" path="toastersShowAny" 
                                        method="oneWay" sourceTransformer="toolkit:not"/>
                                <binding objectSource="objPrefs" targetProperty="toggled" path="toastersShowOnSignOn" method="twoWay"/>
                            </aolCheckButton>
                            <aolCheckButton id="chkShowNotifications5" label="&prefs.chkShowNotifications5_string;" autoHighlight="on">
                                <binding objectSource="objPrefs" targetProperty="disabled" path="toastersShowAny" 
                                        method="oneWay" sourceTransformer="toolkit:not"/>
                                <binding objectSource="objPrefs" targetProperty="toggled" path="toastersShowOnSignOff" method="twoWay"/>
                            </aolCheckButton>
                            <aolCheckButton id="chkShowNotifications6" label="&prefs.chkShowNotifications6_string;" autoHighlight="on">
                                <binding objectSource="objPrefs" targetProperty="disabled" path="toastersShowAny" 
                                        method="oneWay" sourceTransformer="toolkit:not"/>
                                <binding objectSource="objPrefs" targetProperty="toggled" path="toastersShowOnAway" method="twoWay"/>
                            </aolCheckButton>
                            <aolCheckButton id="chkShowNotifications7" label="&prefs.chkShowNotifications7_string;" autoHighlight="on">
                                <binding objectSource="objPrefs" targetProperty="disabled" path="toastersShowAny" 
                                        method="oneWay" sourceTransformer="toolkit:not"/>
                                <binding objectSource="objPrefs" targetProperty="toggled" path="toastersShowOnBackFromAway" method="twoWay"/>
                            </aolCheckButton>
                            <aolCheckButton id="chkShowNotifications8" label="&prefs.chkShowNotifications8_string;" autoHighlight="on">
                                <binding objectSource="objPrefs" targetProperty="disabled" path="toastersShowAny" 
                                        method="oneWay" sourceTransformer="toolkit:not"/>
                                <binding objectSource="objPrefs" targetProperty="toggled" path="toastersShowOnIdle" method="twoWay"/>
                            </aolCheckButton>
                            <aolCheckButton id="chkShowNotifications9" label="&prefs.chkShowNotifications9_string;" autoHighlight="on">
                                <binding objectSource="objPrefs" targetProperty="disabled" path="toastersShowAny" 
                                        method="oneWay" sourceTransformer="toolkit:not"/>
                                <binding objectSource="objPrefs" targetProperty="toggled" path="toastersShowOnBackFromIdle" method="twoWay"/>
                            </aolCheckButton>
                        </vbox>
                    </hbox>
                </vbox>
            </vbox>
            <hbox style="hbox2" s:flex="1">
                <vbox style="vbox1" s:flex="1">
                    <separator style="prefSeparator"/>
                    <aolLabel style="aolLabel1" value="&pref.Privacy;" autoHighlight="on"/>
                    <separator style="prefSeparator"/>
                    <vbox s:maxWidth="auto" accName="&pref.Privacy;" s:flex="1">
                        <aolLabel value="&pref.Who_can_contact_me;" autoHighlight="on"/>
                        <vbox style="prefGroupStyle" s:hAlign="stretch" s:flex="1">
                            <radioBox id="allowWhichBuddies" accName="&pref.Who_can_contact_me;" s:orient="&prefs.privacy.buttonOrientation;" style="prefGroupStyle" s:vAlign="stretch">
                                <binding objectSource="objPrefs" targetProperty="value" path="aimccPrivacyMode" method="twoWay"/>
                                    <hbox s:flex="1">
                                        <vbox style="prefGroupStyle">
                                            <aolRadioButton id="chkAllowBuddiesNotOnList" value="1" label="&prefs.chkAllowBuddiesNotOnList_string;" autoHighlight="on"/>
                                            <aolRadioButton id="chkAllowBuddiesOnList" value="5" label="&prefs.chkAllowBuddiesOnList_string;" autoHighlight="on"/>
                                            <aolRadioButton id="chkAllowListed" value="3" label="&prefs.chkAllowListed_string;" autoHighlight="on"/>
                                        </vbox>
                                    </hbox>
                                    <separator style="prefSeparator" collapsed="&prefs.privacy.button.hideSeparator;"/>
                                    <hbox s:flex="1">
                                        <vbox style="prefGroupStyle">
                                            <aolRadioButton id="chkBlockAll" value="2" label="&prefs.chkBlockAll_string;" autoHighlight="on"/>
                                            <aolRadioButton id="chkBlockIntenet" value="-1" collapsed="true" label="&prefs.chkBlockIntenet_string;" autoHighlight="on"/>
                                            <aolRadioButton id="chkBlockSelected" value="4" label="&prefs.chkBlockSelected_string;" autoHighlight="on"/>
                                        </vbox>
                                    </hbox>
                            </radioBox>

                            <hbox style="hbox4" s:flex="1">
                                <vbox style="vbox8" s:flex="1" accName="&pref.Allow_List;">
                                    <separator style="prefSeparator"/>
                                    <aolLabel value="&pref.Allow_List;" autoHighlight="on"/>
                                    <hbox>
                                        <imSmartInput id="siAllowBuddy" smartBoxId="autoCompletePopupAllow" smartboxSeparator="," s:flex="1" on:modified="updateAddButton('siAllowBuddy');"
                                            customButtonLabel="&prefs.siAllowAdd_string;" hideCustomButton="false" s:marginLeft="5" s:marginRight="5"
                                            accName="&pref.privacy.autocomplete;" accRole="ignore">
                                            <binding objectSource="objPrefs" targetProperty="screenName" path="screenName" method="twoWay"/>
                                        </imSmartInput>
                                    </hbox>
                                    <separator s:height="3"/>
                                    <hbox style="hbox4" s:flex="1">
                                        <aolDataGrid style="aolListBox1" view="datagrid" id="allowList" s:maxHeight="auto" s:flex="1" selectMode="multiple" blockEvents="false" engaged="true"  
                                        accName="&pref.AllowList.accName;" on:click="editCurrentPrivacyBuddy();">
                                            <columns header="false">
                                                <column s:flex="1"/>
                                            </columns>
                                            <rows id="allowBuddies">
                                                <binding collectionSource="allowBuddiesArray" method="twoWay" replication="full">
                                                    <template>
                                                        <aolTreeRow>
                                                            <displayAndEdit label="{}" autoEditOnClick="true">
                                                                <reaction event="attributeSet" attributeName="label" action="onAllowBuddyListRowLabelChanged();" />
                                                            </displayAndEdit>
                                                        </aolTreeRow>
                                                    </template>
                                                </binding>
                                            </rows>
                                            <reaction event="keyPress" keyCode="DELETE" action="onDeleteFromAllow();"/> 
                                            <reaction event="keyPress" keyCode="F2" action="editCurrentPrivacyBuddy();"/>
                                            <reaction event="click" action="editCurrentPrivacyBuddy();"/>
                                        </aolDataGrid>
                                    </hbox>
                                    <hbox s:hAlign="end">
                                        <aolTextButton id="removeButton" label="&prefs.btnRemove_string;" tooltip="&prefs.btnRemove_tip;" on:command="onDeleteFromAllow();"/>
                                    </hbox>
                                </vbox>
                                <separator style="prefSeparator"/>
                                <vbox style="vbox8" s:flex="1" accName="&pref.Block_List;">
                                    <separator style="prefSeparator"/>
                                    <aolLabel value="&pref.Block_List;" autoHighlight="on"/>
                                    <hbox>
                                        <imSmartInput id="siDenyBuddy" style="imSmartInput" smartBoxId="autoCompletePopupDeny" smartboxSeparator="," s:flex="1" on:modified="updateAddButton('siDenyBuddy');"
                                            customButtonLabel="&prefs.siDenyAdd_string;" hideCustomButton="false"  
                                            accName="&pref.privacy.autocomplete;">
                                            <binding objectSource="objPrefs" targetProperty="screenName" path="screenName" method="twoWay"/>
                                        </imSmartInput>
                                    </hbox>
                                    <separator s:height="3"/>
                                    <hbox  style="hbox4" s:flex="1">
                                        <aolDataGrid style="aolListBox1" view="datagrid" id="denyList" s:maxHeight="auto" s:flex="1" selectMode="multiple" blockEvents="false" engaged="true" 
                                        accName="&pref.BlockList.accName;" on:click="editCurrentPrivacyBuddy();">
                                            <columns header="false">
                                                <column s:flex="1"/>
                                            </columns>
                                            <rows id="denyBuddies">
                                                <binding collectionSource="denyBuddiesArray" method="twoWay" replication="full">
                                                    <template>
                                                        <aolTreeRow>
                                                            <displayAndEdit label="{}" autoEditOnClick="true">
                                                                <reaction event="attributeSet" attributeName="label" action="onDenyBuddyListRowLabelChanged();" />
                                                            </displayAndEdit>
                                                        </aolTreeRow>
                                                    </template>
                                                </binding>
                                            </rows>
                                            <reaction event="keyPress" keyCode="DELETE" action="onDeleteFromDeny();"/> 
                                            <reaction event="keyPress" keyCode="F2" action="editCurrentPrivacyBuddy();"/>
                                            <reaction event="click" action="editCurrentPrivacyBuddy();"/>
                                        </aolDataGrid>
                                    </hbox>
                                    <hbox style="hbox5" >
                                        <aolTextButton id="removeButton" label="&prefs.btnRemove_string;" tooltip="&prefs.btnRemove_tip;" on:command="onDeleteFromDeny();"/>
                                    </hbox>
                                </vbox>
                            </hbox>
                        </vbox>
                        <vbox style="vbox4" accName="&pref.Allow_others_to_see;" >
                            <hbox>
                                <aolLabel value="&pref.Allow_others_to_see;" autoHighlight="on"/>
                            </hbox>
                            <aolCheckButton id="chkShowIdle" label="&prefs.chkShowIdle_string;" autoHighlight="on">
                                <binding objectSource="objPrefs" targetProperty="toggled" path="privacyAllowIdle" method="twoWay"/>
                            </aolCheckButton>
                            <aolCheckButton id="chkShowTyping" label="&prefs.chkShowTyping_string;" autoHighlight="on">
                                <binding objectSource="objPrefs" targetProperty="toggled" path="privacyShowTyping" method="twoWay"/>
                            </aolCheckButton>
                            <aolCheckButton id="chkShowMobile" label="&prefs.chkShowMobile_string;" autoHighlight="on">
                                <binding objectSource="objPrefs" targetProperty="toggled" path="privacyShowMobile" method="twoWay"/>
                            </aolCheckButton>
                            <vbox collapsed="&whatsNew.hide;">
                                <aolCheckButton id="chkShowWhatsNewFeatures" label="&prefs.chkShowWhatsNewFeatures_string;" autoHighlight="on">
                                    <binding objectSource="objPrefs" targetProperty="toggled" path="privacyDiscloseWhatsNew" method="twoWay"/>
                                    <binding objectSource="bl.objModel" targetProperty="collapsed" path="blockBuddyFeed" method="oneWay"/>
                                </aolCheckButton>
                            </vbox>
                        </vbox>
                    </vbox>
                </vbox>
            </hbox>
            <hbox style="hbox2" s:flex="1">
                <vbox style="vbox1" s:flex="1">
                    <separator style="prefSeparator"/>
                    <aolLabel style="aolLabel1" value="&prefs.pluginsTitle_string;" autoHighlight="on"/>

                    <separator style="prefSeparator"/>
                    <vbox style="vbox9" id="pluginHolder" accName="&prefs.pluginsTitle_string;" s:flex="1"/>
                </vbox>    
            </hbox>
            <vbox style="vbox10" s:flex="1" >
                <separator style="prefSeparator"/>
                <aolLabel style="aolLabel1" value="&pref.homeosPrefs_string;" autoHighlight="on"/>
                <separator style="prefSeparator"/>
                <vbox style="vbox11" id="configHolder" accName="&pref.homeosPrefs_string;" s:flex="1">
                    <hbox s:flex="1" accName="&pref.config.locale;" >
                        <aolLabel value="&pref.config.locale;"/>
                        <aolInput id="preferredLocale" on:blur="setPreferredLocale();"/>
                    </hbox>
                </vbox>
            </vbox>    
                <reaction event="keyPress" ctrl="true" shift="false" keyCode="TAB" override="true" action="advanceTab();"/>
                <reaction event="keyPress" ctrl="true" shift="true" keyCode="TAB" override="true" action="retreatTab();"/>
            
        </aolTabPanels>
    </tabBox>
    
  </vbox>

  <hbox style="aimWindowButtonSection">
    <aolButton id="saveButton" label="&prefs.saveButton_string;" on:command="save( true );" s:paddingLeft="14" s:paddingRight="14" defaultButton="true" tabIndex="51" s:margin="0"/>
    <aolButton id="applyButton" label="&prefs.applyButton_string;" on:command="save( false );" s:paddingLeft="14" s:paddingRight="14"  tabIndex="52" s:margin="0">
		<binding objectSource="objPrefs" targetProperty="disabled" path="dirty" 
                                    method="oneWay" sourceTransformer="toolkit:not"/>
    </aolButton>
    <aolButton label="&pref.Cancel;" on:command="scene.close();" cancelButton="true"  s:paddingLeft="14" s:paddingRight="14" tabIndex="53" s:margin="0"/>
  </hbox>
  <reaction event="keyPress" ctrl="true" shift="false" keyCode="TAB" override="true" action="advanceTab();"/>
  <reaction event="keyPress" ctrl="true" shift="true" keyCode="TAB" override="true" action="retreatTab();"/>

</aimWindow>