/* [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','401',jdecode('Home'),jdecode(''),'/401.html','true',[],''],
	['PAGE','452',jdecode('Inicio'),jdecode(''),'/452.html','true',[],''],
	['PAGE','4201',jdecode('Alquiler+verano'),jdecode(''),'/4201/index.html','true',[ 
		['PAGE','4222',jdecode('Apartamentos'),jdecode(''),'/4201/4222.html','true',[],''],
		['PAGE','4243',jdecode('Chalets'),jdecode(''),'/4201/4243.html','true',[],''],
		['PAGE','10901',jdecode('Duplex'),jdecode(''),'/4201/10901.html','true',[],'']
	],''],
	['PAGE','473',jdecode('Alquiler+todo+el+a%C3%B1o'),jdecode(''),'/473/index.html','true',[ 
		['PAGE','494',jdecode('Apartamentos'),jdecode(''),'/473/494.html','true',[],''],
		['PAGE','21401',jdecode('nuevo'),jdecode(''),'/473/21401.html','true',[],''],
		['PAGE','515',jdecode('Chalets'),jdecode(''),'/473/515.html','true',[],''],
		['PAGE','536',jdecode('Locales'),jdecode(''),'/473/536.html','true',[],'']
	],''],
	['PAGE','578',jdecode('En+Venta'),jdecode(''),'/578/index.html','true',[ 
		['PAGE','599',jdecode('Apartamento'),jdecode(''),'/578/599.html','true',[],''],
		['PAGE','20922',jdecode('nuevo'),jdecode(''),'/578/20922.html','true',[],''],
		['PAGE','10922',jdecode('Puntos+de+amarre'),jdecode(''),'/578/10922.html','true',[],''],
		['PAGE','620',jdecode('Chalets'),jdecode(''),'/578/620.html','true',[],''],
		['PAGE','10943',jdecode('Garages'),jdecode(''),'/578/10943.html','true',[],''],
		['PAGE','641',jdecode('Locales'),jdecode(''),'/578/641.html','true',[],''],
		['PAGE','4264',jdecode('Terrenos'),jdecode(''),'/578/4264.html','true',[],''],
		['PAGE','10964',jdecode('Casas'),jdecode(''),'/578/10964.html','true',[],'']
	],''],
	['PAGE','662',jdecode('Servicios'),jdecode(''),'/662/index.html','true',[ 
		['PAGE','21901',jdecode('Presupuestos+reformas'),jdecode(''),'/662/21901.html','true',[],'']
	],''],
	['PAGE','746',jdecode('Ofertas+especiales'),jdecode(''),'/746.html','true',[],''],
	['PAGE','809',jdecode('Cont%C3%A1ctenos'),jdecode(''),'/809.html','true',[],''],
	['PAGE','830',jdecode('%C2%BFQuienes+somos%3F'),jdecode(''),'/830.html','true',[],''],
	['PAGE','893',jdecode('Aviso+legal'),jdecode(''),'/893.html','true',[],''],
	['PAGE','3506',jdecode('Libro+de+visitas'),jdecode(''),'/3506/index.html','true',[ 
		['PAGE','3501',jdecode('Leer+el+libro+de+Visitas'),jdecode(''),'/3506/3501.html','true',[],'']
	],''],
	['PAGE','3601',jdecode('C%C3%B3mo+encontrarnos'),jdecode(''),'/3601.html','true',[],''],
	['PAGE','16301',jdecode('Mapa+de+acceso'),jdecode(''),'/16301.html','true',[],''],
	['PAGE','19501',jdecode('Blog'),jdecode(''),'/19501.html','true',[],''],
	['PAGE','21964',jdecode('Compras'),jdecode(''),'/21964/index.html','true',[ 
		['PAGE','21985',jdecode('Apartamentos'),jdecode(''),'/21964/21985.html','true',[],''],
		['PAGE','22006',jdecode('Bienes+inmuebles'),jdecode(''),'/21964/22006.html','true',[],''],
		['PAGE','22027',jdecode('Terrenos'),jdecode(''),'/21964/22027.html','true',[],'']
	],''],
	['PAGE','22069',jdecode('Alquileres'),jdecode(''),'/22069/index.html','true',[ 
		['PAGE','22090',jdecode('Bienes+inmuebles'),jdecode(''),'/22069/22090.html','true',[],''],
		['PAGE','22111',jdecode('Apartamentos'),jdecode(''),'/22069/22111.html','true',[],''],
		['PAGE','22132',jdecode('Residencias+de+vacaciones'),jdecode(''),'/22069/22132.html','true',[],'']
	],'']];
var siteelementCount=39;
theSitetree.topTemplateName='Airplane';
theSitetree.paletteFamily='C5E8FE';
theSitetree.keyvisualId='10199';
theSitetree.keyvisualName='airplane_modern.swf';
theSitetree.fontsetId='21114';
theSitetree.graphicsetId='13209';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='D7F0FA';
var theTemplate={
				name: 			'Airplane',
				paletteFamily: 	'C5E8FE',
				keyvisualId: 	'10199',
				keyvisualName: 	'airplane_modern.swf',
				fontsetId: 		'21114',
				graphicsetId: 	'13209',
				contentColor: 	'000000',
				contentBGColor: 'D7F0FA',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20100118-175005'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '3506',
internalId:  '3506aars20inltnf',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '3501',
internalId:  '3506aars20inltnf',
customField: 'action=list'
};
webappMappings['2002']={
webappId:    '2002',
documentId:  '3601',
internalId:  'routing',
customField: 'es_ES'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20100118-175137'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20091215-114214'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20091215-115847'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '578',
internalId:  '',
customField: '20091109-122321'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '641',
internalId:  '',
customField: '20091109-122321'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4201',
internalId:  '',
customField: '20100116-133318'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4222',
internalId:  '',
customField: '20091124-105815'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4243',
internalId:  '',
customField: '20091110-103136'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '809',
internalId:  '',
customField: '20091109-122321'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '3601',
internalId:  '',
customField: '20091110-093942'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '10901',
internalId:  '',
customField: '20091124-105726'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '515',
internalId:  '',
customField: '20091109-122321'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '536',
internalId:  '',
customField: '20091109-122321'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '599',
internalId:  '',
customField: '20091109-122321'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '10922',
internalId:  '',
customField: '20091124-105726'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '620',
internalId:  '',
customField: '20091109-122321'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '10943',
internalId:  '',
customField: '20091124-105726'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4264',
internalId:  '',
customField: '20091110-103136'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '10964',
internalId:  '',
customField: '20091124-105726'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '662',
internalId:  '',
customField: '20100118-175323'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '746',
internalId:  '',
customField: '20091109-122321'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '830',
internalId:  '',
customField: '20091109-122321'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '893',
internalId:  '',
customField: '20091109-122321'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '3506',
internalId:  '',
customField: '20091110-093311'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '3501',
internalId:  '',
customField: '20091110-093311'
};
webappMappings['2001']={
webappId:    '2001',
documentId:  '16301',
internalId:  'location',
customField: 'language:es;country:ES;isIncluded:false;'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '19501',
internalId:  '',
customField: '20091214-172013'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '16301',
internalId:  '',
customField: '20100118-180320'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '20922',
internalId:  '',
customField: '20091214-181416'
};
webappMappings['3030']={
webappId:    '3030',
documentId:  '19501',
internalId:  '19501',
customField: 'language:es;country:ES;'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '21401',
internalId:  '',
customField: '20091214-184645'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '21901',
internalId:  '',
customField: '20091215-112844'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '21964',
internalId:  '',
customField: '20091215-112844'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '21985',
internalId:  '',
customField: '20091215-112844'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '22006',
internalId:  '',
customField: '20091215-112844'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '22027',
internalId:  '',
customField: '20091215-112844'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '22069',
internalId:  '',
customField: '20091215-112844'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '22090',
internalId:  '',
customField: '20091215-112844'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '22111',
internalId:  '',
customField: '20091215-112844'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '22132',
internalId:  '',
customField: '20091215-112844'
};
var canonHostname = 'wsc01a.arsys.es';
var accountId     = 'AARS20INLTNF';
var companyName   = 'ALQUILAPLAYA';
var htmlTitle	  = 'alquilaplaya.com';
var metaKeywords  = '';
var metaContents  = 'inmobiliaria%2C+mazarr%C3%B3n%2C+venta%2C+alquiler%2C+playa';
					                                                                    
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 */					                                                            
