/* [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','21',jdecode('%E3%83%9B%E3%83%BC%E3%83%A0'),jdecode(''),'/21.html','true',[],''],
	['PAGE','5861',jdecode('%E4%BB%8A%E6%97%A5%E3%81%AE%E5%87%BA%E6%9D%A5%E4%BA%8B'),jdecode(''),'/5861.html','true',[],''],
	['PAGE','42',jdecode('%E7%8F%BE%E5%9C%B0%E8%B2%A9%E5%A3%B2%E4%BC%9A'),jdecode(''),'/42/index.html','true',[ 
		['PAGE','60',jdecode('%E7%8F%BE%E5%9C%B0%E8%B2%A9%E5%A3%B2%E4%BC%9A'),jdecode(''),'/42/60.html','true',[],'']
	],''],
	['PAGE','1666',jdecode('%E5%B1%B1%E6%89%8B%E3%83%BB%E6%9C%AC%E7%89%A7'),jdecode(''),'/1666.html','true',[],''],
	['PAGE','1613',jdecode('%E6%88%B8%E5%BB%BA%E3%83%BB%E5%9C%9F%E5%9C%B0'),jdecode(''),'/1613.html','true',[],''],
	['PAGE','1622',jdecode('%E3%83%9E%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%B3'),jdecode(''),'/1622.html','true',[],''],
	['PAGE','2424',jdecode('%E4%BA%8B%E6%A5%AD%E7%94%A8'),jdecode(''),'/2424.html','true',[],''],
	['PAGE','69',jdecode('%E4%BC%9A%E7%A4%BE%E6%A1%88%E5%86%85'),jdecode(''),'/69/index.html','true',[ 
		['PAGE','78',jdecode('%E4%BC%9A%E7%A4%BE%E6%A6%82%E8%A6%81'),jdecode(''),'/69/78.html','true',[],'']
	],''],
	['PAGE','105',jdecode('%E5%80%8B%E4%BA%BA%E6%83%85%E5%A0%B1'),jdecode(''),'/105.html','true',[],'']];
var siteelementCount=11;
theSitetree.topTemplateName='Fluent';
					                                                                    
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 */					                                                            
