<?xml version="1.0" encoding="UTF-8"?>
<!--
****************************************************************************

     File Name:   blab.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 % bl SYSTEM "box://imApp/resources/bl.dtd">
  <!ENTITY % plaxoStrings SYSTEM "box://imApp/resources/plaxoStrings.dtd">
  <!ENTITY % im SYSTEM "box://imApp/resources/im.dtd">
  %bl;
  %plaxoStrings;
  %im;
]>

<?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/content/signon/signonLib.box"?>
<?import href="box://imApp/theme/style.box"?>
<?import href="box://imApp/content/imSmartInput.box"?> 
<?import href="box://imApp/content/blabStyles.box"?>
<?import href="box://imApp/content/bl/blGadgets.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" 
           snapToBox="30" snapToBoxOrder="0" snapToBoxClass="dummyClass"
           snapToOffset="0 0 0 0" snapToWorkspace="30"
           title="&BL.blab.AIM;"
           s:right="4"
           s:top="0"
           s:bottom="5"
           s:left="auto"
           s:width="&BL.size.InitialWidth;"
           s:minWidth="&BL.size.InitialWidth;"
           on:parsed="onParsed();"
           on:constructed="onConstructed();"
           on:destroyed="onDestroyed();"
           on:close="onClose();"
           on:initialized="onInitialized();"
           on:presented="onPresented();"
           on:displayChanged="onDisplayChanged();"
           on:activated="onActivated();"
           forceWhatsNewCollapse="&whatsNew.hide;">

    <script id="main" language="jscript" href="box://imApp/content/bl/bl.js"/>


    <reaction event="keyPress" keyCode="&BL.form.enter_assessKey;" ctrl="false" shift="false" alt="false" action="onEnterKey();" />
    <reaction event="keyPress" keyCode="&BL.form.ctrlEnter_assessKey;" ctrl="true" shift="false" alt="false" action="onCtrlEnter();" />
    <reaction event="keyPress" keyCode="&BL.form.openAwayMenu_assessKey;" ctrl="false" shift="false" alt="true" action="shell.bl.openAwayMenu();" />
    <reaction event="keyPress" keyCode="&BL.form.onPopupMenuActions_assessKey;" ctrl="false" shift="false" alt="true" action="onPopMenuActions();" />
    <reaction event="keyPress" keyCode="&BL.form.onBuddyInfo_assessKey;" ctrl="false" shift="false" alt="true" action="onBuddyInfo( false );" />
    <reaction event="keyPress" keyCode="&BL.form.onMailQN_assessKey;" ctrl="true" shift="false" alt="false" action="onLaunchQuickNote('mail');" />
    <reaction event="keyPress" keyCode="&BL.form.onNewBuddy_assessKey;" ctrl="true" shift="false" alt="false" action="onNewBuddy();" />
    <reaction event="keyPress" keyCode="&BL.form.onTalk_assessKey;" ctrl="true" shift="false" alt="false" action="onTalk();" />
    <reaction event="keyPress" keyCode="&BL.form.onViewAddressCard_assessKey;" ctrl="true" shift="false" alt="false" action="onViewAddressCard();" />
    <reaction event="keyPress" keyCode="&BL.form.onSearch_assessKey;" action="onSearch();"/>
    <reaction event="keyPress" keyCode="&BL.form.onSettings_assessKey;" action="openSettingsPageAccordingToDisplayedTab();"/>
    <reaction event="keyPress" keyCode="&BL.form.onHelp_assessKey;" action="onHelp();"/>
    <reaction event="keyPress" keyCode="&BL.form.onEditSelection_assessKey;" action="onEditSelection();"/>
    <reaction event="keyPress" keyCode="&BL.form.onDeleteSelection_assessKey;" action="onDeleteSelection();"/> 
    <reaction event="keyPress" alt="true" shift="true" keyCode="&BL.form.onExit_assessKey;" action="onExit();" />
    <reaction event="keyPress" keyCode="&BL.form.onCloseWindow_assessKey;" ctrl="true" action="onHide();" />
    <reaction event="keyPress" keyCode="&BL.menu.key.NewIM;" ctrl="true" shift="false" alt="false" action="onNewIM();" />
    <reaction event="keyPress" keyCode="&BL.menu.key.print;" ctrl="true" shift="false" alt="false" action="onPrint();" />

    <reaction event="keyPress" keyCode="&BL.menu.key.OnAIMMenu;" ctrl="false" shift="false" alt="true" action="loadAIMMenu();" />
    <reaction event="keyPress" keyCode="&BL.menu.key.ToggleInvisible;" ctrl="true" shift="true" alt="false" action="toggleInvisibility();" />
   
    
    <reaction event="attributeSet" attributeName="active" action="shell.bl.checkFlashBuddyList();onBLTooltipInactive();"/>
    <reaction event="attributeSet" attributeName="minimized" action="onMinimized();"/>
    <reaction event="attributeSet" attributeName="maximized" action="onMaximized();"/>
   
    

    <keyGroup>
        <key id="keyCut" ctrl="true" key="&BL.menu.key.cut;" command="cmdCut"/>
        <key id="keyCopy" ctrl="true" key="&BL.menu.key.copy;" command="cmdCopy"/>
        <key id="keyPaste" ctrl="true" key="&BL.menu.key.paste;" command="cmdPaste"/>
        <key id="keySelectAll" ctrl="true" key="&BL.menu.key.SelectAll;" command="cmdSelectAll"/>
        <key id="keyNewGroup" ctrl="true" key="&BL.menu.key.NewGroup;" command="cmdNewGroup"/>
        <key id="keyStartChat" alt="true" key="&BL.menu.key.BuddyChat;" command="cmdBuddyChat"/>
        <key id="keyOnImButton" alt="true" key="&BL.form.onIMButton_assessKey;" command="cmdImButton"/>
        <key id="keyOnBuddyInfo" alt="true" key="&BL.menu.key.OnBuddyInfo;" command="cmdOnBuddyInfo"/>
    </keyGroup>



    <commandGroup>
        <command id="cmdCut" action="onCut();" />
        <command id="cmdCopy" action="onCopy();" />
        <command id="cmdPaste" action="onPaste();" />
        <command id="cmdSelectAll" action="onSelectAll();" />
        <command id="cmdNewGroup" action="onNewGroup();" />
        <command id="cmdBuddyChat" action="onBuddyChat();" />
        <command id="cmdImButton" action="onImButton();" />
        <command id="cmdOnBuddyInfo" action="onBuddyInfo(false, true);" />
    </commandGroup>



    <vbox>
        <aolMenuBar id="buddyListMenuBar" s:minWidth="0" s:overflow="hidden">
            <aolMenuBarItem label="&BL.menu.label.AIM;" accesskey="&BL.menu.label.AIM_accesskey;">
                <menuPopup id="menuFile" realGadget="blFileMenuItems" on:popping="loadMenu()" style="popupWithoutTransition"/>
            </aolMenuBarItem>
            <aolMenuBarItem label="&BL.menu.label.Edit;" accesskey="&BL.menu.label.Edit_accesskey;" >
                <menuPopup id="menuEdit" realGadget="blEditMenuItems" on:popping="loadMenu()"  style="popupWithoutTransition"/>
            </aolMenuBarItem>
            <aolMenuBarItem label="&BL.menu.label.View;" accesskey="&BL.menu.label.View_accesskey;" >
                <menuPopup id="menuView" realGadget="blViewMenuItems" on:popping="loadMenu()"  style="popupWithoutTransition"/>
            </aolMenuBarItem>
            <aolMenuBarItem label="&BL.menu.label.Help;" accesskey="&BL.menu.label.Help_accesskey;" >
                <menuPopup id="menuHelp" realGadget="blHelpMenuItems" on:popping="loadMenu()"  style="popupWithoutTransition"/>
            </aolMenuBarItem>
        </aolMenuBar>
    </vbox>
    
    <vbox s:flex="1">
        <vbox style="blBackgroundTopGradient" />
        <vbox style="blBackgroundMiddleGradient" />
        <vbox style="blBackgroundBottomGradient" />
        <hbox s:position="fixed" s:top="0" s:left="0" s:bottom="0" s:right="0">
            <vbox id="containsBuddyList" s:flex="1" s:paddingLeft="4" s:paddingRight="4">
                <vbox s:flex="1">

                    <vbox s:flex="1">
                        <hbox id="adContainer" s:margin="7 0 4 0" s:hAlign="center" s:vAlign="center" s:maxHeight="auto" s:overflow="hidden" s:height="&BL.ad.Height;" collapsed="true">
                            <vbox>
                                <hbox id="adFrame" s:height="&BL.ad.Height;" s:width="&BL.ad.Width;" s:fill="url(#bmp.bl.ad.background)"/>
                            </vbox>
                        </hbox>
                        <tabBox id="buddyListTabBox" s:orient="vertical" s:padding="0" s:margin="0">

                            <aolTabs id="buddyListTabBoxTabs" collapsed="true">
                                <reaction event="attributeSet" attributeName="cursorIndex" action="onTabChange();" />
                                <binding objectSource="bl" targetProperty="disabled" path="isSessionOnline" method="twoWay" sourceTransformer="toolkit:not" targetTransformer="toolkit:not" />
                                <aolTab id="blTabBox" label="&strBuddyListTabTitle.label;" selected="true" tooltip="&strBuddyListTabTitle.label;" hoverHoldDelay="2000" on:command="OnTabClick();" on:mouseDown="OnMouseDown();" />
                                <aolTab id="abTabBox" label="&strAddressBookTabTitle.label;" tooltip="&strAddressBookTabTitle.label;" hoverHoldDelay="2000" on:command="OnTabClick();" on:mouseDown="OnMouseDown();" />
                            </aolTabs>

                            <aolTabPanels id="buddyListTabPanels" s:stroke="none" collapsed="true" s:margin="0" s:padding="0">
                                <vbox >
                                    &blComponent;
                                </vbox>

                                <vbox id="addressBookTab" />
                            </aolTabPanels>
                        </tabBox>
                        
                        <vbox collapsed="true" s:hAlign="stretch" s:vAlign="center" >
                            <blToolbar id="blToolbar" />
                            <binding elementSource="_nextSibling" targetProperty="collapsed" path="collapsed" sourceTransformer="toolkit:not" />
                        </vbox>
                        
                        <vbox id="signOn" style="signOnBoxStyle">
                            <signonForm />
                        </vbox>
                    </vbox>
                        
                    <spacer id="modulesSpacer" s:height="4"/>
                    <vbox id="modulesBox" collapsed="true">
                        <hbox id="collapseModules" style="collapseModulesBox" >
                            <aolLabel id="modulesBoxLabel" s:fontBold="true" s:marginLeft="2"/>
                            <spacer s:flex="1"/>
                            <aolImageButton icon="#bmp.bl.module.collapse"
                                style="hideModulesButton"
                                tooltip="&BL.module.CollapseTooltip;" accName="&BL.module.CollapseAccName;"
                                buttonGreyFill="false" on:command="onShowModules();" 
                                tabIndex="51"/>
                        </hbox>
                        <tabBox s:orient="vertical" s:flex="1" s:padding="0" s:margin="0">
                            <reaction event="keyPress" keyCode="TAB" ctrl="true" shift="false" action="OnModuleTabClick();"/>
                            <reaction event="keyPress" keyCode="TAB" shift="true" ctrl="true" action="OnModuleTabClick();"/>
                            <reaction event="keyPress" keyCode="PAGEDOWN" ctrl="true" shift="false" action="OnModuleTabClick();"/>
                            <reaction event="keyPress" keyCode="PAGEUP" ctrl="true" shift="false" action="OnModuleTabClick();"/>
                            <reaction event="keyPress" keyCode="LEFT" shift="false" ctrl="false" action="OnModuleTabClick();"/>
                            <reaction event="keyPress" keyCode="RIGHT" shift="false" ctrl="false" action="OnModuleTabClick();"/>
                            <aolTabPanels id="moduleTabPanels" s:height="150" s:hAlign="stretch" s:stroke="none">
                                    
                                <hbox id="mobileModule" focusMode="defer" s:vAlign="center" s:flex="1" />

                                &voipComponent;
                                
                                <hbox id="radioModule" focusMode="defer" s:vAlign="center" s:flex="1">
                                </hbox>

                                &aimTVComponent;

                                <hbox/>
                            </aolTabPanels>
                            <aolTabs id="blModuleTabs" style="bottomTabArea" tabIndex="50">
                                <reaction event="keyPress" keyCode="SPACE" action="OnModuleTabClick();"/>
                                <reaction event="keyPress" keyCode="ENTER" action="OnModuleTabClick();"/>
                                <aimModuleTab icon="#bmp.bl.module.mobile" id="blModuleTab1" accName="&BL.module.MobileTooltip;" tooltip="&BL.module.MobileTooltip;" hoverHoldDelay="2000" on:command="OnModuleTabClick();" on:mouseDown="OnModuleTabClick();" >
                                <binding objectSource="bl" targetProperty="collapsed" path="showMobileModule" method="oneWay" sourceTransformer="toolkit:not" targetTransformer="toolkit:not" />
                                </aimModuleTab>
                                <aimModuleTab icon="#bmp.bl.module.voip"  id="blModuleTab3" accName="&BL.module.VoipTooltip;" tooltip="&BL.module.VoipTooltip;" hoverHoldDelay="2000" on:command="OnModuleTabClick();" on:mouseDown="OnModuleTabClick();" >
                                <binding objectSource="bl" targetProperty="collapsed" path="showVoipModule" method="oneWay" sourceTransformer="toolkit:not" targetTransformer="toolkit:not" />
                                </aimModuleTab>
                                <aimModuleTab icon="#bmp.bl.module.music"  id="blModuleTab2" selected="true" accName="&BL.module.RadioTooltip;" tooltip="&BL.module.RadioTooltip;" hoverHoldDelay="2000" on:command="OnModuleTabClick();" on:mouseDown="OnModuleTabClick();">
                                <binding objectSource="bl" targetProperty="collapsed" path="showRadioModule" method="oneWay" sourceTransformer="toolkit:not" targetTransformer="toolkit:not" />
                                </aimModuleTab>                                
                                <aimModuleTab icon="#bmp.bl.module.video"  id="blModuleTab4" accName="&BL.module.AIMTVTooltip;" tooltip="&BL.module.AIMTVTooltip;" hoverHoldDelay="2000" on:command="OnModuleTabClick();" on:mouseDown="OnModuleTabClick();" >
                                <binding objectSource="bl" targetProperty="collapsed" path="showAIMModule" method="oneWay" sourceTransformer="toolkit:not" targetTransformer="toolkit:not" />
                                </aimModuleTab>
                                <aimModuleTab style="aolFakeTabInverted" collapsed="true" hideIcon="true" icon="none" id="blModuleFakeTab" accName="&BL.module.FakeTabTooltip;"/>
                            </aolTabs>
                        </tabBox>
                    </vbox>
                </vbox>
            </vbox>
        </hbox>
    </vbox>
    
    <blTooltip id="blTooltip" />       

    <aolSmartBox id="autoCompletePopup" s:width="150%">
        <aolNativeLabel id="smartboxLabel" value="&BL.buddyListBuddy.Suggestions;" s:fontSize="10px" s:fontBold="true" s:textColor="#25518D" />
        <vbox s:height="1" s:margin="0 12 0 12" s:padding="0" s:fill="#d0d0d0"/>
        <aolListBox id="smartboxList" view="grid"
                        s:height="auto" 
                        s:maxHeight="80"
                        s:layer="above"
                        s:flex="1"
                        s:margin="0 4 4 4"
                        s:zIndex="9999"
                        s:padding="1"
                        s:stroke="#808080"
                        s:stokeWidth="1"
                        presetMinHeight="32"
                        presetMaxHeight="80">
            <columns header="false" s:maxWidth="auto">
                <aolColumn name="Column 1" s:flex="1" s:minWidth="65" />
            </columns>
            <rows>
            </rows>
        </aolListBox>
    </aolSmartBox> 
    
</aimWindow>
