/* --------------------------------------------------------------------------

	Define the information for a single menu item (both main bar and sub-menu).
	Each menu item has an associated filename, title, and description.
	The title and description are translated, but not the filename.

*/

function MenuItem(strFilename, strTitle, strDescription)
{
	this.strFilename = strFilename;
	this.strTitle = strTitle;
	this.strDescription = strDescription;
}


/* --------------------------------------------------------------------------

	These represent the various menus. There is a main menu bar and some sub-menus.

	The second and third strings in each item need to be translated.
	The first string is a filename and does not need to be translated.

*/

var menuMain = new Array(new MenuItem("status.htm",	"Status",	"View information about the access point"),
			new MenuItem("log.htm",		"Log",		"View the access point's activity log"),
			new MenuItem("security.htm",	"Security",	"Configure the access point's security settings"),
			new MenuItem("wireless.htm",	"Wireless",	"Configure the access point's wireless settings"),
			new MenuItem("lan.htm",		"LAN",		"Configure the access point's LAN settings"),
			new MenuItem("device.htm",	"Device",	"Manage the access point")
			);


/* check settings for the LAN page */
function checkIP()
{
	var radios = document.idForm.idIPmethod;
	
	if (radios[1].checked) 
		document.idForm.lan_dhcp.value = "0";
}
