/* [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','1201',jdecode('Home'),jdecode(''),'/1201.html','true',[],''],
	['PAGE','56301',jdecode('What+is+HGH%3F'),jdecode(''),'/56301.html','true',[],''],
	['PAGE','1252',jdecode('HGH+Benefits'),jdecode(''),'/1252.html','true',[],''],
	['PAGE','1294',jdecode('HGH+Faq%26%23x27%3Bs'),jdecode(''),'/1294.html','true',[],''],
	['PAGE','1336',jdecode('How+To+Use'),jdecode(''),'/1336.html','true',[],''],
	['PAGE','1357',jdecode('Humatrope+HGH+Faq%26%23x27%3Bs'),jdecode(''),'/1357.html','true',[],''],
	['PAGE','27801',jdecode('How+to+Purchase'),jdecode(''),'/27801/index.html','true',[ 
		['PAGE','21301',jdecode('Contact+%28follow+up+page%29'),jdecode(''),'/27801/21301.html','false',[],''],
		['PAGE','1399',jdecode('Contact+Us'),jdecode(''),'/27801/1399.html','true',[],'']
	],''],
	['PAGE','1273',jdecode('links'),jdecode(''),'/1273.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Easylife';
theSitetree.paletteFamily='AD1D1D';
theSitetree.keyvisualId='5820';
theSitetree.keyvisualName='kv_5820.jpg';
theSitetree.fontsetId='11096';
theSitetree.graphicsetId='11868';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Easylife',
				paletteFamily: 	'AD1D1D',
				keyvisualId: 	'5820',
				keyvisualName: 	'kv_5820.jpg',
				fontsetId: 		'11096',
				graphicsetId: 	'11868',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1001']={
webappId:    '1001',
documentId:  '1399',
internalId:  'aaplu0in3xiw110e92c13e7',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '21301',
internalId:  'aaplu0in3xiw110e92c13e7',
customField: 'followUp'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '1201',
internalId:  '5565118',
customField: '1501'
};
var canonHostname = 'cm4all.aplus.net';
var accountId     = 'AAPLU0IN3XIW';
var companyName   = 'HghStore.net';
var htmlTitle	  = 'Hgh+Store+From+%2410+per+IU%2C+Factory+Representative+Since+1982';
var metaKeywords  = 'INJECTABLE+hgh%2Chuman+growth+hormone%2CHGH%2Cgrowth+hormone%2Cinjectable%2ChGH%2Cgrowth+hormone+human%2Cproducts';
var metaContents  = 'Home.+Injectable+HGH.+HGH+Benefits.+HGH+FAQs.+HGH+Products.+Saizen+HGH.+Humatrope+HGH.+Serostim+HGH+Kit.+Somatropin+HGH.+Contact+Us.+Privacy+Statement+';
					                                                                    
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 */					                                                            
