/* [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','4554',jdecode('Presentaci%C3%B3n'),jdecode(''),'/4554.html','true',[],''],
	['PAGE','4611',jdecode('El+asesoramiento%2C+servicios'),jdecode(''),'/4611.html','true',[],''],
	['PAGE','4638',jdecode('Contacto+y+Links'),jdecode(''),'/4638/index.html','true',[ 
		['PAGE','10002',jdecode('Contacto+%28follow+up+page%29'),jdecode(''),'/4638/10002.html','false',[],'']
	],'']];
var siteelementCount=4;
theSitetree.topTemplateName='Konzept';
theSitetree.paletteFamily='6C05A7';
theSitetree.keyvisualId='571';
theSitetree.keyvisualName='bildung.jpg';
theSitetree.fontsetId='123';
theSitetree.graphicsetId='139';
theSitetree.contentColor='000066';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Konzept',
				paletteFamily: 	'6C05A7',
				keyvisualId: 	'571',
				keyvisualName: 	'bildung.jpg',
				fontsetId: 		'123',
				graphicsetId: 	'139',
				contentColor: 	'000066',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'6C05A7',
				b_color: 		'C8D0ED',
				c_color: 		'000000',
				d_color: 		'15094B',
				e_color: 		'C5B39F',
				f_color: 		'900B4D',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4554',
internalId:  '1006',
customField: '1006'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '4638',
internalId:  'aas010in257r10a4586c6fe',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '10002',
internalId:  'aas010in257r10a4586c6fe',
customField: 'followUp'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4554',
internalId:  '',
customField: '20090616-091631'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4638',
internalId:  '',
customField: '20090603-145330'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4611',
internalId:  '',
customField: '20090603-145410'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '10002',
internalId:  '',
customField: '20060329-122241'
};
var canonHostname = 'wsc01a.arsys.es';
var accountId     = 'Aas010IN257R';
var companyName   = 'GC+gesti%C3%B3n+privada';
var htmlTitle	  = 'Gonzalo+Cantarela.+GC+gestion+privada.+Asesor+Financiero.+Asesoramiento+Financiero+Independiente.+Bolsa%2C+Fondos%2C+Renta+Fija%2C+Inversiones+alternativas...';
var metaKeywords  = 'Asesor+financiero+%2C+Asesoramiento+financiero+%2C+Asesoramiento+en+Bolsa+%2C+Bolsa+%2C+Fondos+de+Inversion+%2C+Gesti%EF%BF%BDn+de+Patrimonios+%2C+Banca+Privada+%2C+Gestor+Personal+%2C+Gestion+de+carteras+%2C+Inversion+en+Bolsa+%2C+Analisis+de+Bolsa+%2C+Cursos+de+Bolsa+%2C+Analisis+Fundamental+%2C+Analisis+Tecnico+%2C+Gestion+de+carteras+%2C+Fondos+de+Inversion+%2C+rumores+bolsa+%2C+opas%2C+opv+%2C+intereconomia%2C+estrategias+de+inversion+%2C+derivados+%2C+futuros+%2C+finanzas+Bolsa+%2C+invertir+bolsa';
var metaContents  = 'Asesoramiento+financiero+en+inversiones+%28bolsa%2C+fondos+de+inversi%EF%BF%BDn%2C+derivados...%29.+Analisis+de+Bolsa.+Cursos+de+Bolsa.+Invertir.';
					                                                                    
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 */					                                                            
