/* [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','4597',jdecode('HOME.'),jdecode(''),'/4597.html','true',[],''],
	['PAGE','5934',jdecode('FACILITIES%2F+AVAILABILITY+LINK.+'),jdecode(''),'/5934/index.html','true',[ 
		['PAGE','127449',jdecode('FACILITIES%2F+AVAILABILITY+LINK.++%28follow+up+page%29'),jdecode(''),'/5934/127449.html','false',[],''],
		['PAGE','127382',jdecode('FACILITIES%2F+AVAILABILITY+LINK.++%28follow+up+page%29'),jdecode(''),'/5934/127382.html','false',[],''],
		['PAGE','127363',jdecode('FACILITIES%2F+AVAILABILITY+LINK.++%28follow+up+page%29'),jdecode(''),'/5934/127363.html','false',[],''],
		['PAGE','127274',jdecode('FACILITIES%2F+AVAILABILITY+LINK.++%28follow+up+page%29'),jdecode(''),'/5934/127274.html','false',[],''],
		['PAGE','127252',jdecode('FACILITIES%2F+AVAILABILITY+LINK.++%28follow+up+page%29'),jdecode(''),'/5934/127252.html','false',[],''],
		['PAGE','118652',jdecode('FACILITIES%2F+AVAILABILITY+LINK.++%28follow+up+page%29'),jdecode(''),'/5934/118652.html','false',[],''],
		['PAGE','118552',jdecode('FACILITIES%2F+AVAILABILITY+LINK.++%28follow+up+page%29'),jdecode(''),'/5934/118552.html','false',[],'']
	],'']];
var siteelementCount=9;
theSitetree.topTemplateName='Outdoor';
theSitetree.paletteFamily='47548E';
theSitetree.keyvisualId='3930';
theSitetree.keyvisualName='kv_3930.jpg';
theSitetree.fontsetId='10504';
theSitetree.graphicsetId='11086';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='CDCBE3';
var theTemplate={
				name: 			'Outdoor',
				paletteFamily: 	'47548E',
				keyvisualId: 	'3930',
				keyvisualName: 	'kv_3930.jpg',
				fontsetId: 		'10504',
				graphicsetId: 	'11086',
				contentColor: 	'000000',
				contentBGColor: 'CDCBE3',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'424EB9',
				e_color: 		'424EB9',
				f_color: 		'424EB9',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4597',
internalId:  '',
customField: '20100308-213645'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5934',
internalId:  '',
customField: '20100219-141716'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4597',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '127449',
internalId:  '',
customField: '20070503-015313'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '127382',
internalId:  '',
customField: '20070503-014514'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '127363',
internalId:  '',
customField: '20070503-014426'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '127274',
internalId:  '',
customField: '20070503-014031'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '127252',
internalId:  '',
customField: '20070503-013906'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '118652',
internalId:  '',
customField: '20070220-014733'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '118552',
internalId:  '',
customField: '20070220-014622'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '5934',
internalId:  '11794482',
customField: 'en:GB:'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '4597',
internalId:  '12153210',
customField: 'en:GB:'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010IN3S7P';
var companyName   = '+++++';
var htmlTitle	  = 'Large+Snowdonia+Cottage+SLEEP+14+TRADITIONAL+WELSH+FARMHOUSE';
var metaKeywords  = 'CEFN+FARMHOUSE%2C+SNOWDON+GROUP+ACCOMMODATION%2C+SNOWDON+SELF+CATERING.+SNODON+ACCOMMODATION%2CSnowdon+Accommodation%2C++++SNOWDEN+HOLIDAY+COTTAGE%2C+Self+Catering+Snowdonia%2C+Caernarfon+Self+Catering+Accommodation%2C+Gay+Accommodation%2C+HOLIDAY+COTTAGE+SNOWDONIA%2C+SNOWDONIA+HOLIDAY+RENTAL%2C+SNOWDON+HOLIDAY+RENTAL%2C+SNOWDONIA+COTTAGE%2C++SNOWDON+COTTAGE%2C++SNOWDONIA+ACCOMMODATION%2C+snowdon+holiday+cottage%2C+snowdonia+holliday+cottage%2C+snowdonia+accommodation%2C+llanberis+cottage%2C+01286831612%2C+01286+831612%2CBEDDGELERT+SELF+CATERING%2C';
var metaContents  = 'LARGE+SNOWDONIA+COTTAGE+SLEEPS+up+to+14%2C+Snowdon+Group+Accommodation+-+Snowdon+and+Sea+views.+Traditional+Welsh+Farmhouse%2C+Many+Original+Features%2C+Log+Fires%2C+Country+Inns%2C+Playbarn%2C+a+cosy+home+from+home.';
					                                                                    
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 */					                                                            
