/* [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','6503',jdecode('%E6%9B%B4%E6%96%B0%E5%B1%A5%E6%AD%B4'),jdecode(''),'/6503.html','true',[],''],
	['PAGE','1947',jdecode('%E4%BA%8B%E6%A5%AD%E5%86%85%E5%AE%B9'),jdecode(''),'/1947.html','true',[],''],
	['PAGE','32',jdecode('%E5%95%8F%E5%90%88%E3%81%9B%E6%96%B9%E6%B3%95'),jdecode(''),'/32.html','true',[],''],
	['PAGE','10187',jdecode('%EF%BC%A822%E7%B5%B1%E8%A8%88'),jdecode(''),'/10187/index.html','true',[ 
		['PAGE','10196',jdecode('%EF%BC%A822%E7%B4%AF%E8%A8%88'),jdecode(''),'/10187/10196.html','true',[],'']
	],''],
	['PAGE','8794',jdecode('H21%E7%B5%B1%E8%A8%88'),jdecode(''),'/8794/index.html','true',[ 
		['PAGE','9295',jdecode('H21%E7%B4%AF%E8%A8%88'),jdecode(''),'/8794/9295.html','true',[],'']
	],''],
	['PAGE','6040',jdecode('H20%E7%B5%B1%E8%A8%88'),jdecode(''),'/6040/index.html','true',[ 
		['PAGE','7845',jdecode('%E5%8F%97%E4%BF%A1%E7%8A%B6%E6%B3%81'),jdecode(''),'/6040/7845.html','true',[],''],
		['PAGE','7607',jdecode('%E5%9C%B0%E5%9F%9F%E3%83%BB%E5%95%8F%E5%90%88%E8%80%85'),jdecode(''),'/6040/7607.html','true',[],''],
		['PAGE','7750',jdecode('%E6%9C%88%E3%83%BB%E6%99%82%E9%96%93%EF%BD%A5%E5%B9%B4%E9%BD%A2'),jdecode(''),'/6040/7750.html','true',[],''],
		['PAGE','8216',jdecode('%E8%B5%B7%E5%9B%A0%E7%89%A9%E8%B3%AA'),jdecode(''),'/6040/8216.html','true',[],''],
		['PAGE','8413',jdecode('%E8%B5%B7%E5%9B%A0%E7%89%A9%E8%B3%AA%E4%B8%80%E8%A6%A7'),jdecode(''),'/6040/8413.html','true',[],'']
	],''],
	['PAGE','50',jdecode('%E3%83%AA%E3%83%B3%E3%82%AF'),jdecode(''),'/50.html','true',[],'']];
var siteelementCount=15;
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 */					                                                            
