/* [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','12',jdecode('%E3%83%9B%E3%83%BC%E3%83%A0'),jdecode(''),'/12/index.html','true',[ 
		['PAGE','13237',jdecode('%E9%81%8E%E5%8E%BB%E3%81%AE%E3%83%8B%E3%83%A5%E3%83%BC%E3%82%B9'),jdecode(''),'/12/13237.html','true',[],'']
	],''],
	['PAGE','33',jdecode('%E7%90%86%E5%B7%A5%E5%AD%A6%E9%83%A8%E6%A0%A1%E5%8F%8B%E4%BC%9A%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6'),jdecode(''),'/33/index.html','true',[ 
		['PAGE','51',jdecode('%E6%B2%BF%E9%9D%A9%EF%BC%86%E6%B4%BB%E5%8B%95'),jdecode(''),'/33/51.html','true',[],''],
		['PAGE','60',jdecode('%E5%B9%B4%E8%A1%A8'),jdecode(''),'/33/60.html','true',[],''],
		['PAGE','69',jdecode('%E7%B5%84%E7%B9%94%EF%BC%86%E4%BC%9A%E5%93%A1%E6%A7%8B%E6%88%90'),jdecode(''),'/33/69.html','true',[],''],
		['PAGE','3425',jdecode('%E5%80%8B%E4%BA%BA%E6%83%85%E5%A0%B1%E4%BF%9D%E8%AD%B7'),jdecode(''),'/33/3425.html','true',[],'']
	],''],
	['PAGE','78',jdecode('%E6%A1%9C%E5%B7%A5%28%E4%BC%9A%E8%AA%8C%29'),jdecode(''),'/78/index.html','true',[ 
		['PAGE','12451',jdecode('%E3%83%90%E3%83%83%E3%82%AF%E3%83%8A%E3%83%B3%E3%83%90%E3%83%BC81%EF%BD%9E'),jdecode(''),'/78/12451.html','true',[],''],
		['PAGE','12813',jdecode('%E3%83%90%E3%83%83%E3%82%AF%E3%83%8A%E3%83%B3%E3%83%90%E3%83%BC71%EF%BD%9E'),jdecode(''),'/78/12813.html','true',[],'']
	],''],
	['PAGE','87',jdecode('%E8%8B%A5%E3%81%8D%E3%82%A8%E3%83%B3%E3%82%B8%E3%83%8B%E3%82%A2%E2%99%AA'),jdecode(''),'/87.html','true',[],''],
	['PAGE','12326',jdecode('%E5%86%99%E7%9C%9F%E9%9B%86'),jdecode(''),'/12326/index.html','true',[ 
		['PAGE','12314',jdecode('%E6%AD%B4%E4%BB%A3%E4%BC%9A%E9%95%B7'),jdecode(''),'/12326/12314.html','true',[],''],
		['PAGE','12411',jdecode('%EF%BC%91%E5%8F%B7%E9%A4%A8'),jdecode(''),'/12326/12411.html','true',[],'']
	],''],
	['PAGE','12514',jdecode('%E6%A1%9C%E5%B7%A5%E8%B3%9E'),jdecode(''),'/12514.html','true',[],''],
	['PAGE','96',jdecode('%E7%A4%BE%E4%BC%9A%E4%BA%BA%E5%A4%A7%E5%AD%A6%E9%99%A2'),jdecode(''),'/96.html','true',[],''],
	['PAGE','114',jdecode('%E9%96%A2%E9%80%A3%E9%83%A8%E4%BC%9A'),jdecode(''),'/114.html','true',[],''],
	['PAGE','132',jdecode('%E5%8D%92%E6%A5%AD%E8%A8%BC%E6%98%8E%E6%9B%B8%E3%81%AA%E3%81%A9'),jdecode(''),'/132.html','true',[],''],
	['PAGE','141',jdecode('%E9%80%A3%E7%B5%A1%E5%85%88'),jdecode(''),'/141.html','true',[],''],
	['PAGE','105',jdecode('%E3%83%AA%E3%83%B3%E3%82%AF%E9%9B%86'),jdecode(''),'/105.html','true',[],''],
	['PAGE','2871',jdecode('%E9%96%A2%E4%BF%82%E8%80%85%E5%B0%82%E7%94%A8'),jdecode(''),'/2871/index.html','true',[ 
		['PAGE','2870',jdecode('%E6%8A%95%E7%A8%BF%E4%B8%80%E8%A6%A7'),jdecode(''),'/2871/2870.html','true',[],'']
	],'']];
var siteelementCount=22;
theSitetree.topTemplateName='Match';
					                                                                    
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 */					                                                            

