/* [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','11',jdecode('Home'),jdecode(''),'/11.html','true',[],''],
	['PAGE','516',jdecode('%C3%81tico+Idaira'),jdecode(''),'/516.html','true',[],''],
	['PAGE','1346',jdecode('Apartamento+Ithaysa'),jdecode(''),'/1346.html','true',[],''],
	['PAGE','63705',jdecode('Apartamento+Gara'),jdecode(''),'/63705.html','true',[],''],
	['PAGE','433',jdecode('Tarifas'),jdecode(''),'/433.html','true',[],''],
	['PAGE','1795',jdecode('Pagar+%2FPay+Pal'),jdecode(''),'/1795.html','true',[],''],
	['PAGE','398',jdecode('Tenerife'),jdecode(''),'/398.html','true',[],''],
	['PAGE','344',jdecode('Reservas'),jdecode(''),'/344/index.html','true',[ 
		['PAGE','390',jdecode('Cont%C3%A1ctenos+%28follow+up+page%29'),jdecode(''),'/344/390.html','false',[],'']
	],''],
	['PAGE','442',jdecode('Links+interesantes'),jdecode(''),'/442.html','true',[],''],
	['PAGE','1192',jdecode('Libro+de+visitas'),jdecode(''),'/1192/index.html','true',[ 
		['PAGE','1191',jdecode('Leer+el+libro+de+Visitas'),jdecode(''),'/1192/1191.html','true',[],'']
	],'']];
var siteelementCount=12;
theSitetree.topTemplateName='Holiday';
theSitetree.paletteFamily='557ECA';
theSitetree.keyvisualId='6094';
theSitetree.keyvisualName='kv_6094.jpg';
theSitetree.fontsetId='11130';
theSitetree.graphicsetId='11925';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='7DA3E8';
var theTemplate={
				name: 			'Holiday',
				paletteFamily: 	'557ECA',
				keyvisualId: 	'6094',
				keyvisualName: 	'kv_6094.jpg',
				fontsetId: 		'11130',
				graphicsetId: 	'11925',
				contentColor: 	'FFFFFF',
				contentBGColor: '7DA3E8',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1007']={
webappId:    '1007',
documentId:  '516',
internalId:  '10424db1abe',
customField: 'g.10gia63u4.1hrh6389v9.1s'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '344',
internalId:  'aak010inxs6d10424ba7f3e',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '390',
internalId:  'aak010inxs6d10424ba7f3e',
customField: 'followUp'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '11',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '11',
internalId:  '1099',
customField: '1501'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '63705',
internalId:  '',
customField: '20080502-134209'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '1192',
internalId:  '1192aak010inxs6d',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '1191',
internalId:  '1192aak010inxs6d',
customField: 'action=list'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '1346',
internalId:  '105f46d7acd',
customField: 'g.10nq1tmi9.7qedl5q8t.1s'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11',
internalId:  '',
customField: '20080117-195935'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '516',
internalId:  '',
customField: '20080502-123050'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1346',
internalId:  '',
customField: '20080502-125310'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '433',
internalId:  '',
customField: '20080502-134829'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1795',
internalId:  '',
customField: '20060212-002241'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '63705',
internalId:  '119a960a198',
customField: 'g.136kgjqaf.915qfqqhs8.1s'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '398',
internalId:  '',
customField: '20061016-162413'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '344',
internalId:  '',
customField: '20080502-134525'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '390',
internalId:  '',
customField: '20050528-211459'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '442',
internalId:  '',
customField: '20070826-191644'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1192',
internalId:  '',
customField: '20050707-001736'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1191',
internalId:  '',
customField: '20050707-001736'
};
var canonHostname = 'localhost';
var accountId     = 'AAK010INXS6D';
var companyName   = 'Ven+a+Tenerife%2C+ven+al+Puerto+de+la+Cruz';
var htmlTitle	  = 'Apartamentos+Tenerife';
var metaKeywords  = 'vacaciones%2C+Tenerife%2C+apartamentos%2C+Idaira%2C+Ithaysa%2C+Puerto+de+la+Cruz%2C+disfruta%2C+vacaciones%2C+alquiler+temporada%2C+alquiler+apartamentos%2C+apartamentos+en+alquiler%2C+vacaciones+en+Tenerife%2Cven+al+Puerto+de+la+Cruz%2C+alojamientos+vacaciones';
var metaContents  = 'Alojamientos+para+vacaciones%2C+vaciones+Tenerife%2C+alojamientos+distintos%2C+atico+y+apartamento%2C+vacaciones+Puerto+de+la+Cruz%2C+disfrute+del+Puerto+de+la+Cruz%2C+conozca+puerto+de+la+Cruz%2C+Atico+Idaira%2C+Apartamentos+Ithaysa%2C+alquiler+apartamentos+temporada%2C+alquileres+temporales';
					                                                                    
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 */					                                                            
