/* [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','501',jdecode('Home'),jdecode(''),'/501.html','true',[],''],
	['PAGE','552',jdecode('About+us'),jdecode(''),'/552.html','true',[],''],
	['PAGE','573',jdecode('Our+Purpose'),jdecode(''),'/573.html','true',[],''],
	['PAGE','5101',jdecode('Events'),jdecode(''),'/5101/index.html','true',[ 
		['PAGE','5501',jdecode('Bennett+Science+Night'),jdecode(''),'/5101/5501.html','true',[],''],
		['PAGE','10701',jdecode('KMPS+Radio+Spot'),jdecode(''),'/5101/10701.html','true',[],''],
		['PAGE','12201',jdecode('Harstine+Island+Farmers+Market'),jdecode(''),'/5101/12201.html','true',[],'']
	],''],
	['PAGE','636',jdecode('Learning+Resources'),jdecode(''),'/636.html','true',[],''],
	['PAGE','7901',jdecode('Our+Partners'),jdecode(''),'/7901.html','true',[],''],
	['PAGE','7001',jdecode('Shop+and+Help%21'),jdecode(''),'/7001.html','true',[],''],
	['PAGE','615',jdecode('Donations'),jdecode(''),'/615.html','true',[],''],
	['PAGE','594',jdecode('Contact'),jdecode(''),'/594/index.html','true',[ 
		['PAGE','3401',jdecode('Contact+%28follow+up+page%29'),jdecode(''),'/594/3401.html','false',[],'']
	],''],
	['PAGE','4206',jdecode('Guestbook'),jdecode(''),'/4206/index.html','true',[ 
		['PAGE','4201',jdecode('Read+Guestbook'),jdecode(''),'/4206/4201.html','true',[],'']
	],'']];
var siteelementCount=15;
theSitetree.topTemplateName='Herzchen';
theSitetree.paletteFamily='96BAF6';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='17116';
theSitetree.graphicsetId='12484';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Herzchen',
				paletteFamily: 	'96BAF6',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'17116',
				graphicsetId: 	'12484',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'true',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'96BAF6',
				e_color: 		'82A6F1',
				f_color: 		'85AAF1',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1001']={
webappId:    '1001',
documentId:  '594',
internalId:  'aen010inl5zb118ec1475c8',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '3401',
internalId:  'aen010inl5zb118ec1475c8',
customField: 'followUp'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '4206',
internalId:  '4206aen010inl5zb',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '4201',
internalId:  '4206aen010inl5zb',
customField: 'action=list'
};
webappMappings['4001']={
webappId:    '4001',
documentId:  '7001',
internalId:  '12857259',
customField: 'language:en;country:US;'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '501',
internalId:  '1006',
customField: '1006'
};
var canonHostname = 'wsc02.ehost-services.com';
var accountId     = 'AEN010INL5ZB';
var companyName   = 'Water+With+Heart';
var htmlTitle	  = 'Water+With+Heart';
var metaKeywords  = 'Water%2C+world%2C+worlds+water+crisis%2C+non-profit%2C+charity%2C+fundraiser';
var metaContents  = 'Water+With+Heart+is+a+non-profit+organization+focused+on+bringing+an+end+to+the+worlds+water+crisis.++We+accept+online+donations+and+sell+personalized+logo+bottled+water+and+merchandise+with+all+proceeds+going+to+help+provide+clean+water+to+the+1+billion+humans+that+lack+access.';
					                                                                    
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 */					                                                            

