/* [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','801',jdecode('Home+Page'),jdecode(''),'/801.html','true',[],''],
	['PAGE','8201',jdecode('Automobile'),jdecode(''),'/8201.html','true',[],''],
	['PAGE','8222',jdecode('Home+Owners'),jdecode(''),'/8222.html','true',[],''],
	['PAGE','15301',jdecode('Life'),jdecode(''),'/15301.html','true',[],''],
	['PAGE','13001',jdecode('Business'),jdecode(''),'/13001.html','true',[],''],
	['PAGE','873',jdecode('Contact+Us'),jdecode(''),'/873/index.html','true',[ 
		['PAGE','7201',jdecode('Contact+Us+%28follow+up+page%29'),jdecode(''),'/873/7201.html','false',[],'']
	],''],
	['PAGE','20901',jdecode('Map+to+Our+Office'),jdecode(''),'/20901.html','true',[],''],
	['PAGE','852',jdecode('About+Us'),jdecode(''),'/852.html','true',[],'']];
var siteelementCount=9;
theSitetree.topTemplateName='Fluent';
theSitetree.paletteFamily='4A714E';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10644';
theSitetree.graphicsetId='10521';
theSitetree.contentColor='4A714E';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Fluent',
				paletteFamily: 	'4A714E',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10644',
				graphicsetId: 	'10521',
				contentColor: 	'4A714E',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'A4A5A4',
				e_color: 		'4971AD',
				f_color: 		'26487C',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '801',
internalId:  '1006',
customField: '1006'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '873',
internalId:  'aen010inlnl711991fedf8a',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '7201',
internalId:  'aen010inlnl711991fedf8a',
customField: 'followUp'
};
webappMappings['2001']={
webappId:    '2001',
documentId:  '20901',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:false;'
};
var canonHostname = 'wscwrk01.ehost-services.com';
var accountId     = 'AEN010INLNL7';
var companyName   = 'Meredith+Insurance+Associates';
var htmlTitle	  = 'Meredith+Insurance+Associates+in+Greenwood%2C+SC';
var metaKeywords  = 'F.+Michael+Meredith+Agency+410+Main+St+Greenwood%2C+SC+29646+++Mike+212+oak+avenue+Affordable+Insurance+Auto+Insurance+Greenwood+SC+McCormick+SC+Abbeville+SC+Saluda+SC+Laurens+SC+Clinton+Home+Owners+Homeowners+Insurance+RV+Insurance+Motor+Home+Insurance+Recreational+Vehicle+Insurance+Boat+Insurance+Life+Health+Insurance+Cheap+Insurance+Auto+Car+Truck+Home+Life+Business+F.+Michael+Meredith+Agency+410+Main+St+Greenwood%2C+SC+29646+++Commercial+Insurance+Greenwood+South+Carolina+McCormick+SC+Saluda+SC+Laurens+RV+Insurance+Boat+Trailer+Insurance+Affordable+Cheap+Low+Rates+Low+Down+payment+Deposit+low+Monthly+Rate+Insurance';
var metaContents  = 'META+NAME%3DDESCRIPTION+CONTENT%3DYou+can+trust+Meredith+Insurance+Associates+with+all+your+insurance+needs.+Trust+Meredith+Insurance+Associates+to+protect+the+things+that+mean+the+most.+Your+car.+Your+home.+Your+prized+possessions.+They+represent+so+much+more+than+mere+shelter+or+transportation.+Whether+brick+and+mortar+or+steel+and+glass%2C+your+property+is+a+symbol+of+your+hard+work+and+achievement%2C+security%2C+comfort+and+freedom+made+real.+For+all+the+things+that+mean+most+to+you%2C+Meredith+Insurance+Associates+offers+complete+coverage+tailored+to+your+needs%2C+your+budget+and+your+lifestyle.+++++++META+NAME%3DKEYWORDS+CONTENT%3DAuto+Car+Truck+Home+Life+Business+Commercial+Insurance+Greenwood+South+Carolina+McCormick+SC+Saluda+SC+Laurens+RV+Insurance+Boat+Trailer+Insurance+Affordable+Cheap+Low+Rates+Low+Down+payment+Deposit+low+Monthly+Rate+Insurance++META+NAME%3DAUTHOR+CONTENT%3DMeredith+Insurance+Associates+Inc.++webmaster%40meredithinsuranceassociates.com+info%40meredithinsuranceassociates.com+www.meredithinsuranceassociates.com++META+NAME%3DRATING+CONTENT%3DGeneral++META+NAME%3DROBOTS+CONTENT%3Dindex%2C+follow++META+NAME%3DREVISIT-AFTER+CONTENT%3D30+days++';
					                                                                    
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 */					                                                            
