var typeNode = 0;
var typeLeaf = 1;
var typeIndxNode = 2;
var typeIndxLeaf = 3;


function TOCNode(indx, numChildren, type, title, link, synopsis, image)
{
	this.indx = indx;
	this.numChildren = numChildren;
	this.type = type;
	this.title = title;
	this.link = link;
	this.synopsis = synopsis;
	this.image = image;
	this.state = 0;
}

function FTSNode(indx, wrd, numLinks)
{
	this.indx = indx;
	this.word = wrd;
	this.numLinks = numLinks;
}