/* [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','4594',jdecode('Home'),jdecode(''),'/4594.html','true',[],''],
	['PAGE','10352',jdecode('Wood+Cottage+Farm+'),jdecode(''),'/10352/index.html','true',[ 
		['PAGE','10379',jdecode('Location'),jdecode(''),'/10352/10379.html','true',[],'']
	],''],
	['PAGE','24962',jdecode('Wood+Cottage+Diary'),jdecode(''),'/24962/index.html','true',[ 
		['PAGE','35703',jdecode('February+09'),jdecode(''),'/24962/35703.html','true',[],''],
		['PAGE','36603',jdecode('March+09'),jdecode(''),'/24962/36603.html','true',[],''],
		['PAGE','39303',jdecode('April+09'),jdecode(''),'/24962/39303.html','true',[],''],
		['PAGE','40003',jdecode('May+09'),jdecode(''),'/24962/40003.html','true',[],''],
		['PAGE','44103',jdecode('June+09'),jdecode(''),'/24962/44103.html','true',[],''],
		['PAGE','45803',jdecode('July+09'),jdecode(''),'/24962/45803.html','true',[],''],
		['PAGE','46703',jdecode('August+09'),jdecode(''),'/24962/46703.html','true',[],''],
		['PAGE','10433',jdecode('September++09'),jdecode(''),'/24962/10433.html','true',[],''],
		['PAGE','24403',jdecode('October+09'),jdecode(''),'/24962/24403.html','true',[],''],
		['PAGE','26603',jdecode('November+09'),jdecode(''),'/24962/26603.html','true',[],''],
		['PAGE','33403',jdecode('December+09'),jdecode(''),'/24962/33403.html','true',[],''],
		['PAGE','34603',jdecode('January+2010'),jdecode(''),'/24962/34603.html','true',[],'']
	],''],
	['PAGE','10595',jdecode('Cleulow+Shetlands'),jdecode(''),'/10595/index.html','true',[ 
		['PAGE','10568',jdecode('Shetland+Sheep+background'),jdecode(''),'/10595/10568.html','true',[],''],
		['PAGE','10541',jdecode('Showing+Successes'),jdecode(''),'/10595/10541.html','true',[],''],
		['PAGE','11330',jdecode('Shetland+Gallery'),jdecode(''),'/10595/11330.html','true',[],'']
	],''],
	['PAGE','10460',jdecode('Cleulow+Brahmas'),jdecode(''),'/10460/index.html','true',[ 
		['PAGE','10487',jdecode('The+Brahma+Breed'),jdecode(''),'/10460/10487.html','true',[],''],
		['PAGE','10514',jdecode('Cleulow+Brahmas'),jdecode(''),'/10460/10514.html','true',[],''],
		['PAGE','11303',jdecode('Brahma+gallery'),jdecode(''),'/10460/11303.html','true',[],'']
	],''],
	['PAGE','76012',jdecode('Wood+Cottage+Geese'),jdecode(''),'/76012/index.html','true',[ 
		['PAGE','76033',jdecode('Toulouse+Geese'),jdecode(''),'/76012/76033.html','true',[],''],
		['PAGE','76054',jdecode('Brecon+Buff+Geese'),jdecode(''),'/76012/76054.html','true',[],''],
		['PAGE','76075',jdecode('Buff+Backed+Geese'),jdecode(''),'/76012/76075.html','true',[],'']
	],''],
	['PAGE','76096',jdecode('Cleulow+Spaniels'),jdecode(''),'/76096/index.html','true',[ 
		['PAGE','78312',jdecode('Poppy'),jdecode(''),'/76096/78312.html','true',[],''],
		['PAGE','78333',jdecode('Meg'),jdecode(''),'/76096/78333.html','true',[],''],
		['PAGE','78354',jdecode('Kim'),jdecode(''),'/76096/78354.html','true',[],''],
		['PAGE','86012',jdecode('Rolo'),jdecode(''),'/76096/86012.html','true',[],''],
		['PAGE','96912',jdecode('Zak'),jdecode(''),'/76096/96912.html','true',[],''],
		['PAGE','76117',jdecode('Springer+Puppies'),jdecode(''),'/76096/76117.html','true',[],'']
	],''],
	['PAGE','26630',jdecode('Wood+Cottage+Pigs'),jdecode(''),'/26630.html','true',[],''],
	['PAGE','10622',jdecode('Stock+for+Sale'),jdecode(''),'/10622.html','true',[],''],
	['PAGE','10406',jdecode('Cleulow+Cross'),jdecode(''),'/10406.html','true',[],''],
	['PAGE','43203',jdecode('Wood+Cottage+Bird+List'),jdecode(''),'/43203.html','true',[],''],
	['PAGE','26202',jdecode('Views+of+Wood+Cottage+surroundings'),jdecode(''),'/26202.html','true',[],''],
	['PAGE','10649',jdecode('Links'),jdecode(''),'/10649.html','true',[],'']];
var siteelementCount=41;
theSitetree.topTemplateName='Profile';
theSitetree.paletteFamily='336699';
theSitetree.keyvisualId='1280';
theSitetree.keyvisualName='feder.jpg';
theSitetree.fontsetId='190';
theSitetree.graphicsetId='230';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Profile',
				paletteFamily: 	'336699',
				keyvisualId: 	'1280',
				keyvisualName: 	'feder.jpg',
				fontsetId: 		'190',
				graphicsetId: 	'230',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'336699',
				b_color: 		'336699',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4594',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '4594',
internalId:  '5820852',
customField: '1501'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '26202',
internalId:  '1072699514d',
customField: 'g.12lif4kuk.gi469qum6on6.6rn80'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4594',
internalId:  '',
customField: '20090209-225932'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '10352',
internalId:  '',
customField: '20090628-080550'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '10379',
internalId:  '',
customField: '20080405-220343'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '10460',
internalId:  '',
customField: '20070905-110519'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '10514',
internalId:  '',
customField: '20071110-124813'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '10541',
internalId:  '',
customField: '20091006-121606'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '10568',
internalId:  '',
customField: '20080702-114905'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '10595',
internalId:  '',
customField: '20091006-120624'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11330',
internalId:  '',
customField: '20080405-222900'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '24962',
internalId:  '',
customField: '20070806-164353'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '10433',
internalId:  '',
customField: '20091006-121118'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '24403',
internalId:  '',
customField: '20091011-184813'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '10622',
internalId:  '',
customField: '20071110-135521'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '10406',
internalId:  '',
customField: '20070814-223844'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '43203',
internalId:  '',
customField: '20091006-122346'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '26202',
internalId:  '',
customField: '20070806-164229'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '26603',
internalId:  '',
customField: '20081119-155510'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '33403',
internalId:  '',
customField: '20090105-150318'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '34603',
internalId:  '',
customField: '20090209-211248'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '35703',
internalId:  '',
customField: '20090403-223150'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '36603',
internalId:  '',
customField: '20090403-223102'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '39303',
internalId:  '',
customField: '20090627-104251'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '40003',
internalId:  '',
customField: '20090628-080406'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '44103',
internalId:  '',
customField: '20090628-075249'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '45803',
internalId:  '',
customField: '20090806-211158'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '46703',
internalId:  '',
customField: '20090913-213030'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '10487',
internalId:  '',
customField: '20050824-121634'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11303',
internalId:  '',
customField: '20090210-002902'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '26630',
internalId:  '',
customField: '20090209-213218'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '10649',
internalId:  '',
customField: '20051124-153348'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '76012',
internalId:  '',
customField: '20090210-091726'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '76033',
internalId:  '',
customField: '20090212-123045'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '76096',
internalId:  '',
customField: '20090209-203200'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '76054',
internalId:  '',
customField: '20090212-123109'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '78312',
internalId:  '',
customField: '20090210-100745'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '78333',
internalId:  '',
customField: '20090510-004123'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '78354',
internalId:  '',
customField: '20090210-100332'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '76117',
internalId:  '',
customField: '20090510-004438'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '76075',
internalId:  '',
customField: '20090212-123158'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '86012',
internalId:  '',
customField: '20090806-212135'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '96912',
internalId:  '',
customField: '20100110-225952'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010IN3DKL';
var companyName   = 'Wood+Cottage+Farm+';
var htmlTitle	  = 'Wood+Cottage+Farm%2C++Wincle%2C+Cheshire';
var metaKeywords  = 'Shetland+Sheep%2C+Brahma%2C+Brahmas%2C+Wincle%2C+Cleulow%2C+Wood+Cottage%2C';
var metaContents  = 'Shetland+Sheep%2C+Brahma%2C+Brahmas%2C++Wincle%2C+Cleulow%2C+Wood+Cottage+%2C+';
					                                                                    
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 */					                                                            
