/* [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('Financiaci%C3%B3n'),jdecode(''),'/401.html','true',[],''],
	['PAGE','8412',jdecode('Pisos'),jdecode(''),'/8412.html','true',[],''],
	['PAGE','452',jdecode('Cont%C3%A1ctenos'),jdecode(''),'/452/index.html','true',[ 
		['PAGE','6912',jdecode('Cont%C3%A1ctenos+%28follow+up+page%29'),jdecode(''),'/452/6912.html','false',[],'']
	],'']];
var siteelementCount=4;
theSitetree.topTemplateName='Art';
theSitetree.paletteFamily='660000';
theSitetree.keyvisualId='1782';
theSitetree.keyvisualName='duene.jpg';
theSitetree.fontsetId='283';
theSitetree.graphicsetId='352';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='660000';
var theTemplate={
				name: 			'Art',
				paletteFamily: 	'660000',
				keyvisualId: 	'1782',
				keyvisualName: 	'duene.jpg',
				fontsetId: 		'283',
				graphicsetId: 	'352',
				contentColor: 	'FFFFFF',
				contentBGColor: '660000',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'660000',
				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:  '401',
internalId:  '',
customField: '20090817-173902'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20090402-163404'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '452',
internalId:  'aars20invb0q120672d10c8',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '6912',
internalId:  'aars20invb0q120672d10c8',
customField: 'followUp'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6912',
internalId:  '',
customField: '20090402-161308'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '8412',
internalId:  '',
customField: '20090904-100956'
};
var canonHostname = 'wsc01a.arsys.es';
var accountId     = 'AARS20INVB0Q';
var companyName   = 'Financiera+Crediespa%C3%B1a+Puntocom';
var htmlTitle	  = 'Crediespa%C3%B1a+%2C+financiera+A+Coru%C3%B1a+%2C+Hipotecas+%2C+creditos+%2C+prestamos';
var metaKeywords  = 'prestamos+coru%C3%B1a+%2C+hipotecas+coru%C3%B1a+%2C+creditos+coru%C3%B1a+%2C+agencias+inmobiliarias+coru%C3%B1a+%2C+pisos+venta+coru%C3%B1a+%2Cpisos+baratos+coru%C3%B1a+%2C+refinanciaciones+coru%C3%B1a%2C+financieras+coru%C3%B1a+%2C+asesores+financieros+%2C+financieras+%2C+creditos+%2C+hipotecas+%2C+rai+%2Casnef%2C+reunificaciones+%2C+uci+%2C+caixa+galicia+%2C+caixanova+%2C+bancos+coru%C3%B1a+%2Cinmobiliarias+coru%C3%B1a%2Cpisos+alquiler+coru%C3%B1a%2C+pisos+alquiler+%2C+alquiler+coru%C3%B1a';
var metaContents  = '%3A+Hipotecas+en+Coru%C3%B1a+%2C+Hipotecas+Coru%C3%B1a+%2C+Cr%C3%A9ditos+Hipotecarios+%2C+Prestamos+Hipotecarios+%2C+Cr%C3%A9ditos+%2C+Prestamos+%2C+Refinanciaciones+%2C+Reunificaciones+%2C+Coru%C3%B1a+%2C+Arteixo+%2C+Oleiros+%2C+Sada+%2C+Ferrol+%2C+Santiago+%2C+Carballo+%2C+Betanzos+Todo+tipo+de+hipotecas+%28100%25%2C+120%25%2C+40+%C3%B3+50+a%C3%B1os%2C+autoconstrucci%C3%B3n...%29%2C+pr%C3%A9stamos+personales%2C+agrupaci%C3%B3n+o+refinanciaci%C3%B3n+de+pr%C3%A9stamos+%2F+deudas%2C+peque%C3%B1os+pr%C3%A9stamos%2C+pr%C3%A9stamos+r%C3%A1pidos%2C+pr%C3%A9stamos+para+cambio+de+coche%2C+soluciones+para+pr%C3%A9stamos+dif%C3%ADciles+%28RAI+%2F+ASNEF%29...+todo+ello+adem%C3%A1s+con+asesoramiento+independiente%2C+sin+la+necesidad+de+domiciliar+recibos%2C+ni+firmar+costosos+seguros%2C+ni+contratar+tarjetas+de+cr%C3%A9dito';
					                                                                    
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 */					                                                            
