if(!EASYPROF.util.StructureManager){EASYPROF.util.StructureNode=function(a){this.node=a;this.parent=null;this.children=[];this.visited=false;this.isTitle=function(){return this.node.type==0};this.isHeading=function(){return this.node.type==1};this.isPage=function(){return this.node.type==2};this.isVisited=function(){return this.visited};this.setVisited=function(b){this.visited=b};this.getOID=function(){return this.node.id};this.getName=function(){return this.node.name};this.childCount=function(){return this.children.length};this.getChild=function(b){return this.children[b]};this.addChild=function(b){b.parent=this;this.children.push(b)};this.getParent=function(){return this.parent};this.getPageName=function(){if(this.node.file){return this.node.file}else{return""}};this.getLastPage=function(){if(this.isPage()){return this}for(var b=this.children.length-1;b>=0;b--){var c=this.children[b].getLastPage();if(c!=null){return c}}return null};this.countPage=function(){if(this.isPage()){return 1}else{var c=0;for(var b=0;b