/* [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('Portada'),jdecode(''),'/401.html','true',[],''],
	['PAGE','52601',jdecode('Noticias'),jdecode(''),'/52601.html','true',[],''],
	['PAGE','89001',jdecode('Ofertas+Wifi'),jdecode(''),'/89001.html','true',[],''],
	['PAGE','25822',jdecode('Ofertas+ADSL+%2F+PLC'),jdecode(''),'/25822.html','true',[],''],
	['PAGE','81701',jdecode('Estudiantes+UCA'),jdecode(''),'/81701.html','true',[],''],
	['PAGE','25843',jdecode('Tarifas+y+Precios'),jdecode(''),'/25843.html','true',[],''],
	['PAGE','25864',jdecode('Internacionales'),jdecode(''),'/25864.html','true',[],''],
	['PAGE','25885',jdecode('Terminales'),jdecode(''),'/25885.html','true',[],''],
	['PAGE','49201',jdecode('M%C3%B3dems'),jdecode(''),'/49201.html','true',[],''],
	['PAGE','25906',jdecode('FAQs'),jdecode(''),'/25906.html','true',[],''],
	['PAGE','25927',jdecode('Configuraciones'),jdecode(''),'/25927/index.html','true',[ 
		['PAGE','53501',jdecode('Conexi%C3%B3n'),jdecode(''),'/25927/53501.html','true',[],''],
		['PAGE','53543',jdecode('Correo'),jdecode(''),'/25927/53543.html','true',[],''],
		['PAGE','53522',jdecode('M%C3%B3dem'),jdecode(''),'/25927/53522.html','true',[],''],
		['PAGE','53585',jdecode('Tel%C3%A9fono'),jdecode(''),'/25927/53585.html','true',[],''],
		['PAGE','53606',jdecode('Soluciones'),jdecode(''),'/25927/53606.html','true',[],'']
	],''],
	['PAGE','25969',jdecode('Enlaces'),jdecode(''),'/25969.html','true',[],''],
	['PAGE','35801',jdecode('Contacto'),jdecode(''),'/35801.html','true',[],''],
	['PAGE','536',jdecode('Oficina+Online'),jdecode(''),'/536/index.html','true',[ 
		['PAGE','18301',jdecode('Solicitudes'),jdecode(''),'/536/18301.html','true',[],''],
		['PAGE','18322',jdecode('Informaci%C3%B3n'),jdecode(''),'/536/18322.html','true',[],''],
		['PAGE','48701',jdecode('Aviso+Legal'),jdecode(''),'/536/48701.html','true',[],'']
	],'']];
var siteelementCount=22;
theSitetree.topTemplateName='Ragtime';
theSitetree.paletteFamily='DBAE83';
theSitetree.keyvisualId='3574';
theSitetree.keyvisualName='kv_3574.jpg';
theSitetree.fontsetId='10737';
theSitetree.graphicsetId='10849';
theSitetree.contentColor='6F6349';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Ragtime',
				paletteFamily: 	'DBAE83',
				keyvisualId: 	'3574',
				keyvisualName: 	'kv_3574.jpg',
				fontsetId: 		'10737',
				graphicsetId: 	'10849',
				contentColor: 	'6F6349',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'DBAE83',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'707271',
				e_color: 		'A98562',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1008']={
webappId:    '1008',
documentId:  '35801',
internalId:  '107232',
customField: 'es:ES:'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '18301',
internalId:  '173274',
customField: 'es:ES:'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '18322',
internalId:  '173143',
customField: 'es:ES:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20100714-120749'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25822',
internalId:  '',
customField: '20100714-130315'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '52601',
internalId:  '',
customField: '20070427-113815'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25843',
internalId:  '',
customField: '20100708-100844'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25864',
internalId:  '',
customField: '20070419-135054'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25885',
internalId:  '',
customField: '20071221-110748'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '49201',
internalId:  '',
customField: '20070419-135156'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25906',
internalId:  '',
customField: '20070419-135221'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25927',
internalId:  '',
customField: '20070423-141458'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '53501',
internalId:  '',
customField: '20070419-131721'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '53543',
internalId:  '',
customField: '20080429-120010'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '53522',
internalId:  '',
customField: '20070119-111726'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '53585',
internalId:  '',
customField: '20070119-111910'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '53606',
internalId:  '',
customField: '20070119-112204'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25969',
internalId:  '',
customField: '20070419-135311'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '35801',
internalId:  '',
customField: '20070419-135335'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '536',
internalId:  '',
customField: '20070419-135417'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18301',
internalId:  '',
customField: '20070215-112254'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18322',
internalId:  '',
customField: '20070215-112427'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '48701',
internalId:  '',
customField: '20070215-112550'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '89001',
internalId:  '',
customField: '20100602-103120'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '81701',
internalId:  '',
customField: '20090727-102237'
};
var canonHostname = 'localhost';
var accountId     = 'AAK020INXPRM';
var companyName   = 'Comunicaciones.+Telefon%C3%ADa+e+Internet';
var htmlTitle	  = 'EPRESA%2C+Comunicaciones.+Telefonia+e+Internet';
var metaKeywords  = 'Telefonia+e+internet.';
var metaContents  = 'Telefonia+e+internet.';
					                                                                    
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 */					                                                            
