/* [nodename, id, name, navigationtext, href, isnavigation, childs[], templatename] */

function jdecode(s) {
    s = s.replace(/\+/g, "%20")
    return unescape(s);
}

var POS_NODENAME=0;
var POS_ID=1;
var POS_NAME=2;
var POS_NAVIGATIONTEXT=3;
var POS_HREF=4;
var POS_ISNAVIGATION=5;
var POS_CHILDS=6;
var POS_TEMPLATENAME=7;
var theSitetree=[ 
	['PAGE','14',jdecode('%E3%83%9B%E3%80%80%E3%80%80+%EF%BC%8D%E3%80%80+%E3%80%80%E3%83%A0'),jdecode(''),'/14.html','true',[],''],
	['PAGE','44',jdecode('%E3%82%B8%E3%83%A3%E3%82%B1%E3%83%83%E3%83%88+%E3%81%AE+%E8%A9%B3%E7%B4%B0'),jdecode(''),'/44.html','true',[],''],
	['PAGE','95046',jdecode('%E5%90%84%E7%A8%AE%E3%83%99%E3%82%B9%E3%83%88%E3%81%AE++%E8%A9%B3%E7%B4%B0'),jdecode(''),'/95046.html','true',[],''],
	['PAGE','53',jdecode('%E3%82%AB%E3%82%B8%E3%83%A5%E3%82%A2%E3%83%AB%E3%82%B8%E3%83%A3%E3%82%B1%E3%83%83%E3%83%88'),jdecode(''),'/53.html','true',[],''],
	['PAGE','62',jdecode('%E5%90%84++%E7%A8%AE+++%E3%83%99+++%E3%82%B9+++%E3%83%88'),jdecode(''),'/62.html','true',[],''],
	['PAGE','2285',jdecode('%E5%BE%A1%E6%B3%A8%E6%96%87++%EF%BC%9A++%E9%80%9A%E8%B2%A9%E6%B3%95%E3%80%80'),jdecode(''),'/2285/index.html','true',[ 
		['PAGE','95222',jdecode('%E5%BE%A1%E6%B3%A8%E6%96%87+*+%E9%80%9A%E8%B2%A9%E6%B3%95%E3%80%80+%28%E3%83%95%E3%82%A9%E3%83%AD%E3%83%BC%E3%82%A2%E3%83%83%E3%83%97%E3%81%AE%E3%83%9A%E3%83%BC%E3%82%B8%29'),jdecode(''),'/2285/95222.html','false',[],''],
		['PAGE','12021',jdecode('%E3%83%95%E3%82%A9%EF%BC%8D%E3%83%A0%E3%80%80%E3%83%A1%EF%BC%8D%E3%83%AB+%28%E3%83%95%E3%82%A9%E3%83%AD%E3%83%BC%E3%82%A2%E3%83%83%E3%83%97%E3%81%AE%E3%83%9A%E3%83%BC%E3%82%B8%29'),jdecode(''),'/2285/12021.html','false',[],'']
	],''],
	['PAGE','64813',jdecode('%E3%83%AF%E3%83%AB%EF%BC%8D%E3%83%89%E3%82%B9%E3%83%9E%E3%82%A4%E3%83%AB'),jdecode(''),'/64813.html','true',[],'']];
var siteelementCount=9;
theSitetree.topTemplateName='Borders';
					                                                                    
theSitetree.getById = function(id, ar) {												
							if (typeof(ar) == 'undefined')                              
								ar = this;                                              
							for (var i=0; i < ar.length; i++) {                         
								if (ar[i][POS_ID] == id)                                
									return ar[i];                                       
								if (ar[i][POS_CHILDS].length > 0) {                     
									var result=this.getById(id, ar[i][POS_CHILDS]);     
									if (result != null)                                 
										return result;                                  
								}									                    
							}                                                           
							return null;                                                
					  };                                                                
					                                                                    
theSitetree.getParentById = function(id, ar) {                                        
						if (typeof(ar) == 'undefined')                              	
							ar = this;                                             		
						for (var i=0; i < ar.length; i++) {                        		
							for (var j = 0; j < ar[i][POS_CHILDS].length; j++) {   		
								if (ar[i][POS_CHILDS][j][POS_ID] == id) {          		
									// child found                                 		
									return ar[i];                                  		
								}                                                  		
								var result=this.getParentById(id, ar[i][POS_CHILDS]);   
								if (result != null)                                 	
									return result;                                  	
							}                                                       	
						}                                                           	
						return null;                                                	
					 }								                                    
					                                                                    
theSitetree.getName = function(id) {                                                  
						var elem = this.getById(id);                                    
						if (elem != null)                                               
							return elem[POS_NAME];                                      
						return null;	                                                
					  };			                                                    
theSitetree.getNavigationText = function(id) {                                        
						var elem = this.getById(id);                                    
						if (elem != null)                                               
							return elem[POS_NAVIGATIONTEXT];                            
						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 */					                                                            
