function PageName( sInID, oInPageVar ){
	this.ID = sInID;
	this.PageVar = oInPageVar;

	this.MinLevelNo = 0;
	this.MaxLevelNo = 0;
	this.IsCurNode = false;

	this.ShowPageName = function ShowPageName(){
		if( this.IsCurNode ){
			document.write( this.PageVar.NodeInfo.PageName );
		}
		else{
			if(( this.MinLevelNo == 0 || this.PageVar.NodeInfo.LevelNo >= this.MinLevelNo ) &&
				( this.MaxLevelNo == 0 || this.PageVar.NodeInfo.LevelNo <= this.MaxLevelNo )){
				document.write( this.PageVar.NodeInfo.PageName );
			}
			else{
				for( var i = 0; i < this.PageVar.Parents.length; i++ ){
					if(( this.MinLevelNo == 0 || this.PageVar.Parents[i].LevelNo >= this.MinLevelNo ) &&
						( this.MaxLevelNo == 0 || this.PageVar.Parents[i].LevelNo <= this.MaxLevelNo )){
						document.write( this.PageVar.Parents[i].PageName );
						break;
					}
				}
			}
		}
	}
}