/* [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','15',jdecode('%E3%80%80%E3%83%9B%E3%83%BC%E3%83%A0'),jdecode(''),'/15.html','true',[],''],
	['PAGE','411',jdecode('%E4%BC%9A+%E7%A4%BE+%E6%A1%88+%E5%86%85'),jdecode(''),'/411/index.html','true',[ 
		['PAGE','3970',jdecode('%E3%81%94%E3%80%80%E6%8C%A8%E3%80%80%E6%8B%B6'),jdecode(''),'/411/3970.html','true',[],'']
	],''],
	['PAGE','420',jdecode('%E3%81%8A+%E5%95%8F+%E5%90%88+%E3%81%9B'),jdecode(''),'/420/index.html','true',[ 
		['PAGE','4832',jdecode('%E3%81%8A%E5%95%8F%E5%90%88%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(''),'/420/4832.html','false',[],'']
	],''],
	['PAGE','5866',jdecode('%E7%89%A9+%E6%B5%81+%E6%A5%AD+%E5%8B%99'),jdecode(''),'/5866/index.html','true',[ 
		['PAGE','10937',jdecode('%E7%89%A9%E6%B5%81%E5%8A%A0%E5%B7%A5%E3%80%80%E5%A0%B4%E5%86%85'),jdecode(''),'/5866/10937.html','true',[],'']
	],''],
	['PAGE','6018',jdecode('%E5%8D%98%E8%BA%AB%E5%BC%95%E8%B6%8A%E3%82%B5%E3%83%BC%E3%83%93%E3%82%B9'),jdecode(''),'/6018.html','true',[],''],
	['PAGE','8256',jdecode('%E7%B7%8A+%E6%80%A5+%E9%85%8D+%E9%80%81'),jdecode(''),'/8256/index.html','true',[ 
		['PAGE','3160',jdecode('%E9%81%8B%E8%B3%83%E3%81%AE%E7%9B%AE%E5%AE%89'),jdecode(''),'/8256/3160.html','true',[],''],
		['PAGE','3169',jdecode('%E9%96%A2%E8%A5%BF%E7%89%88%E9%81%8B%E8%B3%83%E6%97%A9%E8%A6%8B%E8%A1%A8'),jdecode(''),'/8256/3169.html','true',[],''],
		['PAGE','3178',jdecode('%E9%96%A2%E6%9D%B1%E7%89%88%E9%81%8B%E8%B3%83%E6%97%A9%E8%A6%8B%E8%A1%A8'),jdecode(''),'/8256/3178.html','true',[],''],
		['PAGE','2863',jdecode('%E8%BB%BD%E8%BB%8A%E4%B8%A1%E3%81%AE%E7%A9%8D%E8%BC%89%E5%AF%B8%E6%B3%95'),jdecode(''),'/8256/2863.html','true',[],''],
		['PAGE','3119',jdecode('%E6%96%B0%E5%B9%B9%E7%B7%9A%E3%83%AA%E3%83%AC%E3%83%BC%E4%BE%BF'),jdecode(''),'/8256/3119.html','true',[],''],
		['PAGE','3101',jdecode('%E6%9D%B1%E4%BA%AC%EF%BC%9D%E5%A4%A7%E9%98%AA%E9%96%93%E9%85%8D%E9%80%81'),jdecode(''),'/8256/3101.html','true',[],'']
	],''],
	['PAGE','2872',jdecode('%E7%BF%8C+%E6%97%A5+%E9%85%8D+%E9%80%81'),jdecode(''),'/2872.html','true',[],''],
	['PAGE','5875',jdecode('%E4%BA%BA+%E6%9D%90+%E6%B4%BE+%E9%81%A3'),jdecode(''),'/5875/index.html','true',[ 
		['PAGE','8173',jdecode('%E3%83%88%E3%83%A9%E3%83%83%E3%82%AF%E9%81%8B%E8%BB%A2%E4%BB%A3%E8%A1%8C'),jdecode(''),'/5875/8173.html','true',[],''],
		['PAGE','6189',jdecode('%E5%BC%95%E8%B6%8A%E3%81%97%E3%82%B5%E3%83%BC%E3%83%93%E3%82%B9+%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(''),'/5875/6189.html','false',[],'']
	],''],
	['PAGE','429',jdecode('%E6%8E%A1+%E7%94%A8+%E6%83%85+%E5%A0%B1'),jdecode(''),'/429/index.html','true',[ 
		['PAGE','10379',jdecode('%E8%BB%BD%E5%9B%9B%E6%8C%81%E8%BE%BC%E3%83%89%E3%83%A9%E3%82%A4%E3%83%90%E3%83%BC'),jdecode(''),'/429/10379.html','true',[],'']
	],''],
	['PAGE','4487',jdecode('SNS+%E3%83%AA%E3%83%B3%E3%82%AF'),jdecode(''),'/4487.html','true',[],'']];
var siteelementCount=22;
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 */					                                                            

