<!-- hide
	//var MENU_BORDER_COLOR         = '#eeeeee'
	//var MENU_BACKGROUND_COLOR     = '#eeeeee'
	//var MENU_CURRENTPAGE_COLOR    = '#eeeeee'
	//var MENU_MOUSEOVER_COLOR      = '#cccccc'
	//var MENU_MOUSEDOWN_COLOR      = '#999999'
	//var MENU_MOUSEDOWN_TEXT_COLOR = '#999999'
	var MENU_DEFAULT_CLASS = 'tsMenuItem'
	var MENU_OVER_CLASS    = 'tsMenuItemOver'
	var MENU_DOWN_CLASS    = 'tsMenuItemDown'
	function prepareMenu() {
		//var items = this.all.tags("TD")
		var items = document.all.tags("TD")
		var i
		for (i=0; i<items.length; i++) {
			var item = items[i]
			if (item.className == "tsMenuItem") {
				item.defaultBorder = item.style.borderColor
				item.defaultBackground = item.style.backgroundColor
				item.attachEvent("onmouseover", item_onmouseover)
				item.attachEvent("onmouseout", item_onmouseout)
				item.attachEvent("onmousedown", item_onmousedown)
				item.attachEvent("onmouseup", item_onmouseup)
			}
		}
	}
	function item_onmouseover() {
		var e = whichItem()
		if (e.contains(window.event.fromElement))
			return
		//if (e.style.backgroundColor != MENU_CURRENTPAGE_COLOR) {
			e.className = MENU_OVER_CLASS
			//e.style.borderColor = MENU_BORDER_COLOR
			//e.style.backgroundColor = MENU_MOUSEOVER_COLOR
		//}
	}
	function item_onmouseout() {
		var e = whichItem()
		var te = window.event.toElement
		if (te)
			if (e.contains(te))
				return
		e.className = MENU_DEFAULT_CLASS
		//e.style.borderColor = e.defaultBorder
		//e.style.backgroundColor = e.defaultBackground
	}
	function item_onmousedown() {
		if ((event.button & 1) == 0)
			return;
		var e = whichItem()
		e.className = MENU_DOWN_CLASS
		//e.style.backgroundColor = MENU_MOUSEDOWN_COLOR
		e.mouseIsDown = 1
	}
	function item_onmouseup() {
		if ((event.button & 1) == 0)
			return;
		var e = whichItem()
		if (e.mouseIsDown != 1)
			return
		e.mouseIsDown = false
		e.className = MENU_OVER_CLASS
		//e.style.backgroundColor = MENU_MOUSEOVER_COLOR
		var a = e.all.tags("A")
		if (a.length > 0)
			top.location.href = a[0].href
	}
	function whichItem() {
		var e = event.srcElement
		if (e.tagName != "TD") e = e.parentElement
		//alert("parentElement is " + e.tagName);
		return e
	}
// -->
