/* [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','4607',jdecode('Home'),jdecode(''),'/4607.html','true',[],''],
	['PAGE','24501',jdecode('Windows'),jdecode(''),'/24501/index.html','true',[ 
		['PAGE','24528',jdecode('Windows'),jdecode(''),'/24501/24528.html','true',[],''],
		['PAGE','26101',jdecode('Verticle+Sliding+Sash'),jdecode(''),'/24501/26101.html','true',[],'']
	],''],
	['PAGE','24555',jdecode('Doors'),jdecode(''),'/24555.html','true',[],''],
	['PAGE','24582',jdecode('Conservatories'),jdecode(''),'/24582.html','true',[],''],
	['PAGE','24609',jdecode('Contact'),jdecode(''),'/24609/index.html','true',[ 
		['PAGE','28702',jdecode('Contact+%28follow+up+page%29'),jdecode(''),'/24609/28702.html','false',[],'']
	],'']];
var siteelementCount=8;
theSitetree.topTemplateName='Fragment';
theSitetree.paletteFamily='B3C6D1';
theSitetree.keyvisualId='3451';
theSitetree.keyvisualName='kv_3451.jpg';
theSitetree.fontsetId='10430';
theSitetree.graphicsetId='10764';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Fragment',
				paletteFamily: 	'B3C6D1',
				keyvisualId: 	'3451',
				keyvisualName: 	'kv_3451.jpg',
				fontsetId: 		'10430',
				graphicsetId: 	'10764',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'B3C6D1',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'3A5260',
				e_color: 		'3A5260',
				f_color: 		'3A5260',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4607',
internalId:  '1006',
customField: '1006'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '24609',
internalId:  'aam010in30jm1131bada176',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '28702',
internalId:  'aam010in30jm1131bada176',
customField: 'followUp'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4607',
internalId:  '',
customField: '20091024-155228'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '24501',
internalId:  '',
customField: '20070622-210208'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '24555',
internalId:  '',
customField: '20070622-211224'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '24582',
internalId:  '',
customField: '20070622-211251'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '24609',
internalId:  '',
customField: '20070622-205540'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '24528',
internalId:  '',
customField: '20070225-215326'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '26101',
internalId:  '',
customField: '20070622-210952'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '28702',
internalId:  '',
customField: '20070611-184610'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010IN30JM';
var companyName   = 'The+Godmanchester+Window+Company';
var htmlTitle	  = 'The+Godmanchester+Window+Company';
var metaKeywords  = 'Double+glazing++conservatories++windows++doors++security+locks+Huntingdon+Peterborough+The+Godmanchester+Window+Company+Godmanchester+Windows+++08004582797+20+minute+consultation+PVCu+windows+and+doors+thegodmanchesterwindowcompany.com';
var metaContents  = 'The+Godmanchester+Window+Company+is+an+established+company+for+the+supply+and+installation+of+double+glazed+windows+and+doors.+We+are+a+FENSA+registered+company.+Our+windows+and+doors+are+installed+by+experienced+fitters+and+from+initial+consultation+through+to+completion+our+Installations+Manager%2C+Tony%2C+will+always+be+available.+The+initial+consultation+usually+lasts+approximately+20+minutes%2C+whereupon+Tony+leaves+a+couple+of+brochures+for+you+to+peruse+at+your+leisure.+A+quote+is+then+sent+to+you+within+the+next+day+or+so.';
					                                                                    
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 */					                                                            
