<?xml version="1.0"	encoding="UTF-8" ?>
<!--
****************************************************************************

     File Name:   newAway.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 % bl SYSTEM "box://imApp/resources/bl.dtd">
  <!ENTITY % im SYSTEM "box://imApp/resources/im.dtd">
  %prefs;
  %bl;
  %im;
]>



<?import href="box://aimToolkit/content/gadgets.box"?>
<?import href="box://aimToolkit/theme/toolkit.box"?>
<?import href="box://imApp/theme/style.box"?>
<?import href="box://imApp/content/imAppLib.box"?>
<?import href="box://imApp/content/prefs/prefsContainerStyles.box"?>
<?import href="box://imApp/theme/coreGadgetStyles.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"
            title="&im.newAway.newAwayTitle;"
            resizable="true"
            maximizable="false"
            minimizable="false"
	        s:minWidth="&im.newAway.width;*"
	        s:minHeight="&im.newAway.height;*"
            accRole="dialog"
            on:initialized="onInitialized();"
            on:constructed="onConstructed();"
            on:destroyed="onDestroyed();"
            on:close="onClose();"
            >
	        
	<script	id="main" language="jscript" href="box://imApp/content/newAway.js" />
	<reaction event="keyPress" keyCode="ESCAPE"	action="toolkit:Close" /> 
	<binding objectSource="bl" path="isSessionOnline" sourceTransformer="closeIfOffline()" />
	<box id="testScreenName" label="&prefs.testScreenName_string;"/>
	
	<vbox style="aimWindowContentSection">
	    <hbox s:flex="1" accName="&pref.Messages;" accDescription="&pref.Create_edit_manage_or_delete_away_messages; &pref.Away_message_only_sent_to_buddies;">
            <awayMessageEditor id="awayMessageEditor" screenNameControl="testScreenName" s:flex="1" leftCollapse="true" awayTitle="&im.quickAway.titleColon;" messageTitle="&im.quickAway.messageColon;"/>
	    </hbox>
    
        <aolCheckButton id="saveAsAway" tabIndex="3" label="&im.newAway.saveWithMyMessages;" s:margin="-2 8 15 8"/>
    </vbox>
    <hbox style="aimWindowButtonSection">    
	    <aolButton id="saveButton" tabIndex="4" label="&im.newAway.setAway;" s:width="60" defaultButton="true" on:command="setQuickAway();" s:margin="0"/>
		<aolButton id="cancelButton" tabIndex="5" label="&im.newAway.cancel;" s:width="60" on:command="toolkit:Close" s:margin="0"/>
    </hbox>
         
</aimWindow>
