/* [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','4764',jdecode('Transfers'),jdecode(''),'/4764.html','true',[],''],
	['PAGE','4599',jdecode('Our+Company'),jdecode(''),'/4599.html','true',[],''],
	['PAGE','15030',jdecode('English'),jdecode(''),'/15030.html','true',[],''],
	['PAGE','38925',jdecode('SPORT+TOURS'),jdecode(''),'/38925/index.html','true',[ 
		['PAGE','15457',jdecode('GOLF'),jdecode(''),'/38925/15457.html','true',[],''],
		['PAGE','15484',jdecode('Football'),jdecode(''),'/38925/15484.html','true',[],''],
		['PAGE','15511',jdecode('Athletics'),jdecode(''),'/38925/15511.html','true',[],''],
		['PAGE','38525',jdecode('Rugby'),jdecode(''),'/38925/38525.html','true',[],''],
		['PAGE','38546',jdecode('Tennis'),jdecode(''),'/38925/38546.html','true',[],''],
		['PAGE','38946',jdecode('Swimming'),jdecode(''),'/38925/38946.html','true',[],''],
		['PAGE','38967',jdecode('Fitness'),jdecode(''),'/38925/38967.html','true',[],'']
	],''],
	['PAGE','38988',jdecode('Health+and+Fit+'),jdecode(''),'/38988.html','true',[],''],
	['PAGE','15403',jdecode('DMC'),jdecode(''),'/15403.html','true',[],''],
	['PAGE','15430',jdecode('FIT'),jdecode(''),'/15430.html','true',[],''],
	['PAGE','12303',jdecode('Excursions'),jdecode(''),'/12303.html','true',[],''],
	['PAGE','12903',jdecode('Algarve'),jdecode(''),'/12903.html','true',[],''],
	['PAGE','12930',jdecode('Lisbon'),jdecode(''),'/12930.html','true',[],''],
	['PAGE','12957',jdecode('Spain'),jdecode(''),'/12957.html','true',[],''],
	['PAGE','12984',jdecode('Evening'),jdecode(''),'/12984.html','true',[],''],
	['PAGE','13011',jdecode('Amusement+Parks'),jdecode(''),'/13011.html','true',[],''],
	['PAGE','4791',jdecode('Contact'),jdecode(''),'/4791.html','true',[],''],
	['PAGE','26525',jdecode('LINKS'),jdecode(''),'/26525.html','true',[],''],
	['PAGE','35325',jdecode('Location+Map'),jdecode(''),'/35325.html','true',[],'']];
var siteelementCount=23;
theSitetree.topTemplateName='Enjoy';
theSitetree.paletteFamily='FF9F21';
theSitetree.keyvisualId='2251';
theSitetree.keyvisualName='reise1.jpg';
theSitetree.fontsetId='364';
theSitetree.graphicsetId='418';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='FF9F21';
var theTemplate={
				name: 			'Enjoy',
				paletteFamily: 	'FF9F21',
				keyvisualId: 	'2251',
				keyvisualName: 	'reise1.jpg',
				fontsetId: 		'364',
				graphicsetId: 	'418',
				contentColor: 	'FFFFFF',
				contentBGColor: 'FF9F21',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'FF9F21',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				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:  '4764',
internalId:  '1006',
customField: '1006'
};
webappMappings['2001']={
webappId:    '2001',
documentId:  '35325',
internalId:  'location',
customField: 'language:pt;country:PT;isIncluded:false;'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '35325',
internalId:  '',
customField: '20100327-015922'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '4764',
internalId:  '12775871',
customField: 'pt:PT:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '38925',
internalId:  '',
customField: '20110411-133013'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4599',
internalId:  '',
customField: '20100326-001423'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '15030',
internalId:  '',
customField: '20100326-001516'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '15403',
internalId:  '',
customField: '20070222-200556'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '15430',
internalId:  '',
customField: '20070222-200637'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '15457',
internalId:  '',
customField: '20100326-001602'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '15484',
internalId:  '',
customField: '20061122-140051'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '15511',
internalId:  '',
customField: '20100326-002006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12303',
internalId:  '',
customField: '20070222-201624'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12903',
internalId:  '',
customField: '20061002-225040'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12930',
internalId:  '',
customField: '20061002-225405'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12957',
internalId:  '',
customField: '20061002-225754'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12984',
internalId:  '',
customField: '20061002-230133'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '13011',
internalId:  '',
customField: '20070222-203024'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4764',
internalId:  '',
customField: '20110411-132626'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '38525',
internalId:  '',
customField: '20110411-132520'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '38546',
internalId:  '',
customField: '20110411-133622'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '38946',
internalId:  '',
customField: '20110411-133013'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '38967',
internalId:  '',
customField: '20110411-133013'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '38988',
internalId:  '',
customField: '20110411-133013'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4791',
internalId:  '',
customField: '20090918-232828'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '26525',
internalId:  '',
customField: '20081104-161022'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010IN3Q1Z';
var companyName   = 'Portugal+Sport+Travel';
var htmlTitle	  = 'Taxi+Transfers+Faro+Airport+Algarve+Portugal+Sport+Travel';
var metaKeywords  = 'ryanair%2C+monarch%2C+easyjet%2C+tap%2C+iberia%2C+british+airways%2C+iceland+air%2C+lufthansa%2C+al+sakia%2C+albufeira%2C+vilamoura%2C+montegordo%2C+athletics%2C+football%2C+rugby%2C+ayamonte%2C+agencia%2Cviagens%2Cturismo%2Cexcursoes%2Cdesporto%2Cfutebol%2Ctenis%2Cgolf%2Ccongressos%2Cincentivos%2Cgrupos%2Cincoming%2Coutgoing%2Chotel%2Crent-a-car%2Cfitness%2Calgarve%2Cportugal%2Cespanha%2Cestudante%2Cgrupo%2Caluguer%2Capartamento%2Cvila%2Cvivenda%2Cbungallow%2Catletismo%2Candebol%2Ccarro%2Ccomplexo%2Ctreino%2C+TRANSFERES%2C+TRANSFERS%2C+TAXI%2C+MINIBUS%2C+MINI-BUS%2C+BUS%2C+algarve%2C+algarve+transfers';
var metaContents  = 'Airport+taxi+transfer+service.+We+also+provide+the+most+effective+sport+destinations+in+Portugal.+';
					                                                                    
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 */					                                                            

