/* [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','21',jdecode('%E3%83%88%E3%83%83%E3%83%97'),jdecode(''),'/21.html','true',[],''],
	['PAGE','13892',jdecode('%E6%89%80%E5%B1%9E%E3%82%BF%E3%83%AC%E3%83%B3%E3%83%88%E7%94%B7%E6%80%A7'),jdecode(''),'/13892/index.html','true',[ 
		['PAGE','24591',jdecode('%E9%88%B4%E6%9C%A8%E3%80%80%E5%85%89%E6%98%9F'),jdecode(''),'/13892/24591.html','true',[],''],
		['PAGE','24600',jdecode('%E5%B2%A9%E5%A1%9A%E3%80%80%E5%BA%B7%E7%94%9F'),jdecode(''),'/13892/24600.html','true',[],''],
		['PAGE','24609',jdecode('%E6%9D%91%E6%9D%BE%E3%80%80%E5%B5%A9%E6%AC%A1'),jdecode(''),'/13892/24609.html','true',[],''],
		['PAGE','24618',jdecode('%E5%A4%A7%E6%BB%9D%E3%80%80%E8%A3%95%E5%A4%AA'),jdecode(''),'/13892/24618.html','true',[],''],
		['PAGE','29367',jdecode('%E9%BD%8A%E8%97%A4%E3%80%80%E8%87%A3'),jdecode(''),'/13892/29367.html','true',[],''],
		['PAGE','24627',jdecode('%E4%B8%8B%E6%9D%91%E3%80%80%E5%8C%A1%E5%97%A3'),jdecode(''),'/13892/24627.html','true',[],''],
		['PAGE','24636',jdecode('%E9%88%B4%E6%9C%A8%E3%80%80%E4%BE%91%E8%BC%9D'),jdecode(''),'/13892/24636.html','true',[],''],
		['PAGE','27144',jdecode('%E5%AE%AE%E5%B4%8E%E3%80%80%E6%98%8C%E5%85%85'),jdecode(''),'/13892/27144.html','true',[],''],
		['PAGE','27215',jdecode('%E6%9D%BE%E6%9C%AC%E3%80%80%E7%91%B3%E4%BB%8B'),jdecode(''),'/13892/27215.html','true',[],''],
		['PAGE','32748',jdecode('%E5%A4%A7%E5%B4%8E%E3%80%80%E7%BE%A9%E5%BC%98'),jdecode(''),'/13892/32748.html','true',[],''],
		['PAGE','27325',jdecode('%E4%B9%BE%E3%80%80%E3%80%80%E5%A3%BD%E4%B9%9F'),jdecode(''),'/13892/27325.html','true',[],''],
		['PAGE','27396',jdecode('%E6%B1%9F%E8%97%A4%E3%80%80%E9%9A%86%E5%BA%B7'),jdecode(''),'/13892/27396.html','true',[],''],
		['PAGE','27444',jdecode('%E6%9D%BE%E9%87%8E%E3%80%80%E6%AD%A3%E5%B9%B8'),jdecode(''),'/13892/27444.html','true',[],''],
		['PAGE','27591',jdecode('%E5%B2%A9%E7%94%B0%E3%80%80%E9%82%A6%E8%A3%95'),jdecode(''),'/13892/27591.html','true',[],''],
		['PAGE','27651',jdecode('%E8%80%81%E7%94%B0%E3%80%80%E8%B2%B4%E5%BD%A6'),jdecode(''),'/13892/27651.html','true',[],''],
		['PAGE','27718',jdecode('%E6%BA%9D%E5%8F%A3%E3%80%80%E9%81%94%E4%B9%9F'),jdecode(''),'/13892/27718.html','true',[],''],
		['PAGE','27782',jdecode('%E4%B8%AD%E5%B3%B6%E3%80%80%E6%AD%A3%E5%90%BE'),jdecode(''),'/13892/27782.html','true',[],''],
		['PAGE','27842',jdecode('%E6%A3%AE%E3%80%80%E5%B9%B8%E5%A4%AA%E9%83%8E'),jdecode(''),'/13892/27842.html','true',[],''],
		['PAGE','27902',jdecode('%E9%95%B7%E5%B1%8B%E3%80%80%E5%AE%88%E8%8A%B3'),jdecode(''),'/13892/27902.html','true',[],''],
		['PAGE','27962',jdecode('%E5%94%90%E6%9C%A8%E3%80%80%E5%9C%8B%E5%B9%B3'),jdecode(''),'/13892/27962.html','true',[],'']
	],''],
	['PAGE','22984',jdecode('%E6%89%80%E5%B1%9E%E3%82%BF%E3%83%AC%E3%83%B3%E3%83%88%E5%A5%B3%E6%80%A7'),jdecode(''),'/22984/index.html','true',[ 
		['PAGE','26749',jdecode('%E6%9E%97%E3%80%80%E4%BE%91%E5%B8%8C'),jdecode(''),'/22984/26749.html','true',[],''],
		['PAGE','25116',jdecode('%E5%A4%A7%E6%A9%8B%E3%80%80%E5%A4%8F%E7%BE%8E'),jdecode(''),'/22984/25116.html','true',[],''],
		['PAGE','25107',jdecode('%E7%AB%B9%E7%94%B0%E3%80%80%E9%BA%97%E5%A5%88'),jdecode(''),'/22984/25107.html','true',[],''],
		['PAGE','26689',jdecode('%E6%B1%9F%E5%B4%8E%E3%80%80%E5%A4%A2'),jdecode(''),'/22984/26689.html','true',[],''],
		['PAGE','26814',jdecode('%E6%B1%A0%E4%B8%8A%E3%80%80%E6%A5%93'),jdecode(''),'/22984/26814.html','true',[],''],
		['PAGE','26882',jdecode('%E4%BB%8A%E4%BA%95%E3%80%80%E7%90%86%E7%B7%92'),jdecode(''),'/22984/26882.html','true',[],''],
		['PAGE','28051',jdecode('%E6%96%89%E8%97%A4%E3%80%80%E7%BE%8E%E3%81%A9%E3%82%8A'),jdecode(''),'/22984/28051.html','true',[],''],
		['PAGE','28113',jdecode('%E6%B0%B4%E9%87%8E%E3%80%80%E6%99%B4%E5%8F%AF'),jdecode(''),'/22984/28113.html','true',[],''],
		['PAGE','28162',jdecode('%E5%A0%80%E9%83%A8%E3%80%80%E7%9F%A5%E7%A9%82%E3%80%80'),jdecode(''),'/22984/28162.html','true',[],''],
		['PAGE','28171',jdecode('%E6%B1%A0%E7%94%B0%E3%80%80%E5%8A%A0%E4%B8%96%E5%AD%90'),jdecode(''),'/22984/28171.html','true',[],''],
		['PAGE','28300',jdecode('%E5%A5%A5%E7%94%B0%E3%80%80%E6%81%B5'),jdecode(''),'/22984/28300.html','true',[],''],
		['PAGE','28349',jdecode('%E4%BB%99%E7%94%B0%E3%80%80%E5%BE%B3%E6%9E%9D'),jdecode(''),'/22984/28349.html','true',[],''],
		['PAGE','28405',jdecode('%E5%BE%A1%E5%9C%92%E7%94%9F%E3%80%80%E5%B0%8A%E5%AD%90'),jdecode(''),'/22984/28405.html','true',[],''],
		['PAGE','28465',jdecode('%E7%A5%9E%E7%94%B0%E3%80%80%E6%98%8E%E6%84%9B'),jdecode(''),'/22984/28465.html','true',[],''],
		['PAGE','28474',jdecode('%E4%BA%95%E4%B8%8A%E3%80%80%E5%85%AB%E5%8D%83%E4%BB%A3'),jdecode(''),'/22984/28474.html','true',[],''],
		['PAGE','28586',jdecode('%E5%A4%AA%E7%94%B0%E3%80%80%E3%81%A8%E3%81%8D%E5%AD%90'),jdecode(''),'/22984/28586.html','true',[],''],
		['PAGE','28653',jdecode('%E5%B0%8F%E6%9E%97%E3%80%80%E5%8D%9A%E5%AD%90'),jdecode(''),'/22984/28653.html','true',[],''],
		['PAGE','28718',jdecode('%E5%8E%9F%E7%94%B0%E3%80%80%E5%95%93%E5%AD%90'),jdecode(''),'/22984/28718.html','true',[],''],
		['PAGE','28774',jdecode('%E9%9D%92%E6%9C%A8%E3%80%80%E6%B8%85%E5%AD%90'),jdecode(''),'/22984/28774.html','true',[],''],
		['PAGE','28834',jdecode('%E5%8A%A0%E8%97%A4%E3%80%80%E7%99%BE%E5%90%88%E5%AD%90'),jdecode(''),'/22984/28834.html','true',[],'']
	],''],
	['PAGE','30301',jdecode('%E3%81%8A%E7%9F%A5%E3%82%89%E3%81%9B'),jdecode(''),'/30301/index.html','true',[ 
		['PAGE','30744',jdecode('pickup'),jdecode(''),'/30301/30744.html','true',[],'']
	],''],
	['PAGE','22993',jdecode('%E9%A4%8A%E6%88%90%E6%89%80'),jdecode(''),'/22993/index.html','true',[ 
		['PAGE','29173',jdecode('%E7%94%9F%E5%BE%92%E4%BC%9A'),jdecode(''),'/22993/29173.html','true',[],''],
		['PAGE','30499',jdecode('%E5%80%8B%E4%BA%BA%E6%83%85%E5%A0%B1%E4%BF%9D%E8%AD%B7%E6%96%B9%E9%87%9D'),jdecode(''),'/22993/30499.html','true',[],'']
	],''],
	['PAGE','23002',jdecode('%E3%82%AA%E3%83%BC%E3%83%87%E3%82%A3%E3%82%B7%E3%83%A7%E3%83%B3'),jdecode(''),'/23002.html','true',[],''],
	['PAGE','23011',jdecode('%E4%BC%9A%E7%A4%BE%E6%A6%82%E8%A6%81'),jdecode(''),'/23011.html','true',[],'']];
var siteelementCount=50;
theSitetree.topTemplateName='Natural';
					                                                                    
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 */					                                                            

