/* [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/index.html','true',[ 
		['PAGE','1272',jdecode('%E6%83%85%E5%A0%B1%E3%82%BB%E3%82%AD%E3%83%A5%E3%83%AA%E3%83%86%E3%82%A3'),jdecode(''),'/15/1272.html','true',[],''],
		['PAGE','1237',jdecode('%E5%80%8B%E4%BA%BA%E6%83%85%E5%A0%B1%E4%BF%9D%E8%AD%B7%E6%96%B9%E9%87%9D'),jdecode(''),'/15/1237.html','true',[],'']
	],''],
	['PAGE','36',jdecode('%E3%83%88%E3%83%94%E3%83%83%E3%82%AF%E3%82%B9'),jdecode(''),'/36.html','true',[],''],
	['PAGE','1490',jdecode('%E6%A5%AD%E5%8B%99%E6%A1%88%E5%86%85'),jdecode(''),'/1490/index.html','true',[ 
		['PAGE','1499',jdecode('%E3%82%B9%E3%82%BF%E3%83%B3%E3%83%80%E3%83%BC%E3%83%89OA'),jdecode(''),'/1490/1499.html','true',[],''],
		['PAGE','1508',jdecode('%E3%82%A2%E3%83%97%E3%83%AA%E3%82%B1%E3%83%BC%E3%82%B7%E3%83%A7%E3%83%B3'),jdecode(''),'/1490/1508.html','true',[],''],
		['PAGE','1517',jdecode('%E3%82%AA%E3%83%95%E3%82%A3%E3%82%B9%E7%92%B0%E5%A2%83'),jdecode(''),'/1490/1517.html','true',[],''],
		['PAGE','1526',jdecode('%E3%82%B5%E3%83%BC%E3%83%93%E3%82%B9%E7%92%B0%E5%A2%83'),jdecode(''),'/1490/1526.html','true',[],''],
		['PAGE','3848',jdecode('%E3%82%BD%E3%83%95%E3%83%88%E8%AC%9B%E7%BF%92'),jdecode(''),'/1490/3848.html','true',[],'']
	],''],
	['PAGE','4716',jdecode('CASIO+%E6%A5%BD%E4%B8%80'),jdecode(''),'/4716/index.html','true',[ 
		['PAGE','4994',jdecode('%E4%BC%9D%E7%A5%A8%E3%81%9D%E3%81%AE%E3%81%BE%E3%81%BE'),jdecode(''),'/4716/4994.html','true',[],''],
		['PAGE','5089',jdecode('%E3%81%8A%E5%95%8F%E5%90%88%E3%81%9B'),jdecode(''),'/4716/5089/index.html','true',[ 
			['PAGE','5127',jdecode('%E3%81%8A%E5%95%8F%E5%90%88%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(''),'/4716/5089/5127.html','false',[],'']
		],'']
	],''],
	['PAGE','1535',jdecode('%E3%82%A4%E3%83%B3%E3%82%BF%E3%83%BC%E3%83%8D%E3%83%83%E3%83%88'),jdecode(''),'/1535/index.html','true',[ 
		['PAGE','4118',jdecode('%E3%83%9B%E3%82%B9%E3%83%86%E3%82%A3%E3%83%B3%E3%82%B0'),jdecode(''),'/1535/4118.html','true',[],''],
		['PAGE','5150',jdecode('%E4%BB%95%E6%A7%98'),jdecode(''),'/1535/5150.html','true',[],''],
		['PAGE','4127',jdecode('%E6%96%99%E9%87%91'),jdecode(''),'/1535/4127.html','true',[],'']
	],''],
	['PAGE','45',jdecode('%E4%BC%9A%E7%A4%BE%E6%A6%82%E8%A6%81'),jdecode(''),'/45/index.html','true',[ 
		['PAGE','63',jdecode('%E4%BA%8B%E6%A5%AD%E5%86%85%E5%AE%B9'),jdecode(''),'/45/63.html','true',[],''],
		['PAGE','72',jdecode('%E3%82%A2%E3%82%AF%E3%82%BB%E3%82%B9'),jdecode(''),'/45/72.html','true',[],'']
	],''],
	['PAGE','1376',jdecode('%E6%8E%A1%E7%94%A8%E6%83%85%E5%A0%B1'),jdecode(''),'/1376.html','true',[],''],
	['PAGE','3790',jdecode('%E3%83%AA%E3%83%B3%E3%82%AF'),jdecode(''),'/3790.html','true',[],'']];
var siteelementCount=23;
theSitetree.topTemplateName='Moonflight';
					                                                                    
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 */					                                                            
