/* [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','401',jdecode('Home'),jdecode(''),'/401.html','true',[],''],
	['PAGE','18001',jdecode('News'),jdecode(''),'/18001.html','true',[],''],
	['PAGE','2001',jdecode('About+us'),jdecode(''),'/2001/index.html','true',[ 
		['PAGE','3201',jdecode('History'),jdecode(''),'/2001/3201.html','true',[],''],
		['PAGE','3222',jdecode('Insurance+%3Fs'),jdecode(''),'/2001/3222.html','true',[],''],
		['PAGE','3243',jdecode('Store+Hours'),jdecode(''),'/2001/3243.html','true',[],'']
	],''],
	['PAGE','2022',jdecode('Products'),jdecode(''),'/2022/index.html','true',[ 
		['PAGE','4301',jdecode('Aids+to+Daily+Living'),jdecode(''),'/2022/4301.html','true',[],''],
		['PAGE','18501',jdecode('Bathroom+Safety'),jdecode(''),'/2022/18501.html','true',[],''],
		['PAGE','3264',jdecode('Braces%2FSupports'),jdecode(''),'/2022/3264.html','true',[],''],
		['PAGE','3285',jdecode('Diabetic+Supplies'),jdecode(''),'/2022/3285.html','true',[],''],
		['PAGE','5401',jdecode('Diagnostic+Aids'),jdecode(''),'/2022/5401.html','true',[],''],
		['PAGE','3306',jdecode('First+Aid'),jdecode(''),'/2022/3306.html','true',[],''],
		['PAGE','12001',jdecode('Hospital+Beds+%26+Access.'),jdecode(''),'/2022/12001.html','true',[],''],
		['PAGE','5422',jdecode('Incontinence'),jdecode(''),'/2022/5422.html','true',[],''],
		['PAGE','5443',jdecode('Lift+Chairs'),jdecode(''),'/2022/5443.html','true',[],''],
		['PAGE','3327',jdecode('Men%26%23x27%3Bs+Health'),jdecode(''),'/2022/3327.html','true',[],''],
		['PAGE','3701',jdecode('Nutritional'),jdecode(''),'/2022/3701.html','true',[],''],
		['PAGE','4322',jdecode('Orthotics'),jdecode(''),'/2022/4322.html','true',[],''],
		['PAGE','4343',jdecode('Ostomy+Supplies'),jdecode(''),'/2022/4343.html','true',[],''],
		['PAGE','5464',jdecode('Personal+Protection'),jdecode(''),'/2022/5464.html','true',[],''],
		['PAGE','5485',jdecode('Power+Wheelchairs'),jdecode(''),'/2022/5485.html','true',[],''],
		['PAGE','12901',jdecode('Ramps'),jdecode(''),'/2022/12901.html','true',[],''],
		['PAGE','4406',jdecode('Respiratory'),jdecode(''),'/2022/4406.html','true',[],''],
		['PAGE','5506',jdecode('Scooters'),jdecode(''),'/2022/5506.html','true',[],''],
		['PAGE','12922',jdecode('Stair+Lifts'),jdecode(''),'/2022/12922.html','true',[],''],
		['PAGE','12022',jdecode('Support+Stockings'),jdecode(''),'/2022/12022.html','true',[],''],
		['PAGE','5527',jdecode('Urological'),jdecode(''),'/2022/5527.html','true',[],''],
		['PAGE','12943',jdecode('Vehicle+Lifts'),jdecode(''),'/2022/12943.html','true',[],''],
		['PAGE','5548',jdecode('Wheelchairs+-+Manual'),jdecode(''),'/2022/5548.html','true',[],''],
		['PAGE','5569',jdecode('Wound+Care'),jdecode(''),'/2022/5569.html','true',[],'']
	],''],
	['PAGE','15401',jdecode('Rental+Equipment'),jdecode(''),'/15401.html','true',[],''],
	['PAGE','2043',jdecode('Repairs%2FService'),jdecode(''),'/2043.html','true',[],''],
	['PAGE','17101',jdecode('Diabetic+Re-ordering'),jdecode(''),'/17101.html','true',[],''],
	['PAGE','22201',jdecode('Manufacturer+Links'),jdecode(''),'/22201.html','true',[],''],
	['PAGE','2064',jdecode('Contact+Us'),jdecode(''),'/2064.html','true',[],''],
	['PAGE','5101',jdecode('Map'),jdecode(''),'/5101.html','true',[],''],
	['PAGE','10701',jdecode('Forum'),jdecode(''),'/10701.html','true',[],'']];
var siteelementCount=38;
theSitetree.topTemplateName='Retro';
theSitetree.paletteFamily='003366';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='204';
theSitetree.graphicsetId='241';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Retro',
				paletteFamily: 	'003366',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'204',
				graphicsetId: 	'241',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				a_color: 		'003366',
				b_color: 		'D8F8F8',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'EAEAEA',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1501']={
webappId:    '1501',
documentId:  '401',
internalId:  '100001',
customField: '1501'
};
webappMappings['2001']={
webappId:    '2001',
documentId:  '5101',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:false;'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '2064',
internalId:  '100442',
customField: 'en:US:'
};
webappMappings['1003']={
webappId:    '1003',
documentId:  '10701',
internalId:  'aecgi0inxx1c10e8763718d',
customField: 'en:US:'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '2043',
internalId:  '100642',
customField: 'en:US:'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '17101',
internalId:  '103342',
customField: 'en:US:'
};
var canonHostname = 'wsc.easycgi.com';
var accountId     = 'AECGI0INXX1C';
var companyName   = 'American+Medical+Services';
var htmlTitle	  = 'American+Medical+Services+%3A%3A%3A+Pontiac%2C+Michigan';
var metaKeywords  = 'wheelchair%2C+walker%2C+diabetic+supplies%2C+ostomy%2C+wound+care%2C+support+stockings%2C+supports%2C+braces%2C+commode%2C+bath+bench%2C+bathroom+safety%2C+lift+chairs';
var metaContents  = 'Pontiac%2C+Michigan+durable+medical+equipment+provider.++Medical+supplies%2C+diabetic%2C+ostomy%2C+wound+care%2C+support+stockings%2C+braces%2C+wheelchairs%2C+walkers%2C+commodes%2C+bathroom+safety++much%2C+much+more.';
					                                                                    
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 */					                                                            

