<!--
function TabObject () {
	this.ulObj = null;
	this.contentDivs = null;
	this.currentDepth = 0;
}
TabObject.prototype.getContentDivs = function () {
	if (!this.ulObj || this.contentDivs) return;
	
	this.contentDivs = [];
	var ds = document.getElementsByTagName("div");
	for (var i = 0; i < ds.length; i++) {
		var tabId = ds[i].getAttribute("tabId");
		if (this.ulObj.id == tabId) { 
			this.contentDivs.push(ds[i]);			
		}
	}
}
TabObject.prototype.showContentDiv = function (depth) {
	if (!this.contentDivs) return;
	for (var i = 0; i < this.contentDivs.length; i++) {
		var div = this.contentDivs[i];
		if (depth == div.getAttribute("depth")) {
			div.style.display = "";
		} else {
			div.style.display = "none";
		}
	}
}
TabObject.prototype.callback = function (index,depth) {}
TabObject.prototype.show = function (liObj,depth) {
	if (this.currentDepth == depth) return;		
		
	if (!this.ulObj) this.ulObj = liObj.parentNode;
	this.getContentDivs();
	var lis = this.ulObj.getElementsByTagName("li");
	for (var i = 0; i < lis.length; i++) {
		if (depth == i) {
			lis[i].className = "up";
			this.showContentDiv(depth);
		} else {
			lis[i].className = "";
		}
		this.callback(i,depth);
	}
	
	this.currentDepth = depth;
}

//-->