/* [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','11',jdecode('%E3%83%9B+%E3%83%BC+%E3%83%A0'),jdecode(''),'/11.html','true',[],''],
	['PAGE','33914',jdecode('%E3%80%90%E7%89%B9%E9%81%B8%E3%80%91%E3%82%A8%E3%82%B3%E3%82%B8%E3%83%A7%E3%83%BC%E3%82%BA'),jdecode(''),'/33914/index.html','true',[ 
		['PAGE','33923',jdecode('%E5%B1%8B%E5%A4%96%E5%A3%81%E6%8E%9B'),jdecode(''),'/33914/33923.html','true',[],''],
		['PAGE','33941',jdecode('%E5%B1%8B%E5%A4%96%E6%8D%AE%E7%BD%AE'),jdecode(''),'/33914/33941.html','true',[],'']
	],''],
	['PAGE','3648',jdecode('%E3%82%AC%E3%82%B9%E7%B5%A6%E6%B9%AF%E5%99%A8'),jdecode(''),'/3648/index.html','true',[ 
		['PAGE','21923',jdecode('%E5%B1%8B%E5%A4%96%E5%A3%81%E6%8E%9B'),jdecode(''),'/3648/21923.html','true',[],''],
		['PAGE','23161',jdecode('%E5%B1%8B%E5%86%85%E5%A3%81%E6%8E%9B'),jdecode(''),'/3648/23161.html','true',[],''],
		['PAGE','21932',jdecode('%E5%B1%8B%E5%A4%96%E6%8D%AE%E7%BD%AE'),jdecode(''),'/3648/21932.html','true',[],''],
		['PAGE','35682',jdecode('%E9%9A%A3%E6%8E%A5%E8%A8%AD%E7%BD%AE'),jdecode(''),'/3648/35682.html','true',[],''],
		['PAGE','21941',jdecode('%E7%B5%A6%E6%B9%AF%E5%B0%82%E7%94%A8'),jdecode(''),'/3648/21941.html','true',[],''],
		['PAGE','2403',jdecode('%E9%A2%A8+%E5%91%82+%E9%87%9C'),jdecode(''),'/3648/2403.html','true',[],''],
		['PAGE','32994',jdecode('%E5%B7%A5%E4%BA%8B%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6'),jdecode(''),'/3648/32994.html','true',[],''],
		['PAGE','33219',jdecode('%E3%82%88%E3%81%8F%E3%81%82%E3%82%8B%E8%B3%AA%E5%95%8F'),jdecode(''),'/3648/33219.html','true',[],'']
	],''],
	['PAGE','3657',jdecode('%E7%9F%B3%E6%B2%B9%E7%B5%A6%E6%B9%AF%E5%99%A8'),jdecode(''),'/3657.html','true',[],''],
	['PAGE','38551',jdecode('%E6%B5%B4%E3%80%80%E3%80%80%E5%AE%A4'),jdecode(''),'/38551.html','true',[],''],
	['PAGE','38560',jdecode('%E3%82%AD%E3%83%83%E3%83%81%E3%83%B3'),jdecode(''),'/38560.html','true',[],''],
	['PAGE','38569',jdecode('%E3%83%88+%E3%82%A4+%E3%83%AC'),jdecode(''),'/38569.html','true',[],''],
	['PAGE','38578',jdecode('%E6%B4%97%E3%80%80%E3%80%80%E9%9D%A2'),jdecode(''),'/38578.html','true',[],''],
	['PAGE','2412',jdecode('%E6%B0%B4%E9%81%93%E5%B7%A5%E4%BA%8B'),jdecode(''),'/2412.html','true',[],''],
	['PAGE','42368',jdecode('%E3%81%9D%E3%81%AE%E4%BB%96%E4%BD%8F%E8%A8%AD%E6%A9%9F%E5%99%A8'),jdecode(''),'/42368.html','true',[],''],
	['PAGE','42359',jdecode('%E3%82%AA%E3%83%BC%E3%83%AB%E9%9B%BB%E5%8C%96'),jdecode(''),'/42359/index.html','true',[ 
		['PAGE','44011',jdecode('%E3%82%A8%E3%82%B3%E3%82%AD%E3%83%A5%E3%83%BC%E3%83%88'),jdecode(''),'/42359/44011.html','true',[],''],
		['PAGE','44020',jdecode('IH%E3%82%AF%E3%83%83%E3%82%AD%E3%83%B3%E3%82%B0%E3%83%92%EF%BC%8D%E3%82%BF%E3%83%BC'),jdecode(''),'/42359/44020.html','true',[],''],
		['PAGE','44029',jdecode('%E3%82%A8%E3%82%B3%E3%82%AD%E3%83%A5%E3%83%BC%E3%83%88%EF%BC%8BIH'),jdecode(''),'/42359/44029.html','true',[],'']
	],''],
	['PAGE','2421',jdecode('%E5%BB%BA%E7%AF%89%E3%83%AA%E3%83%95%E3%82%A9%E3%83%BC%E3%83%A0'),jdecode(''),'/2421.html','true',[],''],
	['PAGE','2457',jdecode('%E3%81%8A%E5%95%8F%E3%81%84%E5%90%88%E3%82%8F%E3%81%9B'),jdecode(''),'/2457.html','true',[],'']];
var siteelementCount=26;
theSitetree.topTemplateName='Straight';
					                                                                    
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 */					                                                            
