/* [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','301',jdecode('P%C3%A1gina+inicial'),jdecode(''),'/301.html','true',[],''],
	['PAGE','4901',jdecode('Nuestros+Servicios'),jdecode(''),'/4901/index.html','true',[ 
		['PAGE','17401',jdecode('Fiscales'),jdecode(''),'/4901/17401.html','true',[],''],
		['PAGE','22301',jdecode('Jur%C3%ADdicos'),jdecode(''),'/4901/22301.html','true',[],''],
		['PAGE','22322',jdecode('Laborales'),jdecode(''),'/4901/22322.html','true',[],''],
		['PAGE','22343',jdecode('Contables'),jdecode(''),'/4901/22343.html','true',[],''],
		['PAGE','22364',jdecode('Auditor%C3%ADas'),jdecode(''),'/4901/22364.html','true',[],''],
		['PAGE','22385',jdecode('Subvenciones'),jdecode(''),'/4901/22385.html','true',[],''],
		['PAGE','22701',jdecode('Gesti%C3%B3n+Calidad'),jdecode(''),'/4901/22701.html','true',[],''],
		['PAGE','22722',jdecode('Extranjeros'),jdecode(''),'/4901/22722.html','true',[],'']
	],''],
	['PAGE','4922',jdecode('Nuestro+equipo'),jdecode(''),'/4922.html','true',[],''],
	['PAGE','4943',jdecode('D%C3%B3nde+encontrarnos'),jdecode(''),'/4943.html','true',[],''],
	['PAGE','23301',jdecode('C%C3%B3mo+encontrarnos'),jdecode(''),'/23301.html','true',[],''],
	['PAGE','23001',jdecode('Cont%C3%A1ctenos'),jdecode(''),'/23001/index.html','true',[ 
		['PAGE','23901',jdecode('Cont%C3%A1ctenos+%28follow+up+page%29'),jdecode(''),'/23001/23901.html','false',[],'']
	],''],
	['PAGE','39501',jdecode('Enlaces+de+inter%C3%A9s'),jdecode(''),'/39501.html','true',[],''],
	['PAGE','17422',jdecode('Aviso+legal'),jdecode(''),'/17422.html','true',[],'']];
var siteelementCount=17;
theSitetree.topTemplateName='Universal';
theSitetree.paletteFamily='1D186D';
theSitetree.keyvisualId='1661';
theSitetree.keyvisualName='firmendarstellung.jpg';
theSitetree.fontsetId='279';
theSitetree.graphicsetId='339';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Universal',
				paletteFamily: 	'1D186D',
				keyvisualId: 	'1661',
				keyvisualName: 	'firmendarstellung.jpg',
				fontsetId: 		'279',
				graphicsetId: 	'339',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'1D186D',
				b_color: 		'A0A0A0',
				c_color: 		'000000',
				d_color: 		'CDCDD4',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '301',
internalId:  '',
customField: '20090501-232348'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '23001',
internalId:  'aars20invl30120ce5c6d88',
customField: ''
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4901',
internalId:  '',
customField: '20090511-123756'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4922',
internalId:  '',
customField: '20090501-230708'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4943',
internalId:  '',
customField: '20090503-223834'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '23901',
internalId:  'aars20invl30120ce5c6d88',
customField: 'followUp'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '301',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17401',
internalId:  '',
customField: '20090501-232529'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '23001',
internalId:  '',
customField: '20090428-125859'
};
webappMappings['2002']={
webappId:    '2002',
documentId:  '23301',
internalId:  'routing',
customField: 'es_ES'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '23301',
internalId:  '',
customField: '20090501-233417'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17422',
internalId:  '',
customField: '20090430-211304'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '22343',
internalId:  '',
customField: '20090501-223838'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '22301',
internalId:  '',
customField: '20090501-222018'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '22322',
internalId:  '',
customField: '20090501-222158'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '22364',
internalId:  '',
customField: '20090501-224600'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '22385',
internalId:  '',
customField: '20090501-225226'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '22701',
internalId:  '',
customField: '20090501-225723'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '22722',
internalId:  '',
customField: '20090511-085414'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '39501',
internalId:  '',
customField: '20090501-235556'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '23901',
internalId:  '',
customField: '20090422-170545'
};
var canonHostname = 'wsc01a.arsys.es';
var accountId     = 'AARS20INVL30';
var companyName   = 'FREELAN+CONSULTORES';
var htmlTitle	  = 'www.freelan.net';
var metaKeywords  = '';
var metaContents  = '';
					                                                                    
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 */					                                                            
