/* [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','801',jdecode('INICIO'),jdecode(''),'/801.html','true',[],''],
	['PAGE','852',jdecode('AC%C3%9ASTICA'),jdecode(''),'/852.html','true',[],''],
	['PAGE','873',jdecode('TELECO'),jdecode(''),'/873.html','true',[],''],
	['PAGE','894',jdecode('BOLSA+DE+TRABAJO'),jdecode(''),'/894.html','true',[],''],
	['PAGE','915',jdecode('CONT%C3%81CTENOS'),jdecode(''),'/915/index.html','true',[ 
		['PAGE','6101',jdecode('Cont%C3%A1ctenos+%28follow+up+page%29'),jdecode(''),'/915/6101.html','false',[],'']
	],'']];
var siteelementCount=6;
theSitetree.topTemplateName='Moonflight';
theSitetree.paletteFamily='5B7A93';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='445';
theSitetree.graphicsetId='499';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Moonflight',
				paletteFamily: 	'5B7A93',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'445',
				graphicsetId: 	'499',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'2C5574',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '801',
internalId:  '',
customField: '20091104-162140'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '852',
internalId:  '',
customField: '20091104-162948'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '873',
internalId:  '',
customField: '20091104-164337'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '915',
internalId:  '',
customField: '20090317-151341'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '915',
internalId:  'aars20invv4e11fe7513afc',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '6101',
internalId:  'aars20invv4e11fe7513afc',
customField: 'followUp'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '894',
internalId:  '',
customField: '20090317-151506'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '801',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6101',
internalId:  '',
customField: '20090308-192114'
};
var canonHostname = 'wsc01a.arsys.es';
var accountId     = 'AARS20INVV4E';
var companyName   = 'V+C+T+E+C+-+Verificaciones+y+Certificaciones+T%C3%A9cnicas%2C+S.L.';
var htmlTitle	  = 'Ac%C3%BAstica+Arquitect%C3%B3nica+y+Medioambiental';
var metaKeywords  = 'vctec+acustica+ac%C3%BAstica+insonorizaci%C3%B3n+insonorizacion+aislamiento+informe+certificado+certificados+contaminaci%C3%B3n+inmisi%C3%B3n+inmisiones+ruido+a%C3%A9reo+in+situ+ensayos+sonido+ingenier%C3%ADa+impactos+telecomunicaciones+teleco+mediciones+medici%C3%B3n+ict+ingeniero+ingenieros+proyecto+proyectos+telecomunicaci%C3%B3n';
var metaContents  = 'Empresa+dedicada+a+la+ingenier%C3%ADa+ac%C3%BAstica+e+instalaciones+de+aislamiento+ac%C3%BAstico.+Realizamos+ensayos+in+situ+normalizados+de+aislamiento+ac%C3%BAstico+y+de+niveles+recibidos%2C+emitiendo+el+correspondiente+informe+y%2Fo+certificado+visado+de+los+resultados+obtenidos.+';
					                                                                    
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 */					                                                            

