/* [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','13',jdecode('%E3%83%9B%E3%83%BC%E3%83%A0'),jdecode(''),'/13.html','true',[],''],
	['PAGE','1005',jdecode('%E7%89%A9%E4%BB%B6%E6%83%85%E5%A0%B1'),jdecode(''),'/1005/index.html','true',[ 
		['PAGE','1014',jdecode('%E5%A3%B2%E8%B2%B7%E7%89%A9%E4%BB%B6'),jdecode(''),'/1005/1014.html','true',[],''],
		['PAGE','1023',jdecode('%E8%B3%83%E8%B2%B8%E7%89%A9%E4%BB%B6'),jdecode(''),'/1005/1023.html','true',[],''],
		['PAGE','1032',jdecode('%E5%BB%BA%E7%AF%89%E4%BA%8B%E6%A5%AD%E9%83%A8'),jdecode(''),'/1005/1032.html','true',[],''],
		['PAGE','1041',jdecode('%E4%BC%9A%E7%A4%BE%E6%A1%88%E5%86%85'),jdecode(''),'/1005/1041.html','true',[],''],
		['PAGE','1050',jdecode('%E4%BC%9A%E7%A4%BE%E6%A6%82%E8%A6%81'),jdecode(''),'/1005/1050.html','true',[],''],
		['PAGE','1059',jdecode('%E4%BA%8B%E6%A5%AD%E5%86%85%E5%AE%B9'),jdecode(''),'/1005/1059.html','true',[],''],
		['PAGE','1068',jdecode('%E6%89%80%E5%9C%A8%E5%9C%B0'),jdecode(''),'/1005/1068.html','true',[],'']
	],''],
	['PAGE','1077',jdecode('%E3%81%8A%E5%95%8F%E5%90%88%E3%81%9B%E5%85%88'),jdecode(''),'/1077/index.html','true',[ 
		['PAGE','1086',jdecode('%E6%89%80%E5%9C%A8%E5%9C%B0'),jdecode(''),'/1077/1086.html','true',[],''],
		['PAGE','1095',jdecode('%E3%81%94%E9%80%A3%E7%B5%A1%E5%85%88'),jdecode(''),'/1077/1095.html','true',[],'']
	],''],
	['PAGE','2144',jdecode('%E4%B8%8D%E5%8B%95%E7%94%A3%E5%A3%B2%E5%8D%B4%E3%81%AE%E6%B5%81%E3%82%8C'),jdecode(''),'/2144.html','true',[],''],
	['PAGE','2305',jdecode('%E3%82%B2%E3%82%B9%E3%83%88%E3%83%96%E3%83%83%E3%82%AF'),jdecode(''),'/2305/index.html','true',[ 
		['PAGE','2304',jdecode('%E6%8A%95%E7%A8%BF%E4%B8%80%E8%A6%A7'),jdecode(''),'/2305/2304.html','true',[],'']
	],''],
	['PAGE','2331',jdecode('%E5%80%8B%E4%BA%BA%E6%83%85%E5%A0%B1%E4%BF%9D%E8%AD%B7'),jdecode(''),'/2331.html','true',[],''],
	['PAGE','6216',jdecode('%E6%8E%A1%E7%94%A8%E6%83%85%E5%A0%B1'),jdecode(''),'/6216.html','true',[],''],
	['PAGE','6225',jdecode('%E5%A5%91%E7%B4%84%E5%89%8D%E3%81%AB%E7%9F%A5%E3%81%A3%E3%81%A6%E3%81%8A%E3%81%93%E3%81%86%EF%BC%81'),jdecode(''),'/6225.html','true',[],''],
	['PAGE','24893',jdecode('%E6%B2%96%E7%B8%84%E6%A0%BC%E5%AE%89%E5%AE%BF%E6%B3%8A%E6%89%80%EF%BC%81'),jdecode(''),'/24893.html','true',[],'']];
var siteelementCount=19;
theSitetree.topTemplateName='Sportive';
					                                                                    
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 */					                                                            

