/* [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','12',jdecode('Inicio'),jdecode(''),'/12.html','true',[],''],
	['PAGE','33',jdecode('Presentaci%C3%B3n'),jdecode(''),'/33.html','true',[],''],
	['PAGE','42',jdecode('%C2%BFQuienes+somos%3F'),jdecode(''),'/42.html','true',[],''],
	['PAGE','51',jdecode('Clientes'),jdecode(''),'/51.html','true',[],''],
	['PAGE','13601',jdecode('Conceptos'),jdecode(''),'/13601.html','true',[],''],
	['PAGE','34122',jdecode('Servicios'),jdecode(''),'/34122.html','true',[],''],
	['PAGE','60',jdecode('links'),jdecode(''),'/60.html','true',[],''],
	['PAGE','78',jdecode('Cont%C3%A1ctenos'),jdecode(''),'/78.html','true',[],''],
	['PAGE','16701',jdecode('fotos'),jdecode(''),'/16701.html','true',[],''],
	['PAGE','50923',jdecode('Mapa+de+acceso'),jdecode(''),'/50923.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Aroundtheworld';
theSitetree.paletteFamily='7FACDC';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10793';
theSitetree.graphicsetId='11215';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='7FACDC';
var theTemplate={
				name: 			'Aroundtheworld',
				paletteFamily: 	'7FACDC',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10793',
				graphicsetId: 	'11215',
				contentColor: 	'FFFFFF',
				contentBGColor: '7FACDC',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '12',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12',
internalId:  '',
customField: '20120103-125721'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '33',
internalId:  '',
customField: '20120103-125651'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42',
internalId:  '',
customField: '20120103-132114'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '51',
internalId:  '',
customField: '20120103-132311'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '60',
internalId:  '',
customField: '20120103-132920'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '78',
internalId:  '',
customField: '20111223-193435'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '13601',
internalId:  '',
customField: '20120103-132450'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '12',
internalId:  '911144',
customField: '1501'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '34122',
internalId:  '',
customField: '20111229-235445'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '16701',
internalId:  '1163553d249',
customField: 'g.12oqdjbo8.scgcvbelq1.1s'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '16701',
internalId:  '',
customField: '20111223-193908'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '50923',
internalId:  '',
customField: '20120103-133050'
};
webappMappings['2001']={
webappId:    '2001',
documentId:  '50923',
internalId:  'location',
customField: 'language:es;country:ES;isIncluded:false;'
};
var canonHostname = 'localhost';
var accountId     = 'AAK010INXESL';
var companyName   = 'ESPLU+ELECTR%C3%93NICA%2C+S.L.';
var htmlTitle	  = 'www.esplu.com';
var metaKeywords  = 'ANTENAS%2C+VIDEOPORTEROS%2C+HOSTELERIA%2C+TDT%2C+servicio+a+domicilio';
var metaContents  = 'telecomunicaciones%2C+antenas%2C+videoportero%2C+televes%2C+tdt%2C+utp%2C+cat+6%2C+ikusi%2C+servicio+a+domicilio%2C+';
					                                                                    
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 */					                                                            

