/* [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','501',jdecode('%C2%BFQuienes+somos%3F'),jdecode(''),'/501.html','true',[],''],
	['PAGE','552',jdecode('%C2%BFQu%C3%A9+hacemos%3F'),jdecode(''),'/552.html','true',[],''],
	['PAGE','12801',jdecode('Proyectos'),jdecode(''),'/12801.html','true',[],''],
	['PAGE','44201',jdecode('C%C3%A1lculo+de+Estructuras'),jdecode(''),'/44201.html','true',[],''],
	['PAGE','573',jdecode('Direcciones+de+Obra'),jdecode(''),'/573.html','true',[],''],
	['PAGE','10901',jdecode('Informes+%26+Licencias'),jdecode(''),'/10901.html','true',[],''],
	['PAGE','10943',jdecode('Ingenieria+Industrial'),jdecode(''),'/10943.html','true',[],''],
	['PAGE','10922',jdecode('Construcciones+y+Reformas'),jdecode(''),'/10922.html','true',[],''],
	['PAGE','44222',jdecode('ITES'),jdecode(''),'/44222.html','true',[],''],
	['PAGE','11701',jdecode('Presupuesto+sin+compromiso+'),jdecode(''),'/11701/index.html','true',[ 
		['PAGE','14101',jdecode('Presupuesto+sin+compromiso++%28follow+up+page%29'),jdecode(''),'/11701/14101.html','false',[],'']
	],''],
	['PAGE','28401',jdecode('Enlaces+de+Inter%C3%A9s'),jdecode(''),'/28401/index.html','true',[ 
		['PAGE','28422',jdecode('Colegios+Profesionales'),jdecode(''),'/28401/28422.html','true',[],''],
		['PAGE','28443',jdecode('Organismos+P%C3%BAblicos'),jdecode(''),'/28401/28443.html','true',[],''],
		['PAGE','28464',jdecode('Empresas+Colaboradoras'),jdecode(''),'/28401/28464.html','true',[],''],
		['PAGE','28485',jdecode('Normativa'),jdecode(''),'/28401/28485.html','true',[],'']
	],''],
	['PAGE','33501',jdecode('C%C3%B3mo+encontrarnos'),jdecode(''),'/33501.html','true',[],''],
	['PAGE','35301',jdecode('Curiosidades'),jdecode(''),'/35301.html','true',[],''],
	['PAGE','47001',jdecode('Curriculum'),jdecode(''),'/47001/index.html','true',[ 
		['PAGE','47022',jdecode('Proyectos+Realizados'),jdecode(''),'/47001/47022.html','true',[],''],
		['PAGE','48112',jdecode('C%C3%A1lculo+de+Estructuras'),jdecode(''),'/47001/48112.html','true',[],''],
		['PAGE','47064',jdecode('Direcciones+de+Obra'),jdecode(''),'/47001/47064.html','true',[],''],
		['PAGE','47043',jdecode('Informes'),jdecode(''),'/47001/47043.html','true',[],''],
		['PAGE','50623',jdecode('Licencias'),jdecode(''),'/47001/50623.html','true',[],''],
		['PAGE','50644',jdecode('Ingenieria+Industrial'),jdecode(''),'/47001/50644.html','true',[],''],
		['PAGE','50665',jdecode('Construcciones+y+Reformas'),jdecode(''),'/47001/50665.html','true',[],'']
	],''],
	['PAGE','36301',jdecode('Foros'),jdecode(''),'/36301.html','true',[],''],
	['PAGE','33401',jdecode('Blog'),jdecode(''),'/33401.html','true',[],'']];
var siteelementCount=28;
theSitetree.topTemplateName='Steps';
theSitetree.paletteFamily='315881';
theSitetree.keyvisualId='2257';
theSitetree.keyvisualName='architekt.jpg';
theSitetree.fontsetId='369';
theSitetree.graphicsetId='419';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='315881';
var theTemplate={
				name: 			'Steps',
				paletteFamily: 	'315881',
				keyvisualId: 	'2257',
				keyvisualName: 	'architekt.jpg',
				fontsetId: 		'369',
				graphicsetId: 	'419',
				contentColor: 	'FFFFFF',
				contentBGColor: '315881',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'315881',
				b_color: 		'2985B5',
				c_color: 		'3366CC',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20090317-193805'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '552',
internalId:  '',
customField: '20090317-193724'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '573',
internalId:  '',
customField: '20090317-201956'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '10901',
internalId:  '',
customField: '20090317-212550'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '10943',
internalId:  '',
customField: '20090317-213321'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11701',
internalId:  '',
customField: '20081201-143121'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '501',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '10922',
internalId:  '',
customField: '20090317-193324'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12801',
internalId:  '',
customField: '20090317-201647'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '11701',
internalId:  'aars20in3lxr11ab6942ac5',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '14101',
internalId:  'aars20in3lxr11ab6942ac5',
customField: 'followUp'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '14101',
internalId:  '',
customField: '20080623-195901'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '44222',
internalId:  '',
customField: '20090317-193226'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '44201',
internalId:  '',
customField: '20090317-215152'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '28401',
internalId:  '',
customField: '20090317-213052'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '28422',
internalId:  '',
customField: '20090313-101019'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '28443',
internalId:  '',
customField: '20090313-100645'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '28464',
internalId:  '',
customField: '20090313-102643'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '28485',
internalId:  '',
customField: '20090312-165542'
};
webappMappings['3030']={
webappId:    '3030',
documentId:  '33401',
internalId:  '33401',
customField: 'language:es;country:ES;'
};
webappMappings['2002']={
webappId:    '2002',
documentId:  '33501',
internalId:  'routing',
customField: 'es_ES'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '47043',
internalId:  '',
customField: '20090317-212949'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '47001',
internalId:  '',
customField: '20090317-210310'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '501',
internalId:  '7896608',
customField: '1501'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '33501',
internalId:  '',
customField: '20090317-213025'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '33401',
internalId:  '',
customField: '20090317-212701'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '36301',
internalId:  '',
customField: '20090317-212740'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '47022',
internalId:  '',
customField: '20090317-212819'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '35301',
internalId:  '',
customField: '20090317-205825'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '47064',
internalId:  '',
customField: '20090317-201421'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '48112',
internalId:  '',
customField: '20090317-212900'
};
var canonHostname = 'wsc01a.arsys.es';
var accountId     = 'AARS20IN3LXR';
var companyName   = 'Arquitectura+e+Ingenier%C3%ADa';
var htmlTitle	  = 'Servicios+de+Arquitectura+e+Ingenieria';
var metaKeywords  = 'arquitecto+tecnico%3Baparejador%3BDireccion+de+Obras%3BProyectos+obra+nueva%3Brehabilitaci%C3%B3n%3Bnaves+industriales%3BLicencias%3BInformes%3BMediciones%3BEstudios+de+Seguridad.';
var metaContents  = 'Estudio+de+Arquitectos+T%C3%A9cnicos.+Direcci%C3%B3n+de+Obras%2C+Proyectos+obra+nueva%2C+rehabilitaci%C3%B3n+y+naves+industriales%2C+Licencias%2C+Informes%2C+Mediciones%2C+Estudios+de+Seguridad.';
					                                                                    
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 */					                                                            
