/* [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','12',jdecode('TOP'),jdecode(''),'/12.html','true',[],''],
	['PAGE','44283',jdecode('%E3%81%B2%E3%81%A3%E3%81%93%E3%81%97%E5%A4%A7%E4%BD%9C%E6%88%A6'),jdecode(''),'/44283.html','true',[],''],
	['PAGE','14406',jdecode('%E3%81%8A%E3%82%82%E3%81%A1%E3%82%83%E5%B1%95%E7%A4%BA%E3%82%B3%E3%83%BC%E3%83%8A%E3%83%BC'),jdecode(''),'/14406/index.html','true',[ 
		['PAGE','14424',jdecode('%E4%BC%81%E7%94%BB%E5%B1%95%E7%A4%BA'),jdecode(''),'/14406/14424.html','true',[],''],
		['PAGE','14433',jdecode('%E5%B8%B8%E8%A8%AD%E5%B1%95%E7%A4%BA'),jdecode(''),'/14406/14433.html','true',[],''],
		['PAGE','38331',jdecode('%E3%83%89%E3%82%A4%E3%83%84%E3%83%BB%E3%82%A8%E3%83%AB%E3%83%84%E5%9C%B0%E6%96%B9%E3%81%AE%E3%81%8A%E3%82%82%E3%81%A1%E3%82%83'),jdecode(''),'/14406/38331.html','true',[],''],
		['PAGE','43582',jdecode('%E3%83%9F%E3%83%A5%E3%83%BC%E3%82%B8%E3%82%A2%E3%83%A0%E3%83%BB%E3%82%AF%E3%82%A4%E3%82%BA'),jdecode(''),'/14406/43582.html','true',[],'']
	],''],
	['PAGE','14379',jdecode('%E3%82%AA%E3%83%AB%E3%82%B4%E3%83%BC%E3%83%AB%E3%82%B3%E3%83%B3%E3%82%B5%E3%83%BC%E3%83%88%E3%83%9B%E3%83%BC%E3%83%AB'),jdecode(''),'/14379/index.html','true',[ 
		['PAGE','36188',jdecode('%E3%82%AA%E3%83%AB%E3%82%B4%E3%83%BC%E3%83%AB%E7%89%A9%E8%AA%9E'),jdecode(''),'/14379/36188.html','true',[],''],
		['PAGE','34315',jdecode('%E3%82%AA%E3%83%AB%E3%82%B4%E3%83%BC%E3%83%AB%E3%81%AE%E3%81%94%E7%B4%B9%E4%BB%8B'),jdecode(''),'/14379/34315.html','true',[],''],
		['PAGE','34622',jdecode('%E3%82%AA%E3%83%BC%E3%83%88%E3%83%9E%E3%82%BF%E3%81%AE%E3%81%94%E7%B4%B9%E4%BB%8B'),jdecode(''),'/14379/34622.html','true',[],'']
	],''],
	['PAGE','34891',jdecode('%E3%81%8B%E3%82%89%E3%81%8F%E3%82%8A%E5%B1%95%E7%A4%BA%E3%82%B3%E3%83%BC%E3%83%8A%E3%83%BC'),jdecode(''),'/34891.html','true',[],''],
	['PAGE','14460',jdecode('%E5%B7%A5%E4%BD%9C%E3%82%B3%E3%83%BC%E3%83%8A%E3%83%BC'),jdecode(''),'/14460/index.html','true',[ 
		['PAGE','14469',jdecode('%E3%81%8A%E3%82%82%E3%81%A1%E3%82%83%E6%95%99%E5%AE%A4%E3%80%80%E9%96%8B%E5%82%AC%E6%9C%AA%E5%AE%9A'),jdecode(''),'/14460/14469.html','true',[],''],
		['PAGE','14487',jdecode('%E7%89%B9%E5%88%A5%E3%81%8A%E3%82%82%E3%81%A1%E3%82%83%E6%95%99%E5%AE%A4'),jdecode(''),'/14460/14487.html','true',[],''],
		['PAGE','14496',jdecode('%E5%B7%A5%E4%BD%9C%E3%82%AD%E3%83%83%E3%83%88%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6'),jdecode(''),'/14460/14496.html','true',[],'']
	],''],
	['PAGE','14442',jdecode('%E3%83%97%E3%83%AC%E3%82%A4%E3%83%BB%E3%82%B9%E3%83%9A%E3%83%BC%E3%82%B9'),jdecode(''),'/14442/index.html','true',[ 
		['PAGE','39561',jdecode('%E3%83%97%E3%83%AC%E3%82%A4%E3%83%AB%E3%83%BC%E3%83%A0%E3%81%A7%E3%81%82%E3%81%9D%E3%81%B9%E3%82%8B%E3%81%8A%E3%82%82%E3%81%A1%E3%82%83'),jdecode(''),'/14442/39561.html','true',[],'']
	],''],
	['PAGE','40102',jdecode('%E3%83%99%E3%83%93%E3%83%BC%E3%83%AB%E3%83%BC%E3%83%A0'),jdecode(''),'/40102.html','true',[],''],
	['PAGE','14514',jdecode('%E3%83%9F%E3%83%A5%E3%83%BC%E3%82%B8%E3%82%A2%E3%83%A0%E3%83%BB%E3%82%B7%E3%83%A7%E3%83%83%E3%83%97'),jdecode(''),'/14514/index.html','true',[ 
		['PAGE','36960',jdecode('%E3%81%8A%E8%B2%B7%E3%81%84%E5%BE%97%E6%83%85%E5%A0%B1'),jdecode(''),'/14514/36960.html','true',[],'']
	],''],
	['PAGE','10375',jdecode('%E3%81%94%E5%88%A9%E7%94%A8%E6%A1%88%E5%86%85%E3%83%BB%E3%82%A2%E3%82%AF%E3%82%BB%E3%82%B9'),jdecode(''),'/10375/index.html','true',[ 
		['PAGE','17615',jdecode('%E5%85%A5%E9%A4%A8%E6%96%99%E5%89%B2%E5%BC%95%E3%83%9A%E3%83%BC%E3%82%B8'),jdecode(''),'/10375/17615.html','true',[],'']
	],''],
	['PAGE','10181',jdecode('%E3%81%8A%E5%95%8F%E3%81%84%E5%90%88%E3%81%9B'),jdecode(''),'/10181/index.html','true',[ 
		['PAGE','44881',jdecode('%E3%81%8A%E5%95%8F%E3%81%84%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(''),'/10181/44881.html','false',[],'']
	],''],
	['PAGE','34262',jdecode('%E5%8D%9A%E7%89%A9%E9%A4%A8%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6'),jdecode(''),'/34262/index.html','true',[ 
		['PAGE','34350',jdecode('%E5%87%BA%E5%BC%B5%E5%8D%9A%E7%89%A9%E9%A4%A8'),jdecode(''),'/34262/34350.html','true',[],''],
		['PAGE','14532',jdecode('%E5%8F%8B%E3%81%AE%E4%BC%9A%E3%81%94%E6%A1%88%E5%86%85'),jdecode(''),'/34262/14532.html','true',[],''],
		['PAGE','38938',jdecode('%E6%A9%9F%E7%B4%A0%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6'),jdecode(''),'/34262/38938.html','true',[],''],
		['PAGE','20962',jdecode('%E3%83%89%E3%82%A4%E3%83%84%E3%81%8A%E3%82%82%E3%81%A1%E3%82%83%E3%83%A1%E3%83%83%E3%82%BB%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6'),jdecode(''),'/34262/20962.html','true',[],''],
		['PAGE','28365',jdecode('%E3%82%B9%E3%82%BF%E3%83%83%E3%83%95%E7%B4%B9%E4%BB%8B'),jdecode(''),'/34262/28365.html','true',[],''],
		['PAGE','28374',jdecode('%E3%82%B9%E3%82%BF%E3%83%83%E3%83%95%E5%8B%9F%E9%9B%86'),jdecode(''),'/34262/28374.html','true',[],''],
		['PAGE','10262',jdecode('%E3%83%AA%E3%83%B3%E3%82%AF'),jdecode(''),'/34262/10262.html','true',[],''],
		['PAGE','40527',jdecode('%E5%8D%9A%E7%89%A9%E9%A4%A8%E6%97%A5%E8%A8%98'),jdecode(''),'/34262/40527.html','true',[],''],
		['PAGE','29917',jdecode('%E3%82%A4%E3%83%99%E3%83%B3%E3%83%88%E3%81%AE%E3%81%8A%E7%9F%A5%E3%82%89%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(''),'/34262/29917.html','false',[],''],
		['PAGE','40788',jdecode('%E8%A5%BF%E7%94%B0%E6%98%8E%E5%A4%AB%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6'),jdecode(''),'/34262/40788.html','true',[],'']
	],''],
	['PAGE','30802',jdecode('C-TOY'),jdecode(''),'/30802/index.html','true',[ 
		['PAGE','34280',jdecode('C-TOY+English+page'),jdecode(''),'/30802/34280.html','true',[],'']
	],'']];
var siteelementCount=38;
theSitetree.topTemplateName='Alpha';
					                                                                    
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 */					                                                            
