; return null; }; theSitetree.getHREF = function(id) { var elem = this.getById(id); if (elem != null) return elem[POS_HREF]; return null; }; theSitetree.getIsNavigation = function(id) { var elem = this.getById(id); if (elem != null) return elem[POS_ISNAVIGATION]; return null; }; theSitetree.getTemplateName = function(id, lastTemplateName, ar) { if (typeof(lastTemplateName) == 'undefined') lastTemplateName = this.topTemplateName; if (typeof(ar) == 'undefined') ar = this; for (var i=0; i < ar.length; i++) { var actTemplateName = ar[i][POS_TEMPLATENAME]; if (actTemplateName == '') actTemplateName = lastTemplateName; if (ar[i][POS_ID] == id) { return actTemplateName; } if (ar[i][POS_CHILDS].length > 0) { var result=this.getTemplateName(id, actTemplateName, ar[i][POS_CHILDS]); if (result != null) return result; } } return null; }; /* EOF */ >