/* [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','11724',jdecode('What%26%23x27%3Bs+New'),jdecode(''),'/11724.html','true',[],''],
	['PAGE','33',jdecode('%E3%82%AF%E3%83%AA%E3%83%8B%E3%83%83%E3%82%AF%E6%A1%88%E5%86%85'),jdecode(''),'/33/index.html','true',[ 
		['PAGE','42',jdecode('%E8%A8%BA%E7%99%82%E6%99%82%E9%96%93'),jdecode(''),'/33/42.html','true',[],''],
		['PAGE','51',jdecode('%E8%A8%BA%E7%99%82%E6%A1%88%E5%86%85'),jdecode(''),'/33/51.html','true',[],''],
		['PAGE','60',jdecode('%E3%82%A2%E3%82%AF%E3%82%BB%E3%82%B9'),jdecode(''),'/33/60.html','true',[],''],
		['PAGE','69',jdecode('%E9%99%A2%E9%95%B7%E3%83%97%E3%83%AD%E3%83%95%E3%82%A3%E3%83%BC%E3%83%AB'),jdecode(''),'/33/69.html','true',[],'']
	],''],
	['PAGE','1080',jdecode('%E3%82%88%E3%81%8F%E3%81%82%E3%82%8B%E7%97%85%E6%B0%97'),jdecode(''),'/1080/index.html','true',[ 
		['PAGE','2038',jdecode('%E3%81%86%E3%81%A4%E7%97%85%E2%91%A0%E3%81%86%E3%81%A4%E7%97%85%E3%81%A8%E3%81%AF'),jdecode(''),'/1080/2038.html','true',[],''],
		['PAGE','19253',jdecode('%E3%81%86%E3%81%A4%E7%97%85%E2%91%A1%E6%B2%BB%E7%99%82'),jdecode(''),'/1080/19253.html','true',[],''],
		['PAGE','2047',jdecode('%E3%81%86%E3%81%A4%E7%97%85%E2%91%A2%E3%81%86%E3%81%A4%E7%97%85%E3%83%81%E3%82%A7%E3%83%83%E3%82%AF'),jdecode(''),'/1080/2047.html','true',[],''],
		['PAGE','14026',jdecode('%E7%A5%9E%E7%B5%8C%E7%97%87%E2%91%A0%E7%A5%9E%E7%B5%8C%E7%97%87%E3%81%A8%E3%81%AF'),jdecode(''),'/1080/14026.html','true',[],''],
		['PAGE','19010',jdecode('%E7%A5%9E%E7%B5%8C%E7%97%87%E2%91%A1%E7%97%87%E7%8A%B6%E3%81%A8%E6%B2%BB%E7%99%82'),jdecode(''),'/1080/19010.html','true',[],''],
		['PAGE','14017',jdecode('%E3%83%91%E3%83%8B%E3%83%83%E3%82%AF%E9%9A%9C%E5%AE%B3'),jdecode(''),'/1080/14017.html','true',[],''],
		['PAGE','19146',jdecode('%E5%BC%B7%E8%BF%AB%E6%80%A7%E9%9A%9C%E5%AE%B3'),jdecode(''),'/1080/19146.html','true',[],''],
		['PAGE','18929',jdecode('%E7%A4%BE%E4%BC%9A%E4%B8%8D%E5%AE%89%E9%9A%9C%E5%AE%B3'),jdecode(''),'/1080/18929.html','true',[],'']
	],''],
	['PAGE','20032',jdecode('New%E3%81%93%E3%82%93%E3%81%AA%E6%9C%AC%E3%80%81%E3%81%82%E3%82%93%E3%81%AA%E6%9C%AC'),jdecode(''),'/20032/index.html','true',[ 
		['PAGE','20041',jdecode('New%E3%80%80%E3%81%86%E3%81%A4%E7%97%85%E4%BD%93%E9%A8%93%E8%A8%98'),jdecode(''),'/20032/20041.html','true',[],''],
		['PAGE','20050',jdecode('%E3%83%91%E3%83%8B%E3%83%83%E3%82%AF%E9%9A%9C%E5%AE%B3%E4%BD%93%E9%A8%93%E8%A8%98'),jdecode(''),'/20032/20050.html','true',[],''],
		['PAGE','20059',jdecode('%E3%82%A2%E3%83%AB%E3%82%B3%E3%83%BC%E3%83%AB%E4%BE%9D%E5%AD%98%E7%97%87%E4%BD%93%E9%A8%93%E8%A8%98'),jdecode(''),'/20032/20059.html','true',[],''],
		['PAGE','20841',jdecode('%E7%B5%B1%E5%90%88%E5%A4%B1%E8%AA%BF%E7%97%87%E4%BD%93%E9%A8%93%E8%A8%98'),jdecode(''),'/20032/20841.html','true',[],''],
		['PAGE','20850',jdecode('New+++%E8%AA%8D%E7%9F%A5%E7%97%87%E3%80%81%E4%BB%8B%E8%AD%B7%E4%BD%93%E9%A8%93%E8%A8%98'),jdecode(''),'/20032/20850.html','true',[],''],
		['PAGE','20859',jdecode('%E4%B8%8D%E7%9C%A0%E7%97%87'),jdecode(''),'/20032/20859.html','true',[],''],
		['PAGE','20868',jdecode('New%E5%BF%83%E3%81%8C%E3%81%A1%E3%82%87%E3%81%A3%E3%81%A8%E7%96%B2%E3%82%8C%E3%81%9F%E6%99%82%E3%81%AB'),jdecode(''),'/20032/20868.html','true',[],''],
		['PAGE','21333',jdecode('New+++%E5%B0%B1%E6%B4%BB%E4%B8%AD%E3%81%AE%E6%96%B9%E3%81%AB'),jdecode(''),'/20032/21333.html','true',[],'']
	],''],
	['PAGE','14044',jdecode('%E3%82%88%E3%81%8F%E3%81%82%E3%82%8B%E8%B3%AA%E5%95%8F'),jdecode(''),'/14044.html','true',[],'']];
var siteelementCount=26;
theSitetree.topTemplateName='NewYork';
					                                                                    
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 */					                                                            
