/* [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','36',jdecode('%E3%83%88%E3%83%83%E3%83%97%E3%83%9A%E3%83%BC%E3%82%B8'),jdecode(''),'/36/index.html','true',[ 
		['PAGE','21443',jdecode('%E3%82%B3%E3%83%9F%E3%83%83%E3%82%AF'),jdecode(''),'/36/21443.html','true',[],''],
		['PAGE','21452',jdecode('%EF%BC%B4%EF%BC%B6%E3%82%B2%E3%83%BC%E3%83%A0'),jdecode(''),'/36/21452.html','true',[],''],
		['PAGE','21461',jdecode('%EF%BC%A3%EF%BC%A4'),jdecode(''),'/36/21461.html','true',[],''],
		['PAGE','21470',jdecode('%EF%BC%A4%EF%BC%B6%EF%BC%A4'),jdecode(''),'/36/21470.html','true',[],''],
		['PAGE','91721',jdecode('%E5%A4%A7%E4%BA%BA%E3%81%AE%E9%A4%A8'),jdecode(''),'/36/91721.html','true',[],''],
		['PAGE','21479',jdecode('%E3%81%8A%E3%82%82%E3%81%A1%E3%82%83'),jdecode(''),'/36/21479.html','true',[],''],
		['PAGE','21488',jdecode('%E3%83%88%E3%83%AC%E3%82%AB'),jdecode(''),'/36/21488.html','true',[],''],
		['PAGE','21497',jdecode('%E5%8F%A4%E7%9D%80%EF%BC%88%E3%83%A1%E3%83%B3%E3%82%BA%EF%BC%89'),jdecode(''),'/36/21497.html','true',[],''],
		['PAGE','21506',jdecode('%E5%8F%A4%E7%9D%80%EF%BC%88%E3%83%AC%E3%83%87%E3%82%A3%E3%83%BC%E3%82%B9%EF%BC%89'),jdecode(''),'/36/21506.html','true',[],''],
		['PAGE','21515',jdecode('%E5%B8%BD%E5%AD%90%E3%83%BB%E3%81%8B%E3%81%B0%E3%82%93'),jdecode(''),'/36/21515.html','true',[],''],
		['PAGE','75852',jdecode('%E3%82%A2%E3%82%AF%E3%82%BB%E3%83%BB%E6%99%82%E8%A8%88'),jdecode(''),'/36/75852.html','true',[],''],
		['PAGE','21524',jdecode('%E3%82%B9%E3%83%8B%E3%83%BC%E3%82%AB%E3%83%BC%E3%83%BB%E9%9D%B4'),jdecode(''),'/36/21524.html','true',[],''],
		['PAGE','21533',jdecode('%E9%87%A3%E5%85%B7'),jdecode(''),'/36/21533.html','true',[],''],
		['PAGE','21542',jdecode('%E6%90%BA%E5%B8%AF%E3%83%BB%E3%82%AE%E3%83%95%E3%83%88'),jdecode(''),'/36/21542.html','true',[],'']
	],''],
	['PAGE','75',jdecode('%E6%B1%82%E4%BA%BA%E6%83%85%E5%A0%B1'),jdecode(''),'/75.html','true',[],''],
	['PAGE','84',jdecode('%E3%82%88%E3%81%8F%E3%81%82%E3%82%8B%E3%81%94%E8%B3%AA%E5%95%8F'),jdecode(''),'/84.html','true',[],''],
	['PAGE','93',jdecode('%E5%BA%97%E8%88%97%E5%9C%B0%E5%9B%B3'),jdecode(''),'/93.html','true',[],''],
	['PAGE','1260',jdecode('%E7%89%A9%E4%BB%B6%E5%8B%9F%E9%9B%86'),jdecode(''),'/1260.html','true',[],''],
	['PAGE','90731',jdecode('%E3%82%B5%E3%82%A4%E3%83%88%E3%83%9E%E3%83%83%E3%83%97'),jdecode(''),'/90731.html','true',[],'']];
var siteelementCount=20;
theSitetree.topTemplateName='Aroundtheworld';
					                                                                    
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 */					                                                            
