// written by Tan Ling Wee // last updated 20 June 2003 // email : fuushikaden@yahoo.com var orientation=0 // 0-horizontal 1-vertical var imgPath = "js/" var mainItemForeground = "#000000" var mainItemBorder = "#f0f0f0" var mainItemBackground = "#f0f0f0" var mainItemHoverForeground = "#000000" var mainItemHoverBorder = "#a0a0a0" var mainItemHoverBackground = "#d0d0d0" var subItemForeground = "#000000" var subItemBorder = "#ffffff" var subItemBackground = "#ffffff" var subItemHoverForeground = "#000000" var subItemHoverBorder = "#a0a0a0" var subItemHoverBackground = "#d0d0d0" var menuFont = "verdana" var menuSize = "11px" ///////////////////////////////////////////////////////////////////////////// var ie=(navigator.appName=='Microsoft Internet Explorer') var ns=(navigator.appName=='Netscape') var dom=document.getElementById var lw_menuId, lw_trigger, to1 var s1 ///////////////////////////////////////////////////////////////////////////// function Tmenu (id, parentId, url, description, img) { this.id = id this.parentId = parentId this.url = url this.description = description this.numChild = 0 this.levelId = 0 this.img = img } ///////////////////////////////////////////////////////////////////////////// var menu = new Array() var menuCounter = 0 var numLevel = 0 var prevMenuId = -1 var nNowAt = 0 function displayMenuItem(menuId) { var sHTML if (menu[menuId].parentId>0) { ItemForeground = subItemForeground Border = subItemBorder Background = subItemBackground HoverForeground = subItemHoverForeground HoverBorder = subItemHoverBorder HoverBackground = subItemHoverBackground } else { ItemForeground = mainItemForeground Border = mainItemBorder Background = mainItemBackground HoverForeground = mainItemHoverForeground HoverBorder = mainItemHoverBorder HoverBackground = mainItemHoverBackground } if ((orientation==1)||(menu[menuId].levelId>0)) { sHTML += "
| " + menu[menuId].description.replace(" "," ") + " | "
if (menu[menuId].numChild>0)
{
if ((orientation==0)&&(menu[menuId].levelId==0))
{
sHTML += " "
}
else
{
sHTML += " "
}
}
else
{
sHTML += " "
}
sHTML += " |
| " + menu[i].description + " |