/* [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','512',jdecode('Home'),jdecode(''),'/512.html','true',[],''],
	['PAGE','9512',jdecode('About+Us'),jdecode(''),'/9512.html','true',[],''],
	['PAGE','7612',jdecode('Suggested+Uses'),jdecode(''),'/7612/index.html','true',[ 
		['PAGE','24012',jdecode('Autumn+Leaf+Barrier'),jdecode(''),'/7612/24012.html','true',[],''],
		['PAGE','24033',jdecode('Store+Displays'),jdecode(''),'/7612/24033.html','true',[],''],
		['PAGE','24054',jdecode('Bulletin+Boards+++'),jdecode(''),'/7612/24054.html','true',[],''],
		['PAGE','24075',jdecode('Sack+Races'),jdecode(''),'/7612/24075.html','true',[],'']
	],''],
	['PAGE','11912',jdecode('Designs'),jdecode(''),'/11912/index.html','true',[ 
		['PAGE','18112',jdecode('Ivy'),jdecode(''),'/11912/18112.html','true',[],''],
		['PAGE','18133',jdecode('Flowers'),jdecode(''),'/11912/18133.html','true',[],''],
		['PAGE','18154',jdecode('Yellow+Bow'),jdecode(''),'/11912/18154.html','true',[],''],
		['PAGE','18175',jdecode('Cherubs'),jdecode(''),'/11912/18175.html','true',[],''],
		['PAGE','18196',jdecode('Horses'),jdecode(''),'/11912/18196.html','true',[],''],
		['PAGE','18217',jdecode('Nature'),jdecode(''),'/11912/18217.html','true',[],'']
	],''],
	['PAGE','15512',jdecode('Contact'),jdecode(''),'/15512/index.html','true',[ 
		['PAGE','21612',jdecode('Contact+%28follow+up+page%29'),jdecode(''),'/15512/21612.html','false',[],'']
	],''],
	['PAGE','14717',jdecode('Guestbook'),jdecode(''),'/14717/index.html','true',[ 
		['PAGE','14712',jdecode('Read+Guestbook'),jdecode(''),'/14717/14712.html','true',[],'']
	],''],
	['PAGE','16612',jdecode('Links'),jdecode(''),'/16612/index.html','true',[ 
		['PAGE','8412',jdecode('LinkShare'),jdecode(''),'/16612/8412.html','true',[],'']
	],'']];
var siteelementCount=20;
theSitetree.topTemplateName='Collage';
theSitetree.paletteFamily='F9C116';
theSitetree.keyvisualId='2453';
theSitetree.keyvisualName='garten.jpg';
theSitetree.fontsetId='406';
theSitetree.graphicsetId='459';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Collage',
				paletteFamily: 	'F9C116',
				keyvisualId: 	'2453',
				keyvisualName: 	'garten.jpg',
				fontsetId: 		'406',
				graphicsetId: 	'459',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				a_color: 		'FFFFFF',
				b_color: 		'F9C116',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '512',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '14717',
internalId:  '14717aaff10ineoyf',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '14712',
internalId:  '14717aaff10ineoyf',
customField: 'action=list'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '15512',
internalId:  'aaff10ineoyf10c8cafa874',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '21612',
internalId:  'aaff10ineoyf10c8cafa874',
customField: 'followUp'
};
var canonHostname = 'localhost';
var accountId     = 'AAFF10INEOYF';
var companyName   = 'Creative+Burlap';
var htmlTitle	  = 'Creative+Burlap';
var metaKeywords  = 'Burlap%2C+Rose+Bush+Coverings%2CFrost+Protection%2CGardening+Supplies%2CConnecticut+Garden+Supplies%2CGarden+Burlap%2CSilk+Screened+Burlap%2CCustom+Burlap%2CCustom+Gardens%2CUses+for+Burlap%2CUses+of+Burlap%2CBuy+Burlap%2CCheap+Burlap%2CBurlap+Online%2CCreative+Burlap%2CDecorative+Burlap%2CAll+Natural+Fiber%2CDesigns+Hand+Silk+Screened%2CEco-Friendly%2CWeather-Proof+Inks%2CAssembled+in+the+USA%2CLandscape%2C+Decorative+Landscaping';
var metaContents  = 'Creative+Burlap+Company+is+a+family-owned+and+operated+Design%2FManufacturer++Supplier+of+hand+Silk-Screened+Decorative+Burlap%2C++based+in+Northeastern+Connecticut.++++Burlap%2C+Rose+Bush+Coverings%2CFrost+Protection%2CGardening+Supplies%2CConnecticut+Garden+Supplies%2CGarden+Burlap%2CSilk+Screened+Burlap%2CCustom+Burlap%2CCustom+Gardens%2CUses+for+Burlap%2CUses+of+Burlap%2CBuy+Burlap%2CCheap+Burlap%2CBurlap+Online%2CCreative+Burlap';
					                                                                    
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 */					                                                            
