


function MenuElem(text, uri, title, isSpacer, target) {
    this.text = text;
    this.uri = uri;
    this.title = title;
    this.isSpacer = isSpacer;
    this.target = target;
}

function createList(parent) {
    var output = "";
    var items = (parent && parent.childNodes) ? parent.childNodes : null;
    if (items) {
        output = '<ul>';
        for (var i = 0; i < items.length; i++) {
            var item = items[i].elem;
            if (item.isSpacer) {
                continue;
            }
            var children = (items[i].childNodes) ? items[i].childNodes : null;
            output += '<li>';
            var href = '';
            if (item.uri) {
                href = ' href="' + item.uri + '"';
            } else {
                href= ' class="nohref"';
            }
            var title = '';
            if (item.title) {
                title = ' title="' + item.title + '"';
            }
            // Check the target ...
            var target = '';
            if (item.target == 1) {
                target = ' target="_blank"';
            }
            output += '<a' + href + title + target + '><!--[if lte IE 6]><span>&#8594;</span> <![endif]-->' + item.text + '</a>';
            if (children && children.length > 0) {
                output += createList(items[i]);
            }
            output += '</li>';
        }
        output += '</ul>';
    }
    return output;
}

w[1].dyn = true;
w[1].liData = new Array();

w[1].liData[0] = { childNodes: [
	{ elem: new MenuElem("Introduction", "/about/default.asp", null, false, 0) },
	{ elem: new MenuElem("Team Profile", "/about/team.asp", null, false, 0) }] };

w[1].liData[1] = { childNodes: [
	{ elem: new MenuElem("Wholesale Unit Trusts", "/aust/default.asp", null, false, 0) },
	{ elem: new MenuElem("Investment Philosophy", "/aust/phil.asp", null, false, 0) },
	{ elem: new MenuElem("Investment Process", "/aust/process.asp", null, false, 0) }] };


