/* [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','13',jdecode('%E3%83%9B%E3%83%BC%E3%83%A0'),jdecode(''),'/13.html','true',[],''],
	['PAGE','5722',jdecode('%E3%81%8A%E7%9F%A5%E3%82%89%E3%81%9B'),jdecode(''),'/5722.html','true',[],''],
	['PAGE','342',jdecode('%E4%BC%9A%E7%A4%BE%E6%A1%88%E5%86%85'),jdecode(''),'/342.html','true',[],''],
	['PAGE','10236',jdecode('%E3%82%AF%E3%83%AC%E3%82%B8%E3%83%83%E3%83%88%E3%81%8A%E5%8F%96%E3%82%8A%E6%89%B1%E3%81%84'),jdecode(''),'/10236.html','true',[],''],
	['PAGE','360',jdecode('%E4%BA%8B%E6%A5%AD%E5%86%85%E5%AE%B9'),jdecode(''),'/360.html','true',[],''],
	['PAGE','396',jdecode('%E8%A8%AD%E8%A8%88%E5%8D%94%E5%8A%9B'),jdecode(''),'/396.html','true',[],''],
	['PAGE','2750',jdecode('%E8%81%B7%E4%BA%BA%E6%86%B2%E6%B3%95'),jdecode(''),'/2750.html','true',[],''],
	['PAGE','1606',jdecode('%E6%96%BD%E5%B7%A5%E4%BE%8B'),jdecode(''),'/1606/index.html','true',[ 
		['PAGE','1642',jdecode('%E3%83%AA%E3%83%95%E3%82%A9%E3%83%BC%E3%83%A0%E4%B8%80%E8%88%AC'),jdecode(''),'/1606/1642.html','true',[],''],
		['PAGE','837',jdecode('%E6%B0%B4%E5%BB%BB%E3%82%8A'),jdecode(''),'/1606/837.html','true',[],''],
		['PAGE','1615',jdecode('%E5%A1%97%E8%A3%85%EF%BC%9A%E9%98%B2%E6%B0%B4'),jdecode(''),'/1606/1615.html','true',[],''],
		['PAGE','1624',jdecode('%E3%82%A6%E3%83%83%E3%83%89%E3%83%87%E3%83%83%E3%82%AD%EF%BC%9A%E3%83%99%E3%83%B3%E3%83%81'),jdecode(''),'/1606/1624.html','true',[],''],
		['PAGE','2472',jdecode('%E7%9C%8B%E6%9D%BF'),jdecode(''),'/1606/2472.html','true',[],''],
		['PAGE','2539',jdecode('%E5%9C%9F%E6%9C%A8%E3%80%81%E5%A4%96%E6%A7%8B'),jdecode(''),'/1606/2539.html','true',[],''],
		['PAGE','14423',jdecode('%E6%96%B0%E7%AF%89'),jdecode(''),'/1606/14423.html','true',[],'']
	],''],
	['PAGE','732',jdecode('%E5%B8%82%E4%BD%8F%E5%AE%85%E6%94%B9%E9%80%A0%E8%B2%BB%E5%8A%A9%E6%88%90%E4%BA%8B%E6%A5%AD'),jdecode(''),'/732.html','true',[],''],
	['PAGE','5955',jdecode('%E5%80%8B%E4%BA%BA%E6%83%85%E5%A0%B1%E4%BF%9D%E8%AD%B7%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6'),jdecode(''),'/5955.html','true',[],''],
	['PAGE','414',jdecode('%E3%81%8A%E5%95%8F%E3%81%84%E5%90%88%E3%82%8F%E3%81%9B'),jdecode(''),'/414/index.html','true',[ 
		['PAGE','14219',jdecode('%E3%81%8A%E5%95%8F%E3%81%84%E5%90%88%E3%82%8F%E3%81%9B+%28%E3%83%95%E3%82%A9%E3%83%AD%E3%83%BC%E3%82%A2%E3%83%83%E3%83%97%E3%81%AE%E3%83%9A%E3%83%BC%E3%82%B8%29'),jdecode(''),'/414/14219.html','false',[],'']
	],''],
	['PAGE','5222',jdecode('%E6%8E%A1%E7%94%A8%E6%83%85%E5%A0%B1'),jdecode(''),'/5222.html','true',[],''],
	['PAGE','423',jdecode('%E3%83%AA%E3%83%B3%E3%82%AF'),jdecode(''),'/423.html','true',[],''],
	['PAGE','18120',jdecode('%E9%87%A3%E3%82%8A%E3%83%90%E3%82%AB%E9%87%A3%E6%9E%9C%E5%86%99%E7%9C%9F%E9%9B%86'),jdecode(''),'/18120.html','true',[],'']];
var siteelementCount=22;
theSitetree.topTemplateName='Stripes';
					                                                                    
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 */					                                                            

