/* [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','1001',jdecode('Home'),jdecode(''),'/1001.html','true',[],''],
	['PAGE','2401',jdecode('Opening+hours'),jdecode(''),'/2401.html','true',[],''],
	['PAGE','2422',jdecode('Contact'),jdecode(''),'/2422/index.html','true',[ 
		['PAGE','18101',jdecode('Map'),jdecode(''),'/2422/18101.html','true',[],'']
	],''],
	['PAGE','6601',jdecode('Schedule+Your+Appointment'),jdecode(''),'/6601.html','true',[],''],
	['PAGE','7901',jdecode('Rates'),jdecode(''),'/7901.html','true',[],''],
	['PAGE','2485',jdecode('About+us'),jdecode(''),'/2485/index.html','true',[ 
		['PAGE','2548',jdecode('Of+Illness+and+Disease'),jdecode(''),'/2485/2548.html','true',[],'']
	],''],
	['PAGE','2569',jdecode('Spectrum+of+Practice'),jdecode(''),'/2569.html','true',[],''],
	['PAGE','4401',jdecode('Frequently+Asked+Questions'),jdecode(''),'/4401/index.html','true',[ 
		['PAGE','9301',jdecode('About+Acupuncture'),jdecode(''),'/4401/9301.html','true',[],''],
		['PAGE','9322',jdecode('About+a+visit'),jdecode(''),'/4401/9322.html','true',[],''],
		['PAGE','9801',jdecode('General+Questions'),jdecode(''),'/4401/9801.html','true',[],'']
	],''],
	['PAGE','2632',jdecode('Interesting+links'),jdecode(''),'/2632.html','true',[],''],
	['PAGE','7806',jdecode('Guestbook'),jdecode(''),'/7806/index.html','true',[ 
		['PAGE','7801',jdecode('Read+Guestbook'),jdecode(''),'/7806/7801.html','true',[],'']
	],'']];
var siteelementCount=16;
theSitetree.topTemplateName='Aeskulap';
theSitetree.paletteFamily='C65B2D';
theSitetree.keyvisualId='2497';
theSitetree.keyvisualName='naturheiler.jpg';
theSitetree.fontsetId='438';
theSitetree.graphicsetId='489';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Aeskulap',
				paletteFamily: 	'C65B2D',
				keyvisualId: 	'2497',
				keyvisualName: 	'naturheiler.jpg',
				fontsetId: 		'438',
				graphicsetId: 	'489',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				a_color: 		'FFFFFF',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '1001',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '7806',
internalId:  '7806aaff10in3dbw',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '7801',
internalId:  '7806aaff10in3dbw',
customField: 'action=list'
};
webappMappings['2001']={
webappId:    '2001',
documentId:  '18101',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:false;'
};
var canonHostname = 'wsc01.cm4all.affinity.com';
var accountId     = 'AAFF10IN3DBW';
var companyName   = 'Dragonfly+Medical+Acupuncture';
var htmlTitle	  = 'Dragonfly+Medical+Acupuncture';
var metaKeywords  = '';
var metaContents  = '';
					                                                                    
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 */					                                                            

