/* [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','501',jdecode('Presentacion'),jdecode(''),'/501.html','true',[],''],
	['PAGE','552',jdecode('Cont%C3%A1ctenos'),jdecode(''),'/552.html','true',[],'']];
var siteelementCount=2;
theSitetree.topTemplateName='Moonflight';
theSitetree.paletteFamily='5B7A93';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='447';
theSitetree.graphicsetId='499';
theSitetree.contentColor='2C5574';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Moonflight',
				paletteFamily: 	'5B7A93',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'447',
				graphicsetId: 	'499',
				contentColor: 	'2C5574',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'2C5574',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20100511-183735'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '552',
internalId:  '',
customField: '20100511-184352'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '552',
internalId:  '5463670',
customField: 'es:ES:'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INZ4HQ';
var companyName   = 'HUELVA+PROTECCION+DE+DATOS';
var htmlTitle	  = 'MAConsultores+Huelva%2C+Consultoria+especializada+en+Proteccion+de+Datos+y+Formacion';
var metaKeywords  = 'proteccion+de+datos%2C+protecci%C3%B3n+de+datos%2Cadecuacion%2C+adecuaci%C3%B3n%2C+auditoria%2C+auditor%C3%ADa%2C+formacion%2C+formaci%C3%B3n%2C+proteccion+%2C+protecci%C3%B3n+%2Cdatos+%2C+LOPD+%2C+Ley+%2C+Leyes%2C+Seguridad+%2C+Tecnolog%C3%ADa+%2C+Inform%C3%A1tica+%2C+Cursos+%2Cclases+%2C+Abogados%2C+Asesor%C3%ADas%2C+consultor%C3%ADas+%2C+consultoras+%2C+consultorias+%2C+Agencia%2C+Agencias%2C+Espa%C3%B1a+%2C+Malaga%2C+M%C3%A1laga%2C++Comunidad+de+Andaluc%C3%ADa%2C+boletines%2C+Grupo%2C+corporacion%2C+datos%2C+denuncias%2C+legal+%2C+asesoramiento+empresarial%2C+redes+de+consultores%2C+Ley+Org%C3%A1nica%2C+Ley+Obligatoria%2C+agpd%2C+fundaci%C3%B3n+tripartita+%2C+subvenciones%2C+MA+Consultores%2C+confianza%2C+LSSI%2C+TIC%2C+Tic%2C+subvenciones%2C+gratis%2C+nuevas+tecnologias%2C+comunicacion%2C+empresarial%2C+formacion%2C+gratis%2C+huelvaprotecciondedatos%2C+huelva%2C+Huelva%2C+Lepe%2C+ofertas%2C+empleo%2C+trabajo%2C+negocio%2C+distribucion%2C+bonificada++';
var metaContents  = 'Consultora+formada+por+un+equipo+de+expertos+en+la+materia+lopd+%28abogados+y+t%C3%A9cnicos+en+seguridad%29+especializados+en+dar+un+servicio+Integral+de+protecci%C3%B3n+de+datos+de+car%C3%A1cter+personal+e+industrial+a+empresas+y+entidades%2C+as%C3%AD+como+servicios+relacionados+con+las+nuevas+tecnolog%C3%ADas.+Nuestro+objetivo+es+la+adecuaci%C3%B3n+a+medida+y+personalizada+de+la+LOPD+a+su+empresa.+Una+obligaci%C3%B3n+para+la+empresa...+un+derecho+como+ciudadano';
					                                                                    
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 */					                                                            
