// items structure // each item is the array of one or more properties: // [text, link, settings, subitems ...] // this sample structure demonstrates the use of HTML inside the menu items as well as wrapper functions var MENU_ITEMS = [ ['', null, null, [pupup('
FT / FDS
')] ], ]; // This simple function is a wrapper. It puts html around provided text. // You can write your own wrappers for higher efficiency and better code maintanability function pupup (text) { return '
' + text + '
'; }