/* [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','32',jdecode('Home'),jdecode(''),'/32.html','true',[],''],
	['PAGE','1044',jdecode('Company+History'),jdecode(''),'/1044.html','true',[],''],
	['PAGE','13101',jdecode('The+Gullah+Culture'),jdecode(''),'/13101.html','true',[],''],
	['PAGE','1053',jdecode('Products'),jdecode(''),'/1053.html','true',[],''],
	['PAGE','7201',jdecode('Shop+Our+Store'),jdecode(''),'/7201.html','true',[],''],
	['PAGE','1062',jdecode('Lillie%26%23x27%3Bs+Recipes'),jdecode(''),'/1062/index.html','true',[ 
		['PAGE','16601',jdecode('Summer+Entertaining'),jdecode(''),'/1062/16601.html','true',[],''],
		['PAGE','16622',jdecode('Parties+and+Finger+Foods'),jdecode(''),'/1062/16622.html','true',[],''],
		['PAGE','16643',jdecode('Holiday+Gatherings'),jdecode(''),'/1062/16643.html','true',[],''],
		['PAGE','16664',jdecode('Special+Dinners'),jdecode(''),'/1062/16664.html','true',[],'']
	],''],
	['PAGE','12201',jdecode('BBQ%2FSpecialty+Food+Links'),jdecode(''),'/12201.html','true',[],'']];
var siteelementCount=11;
theSitetree.topTemplateName='Contrast';
theSitetree.paletteFamily='B42F2F';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='16628';
theSitetree.graphicsetId='12213';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Contrast',
				paletteFamily: 	'B42F2F',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'16628',
				graphicsetId: 	'12213',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
var canonHostname = 'wsc-worker04.chi.us.siteprotect.com';
var accountId     = 'AHW050IN3KA4';
var companyName   = 'Lillies+Of+Charleston';
var htmlTitle	  = 'Lillies+Of+Charleston+-+Southern+Style+BBQ+Sauces%2C+Spices+Mixes+and+Marinades';
var metaKeywords  = 'BBQ+sauce%2C+barbeque+sauce%2C+mustard+BBQ+sauce%2C+sauce%2C+mustard%2C+hot+sauce%2C+marinade%2C+gourmet%2C+specialty+food%2C+fried+turkey%2C+grill%2C+grilling%2C+smoking%2C+tenderize%2C+meat%2C+chicken%2C+vegetable%2C+fish%2C+seafood%2C+gifts%2C+gift+baskets%2C+seagrass%2C+lillies%2C+charleston%2C+south+carolina%2C+lowcountry%2C+low+country%2C+hot+peppers%2C+spice%2C+spice+mix%2C+smoker%2C+baste%2C+tomato%2C+pepper+extract%2C+fiery+foods%2C+buffalo+wings%2C+fundraiser%2C+corporate+gifts%2C+baskets%2C+hot+foods%2C+spicy+foods%2C+pepper+sauce%2C+mustard+sauce%2C+Gullah%2C+recipes';
var metaContents  = 'Lillies+of+Charleston+brings+you+the+very+best+in+Low+Country+products+and+recipes+for+grilling+and+slow-smoking.+Check+out+our+latest+offerings+to+enjoy+these+local+treats.';
					                                                                    
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 */					                                                            

