Set the pressed item/subitem using dtreet_ext_setPressedItem () function.

function dtreet_ext_setPressedItem (menuInd, itemID)

Sets pressed item.
menuInd - index of a menu on a page, >= 0.
itemID - ID property of an item.
You can find itemID using dtreet_ext_getItemIDByIndex (menuInd, itemInd) function, for example:
itemID = dtreet_ext_getItemIDByIndex(0,2)


To set a default selected item add '>' symbol before item's text:
var tmenuItems = [
    ["|||>My item - item is selected","","","","","","",""],
...
Expand/collapse item/subitem using dtreet_ext_expandItem () function.

function dtreet_ext_expandItem (itemID, expand)

Expands/collapses a specified item or a submenu.
itemID - ID property of an item.
You can find itemID using dtreet_ext_getItemIDByIndex (menuInd, itemInd) function, for example:
itemID = dtreet_ext_getItemIDByIndex(0,2)
expand - 0 - expand the item, 1 - show the item.


To expand specific items by default add '+'symbol before item's text:
var tmenuItems = [
    ["|||+My item - item is expanded","","","","","","",""],
...


For example lets highlight "Purchase" item in the menu. To do it you should call dtreet_ext_setPressedItem () function with the following parameters:
dtreet_ext_setPressedItem (0,dtreet_ext_getItemIDByIndex(0,21));
Highlight "Deluxe Tree/Purchase" item.

Define this function on each page before you call data file:
<script type="text/javascript">
    onload=setPressed;
    function setPressed()
    {
        dtreet_ext_setPressedItem (0,dtreet_ext_getItemIDByIndex(0,2));
    }
</script>
<script type="text/javascript" src="menudir/data.js"> </script>


To highlight and expand "Deluxe Tree/Product Info/Installation" item you should call the following functions:
dtreet_ext_setPressedItem (0,dtreet_ext_getItemIDByIndex(0,5));
dtreet_ext_expandItem (dtreet_ext_getItemIDByIndex(0,2),1);          //expand parent "Product Info" item

Highlight "Deluxe Tree/Product Info/Installation" item.

To highlight and expand "Samples Gallery/Samples Block 2/New Sample 3" item you should call the following functions:
dtreet_ext_setPressedItem (0,dtreet_ext_getItemIDByIndex(0,34));
dtreet_ext_expandItem (dtreet_ext_getItemIDByIndex(0,24),1);        //expand parent "Samples Gallery" item
dtreet_ext_expandItem (dtreet_ext_getItemIDByIndex(0,31),1);        //expand parent "Samples Block 2" item

Highlight "Samples Gallery/Samples Block 2/New Sample 3" item.