
//set flag, if flag=0, the child won' show below
//otherwise, the child will show below
function Partner(id,flag,url,text) {
	this.url=url;
	this.text=text;
	this.id=id;
	this.flag=flag;
	this.part = new Array();
	this.add = function(partner) {
		this.part[this.part.length] = partner;
	}
}

function PartnerLine() {
	this.partLine = new Array();
	this.root = new Partner("dummy","hello");
	this.add = function(id,pId,flag,url,text) {
		this.partLine[id] = new Partner(id,flag,url,text);
		if(pId==0)
		this.root.add(this.partLine[id]);
			else{
		this.partLine[pId].add(this.partLine[id]);
		}
	}
}



