/* Interface to YUI TreeView object to easily define a tree */
/* By JavaScriptKit.com- http://www.javascriptkit.com       */
/* Last updated: Dec 13th, 2006                             */

function jktreeview(treeid){
	this.treetop=new YAHOO.widget.TreeView(treeid)
}

jktreeview.prototype.addItem=function(itemText, noderef, href, colapse){
	var noderef=(typeof noderef!="undefined" && noderef!="")? noderef : this.treetop.getRoot()
	var treebranch=new YAHOO.widget.TextNode(itemText, noderef, colapse)
	if (typeof href!="undefined")
		treebranch.href=href
	return treebranch
}

function Expand() {
//	casp_casp8_branch.expand();
	casp_branch.expand();
}
function Expand_Targets() {
	casp_casp8_target.expand();	
}
function Expand_Registration() {
	casp_casp8_registration.expand();	
}
function Expand_Prediction() {
	casp_casp8_prediction.expand();	
}
function Expand_Account() {
	account_branch.expand();	
}
YAHOO.util.Event.addListener(window, "load", Expand);

