/* [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','17',jdecode('%E3%83%9B%E3%83%BC%E3%83%A0'),jdecode(''),'/17.html','true',[],''],
	['PAGE','3883',jdecode('%E4%BC%9A%E7%A4%BE%E6%A1%88%E5%86%85'),jdecode(''),'/3883.html','true',[],''],
	['PAGE','9175',jdecode('%E8%BE%B2%E6%A5%AD%E3%81%AE%E5%8F%96%E7%B5%84'),jdecode(''),'/9175/index.html','true',[ 
		['PAGE','38',jdecode('%E7%B1%B3%E4%BD%9C%E3%82%8A'),jdecode(''),'/9175/38.html','true',[],''],
		['PAGE','9629',jdecode('%E8%A9%A6%E9%A8%93%E7%9A%84%E5%8F%96%E7%B5%84%E3%80%80%E7%84%A1%E5%8C%96%E5%AD%A6%E8%82%A5%E6%96%99%E3%83%BB%E7%84%A1%E5%8C%96%E5%AD%A6%E8%BE%B2%E8%96%AC%E6%A0%BD%E5%9F%B9'),jdecode(''),'/9175/9629.html','true',[],''],
		['PAGE','9139',jdecode('%E5%9C%92%E8%8A%B8'),jdecode(''),'/9175/9139.html','true',[],'']
	],''],
	['PAGE','9441',jdecode('%E7%89%B9%E5%88%A5%E6%A0%BD%E5%9F%B9%E8%BE%B2%E7%94%A3%E7%89%A9'),jdecode(''),'/9441.html','true',[],''],
	['PAGE','3151',jdecode('%E9%A3%9F%E8%82%B2%E3%83%BB%E5%9C%B0%E7%94%A3%E5%9C%B0%E6%B6%88'),jdecode(''),'/3151.html','true',[],''],
	['PAGE','47',jdecode('%E3%82%B7%E3%83%A7%E3%83%83%E3%83%94%E3%83%B3%E3%82%B0'),jdecode(''),'/47/index.html','true',[ 
		['PAGE','65',jdecode('%E3%82%82%E3%81%A1%E3%83%BB%E5%91%B3%E5%99%8C%E3%83%BB%E8%95%8E%E9%BA%A6'),jdecode(''),'/47/65.html','true',[],''],
		['PAGE','4245',jdecode('%E3%81%8A%E7%B1%B3%E8%B1%86%E7%9F%A5%E8%AD%98'),jdecode(''),'/47/4245.html','true',[],'']
	],''],
	['PAGE','8680',jdecode('%E7%B1%B3%E5%93%81%E8%B3%AA%E6%A4%9C%E6%9F%BB'),jdecode(''),'/8680.html','true',[],''],
	['PAGE','83',jdecode('%E5%9C%B0%E5%9F%9F%E6%83%85%E5%A0%B1'),jdecode(''),'/83.html','true',[],'']];
var siteelementCount=13;
theSitetree.topTemplateName='Sense';
					                                                                    
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 */					                                                            
