/* [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','11',jdecode('%E3%83%9B%E3%83%BC%E3%83%A0'),jdecode(''),'/11.html','true',[],''],
	['PAGE','345',jdecode('What%26%23x27%3BsNew'),jdecode(''),'/345.html','true',[],''],
	['PAGE','354',jdecode('%E6%9C%AC%E9%BE%8D%E5%AF%BA%E3%81%AE%E6%B4%BB%E5%8B%95'),jdecode(''),'/354/index.html','true',[ 
		['PAGE','363',jdecode('%E5%AD%90%E3%81%A9%E3%82%82%E4%BC%9A'),jdecode(''),'/354/363.html','true',[],''],
		['PAGE','372',jdecode('%E5%AE%9A%E4%BE%8B%E6%95%99%E5%8C%96%E8%A1%8C%E4%BA%8B'),jdecode(''),'/354/372.html','true',[],''],
		['PAGE','381',jdecode('%E5%B9%B4%E4%B8%AD%E8%A1%8C%E4%BA%8B'),jdecode(''),'/354/381.html','true',[],''],
		['PAGE','390',jdecode('%E5%9C%B0%E5%9F%9F%E6%B4%BB%E5%8B%95'),jdecode(''),'/354/390.html','true',[],'']
	],''],
	['PAGE','399',jdecode('%E8%A1%8C%E4%BA%8B%E4%BA%88%E5%AE%9A%E8%A1%A8'),jdecode(''),'/399/index.html','true',[ 
		['PAGE','408',jdecode('%E5%B9%B4%E9%96%93%E8%A1%8C%E4%BA%8B%E8%A1%A8'),jdecode(''),'/399/408.html','true',[],''],
		['PAGE','417',jdecode('%E6%AF%8E%E6%9C%88%E8%A1%8C%E4%BA%8B%E8%A1%A8'),jdecode(''),'/399/417.html','true',[],'']
	],''],
	['PAGE','480',jdecode('%E6%9C%AC%E9%BE%8D%E5%AF%BA%E6%96%B0%E8%81%9E%E3%80%8E%E8%81%9E%E3%80%8F'),jdecode(''),'/480.html','true',[],''],
	['PAGE','426',jdecode('%E6%95%99%E5%8C%96%E3%82%B0%E3%83%83%E3%82%BA'),jdecode(''),'/426/index.html','true',[ 
		['PAGE','5152',jdecode('%E3%81%8A%E3%81%99%E3%81%99%E3%82%81DVD%E3%83%BB%E6%9B%B8%E7%B1%8D'),jdecode(''),'/426/5152.html','true',[],''],
		['PAGE','3652',jdecode('%E5%B8%B8%E9%A6%99%E7%9B%A4'),jdecode(''),'/426/3652.html','true',[],''],
		['PAGE','435',jdecode('%E7%9C%9F%E5%AE%97%E7%94%A8%E8%AA%9E%E3%82%B7%E3%83%AA%E3%83%BC%E3%82%BA'),jdecode(''),'/426/435.html','true',[],'']
	],''],
	['PAGE','462',jdecode('%E6%B3%95%E8%A9%B1%E3%82%B3%E3%83%BC%E3%83%8A%E3%83%BC'),jdecode(''),'/462/index.html','true',[ 
		['PAGE','2831',jdecode('%E3%80%8E%E8%81%9E%E3%80%8F%E5%B7%BB%E9%A0%AD%E8%A8%80'),jdecode(''),'/462/2831.html','true',[],''],
		['PAGE','471',jdecode('%E3%81%A1%E3%82%87%E3%81%A3%E3%81%A8%E3%81%84%E3%81%84%E8%A9%B1'),jdecode(''),'/462/471.html','true',[],'']
	],''],
	['PAGE','1723',jdecode('%E8%91%AC%E5%84%80%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6'),jdecode(''),'/1723/index.html','true',[ 
		['PAGE','3029',jdecode('%E3%81%84%E3%81%96%E3%81%A8%E3%81%84%E3%81%86%E6%99%82%E3%81%AB'),jdecode(''),'/1723/3029.html','true',[],''],
		['PAGE','6197',jdecode('%E6%89%8B%E5%BC%95%E3%81%8D'),jdecode(''),'/1723/6197.html','true',[],''],
		['PAGE','2994',jdecode('%E5%84%AA%E8%89%AF%E8%91%AC%E5%84%80%E7%A4%BE'),jdecode(''),'/1723/2994.html','true',[],''],
		['PAGE','6274',jdecode('%E8%B2%BB%E7%94%A8%E3%82%B7%E3%83%9F%E3%83%A5%E3%83%AC%E3%83%BC%E3%82%B7%E3%83%A7%E3%83%B3'),jdecode(''),'/1723/6274.html','true',[],''],
		['PAGE','6411',jdecode('%E8%91%AC%E5%84%80%E5%8F%B8%E4%BC%9A%E8%80%85%E5%AE%9B'),jdecode(''),'/1723/6411.html','true',[],'']
	],''],
	['PAGE','1516',jdecode('%E6%9C%AC%E9%BE%8D%E5%AF%BA%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6'),jdecode(''),'/1516/index.html','true',[ 
		['PAGE','1525',jdecode('%E7%B8%81%E8%B5%B7'),jdecode(''),'/1516/1525.html','true',[],''],
		['PAGE','1981',jdecode('%E5%AF%BA%E5%BD%B9%E3%83%BB%E5%AF%BA%E6%97%8F'),jdecode(''),'/1516/1981.html','true',[],''],
		['PAGE','1543',jdecode('%E8%96%AA%E6%9A%96%E7%82%89'),jdecode(''),'/1516/1543.html','true',[],''],
		['PAGE','1552',jdecode('%E6%89%80%E5%9C%A8%E5%9C%B0'),jdecode(''),'/1516/1552.html','true',[],''],
		['PAGE','1561',jdecode('%E4%BA%A4%E9%80%9A%E6%A1%88%E5%86%85'),jdecode(''),'/1516/1561.html','true',[],'']
	],''],
	['PAGE','2525',jdecode('%E5%90%84%E7%A8%AE%E6%A1%88%E5%86%85%E3%83%BB%E3%83%91%E3%83%B3%E3%83%95'),jdecode(''),'/2525.html','true',[],''],
	['PAGE','3782',jdecode('%E8%A1%8C%E4%BA%8B%E5%A0%B1%E5%91%8A%EF%BC%88%E5%86%99%E7%9C%9F%EF%BC%89'),jdecode(''),'/3782/index.html','true',[ 
		['PAGE','7828',jdecode('%E4%B8%8A%E5%B1%B1%E5%B8%B0%E6%95%AC%E5%BC%8F2010'),jdecode(''),'/3782/7828.html','true',[],''],
		['PAGE','7215',jdecode('%E7%A7%8B%E3%81%AE%E6%B3%95%E8%A9%B1%E4%BC%9A2009'),jdecode(''),'/3782/7215.html','true',[],''],
		['PAGE','6022',jdecode('%E6%8E%83%E9%99%A4%E3%81%AB%E5%AD%A6%E3%81%B6%E4%BC%9Ain%E6%98%8E%E4%B8%AD%E2%91%A0'),jdecode(''),'/3782/6022.html','true',[],''],
		['PAGE','5746',jdecode('%E8%8A%B1%E3%81%BE%E3%81%A4%E3%82%8A2009'),jdecode(''),'/3782/5746.html','true',[],''],
		['PAGE','5653',jdecode('%E5%AD%90%E3%81%A9%E3%82%82%E6%97%A5%E6%9B%9C%E5%AD%A6%E6%A0%A1%E4%B8%8A%E5%B1%B1%E7%A0%94%E4%BF%AE2009'),jdecode(''),'/3782/5653.html','true',[],''],
		['PAGE','5593',jdecode('%E6%98%A5%E5%AD%A3%E5%BD%BC%E5%B2%B8%E4%BC%9A2009'),jdecode(''),'/3782/5593.html','true',[],'']
	],''],
	['PAGE','1570',jdecode('%E3%81%8A%E5%95%8F%E3%81%84%E5%90%88%E3%81%9B'),jdecode(''),'/1570.html','true',[],'']];
var siteelementCount=39;
theSitetree.topTemplateName='Borders';
					                                                                    
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 */					                                                            
