<!-- MENU-LOCATION=NONE -->
<html xmlns:MMString="http://www.macromedia.com/schemes/data/string/">
<HEAD>
<!-- Copyright 2000-2006 Adobe Macromedia Software LLC and its licensors. 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]);
	if (!dw.isAMTOn()) {
		dw.browseDocument('http://www.adobe.com/products/register.html');
	} else {
	  dw.amtMenuItemInvoke(numberArg.valueOf());
	}
}

function canAcceptCommand()
{
  // convert the the menu item into a number return true if it is enabled
  if (!dw.isAMTOn()) 
		return true;
  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
	if (!dw.isAMTOn()) 
		return false;
	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 i;

	amtItems = new Array();
	if (!dw.isAMTOn()) {
		amtItems[0] = "Register Online...;id=1";
		return (amtItems);
	}
	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>

