Xml menu

hi,

i am trying to use the example in the xml tutorial here on kirupa (classes menu)… works great apart from ii would like to be able to have all the folders closed to start with… any ideas?

[AS]
// Folder interaction/placement
function SetAtBottomOfParent(below_mc){
if (below_mc._parent._height) {
below_mc._y = below_mc._parent.getBounds(below_mc._parent).yMax;
}
}
function SetBelow(below_mc, top_mc){
if (top_mc != undefined) {
below_mc._y = top_mc.getBounds(top_mc._parent).yMax;
}
}
function ArrangeContents(directory_mc){
var item = directory_mc.firstChild;
if (item != undefined){
while (item = item.nextSibling){
SetBelow(item, item.previousSibling);
}
var parent_container = directory_mc._parent._parent;
if (parent_container != undefined) ArrangeContents(parent_container);
}
}
function Fold(){
if (this._parent.directory_mc._visible){
this._parent.directory_mc._visible = false;
this._parent.directory_mc._yscale = 0;
}else{
this._parent.directory_mc._visible = true;
this._parent.directory_mc._yscale = 100;
}
ArrangeContents(this._parent._parent);
scrollbar.contentChanged();
}

// define basic variables for setting up the menu
var item_indent = 15;

function GenerateFileListing(directory_node, target_mc){
var directory_mc = target_mc.createEmptyMovieClip(“directory_mc”, 1);
SetAtBottomOfParent(directory_mc);
directory_mc._x += item_indent;
directory_mc.depth = 0;

var contents = directory_node.childNodes;

var item_mc, last_item_mc;
for (var i=0; i<contents.length; i++) {

    item_mc = directory_mc.attachMovie("directory_item","item"+directory_mc.depth, directory_mc.depth);
    directory_mc.depth++;
    
    item_mc.name_txt.text = contents*.attributes.name;
    item_mc.icon_mc.gotoAndStop(contents*.attributes.type);
    
    if (last_item_mc == undefined) directory_mc.firstChild = item_mc;
    else item_mc.previousSibling = last_item_mc;
    last_item_mc.nextSibling = item_mc;
    last_item_mc = item_mc;
    
    if (contents*.attributes.type == "directory"){
        item_mc.select_btn.onPress = Fold;
        GenerateFileListing(contents*, item_mc);
    }
    
    ArrangeContents(directory_mc);
}

}

// manage XML
// create new XML object instance, remembering to ignore white space
var directory_xml = new XML();
directory_xml.ignoreWhite = true;
// define an onLoad to create our location menu when the XML has successfully loaded.
directory_xml.onLoad = function(success){
if (success){
GenerateFileListing(this, listing_mc);
scrollbar.setTarget(listing_mc, view_mc._y, view_mc._height);
}else trace(“Error loading XML file”); // no success? trace error (wont be seen on web)
}

// load the xml file!
directory_xml.load(“mx04_classes.xml”);

[/AS]