/* [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','11',jdecode('%E3%83%9B%E3%83%BC%E3%83%A0'),jdecode(''),'/11/index.html','true',[ 
		['PAGE','23383',jdecode('%E6%96%87%E5%AD%97%E3%82%92%E6%8B%A1%E5%A4%A7%E3%81%99%E3%82%8B%E3%81%AB%E3%81%AF'),jdecode(''),'/11/23383.html','true',[],'']
	],''],
	['PAGE','2670',jdecode('%E3%81%8A%E7%9F%A5%E3%82%89%E3%81%9B'),jdecode(''),'/2670.html','true',[],''],
	['PAGE','40419',jdecode('%E5%BE%8C%E6%9C%9F%E9%AB%98%E9%BD%A2%E8%80%85%E5%8C%BB%E7%99%82'),jdecode(''),'/40419/index.html','true',[ 
		['PAGE','338',jdecode('%E5%88%B6%E5%BA%A6%E3%81%AE%E6%A6%82%E8%A6%81'),jdecode(''),'/40419/338.html','true',[],''],
		['PAGE','40455',jdecode('%E4%BF%9D%E9%99%BA%E8%A8%BC'),jdecode(''),'/40419/40455.html','true',[],''],
		['PAGE','40464',jdecode('%E4%B8%80%E9%83%A8%E8%B2%A0%E6%8B%85%E9%87%91%E3%81%AE%E5%89%B2%E5%90%88'),jdecode(''),'/40419/40464.html','true',[],''],
		['PAGE','40473',jdecode('%E4%BF%9D%E9%99%BA%E6%96%99'),jdecode(''),'/40419/40473.html','true',[],''],
		['PAGE','40482',jdecode('%E7%B5%A6%E4%BB%98'),jdecode(''),'/40419/40482.html','true',[],'']
	],''],
	['PAGE','347',jdecode('%E5%BA%83%E5%9F%9F%E9%80%A3%E5%90%88'),jdecode(''),'/347.html','true',[],''],
	['PAGE','356',jdecode('%E5%BA%83%E5%9F%9F%E9%80%A3%E5%90%88%E8%AD%B0%E4%BC%9A'),jdecode(''),'/356/index.html','true',[ 
		['PAGE','29485',jdecode('%E8%AD%B0%E4%BC%9A%E4%BC%9A%E8%AD%B0%E9%8C%B2'),jdecode(''),'/356/29485.html','true',[],'']
	],''],
	['PAGE','28631',jdecode('%E4%BA%88%E7%AE%97%E3%83%BB%E6%B1%BA%E7%AE%97%E3%83%BB%E4%BC%9A%E8%A8%88'),jdecode(''),'/28631/index.html','true',[ 
		['PAGE','30916',jdecode('%E8%B2%A1%E6%94%BF%E7%8A%B6%E6%B3%81%E5%85%AC%E8%A1%A8'),jdecode(''),'/28631/30916.html','true',[],''],
		['PAGE','36374',jdecode('%E4%BC%9A%E8%A8%88'),jdecode(''),'/28631/36374.html','true',[],'']
	],''],
	['PAGE','28640',jdecode('%E5%85%A5%E6%9C%AD'),jdecode(''),'/28640.html','true',[],''],
	['PAGE','24181',jdecode('%E4%BE%8B%E8%A6%8F%E9%9B%86'),jdecode(''),'/24181/index.html','true',[ 
		['PAGE','39797',jdecode('%E6%A7%98%E5%BC%8F%E9%9B%86'),jdecode(''),'/24181/39797.html','true',[],'']
	],''],
	['PAGE','28803',jdecode('%E9%96%A2%E4%BF%82%E8%B3%87%E6%96%99'),jdecode(''),'/28803.html','true',[],''],
	['PAGE','41938',jdecode('%E4%BC%9A%E8%AD%B0%E9%8C%B2'),jdecode(''),'/41938/index.html','true',[ 
		['PAGE','41489',jdecode('%E5%B8%82%E7%94%BA%E6%9D%91%E9%95%B7%E4%BC%9A'),jdecode(''),'/41938/41489.html','true',[],''],
		['PAGE','28001',jdecode('%E6%87%87%E8%A9%B1%E4%BC%9A'),jdecode(''),'/41938/28001.html','true',[],''],
		['PAGE','41507',jdecode('%E6%83%85%E5%A0%B1%E5%85%AC%E9%96%8B%E3%83%BB%E5%80%8B%E4%BA%BA%E6%83%85%E5%A0%B1%E4%BF%9D%E8%AD%B7%E5%AF%A9%E6%9F%BB%E4%BC%9A'),jdecode(''),'/41938/41507.html','true',[],'']
	],''],
	['PAGE','34555',jdecode('%E6%8E%B2%E7%A4%BA%E6%9D%BF'),jdecode(''),'/34555.html','true',[],''],
	['PAGE','29642',jdecode('%E5%B8%82%E7%94%BA%E6%9D%91%E5%B0%82%E7%94%A8'),jdecode(''),'/29642.html','true',[],''],
	['PAGE','23748',jdecode('%E3%83%AA%E3%83%B3%E3%82%AF'),jdecode(''),'/23748.html','true',[],''],
	['PAGE','383',jdecode('%E3%82%B5%E3%82%A4%E3%83%88%E3%83%9D%E3%83%AA%E3%82%B7%E3%83%BC'),jdecode(''),'/383.html','true',[],''],
	['PAGE','48120',jdecode('%E3%81%9D%E3%81%AE%E4%BB%96'),jdecode(''),'/48120.html','true',[],'']];
var siteelementCount=28;
theSitetree.topTemplateName='Global';
					                                                                    
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 */					                                                            

