/* [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%88%E3%83%83%E3%83%97%E3%83%9A%E3%83%BC%E3%82%B8'),jdecode(''),'/11.html','true',[],''],
	['PAGE','9319',jdecode('What%26%23x27%3Bs+New'),jdecode(''),'/9319.html','true',[],''],
	['PAGE','7412',jdecode('%E4%BC%9A%E7%A4%BE%E6%A6%82%E8%A6%81'),jdecode(''),'/7412.html','true',[],''],
	['PAGE','9170',jdecode('%E7%B5%8C%E5%96%B6%E7%90%86%E5%BF%B5'),jdecode(''),'/9170.html','true',[],''],
	['PAGE','8774',jdecode('%E9%A1%A7%E5%95%8F%E5%BC%81%E8%AD%B7%E5%A3%AB'),jdecode(''),'/8774.html','true',[],''],
	['PAGE','41',jdecode('%E9%9F%B3%E8%AA%BF%E8%A3%85%E7%BD%AE%E3%80%80MK-5'),jdecode(''),'/41.html','true',[],''],
	['PAGE','7621',jdecode('%EF%BE%84%EF%BE%9D%EF%BE%84%EF%BD%A9%EF%BD%BC%EF%BD%BD%EF%BE%83%EF%BE%91'),jdecode(''),'/7621.html','true',[],''],
	['PAGE','9438',jdecode('%EF%BE%84%EF%BE%9D%EF%BE%84%EF%BD%A9SPA%EF%BD%BC%EF%BD%BD%EF%BE%83%EF%BE%91'),jdecode(''),'/9438/index.html','true',[ 
		['PAGE','9541',jdecode('%EF%BE%84%EF%BE%9D%EF%BE%84%EF%BD%A9SPA%EF%BD%BC%EF%BD%BD%EF%BE%83%EF%BE%91+%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(''),'/9438/9541.html','false',[],'']
	],''],
	['PAGE','3848',jdecode('%E7%96%BE%E7%97%85%E4%BA%88%E9%98%B2%EF%BD%B6%EF%BD%B3%EF%BE%9D%EF%BD%BE%EF%BE%98%EF%BE%9D%EF%BD%B8%EF%BE%9E%E7%A0%94%E7%A9%B6%E4%BC%9A'),jdecode(''),'/3848.html','true',[],''],
	['PAGE','5195',jdecode('%E8%96%AC%E4%BA%8B%E6%B3%95%E3%83%BB%E5%8C%BB%E5%B8%AB%E6%B3%95%E3%82%BB%E3%83%9F%E3%83%8A%E3%83%BC'),jdecode(''),'/5195.html','true',[],''],
	['PAGE','8980',jdecode('%E9%9F%B3%E8%AA%BF%E8%A3%85%E7%BD%AEMK5%E5%8B%89%E5%BC%B7%E4%BC%9A'),jdecode(''),'/8980.html','true',[],''],
	['PAGE','8086',jdecode('%EF%BD%BB%EF%BE%9B%EF%BE%9D%EF%BD%BB%EF%BE%8E%EF%BE%9F%EF%BD%B0%EF%BE%84%EF%BD%BC%EF%BD%BD%EF%BE%83%EF%BE%91%E4%BA%8B%E6%A5%AD%E9%83%A8'),jdecode(''),'/8086/index.html','true',[ 
		['PAGE','8284',jdecode('%EF%BD%BB%EF%BE%9B%EF%BE%9D%EF%BD%BB%EF%BE%8E%EF%BE%9F%EF%BD%B0%EF%BE%84%EF%BD%BC%EF%BD%BD%EF%BE%83%EF%BE%91%E4%BA%8B%E6%A5%AD%E9%83%A8+%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(''),'/8086/8284.html','false',[],'']
	],''],
	['PAGE','8215',jdecode('%E5%81%A5%E5%BA%B7%E3%83%84%E3%82%A2%E3%83%BC%E4%BA%8B%E6%A5%AD'),jdecode(''),'/8215/index.html','true',[ 
		['PAGE','8252',jdecode('%E5%81%A5%E5%BA%B7%E3%83%84%E3%82%A2%E3%83%BC%E4%BA%8B%E6%A5%AD+%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(''),'/8215/8252.html','false',[],'']
	],''],
	['PAGE','6404',jdecode('%E3%81%8B%E3%82%89%E3%81%A0%E3%81%AE%E7%A0%94%E4%BF%AE%E4%BC%9A%E3%83%BB%E5%88%9D%E7%B4%9A%E7%B7%A8'),jdecode(''),'/6404.html','true',[],''],
	['PAGE','8463',jdecode('%E3%81%8B%E3%82%89%E3%81%A0%E3%81%AE%E7%A0%94%E4%BF%AE%E4%BC%9A%E3%83%BB%E4%B8%AD%E7%B4%9A%E7%B7%A8'),jdecode(''),'/8463.html','true',[],''],
	['PAGE','6413',jdecode('%E4%B8%89%E6%B5%A6%E5%8C%BB%E5%B8%AB%E3%81%AB%E3%82%88%E3%82%8B%E7%A0%94%E4%BF%AE%E4%BC%9A'),jdecode(''),'/6413.html','true',[],''],
	['PAGE','6797',jdecode('%E7%B5%B1%E5%90%88%E5%8C%BB%E7%99%82%E5%B1%95%EF%BC%92%EF%BC%90%EF%BC%90%EF%BC%99'),jdecode(''),'/6797.html','true',[],''],
	['PAGE','8612',jdecode('%E6%AD%AF%E7%A7%91%E5%90%91%E3%81%91%EF%BE%84%EF%BE%9D%EF%BE%84%EF%BD%A9%EF%BD%BC%EF%BD%BD%EF%BE%83%EF%BE%91'),jdecode(''),'/8612.html','true',[],''],
	['PAGE','8647',jdecode('%E6%AD%AF%E7%A7%91%E5%90%91%E3%81%91%E3%82%B5%E3%83%AD%E3%83%B3%E3%81%AE%E3%81%94%E6%8F%90%E6%A1%88'),jdecode(''),'/8647.html','true',[],''],
	['PAGE','9393',jdecode('%E3%83%AA%E3%83%B3%E3%82%AF'),jdecode(''),'/9393.html','true',[],'']];
var siteelementCount=23;
theSitetree.topTemplateName='Natural';
					                                                                    
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 */					                                                            
