// JavaScript Document
dojo.require("dijit.Menu");

function onBrowseLoad(){
	dojo.require("ftpadmin.plugins.browse.engine",true);
	dojo.require("dojox.highlight");
	dojo.require("dojox.highlight.languages.python");
	tree = new Zapatec.Tree({
		tree: "tree",
		expandOnLabelClick: true,
		highlightSelectedNode: true,
		keyboardNavigation:true,
//		selectMultiple:true,
//		deselectSelected:true,
//		disableContextMenu: true,
		eventListeners: {
            'select': function(){
				//var path = this.data.attributes.spath;
				//dojo.byId("path").value = path;
				//updateSharingPermits(path)
			},
			'labelRightClick': function(ev){showBrowseMenu(this,ev)},
			'iconRightClick': function(ev){showBrowseMenu(this,ev)}
        }
	});
	browseContextMenu = dojo.byId("browseCM");
	browseContextMenuList = dojo.byId("browseMenu");
	disableSelection(browseContextMenu);
}


