/* [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','28',jdecode('%E3%83%9B%E3%83%BC%E3%83%A0'),jdecode(''),'/28.html','true',[],''],
	['PAGE','49',jdecode('What%26%23x27%3BsNew'),jdecode(''),'/49.html','true',[],''],
	['PAGE','58',jdecode('%E3%83%95%E3%82%A3%E3%83%BC%E3%83%AB%E3%83%89'),jdecode(''),'/58/index.html','true',[ 
		['PAGE','67',jdecode('%E3%81%94%E5%88%A9%E7%94%A8%E6%96%99%E9%87%91'),jdecode(''),'/58/67.html','true',[],''],
		['PAGE','9276',jdecode('%E3%83%95%E3%83%AA%E3%83%BC%E3%82%BF%E3%82%A4%E3%83%A0'),jdecode(''),'/58/9276.html','true',[],''],
		['PAGE','1120',jdecode('%E4%BC%9A%E5%93%A1%E8%A6%8F%E7%B4%84'),jdecode(''),'/58/1120.html','true',[],'']
	],''],
	['PAGE','1074',jdecode('%E3%82%B7%E3%83%A7%E3%83%83%E3%83%97'),jdecode(''),'/1074.html','true',[],''],
	['PAGE','1296',jdecode('%E3%82%AB%E3%82%B9%E3%82%BF%E3%83%A0%EF%BC%86%E3%83%AA%E3%83%9A%E3%82%A2'),jdecode(''),'/1296/index.html','true',[ 
		['PAGE','5874',jdecode('%E7%9A%86%E3%81%AE%E3%82%AB%E3%82%B9%E3%82%BF%E3%83%A0'),jdecode(''),'/1296/5874.html','true',[],'']
	],''],
	['PAGE','3199',jdecode('%E3%82%A4%E3%83%B3%E3%83%89%E3%82%A2%E5%8F%8B%E3%81%AE%E4%BC%9A'),jdecode(''),'/3199.html','true',[],''],
	['PAGE','6989',jdecode('%E8%A5%BF%E5%90%91%E3%81%8F%E4%BE%8D%E3%83%97%E3%83%AD%E3%82%B8%E3%82%A7%E3%82%AF%E3%83%88'),jdecode(''),'/6989.html','true',[],''],
	['PAGE','9563',jdecode('%E3%83%90%E3%83%B3%E3%82%AC%E3%83%BC%E3%83%89%E3%82%B2%E3%83%BC%E3%83%A0%E4%BC%9A'),jdecode(''),'/9563.html','true',[],''],
	['PAGE','1083',jdecode('%E4%BD%9C%E6%88%A6%E4%BC%9A%E8%AD%B0%E5%AE%A4'),jdecode(''),'/1083.html','true',[],''],
	['PAGE','2780',jdecode('%E5%BA%97%E9%95%B7%E3%81%AE%E3%81%A4%E3%81%B6%E3%82%84%E3%81%8D'),jdecode(''),'/2780.html','true',[],''],
	['PAGE','6118',jdecode('%E5%BA%97%E9%95%B7%E3%81%AE%E3%81%A4%E3%81%B6%E3%82%84%E3%81%8D%EF%BC%92%EF%BC%90%EF%BC%90%EF%BC%98'),jdecode(''),'/6118.html','true',[],''],
	['PAGE','7868',jdecode('%E5%BA%97%E9%95%B7%E3%81%AE%E3%81%A4%E3%81%B6%E3%82%84%E3%81%8D%EF%BC%92%EF%BC%90%EF%BC%90%EF%BC%99'),jdecode(''),'/7868.html','true',[],''],
	['PAGE','8516',jdecode('%E5%BA%97%E9%95%B7%E3%81%AE%E3%81%A4%E3%81%B6%E3%82%84%E3%81%8D%EF%BC%92%EF%BC%90%EF%BC%91%EF%BC%90'),jdecode(''),'/8516.html','true',[],''],
	['PAGE','8882',jdecode('%E5%BA%97%E9%95%B7%E3%81%AE%E3%81%A4%E3%81%B6%E3%82%84%E3%81%8D%EF%BC%92%EF%BC%90%EF%BC%91%EF%BC%91'),jdecode(''),'/8882.html','true',[],''],
	['PAGE','9599',jdecode('%E5%BA%97%E9%95%B7%E3%81%AE%E3%81%A4%E3%81%B6%E3%82%84%E3%81%8D%EF%BC%92%EF%BC%90%EF%BC%91%EF%BC%92'),jdecode(''),'/9599.html','true',[],''],
	['PAGE','6998',jdecode('%3F%3F%3F'),jdecode(''),'/6998.html','true',[],''],
	['PAGE','7007',jdecode('%3F%3F'),jdecode(''),'/7007.html','true',[],''],
	['PAGE','7016',jdecode('%3F'),jdecode(''),'/7016.html','true',[],''],
	['PAGE','7025',jdecode('%21'),jdecode(''),'/7025.html','true',[],'']];
var siteelementCount=23;
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 */					                                                            

