function SectionWithSubsections(sID, sName, sHref, bIsInternalLink) {
	this.sID = sID;
	this.sName = sName;
	this.sHref = sHref;
	this.bIsInternalLink = bIsInternalLink;
	
	this.hSections = new Object();
	this.bIsAvailable = false;
	this.bIsCurrent = false;
	this.bIsCompleted = false;
}


SectionWithSubsections.prototype.addSection =
function (oSection) {
	this.hSections[oSection.sID] = oSection;
}


SectionWithSubsections.prototype.getSection =
function (sID) {
	return this.hSections[sID];
}


SectionWithSubsections.prototype.reset =
function () {
	this.bIsCompleted = false;
	
	for (var sID in this.hSections) {
		var oSection = this.hSections[sID];
		oSection.reset();
		oSection.bIsAvailable = false;
	}
}


