/* [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','68',jdecode('TOP'),jdecode(''),'/68.html','true',[],''],
	['PAGE','2423',jdecode('%E6%95%99%E4%BC%9A%E6%A1%88%E5%86%85'),jdecode(''),'/2423.html','true',[],''],
	['PAGE','18903',jdecode('%E7%89%A7%E5%B8%AB%E6%8C%89%E6%89%8B%E5%BC%8F'),jdecode(''),'/18903.html','true',[],''],
	['PAGE','20958',jdecode('Gospel+Night+10.7.7'),jdecode(''),'/20958.html','true',[],''],
	['PAGE','20674',jdecode('%E3%82%AD%E3%83%A3%E3%83%B3%E3%83%97+10.5.2%E2%80%904'),jdecode(''),'/20674.html','true',[],''],
	['PAGE','20401',jdecode('%E3%82%A4%E3%83%BC%E3%82%B9%E3%82%BF%E3%83%BC+10.4.4'),jdecode(''),'/20401.html','true',[],''],
	['PAGE','18532',jdecode('%E5%90%88%E5%90%8C%E7%A4%BC%E6%8B%9D+09.7.12'),jdecode(''),'/18532.html','true',[],''],
	['PAGE','20006',jdecode('09+Christmas'),jdecode(''),'/20006.html','true',[],''],
	['PAGE','14793',jdecode('WORSHIP+NIGHT'),jdecode(''),'/14793/index.html','true',[ 
		['PAGE','14476',jdecode('photo+08.3.28'),jdecode(''),'/14793/14476.html','true',[],''],
		['PAGE','15084',jdecode('photo+08.4.25'),jdecode(''),'/14793/15084.html','true',[],''],
		['PAGE','15263',jdecode('photo+08.5.23'),jdecode(''),'/14793/15263.html','true',[],''],
		['PAGE','15679',jdecode('photo+08.6.27'),jdecode(''),'/14793/15679.html','true',[],''],
		['PAGE','15796',jdecode('photo+08.7.25'),jdecode(''),'/14793/15796.html','true',[],''],
		['PAGE','16214',jdecode('photo+08.8.22'),jdecode(''),'/14793/16214.html','true',[],''],
		['PAGE','16400',jdecode('photo+08.9.26'),jdecode(''),'/14793/16400.html','true',[],''],
		['PAGE','16841',jdecode('photo+08.10.15'),jdecode(''),'/14793/16841.html','true',[],'']
	],''],
	['PAGE','10673',jdecode('WS%26PPH'),jdecode(''),'/10673/index.html','true',[ 
		['PAGE','10578',jdecode('photo+07.10.3'),jdecode(''),'/10673/10578.html','true',[],''],
		['PAGE','11486',jdecode('photo+07.11.9+'),jdecode(''),'/10673/11486.html','true',[],''],
		['PAGE','11999',jdecode('photo+07.12.7'),jdecode(''),'/10673/11999.html','true',[],''],
		['PAGE','12761',jdecode('photo+08.1.11'),jdecode(''),'/10673/12761.html','true',[],''],
		['PAGE','14034',jdecode('photo+08.3.14'),jdecode(''),'/10673/14034.html','true',[],''],
		['PAGE','14929',jdecode('photo+08.4.18'),jdecode(''),'/10673/14929.html','true',[],''],
		['PAGE','15251',jdecode('photo+08.5.9'),jdecode(''),'/10673/15251.html','true',[],''],
		['PAGE','15517',jdecode('photo+08.6.13'),jdecode(''),'/10673/15517.html','true',[],''],
		['PAGE','16226',jdecode('photo+08.8.15'),jdecode(''),'/10673/16226.html','true',[],''],
		['PAGE','16853',jdecode('photo+08.10.17'),jdecode(''),'/10673/16853.html','true',[],''],
		['PAGE','17076',jdecode('photo+08.11.14'),jdecode(''),'/10673/17076.html','true',[],''],
		['PAGE','17309',jdecode('photo+08.12.19'),jdecode(''),'/10673/17309.html','true',[],''],
		['PAGE','17626',jdecode('photo+09.1.16'),jdecode(''),'/10673/17626.html','true',[],''],
		['PAGE','17784',jdecode('photo+09.2.13'),jdecode(''),'/10673/17784.html','true',[],''],
		['PAGE','17884',jdecode('photo+09.3.13'),jdecode(''),'/10673/17884.html','true',[],''],
		['PAGE','18038',jdecode('photo+09.4.24'),jdecode(''),'/10673/18038.html','true',[],''],
		['PAGE','18127',jdecode('photo+09.5.22'),jdecode(''),'/10673/18127.html','true',[],''],
		['PAGE','18302',jdecode('photo+09.6.26+'),jdecode(''),'/10673/18302.html','true',[],''],
		['PAGE','19346',jdecode('photo+09.9.25'),jdecode(''),'/10673/19346.html','true',[],''],
		['PAGE','19982',jdecode('photo+09.11.27'),jdecode(''),'/10673/19982.html','true',[],'']
	],''],
	['PAGE','18891',jdecode('%E3%82%AD%E3%83%A3%E3%83%B3%E3%83%9709.8.6-8'),jdecode(''),'/18891/index.html','true',[ 
		['PAGE','16010',jdecode('%E3%82%AD%E3%83%A3%E3%83%B3%E3%83%9708.8.7-9'),jdecode(''),'/18891/16010.html','true',[],'']
	],''],
	['PAGE','16452',jdecode('MEBIG'),jdecode(''),'/16452/index.html','true',[ 
		['PAGE','19097',jdecode('2008%E5%B9%B4MEBIG'),jdecode(''),'/16452/19097.html','true',[],'']
	],''],
	['PAGE','9242',jdecode('ROCK+LIVE'),jdecode(''),'/9242/index.html','true',[ 
		['PAGE','9811',jdecode('photo+07.9.21'),jdecode(''),'/9242/9811.html','true',[],''],
		['PAGE','11086',jdecode('photo+07.10.19'),jdecode(''),'/9242/11086.html','true',[],''],
		['PAGE','11655',jdecode('photo+07.11.16'),jdecode(''),'/9242/11655.html','true',[],''],
		['PAGE','13064',jdecode('photo+08.1.18'),jdecode(''),'/9242/13064.html','true',[],''],
		['PAGE','13635',jdecode('photo+08.2.15'),jdecode(''),'/9242/13635.html','true',[],''],
		['PAGE','14256',jdecode('photo+08.3.21'),jdecode(''),'/9242/14256.html','true',[],'']
	],''],
	['PAGE','10278',jdecode('%E3%81%8A%E5%8F%8B%E3%81%A0%E3%81%A1%E7%A4%BC%E6%8B%9D'),jdecode(''),'/10278/index.html','true',[ 
		['PAGE','17088',jdecode('photo+08.11.16'),jdecode(''),'/10278/17088.html','true',[],''],
		['PAGE','19994',jdecode('photo+09.12.13'),jdecode(''),'/10278/19994.html','true',[],'']
	],''],
	['PAGE','10356',jdecode('%E3%82%AD%E3%83%83%E3%82%BA%E3%82%A4%E3%83%99%E3%83%B3%E3%83%88'),jdecode(''),'/10356/index.html','true',[ 
		['PAGE','10266',jdecode('photo+07.9.29'),jdecode(''),'/10356/10266.html','true',[],''],
		['PAGE','12272',jdecode('photo+07.12.15'),jdecode(''),'/10356/12272.html','true',[],''],
		['PAGE','13647',jdecode('photo+08.2.16+'),jdecode(''),'/10356/13647.html','true',[],''],
		['PAGE','14268',jdecode('photo+08.3.16'),jdecode(''),'/10356/14268.html','true',[],''],
		['PAGE','15529',jdecode('photo+08.6.14'),jdecode(''),'/10356/15529.html','true',[],''],
		['PAGE','16631',jdecode('photo+08.9.27'),jdecode(''),'/10356/16631.html','true',[],''],
		['PAGE','6907',jdecode('%E3%81%93%E3%81%A9%E3%82%82%E7%A5%9D%E7%A6%8F%E5%BC%8F'),jdecode(''),'/10356/6907.html','true',[],'']
	],''],
	['PAGE','17297',jdecode('%E6%B4%97%E7%A4%BC%E5%BC%8F08.12.14'),jdecode(''),'/17297.html','true',[],''],
	['PAGE','8289',jdecode('%E3%83%AA%E3%83%90%E3%82%A4%E3%83%90%E3%83%AB%E9%9B%86%E4%BC%9A'),jdecode(''),'/8289/index.html','true',[ 
		['PAGE','8788',jdecode('%E3%83%8F%E3%83%AF%E3%82%A4%E6%B1%BA%E8%B5%B7%E5%A4%A7%E4%BC%9A'),jdecode(''),'/8289/8788.html','true',[],''],
		['PAGE','6829',jdecode('Zawameki+CL'),jdecode(''),'/8289/6829.html','true',[],'']
	],''],
	['PAGE','6478',jdecode('Event'),jdecode(''),'/6478.html','true',[],''],
	['PAGE','7520',jdecode('Gallery'),jdecode(''),'/7520/index.html','true',[ 
		['PAGE','13435',jdecode('%E8%B3%9B%E7%BE%8E%E9%9B%86%E4%BC%9A%E3%80%8008.2.8'),jdecode(''),'/7520/13435.html','true',[],''],
		['PAGE','6879',jdecode('06+Christmas'),jdecode(''),'/7520/6879.html','true',[],''],
		['PAGE','12569',jdecode('07+Christmas'),jdecode(''),'/7520/12569.html','true',[],''],
		['PAGE','17321',jdecode('08+Christmas'),jdecode(''),'/7520/17321.html','true',[],'']
	],''],
	['PAGE','2050',jdecode('Access'),jdecode(''),'/2050/index.html','true',[ 
		['PAGE','20128',jdecode('map'),jdecode(''),'/2050/20128.html','true',[],'']
	],''],
	['PAGE','2621',jdecode('Link'),jdecode(''),'/2621.html','true',[],'']];
var siteelementCount=73;
theSitetree.topTemplateName='Startup';
					                                                                    
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 */					                                                            
