/* [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','4501',jdecode('HOME'),jdecode(''),'/4501.html','true',[],''],
	['PAGE','4552',jdecode('GARDENS'),jdecode(''),'/4552/index.html','true',[ 
		['PAGE','17901',jdecode('Click+for+MORE+GARDENS'),jdecode(''),'/4552/17901.html','true',[],'']
	],''],
	['PAGE','38901',jdecode('HOLKER+HALL'),jdecode(''),'/38901.html','true',[],''],
	['PAGE','8801',jdecode('COMMERCIAL'),jdecode(''),'/8801.html','true',[],''],
	['PAGE','8822',jdecode('DESIGN+SERVICES'),jdecode(''),'/8822.html','true',[],''],
	['PAGE','8843',jdecode('CERAMICS'),jdecode(''),'/8843.html','true',[],'']];
var siteelementCount=7;
theSitetree.topTemplateName='Snapshot';
theSitetree.paletteFamily='6F6F6F';
theSitetree.keyvisualId='3629';
theSitetree.keyvisualName='kv_3629.jpg';
theSitetree.fontsetId='10755';
theSitetree.graphicsetId='10878';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='6F6F6F';
var theTemplate={
				name: 			'Snapshot',
				paletteFamily: 	'6F6F6F',
				keyvisualId: 	'3629',
				keyvisualName: 	'kv_3629.jpg',
				fontsetId: 		'10755',
				graphicsetId: 	'10878',
				contentColor: 	'FFFFFF',
				contentBGColor: '6F6F6F',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'FC5E7B',
				e_color: 		'BFBFBF',
				f_color: 		'050001',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4501',
internalId:  '',
customField: '20110610-003305'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4552',
internalId:  '',
customField: '20110610-005154'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4501',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '8801',
internalId:  '',
customField: '20100930-132340'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '8822',
internalId:  '',
customField: '20081007-131955'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '8843',
internalId:  '',
customField: '20081007-182019'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17901',
internalId:  '',
customField: '20100930-132109'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '38901',
internalId:  '',
customField: '20110928-141213'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010IN2FH1';
var companyName   = 'PEACOCK+DESIGN';
var htmlTitle	  = 'www.peacockdesign.co.uk';
var metaKeywords  = 'landscape+design+gardens+';
var metaContents  = '';
					                                                                    
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 */					                                                            

