/* [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','12',jdecode('%E3%83%9B%E3%83%BC%E3%83%A0'),jdecode(''),'/12.html','true',[],''],
	['PAGE','1926',jdecode('%E6%96%B0%E7%9D%80%E6%83%85%E5%A0%B1%EF%BD%A5%E6%96%BD%E5%B7%A5%E4%BE%8B%E3%81%AA%E3%81%A9'),jdecode(''),'/1926.html','true',[],''],
	['PAGE','822',jdecode('%E4%BC%9A%E7%A4%BE%E6%A1%88%E5%86%85'),jdecode(''),'/822.html','true',[],''],
	['PAGE','697',jdecode('%E4%BB%8F%E5%A3%87%E3%81%AE%E8%A3%BD%E9%80%A0'),jdecode(''),'/697.html','true',[],''],
	['PAGE','715',jdecode('%E9%AB%98%E7%94%B0%E6%B4%BE%E3%81%AE%E4%BB%8F%E5%A3%87%E3%83%BB%E4%BB%8F%E5%85%B7'),jdecode(''),'/715.html','true',[],''],
	['PAGE','724',jdecode('%E9%87%91%E4%BB%8F%E5%A3%87'),jdecode(''),'/724.html','true',[],''],
	['PAGE','733',jdecode('%E5%94%90%E6%9C%A8%E4%BB%8F%E5%A3%87'),jdecode(''),'/733.html','true',[],''],
	['PAGE','742',jdecode('%E5%B0%8F%E5%9E%8B%E4%BB%8F%E5%A3%87%E3%83%BB%E5%AE%B6%E5%85%B7%E8%AA%BF%E4%BB%8F%E5%A3%87'),jdecode(''),'/742.html','true',[],''],
	['PAGE','751',jdecode('%E6%B4%97%E6%BF%AF'),jdecode(''),'/751.html','true',[],''],
	['PAGE','760',jdecode('%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%8B%E3%83%B3%E3%82%B0'),jdecode(''),'/760.html','true',[],''],
	['PAGE','769',jdecode('%E4%BB%8F%E5%85%B7%E3%83%BB%E5%B0%8F%E7%89%A9+%E5%88%9D%E7%9B%86%E3%81%8B%E3%81%96%E3%82%8A'),jdecode(''),'/769.html','true',[],''],
	['PAGE','778',jdecode('%E3%81%9D%E3%81%AE%E4%BB%96%E3%81%AE%E3%82%B5%E3%83%BC%E3%83%93%E3%82%B9'),jdecode(''),'/778.html','true',[],''],
	['PAGE','787',jdecode('%E3%81%8A%E5%95%8F%E3%81%84%E5%90%88%E3%82%8F%E3%81%9B'),jdecode(''),'/787/index.html','true',[ 
		['PAGE','1137',jdecode('%E3%81%8A%E5%95%8F%E3%81%84%E5%90%88%E3%82%8F%E3%81%9B+%28%E3%83%95%E3%82%A9%E3%83%AD%E3%83%BC%E3%82%A2%E3%83%83%E3%83%97%E3%81%AE%E3%83%9A%E3%83%BC%E3%82%B8%29'),jdecode(''),'/787/1137.html','false',[],'']
	],'']];
var siteelementCount=14;
theSitetree.topTemplateName='Alpha';
					                                                                    
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 */					                                                            

