/* [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('About+us'),jdecode(''),'/4607.html','true',[],''],
	['PAGE','23701',jdecode('Tropical+Fish+1'),jdecode(''),'/23701.html','true',[],''],
	['PAGE','28401',jdecode('Tropical+Fish+2'),jdecode(''),'/28401.html','true',[],''],
	['PAGE','23728',jdecode('Pond+plants%2FWaterlilies'),jdecode(''),'/23728.html','true',[],''],
	['PAGE','25601',jdecode('News%2FOffers'),jdecode(''),'/25601.html','true',[],''],
	['PAGE','23755',jdecode('Coffee+shop'),jdecode(''),'/23755.html','true',[],''],
	['PAGE','6279',jdecode('Contact%2Fhow+to+find+us'),jdecode(''),'/6279.html','true',[],'']];
var siteelementCount=7;
theSitetree.topTemplateName='Comedy';
theSitetree.paletteFamily='4871C0';
theSitetree.keyvisualId='2805';
theSitetree.keyvisualName='blanko.jpg';
theSitetree.fontsetId='10601';
theSitetree.graphicsetId='10722';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='698BCB';
var theTemplate={
				name: 			'Comedy',
				paletteFamily: 	'4871C0',
				keyvisualId: 	'2805',
				keyvisualName: 	'blanko.jpg',
				fontsetId: 		'10601',
				graphicsetId: 	'10722',
				contentColor: 	'FFFFFF',
				contentBGColor: '698BCB',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'36599C',
				e_color: 		'36599C',
				f_color: 		'36599C',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4607',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '23701',
internalId:  '',
customField: '20090113-155930'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4607',
internalId:  '',
customField: '20090320-132657'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25601',
internalId:  '',
customField: '20091207-104258'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6279',
internalId:  '',
customField: '20091207-103621'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '23728',
internalId:  '',
customField: '20090501-105817'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '28401',
internalId:  '',
customField: '20081106-190014'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '23755',
internalId:  '',
customField: '20080219-152000'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INERE7';
var companyName   = 'Sweet+Knowle+Aquatics';
var htmlTitle	  = 'Sweet+Knowle+Aquatics';
var metaKeywords  = 'Warwickshire%2C+tropical+fish%2C+pond+plants%2C+waterlilies%2C+aquariums%2C+Discus%2C+Cichlids%2C+Sting+ray%2C+Goldfish%2C+Koi%2C+Aqua+One%2C+Fluval%2C+clearseal%2C+L+Numbers%2C+Rainbowfish%2C+Sweet%2C+Knowle%2C+Aquatics%2C+Practical+Fishkeeping%2C+Coffee+shop%2C+aquariums%2C+tanks%2C+marginals%2C+shop%2C+tetra%2C+wild+bird+food%2C+liners%2C+preformed+ponds%2C+Stratford+upon+Avon%2C+Fish%2C+';
var metaContents  = 'Sweet+Knowle+Aquatics+specialists+in+tropical+fish+%28over+250+sale+tanks%29+and+water+plants+%28Waterlilies%2C+Marginals++Oxygenators%29+based+in+the+beautiful+Warwickshire+countryside+just+outside+Stratford+upon+Avon.meta+name%3Dverify-v1+content%3DODrREJySwYj4F%2FJX6s%2B8V6k%2Bn5mQ7NOwC77ubBCFcms%3D+%2F';
					                                                                    
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 */					                                                            
