/* [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','2213',jdecode('%E3%82%B5%E3%83%BC%E3%83%93%E3%82%B9%E6%83%85%E5%A0%B1'),jdecode(''),'/2213.html','true',[],''],
	['PAGE','8801',jdecode('%E5%95%86%E5%93%81'),jdecode(''),'/8801/index.html','true',[ 
		['PAGE','8822',jdecode('%E5%95%86%E5%93%81%281%29'),jdecode(''),'/8801/8822.html','true',[],'']
	],''],
	['PAGE','2222',jdecode('%E4%BC%9A%E7%A4%BE%E6%A1%88%E5%86%85'),jdecode(''),'/2222.html','true',[],''],
	['PAGE','2240',jdecode(''),jdecode(''),'/2240.html','true',[],''],
	['PAGE','2231',jdecode('%E3%81%8A%E5%95%8F%E3%81%84%E5%90%88%E3%82%8F%E3%81%9B'),jdecode(''),'/2231/index.html','true',[ 
		['PAGE','3296',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(''),'/2231/3296.html','false',[],'']
	],'']];
var siteelementCount=8;
theSitetree.topTemplateName='Moonflight';
theSitetree.paletteFamily='5B7A93';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='14457';
theSitetree.graphicsetId='499';
theSitetree.contentColor='666666';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Moonflight',
				paletteFamily: 	'5B7A93',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'14457',
				graphicsetId: 	'499',
				contentColor: 	'666666',
				contentBGColor: 'FFFFFF',
				a_color: 		'2C5574',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'MS PMincho',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '11',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '11',
internalId:  '557060',
customField: '1501'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '2231',
internalId:  'avesj0inxlwi9b131d29309e9d26',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '3296',
internalId:  'avesj0inxlwi9b131d29309e9d26',
customField: 'followUp'
};
var canonHostname = 'diywk00.cluster.mlpsca01.us.diy-servers.net';
var accountId     = 'AVESJ0INXLWI';
var companyName   = 'Safety+Net+Inc.++++++++++++++++++++For+Business+Support%2C+Operation+%26+Management.';
var htmlTitle	  = '---+Safety+Net+Inc.+---++++++Business+Solution%E2%87%92Business+Phone.+Facsimile%2C+Security+Information+Unit.+%E3%80%80%E3%80%80IT+Solution%E2%87%92Internet%2C+Software%2C+Homepage+Create++Operation++Management.';
var metaKeywords  = '%E6%9C%89%E9%99%90%E4%BC%9A%E7%A4%BE%E3%82%BB%E3%83%BC%E3%83%95%E3%83%86%E3%82%A3%E3%83%8D%E3%83%83%E3%83%88%2C%E3%83%93%E3%82%B7%E3%83%8D%E3%82%B9%E3%83%9B%E3%83%B3%2C%E8%A4%87%E5%90%88%E6%A9%9F%2C%E6%B3%95%E4%BA%BA%E5%90%91%E3%81%91%E6%90%BA%E5%B8%AF%E9%9B%BB%E8%A9%B1%2C%E3%83%9B%E3%83%BC%E3%83%A0%E3%83%9A%E3%83%BC%E3%82%B8%E8%A3%BD%E4%BD%9C%2C%E7%A4%BE%E5%86%85LAN%E6%A7%8B%E7%AF%89%2CSEO%2CSafety+Net%2C%E3%82%BB%E3%82%AD%E3%83%A5%E3%83%AA%E3%83%86%E3%82%A3%2C%E3%82%A6%E3%82%A3%E3%83%AB%E3%82%B9%2C%E3%82%B9%E3%83%91%E3%82%A4%E3%82%A6%E3%82%A7%E3%82%A2%2C%E4%B8%8D%E6%AD%A3%E3%82%A2%E3%82%AF%E3%82%BB%E3%82%B9%2C%E5%AF%BE%E7%AD%96%2C%E9%98%B2%E5%BE%A1%2C%E8%A8%AD%E5%AE%9A%2CLAN%2CVPN%2CWAN%2CPC%2C%E3%81%97%E3%82%85%E3%82%93%E3%81%99%E3%81%91%2C%E4%BD%90%E4%BC%AF%E4%BF%8A%E4%BB%8B';
var metaContents  = '%E6%9C%89%E9%99%90%E4%BC%9A%E7%A4%BE%E3%82%BB%E3%83%BC%E3%83%95%E3%83%86%E3%82%A3%E3%83%8D%E3%83%83%E3%83%88%E3%81%AF%E5%BF%AB%E9%81%A9%E3%81%A7%E5%AE%89%E5%85%A8%E3%81%AA%E3%82%AA%E3%83%95%E3%82%A3%E3%82%B9%E7%92%B0%E5%A2%83%E3%82%92%E6%8F%90%E4%BE%9B%E3%81%99%E3%82%8B%E3%81%A8%E3%81%A8%E3%82%82%E3%81%AB%E3%81%8A%E5%AE%A2%E6%A7%98%E3%81%AE%E3%83%8B%E3%83%BC%E3%82%BA%E3%81%AB%E5%90%88%E3%81%A3%E3%81%9F%E3%82%B5%E3%83%BC%E3%83%93%E3%82%B9%E3%82%84%E5%95%86%E5%93%81%E3%82%92%E3%81%94%E6%8F%90%E6%A1%88%E3%81%97%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%80%82++%E6%A5%AD%E5%8B%99%E3%81%AE%E5%8A%B9%E7%8E%87%E5%8C%96%E3%82%92%E8%80%83%E3%81%88%E3%81%9F%E9%80%9A%E4%BF%A1%E6%A9%9F%E5%99%A8%E3%80%81%E3%83%87%E3%83%BC%E3%82%BF%E6%BC%8F%E6%B4%A9%E3%82%84%E4%B8%8D%E6%AD%A3%E3%82%A2%E3%82%AF%E3%82%BB%E3%82%B9%E3%81%AA%E3%81%A9%E3%81%8B%E3%82%89%E3%83%8D%E3%83%83%E3%83%88%E3%83%AF%E3%83%BC%E3%82%AF%E7%92%B0%E5%A2%83%E3%82%92%E5%AE%88%E3%82%8A%E3%81%BE%E3%81%99%E3%80%82++%E9%A1%A7%E5%AE%A2%E3%81%AE%E3%82%BB%E3%82%AD%E3%83%A5%E3%83%AA%E3%83%86%E3%82%A3%E6%84%8F%E8%AD%98%E3%82%92%E9%AB%98%E3%82%81%E3%80%81%E3%82%88%E3%82%8A%E5%AE%89%E5%85%A8%E3%81%AA%E3%82%A4%E3%83%B3%E3%82%BF%E3%83%BC%E3%83%8D%E3%83%83%E3%83%88%E7%92%B0%E5%A2%83%E3%82%92%E6%8F%90%E4%BE%9B%E3%81%99%E3%82%8B%E7%82%BA%E3%81%AE%E8%AC%9B%E7%BF%92%E3%82%84%E7%A0%94%E4%BF%AE%E3%82%82%E8%A1%8C%E3%81%A3%E3%81%A6%E3%81%8A%E3%82%8A%E3%81%BE%E3%81%99%E3%80%82';
					                                                                    
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 */					                                                            

