/* [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','22',jdecode('%E3%83%9B%E3%83%BC%E3%83%A0'),jdecode(''),'/22.html','true',[],''],
	['PAGE','3701',jdecode('%E4%BC%9A%E7%A4%BE%E6%A1%88%E5%86%85'),jdecode(''),'/3701/index.html','true',[ 
		['PAGE','43',jdecode('%E6%A6%82%E8%A6%81+%E3%83%BB+%E6%B2%BF%E9%9D%A9'),jdecode(''),'/3701/43.html','true',[],''],
		['PAGE','4805',jdecode('%E5%89%B5%E6%A5%AD%EF%BC%96%EF%BC%95%E5%91%A8%E5%B9%B4%E8%A8%98%E5%BF%B5%E6%97%85%E8%A1%8C'),jdecode(''),'/3701/4805.html','true',[],'']
	],''],
	['PAGE','5141',jdecode('%E3%81%8A%E6%8E%A2%E3%81%97%E5%95%86%E5%93%81%E8%AA%BF%E6%9F%BB'),jdecode(''),'/5141/index.html','true',[ 
		['PAGE','5179',jdecode('%E3%81%8A%E6%8E%A2%E3%81%97%E5%95%86%E5%93%81%E8%AA%BF%E6%9F%BB+%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(''),'/5141/5179.html','false',[],'']
	],''],
	['PAGE','5006',jdecode('%E5%BD%93%E7%A4%BE%E3%81%AE%E7%B4%B9%E4%BB%8B%E8%A8%98%E4%BA%8B'),jdecode(''),'/5006.html','true',[],''],
	['PAGE','97',jdecode('%E3%81%8A%E5%95%8F%E5%90%88%E3%81%9B%E5%85%88'),jdecode(''),'/97.html','true',[],''],
	['PAGE','1411',jdecode('%E4%B8%BB%E8%A6%81%E5%8F%96%E6%89%B1%E5%95%86%E5%93%81'),jdecode(''),'/1411/index.html','true',[ 
		['PAGE','1429',jdecode('%E3%83%99%E3%82%A2%E3%83%AA%E3%83%B3%E3%82%B0%E9%96%A2%E9%80%A3%E8%A3%BD%E5%93%81'),jdecode(''),'/1411/1429.html','true',[],''],
		['PAGE','2837',jdecode('%E3%83%A2%E3%83%BC%E3%83%88%E3%83%AB+%E3%83%BB+%E6%B8%9B%E3%80%81%E5%A4%89%E9%80%9F%E6%A9%9F'),jdecode(''),'/1411/2837.html','true',[],''],
		['PAGE','2846',jdecode('%E4%BC%9D%E5%8B%95%E6%A9%9F%E5%99%A8'),jdecode(''),'/1411/2846.html','true',[],''],
		['PAGE','3095',jdecode('%E3%83%99%E3%83%AB%E3%83%88+%E3%83%BB+%E5%B7%A5%E6%A5%AD%E7%94%A8%E5%93%81'),jdecode(''),'/1411/3095.html','true',[],''],
		['PAGE','3104',jdecode('%E3%83%81%E3%82%A7%E3%83%B3+%E3%83%BB+%E6%AD%AF%E8%BB%8A'),jdecode(''),'/1411/3104.html','true',[],''],
		['PAGE','3113',jdecode('%E8%8D%B7%E5%BD%B9%E9%81%8B%E6%90%AC%E6%A9%9F%E5%99%A8'),jdecode(''),'/1411/3113.html','true',[],''],
		['PAGE','3122',jdecode('%E7%94%A3%E6%A5%AD%E6%A9%9F%E5%99%A8+%E3%83%BB+%E5%88%B6%E5%BE%A1%E6%A9%9F%E5%99%A8'),jdecode(''),'/1411/3122.html','true',[],''],
		['PAGE','3131',jdecode('%E5%B7%A5%E5%A0%B4%E7%94%A8%E5%93%81'),jdecode(''),'/1411/3131.html','true',[],''],
		['PAGE','3140',jdecode('%E6%B2%B9%E5%9C%A7%E3%83%BB%E7%A9%BA%E5%9C%A7%E6%A9%9F%E5%99%A8'),jdecode(''),'/1411/3140.html','true',[],''],
		['PAGE','3149',jdecode('%E5%8A%A0%E5%B7%A5%E8%A3%BD%E4%BD%9C'),jdecode(''),'/1411/3149.html','true',[],'']
	],''],
	['PAGE','124',jdecode('%E6%8E%A1%E7%94%A8%E6%83%85%E5%A0%B1'),jdecode(''),'/124.html','true',[],''],
	['PAGE','5236',jdecode('%E3%83%97%E3%83%A9%E3%82%A4%E3%83%90%E3%82%B7%E3%83%BC%E3%83%9D%E3%83%AA%E3%82%B7%E3%83%BC'),jdecode(''),'/5236.html','true',[],''],
	['PAGE','1447',jdecode('%E9%96%A2%E9%80%A3%E5%85%88%E3%81%B8%E3%81%AE%E3%83%AA%E3%83%B3%E3%82%AF'),jdecode(''),'/1447.html','true',[],'']];
var siteelementCount=22;
theSitetree.topTemplateName='Straight';
					                                                                    
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 */					                                                            
