/* [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','701',jdecode('Home'),jdecode(''),'/701.html','true',[],''],
	['PAGE','5822',jdecode('Courier+Services'),jdecode(''),'/5822.html','true',[],''],
	['PAGE','5843',jdecode('Medical+STAT+Services'),jdecode(''),'/5843.html','true',[],''],
	['PAGE','5885',jdecode('Critical+Parts+Logistics'),jdecode(''),'/5885.html','true',[],''],
	['PAGE','26501',jdecode('Process+Services'),jdecode(''),'/26501.html','true',[],''],
	['PAGE','5864',jdecode('Legal+Support+Services'),jdecode(''),'/5864.html','true',[],''],
	['PAGE','5906',jdecode('Online+Ordering'),jdecode(''),'/5906.html','true',[],''],
	['PAGE','5927',jdecode('Contact'),jdecode(''),'/5927.html','true',[],''],
	['PAGE','17601',jdecode('About+us'),jdecode(''),'/17601.html','true',[],''],
	['PAGE','5969',jdecode('Careers'),jdecode(''),'/5969.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Movement';
theSitetree.paletteFamily='003390';
theSitetree.keyvisualId='1739';
theSitetree.keyvisualName='business1.jpg';
theSitetree.fontsetId='291';
theSitetree.graphicsetId='353';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='003390';
var theTemplate={
				name: 			'Movement',
				paletteFamily: 	'003390',
				keyvisualId: 	'1739',
				keyvisualName: 	'business1.jpg',
				fontsetId: 		'291',
				graphicsetId: 	'353',
				contentColor: 	'FFFFFF',
				contentBGColor: '003390',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				a_color: 		'003390',
				b_color: 		'000000',
				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:  '701',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '701',
internalId:  '7002509',
customField: '1501'
};
var canonHostname = 'wsc01.cm4all.affinity.com';
var accountId     = 'AAFF10IN3G0I';
var companyName   = '866.500.WEST+%289378%29';
var htmlTitle	  = 'COURIERWEST-+Seattle+Tacoma+Bellevue+Everett+Courier+Service+Process+Service+866.500.WEST';
var metaKeywords  = 'air+courier+services%2C+courier+services%2C+seattle+courier+service%2C+bellevue+++courier+service%2C+tacoma+courier+service%2C+everett+courier+service%2C+business+++courier+service%2C+same+day+courier%2C+courier+companies%2C+green+courier%2C+++medical+courier%2C+medical+supply+delivery%2C+infusion+therapy+home+health+++support%2C+transplant+donor+organ+delivery%2C+pharmaceutical+delivery%2C+express+++courier%2C+process+service%2C+process+server%2C+legal+messenger++';
var metaContents  = 'Courierwest+provides+courier+service+to+Seattle%2C+Everett%2C+Tacoma%2C+Bellevue%2C+Puget+Sound%2C+Federal+Way%2C+Kirkland%2C+Lynnwood%2C+Renton%2C+and+Redmond.++Get+same+day+or+sameday%2C+fast+and+reliable+courier+messenger+services+for+everything+from+envelopes%2C+small+packages+to+medical+specimens.+Seattle+delivery+services%2C+bellevue+delivery+services%2C+medical+delivery+services.';
					                                                                    
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 */					                                                            
