/* [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','301',jdecode('Home'),jdecode(''),'/301.html','true',[],''],
	['PAGE','6406',jdecode('Guestbook'),jdecode(''),'/6406/index.html','true',[ 
		['PAGE','6401',jdecode('Read+Guestbook'),jdecode(''),'/6406/6401.html','true',[],'']
	],''],
	['PAGE','8701',jdecode('About'),jdecode(''),'/8701.html','true',[],'']];
var siteelementCount=4;
theSitetree.topTemplateName='Powering';
theSitetree.paletteFamily='154186';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10735';
theSitetree.graphicsetId='10566';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='808080';
var theTemplate={
				name: 			'Powering',
				paletteFamily: 	'154186',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10735',
				graphicsetId: 	'10566',
				contentColor: 	'000000',
				contentBGColor: '808080',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '301',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '6406',
internalId:  '6406aen010inzw53',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '6401',
internalId:  '6406aen010inzw53',
customField: 'action=list'
};
var canonHostname = 'wsc01.ehost-services.com';
var accountId     = 'AEN010INZW53';
var companyName   = 'Chain+Reaction';
var htmlTitle	  = 'Chain+Reaction';
var metaKeywords  = 'chain+reaction++healthcorps++star+trac++active+lifestyle++health+and+fitness++health++fitness++Doctor+Oz++Dr.+Oz';
var metaContents  = 'Star+Trac%C2%AE%2C+a+leader+in+the+commercial+fitness+industry%2C+building+on+its+Expect+Different+initiatives+to+encourage+all+people+to+live+a+healthy%2C+active+lifestyle+has+partnered+with+HealthCorps%C2%AE.+Founded+by+Dr.+Mehmet+Oz%2C+HealthCorps+is+a+national+proactive+health+movement+that+encourages+and+educates+American+youth+and+families+to+%E2%80%9CEat+Smart+and+Exercise%E2%80%9D+by+providing+them+with+knowledge%2C+tools+and+support+to+make+healthy+choices.+The+partnership+is+set+to+host+Chain+Reaction%2C+a+charity+group+cycling+event%2C+during+the+International+Health%2C+Racquet+and+Sportsclub+Association+%28IHRSA%29+trade+show+and+convention%2C+March+17th+through+19th%2C+2009+at+San+Francisco%E2%80%99s+Moscone+Center+benefiting+HealthCorps+and+its+fight+against+childhood+obesity.++++Dr.+Oz%2C+heart+surgeon+and+host+of+the+upcoming+syndicated+%E2%80%9CDr.+Oz+Show%E2%80%9D+from+Oprah+Winfrey%E2%80%99s+Harpo+Productions%2C+was+motivated+to+start+HealthCorps+after+treating+younger+and+younger+adult+patients+requiring+extensive+surgery+on+blocked+arteries.+%E2%80%9CI%E2%80%99m+grateful+to+Star+Trac+and+the+many+fitness+industry+professionals+who+are+organizing+and+supporting+%E2%80%98Chain+Reaction%E2%80%99%2C%E2%80%9D+said+Dr.+Oz.+%E2%80%9CStaying+physically+active+represents+a+big+part+of+HealthCorps%E2%80%99+message+and+biking+is+a+fun+and+easy+way+to+get+fit+that+you+can+enjoy+throughout+your+life.%E2%80%9D++%E2%80%9CDr.+Oz+is+a+champion+of+the+national+obesity+cause+and+his+HealthCorps+organization+is+the+perfect+fit+to+spread+our+Expect+Different+message+to+live+a+healthier+life%2C%E2%80%9D+said+Keith+White%2C+Star+Trac+director+of+global+brand+development.+%E2%80%9CWe+have+organized+similar+events+in+the+past+but+are+looking+forward+to+building+momentum+with+help+from+HealthCorps.%E2%80%9D';
					                                                                    
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 */					                                                            
