/* [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','15',jdecode('%E3%83%9B%E3%83%BC%E3%83%A0'),jdecode(''),'/15.html','true',[],''],
	['PAGE','4411',jdecode('About+us'),jdecode(''),'/4411/index.html','true',[ 
		['PAGE','414',jdecode('%E3%82%AF%E3%83%A9%E3%83%96%E3%83%8F%E3%82%A6%E3%82%B9%E6%89%80%E5%9C%A8%E5%9C%B0'),jdecode(''),'/4411/414.html','true',[],''],
		['PAGE','9124',jdecode('%E3%82%AA%E3%83%AA%E3%82%B8%E3%83%8A%E3%83%AB%E3%82%B0%E3%83%83%E3%82%BA'),jdecode(''),'/4411/9124.html','true',[],''],
		['PAGE','432',jdecode('%E5%80%8B%E4%BA%BA%E6%83%85%E5%A0%B1%E3%81%AE%E5%8F%96%E3%82%8A%E6%89%B1%E3%81%84'),jdecode(''),'/4411/432.html','true',[],'']
	],''],
	['PAGE','441',jdecode('%E3%83%80%E3%82%A4%E3%83%93%E3%83%B3%E3%82%B0%E3%83%A1%E3%83%8B%E3%83%A5%E3%83%BC'),jdecode(''),'/441/index.html','true',[ 
		['PAGE','450',jdecode('%EF%BC%91%E6%97%A5%E4%BD%93%E9%A8%93'),jdecode(''),'/441/450.html','true',[],''],
		['PAGE','459',jdecode('%EF%BC%A3%E3%82%AB%E3%83%BC%E3%83%89%E5%8F%96%E5%BE%97'),jdecode(''),'/441/459.html','true',[],''],
		['PAGE','477',jdecode('%E3%83%95%E3%82%A1%E3%83%B3%E3%83%80%E3%82%A4%E3%83%96'),jdecode(''),'/441/477.html','true',[],''],
		['PAGE','468',jdecode('%E3%83%AA%E3%83%95%E3%83%AC%E3%83%83%E3%82%B7%E3%83%A5%E3%83%80%E3%82%A4%E3%83%96'),jdecode(''),'/441/468.html','true',[],''],
		['PAGE','5860',jdecode('%E3%83%8A%E3%82%A4%E3%83%88%EF%BC%8F%E6%97%A9%E6%9C%9D%E3%83%80%E3%82%A4%E3%83%96'),jdecode(''),'/441/5860.html','true',[],''],
		['PAGE','486',jdecode('%E3%82%B9%E3%83%86%E3%83%83%E3%83%97%E3%82%A2%E3%83%83%E3%83%97'),jdecode(''),'/441/486.html','true',[],'']
	],''],
	['PAGE','504',jdecode('%EF%BC%B1%EF%BC%86%EF%BC%A1'),jdecode(''),'/504.html','true',[],''],
	['PAGE','4298',jdecode('%E3%82%A2%E3%83%95%E3%82%BF%E3%83%BC%E3%83%80%E3%82%A4%E3%83%96%E3%81%AB%EF%BC%81'),jdecode(''),'/4298.html','true',[],''],
	['PAGE','513',jdecode('%E3%83%84%E3%82%A2%E3%83%BC%EF%BC%86%E3%82%A4%E3%83%99%E3%83%B3%E3%83%88'),jdecode(''),'/513.html','true',[],''],
	['PAGE','11108',jdecode('%E3%83%95%E3%82%A9%E3%83%88%E3%83%AC%E3%83%9D%E3%83%BC%E3%83%88'),jdecode(''),'/11108/index.html','true',[ 
		['PAGE','10996',jdecode('%E3%82%AF%E3%83%AA%E3%82%B9%E3%83%9E%E3%82%B92009'),jdecode(''),'/11108/10996.html','true',[],''],
		['PAGE','10238',jdecode('%E5%BF%98%E5%B9%B4%E4%BC%9Ain%E5%AF%8C%E5%B1%B1'),jdecode(''),'/11108/10238.html','true',[],''],
		['PAGE','10341',jdecode('%E5%AF%8C%E5%B1%B1%E3%83%90%E3%82%B9%E8%A6%B3%E5%85%89'),jdecode(''),'/11108/10341.html','true',[],''],
		['PAGE','10403',jdecode('%E5%AF%8C%E5%B1%B1%E3%81%93%E3%81%BC%E3%82%8C%E8%A9%B1'),jdecode(''),'/11108/10403.html','true',[],''],
		['PAGE','10032',jdecode('%E3%82%B5%E3%83%B3%E3%82%B4%E4%BD%9C%E6%88%A62009'),jdecode(''),'/11108/10032.html','true',[],'']
	],''],
	['PAGE','522',jdecode('%E3%81%8A%E5%AE%BF%E6%83%85%E5%A0%B1'),jdecode(''),'/522/index.html','true',[ 
		['PAGE','531',jdecode('%E5%9B%BD%E9%9A%9B%E9%80%9A%E3%82%8A%E5%91%A8%E8%BE%BA'),jdecode(''),'/522/531.html','true',[],''],
		['PAGE','540',jdecode('%E5%9B%BD%E9%81%9358%E5%8F%B7%E5%91%A8%E8%BE%BA'),jdecode(''),'/522/540.html','true',[],'']
	],''],
	['PAGE','4045',jdecode('%E9%A3%9F%EF%BC%81%E9%81%8A%EF%BC%81%E6%83%85%E5%A0%B1'),jdecode(''),'/4045.html','true',[],''],
	['PAGE','549',jdecode('%E3%81%8A%E5%BD%B9%E7%AB%8B%E3%81%A1%E3%83%AA%E3%83%B3%E3%82%AF'),jdecode(''),'/549.html','true',[],'']];
var siteelementCount=26;
theSitetree.topTemplateName='Galerie';
					                                                                    
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 */					                                                            
