<!-- MENU-LOCATION=NONE -->
<html xmlns:MMString="http://www.macromedia.com/schemes/data/string/">
<HEAD>
<!-- Copyright 2000, 2001, 2002, 2003, 2004, 2005 Macromedia, Inc. All rights reserved. -->
<TITLE><MMString:loadString id="Menus/MM/AMT/title" /></TITLE>
<SCRIPT LANGUAGE="javascript" SRC="../../Shared/MM/Scripts/CMN/string.js"></SCRIPT>
<SCRIPT LANGUAGE="javascript">
<!--


function isDOMRequired()
{
  return false;
}

// This function converts the menu item into a number and calls 
// the menu items handler which will call into the AMT menu handler
function receiveArguments()
{
    var numberArg = new Number(arguments[0]);
    dw.amtMenuItemInvoke(numberArg.valueOf());
}

function canAcceptCommand()
{
  // convert the the menu item into a number return true if it is enabled
  var numberArg = new Number(arguments[0]);
  return (dw.amtIsMenuItemEnabled(numberArg.valueOf()));
}

function isCommandChecked()
{   
    // convert the the menu item into a number and return true if it is checked
    var numberArg = new Number(arguments[0]);
    return (dw.amtIsMenuItemChecked(numberArg.valueOf()));
}

// getDynamicContent returns the contents of a dynamically generated menu.
// returns an array of strings to be placed in the menu, with a unique
// identifier for each item separated from the menu string by a semicolon.
//
// return null from this routine to indicate that you are not adding any
// items to the menu
function getDynamicContent(itemID)
{
	var menuString = null;
	var i;
	amtItems = new Array();
	var amtArray = dw.amtGetMenuItems();
	if (amtArray.length > 0)
	{
		for (i=0; i<amtArray.length; i++)
		{
			amtItems[i] = new String(amtArray[i]);
			amtItems[i] += ";id='"+i+"'"; // each item needs an ID
		}
	}
	return amtItems;
}
// -->   
</SCRIPT>
</HEAD>
<BODY>
</BODY>
</HTML>

