/* [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','4884',jdecode('Inicio'),jdecode(''),'/4884.html','true',[],''],
	['PAGE','7101',jdecode('%C2%BFQuienes+somos%3F'),jdecode(''),'/7101.html','true',[],''],
	['PAGE','12801',jdecode('Nuestro+modo+de+trabajo'),jdecode(''),'/12801.html','true',[],''],
	['PAGE','13501',jdecode('Horarios'),jdecode(''),'/13501.html','true',[],''],
	['PAGE','7185',jdecode('Cont%C3%A1ctenos'),jdecode(''),'/7185.html','true',[],''],
	['PAGE','15006',jdecode('Libro+de+visitas'),jdecode(''),'/15006/index.html','true',[ 
		['PAGE','15001',jdecode('Leer+el+libro+de+Visitas'),jdecode(''),'/15006/15001.html','true',[],'']
	],'']];
var siteelementCount=7;
theSitetree.topTemplateName='Global';
theSitetree.paletteFamily='006600';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='86';
theSitetree.graphicsetId='104';
theSitetree.contentColor='666666';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Global',
				paletteFamily: 	'006600',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'86',
				graphicsetId: 	'104',
				contentColor: 	'666666',
				contentBGColor: 'FFFFFF',
				a_color: 		'176B03',
				b_color: 		'669900',
				c_color: 		'000000',
				d_color: 		'E0EEE3',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1501']={
webappId:    '1501',
documentId:  '4884',
internalId:  '10994857',
customField: '1501'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '15001',
internalId:  '15006avec10inp43q',
customField: 'action=list'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '15006',
internalId:  '15006avec10inp43q',
customField: 'action=form&icq=false'
};
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INP43Q';
var companyName   = 'Brise%C3%B1o+Servicios+de+Publicidad';
var htmlTitle	  = 'Brise%C3%B1o+Servicios+de+Publicidad';
var metaKeywords  = 'anuncio%2C+peri%C3%B3dico%2C+esquela%2C+empleos%2C+convocatorias%2C+felicitaciones%2C+balances%2C+edictos%2C+esquelas%2C+gacetillas%2C+El+Universal%2C+Universal%2C+Reforma%2C+Esto%2C+Excelsior%2C+Milenio%2C+anuncios+provincia%2C+publireportajes%2C+clasificados%2C+desplegados%2C+avisos%2C+avisos+de+ocasi%C3%B3n%2C+avisos+econ%C3%B3micos%2C+publicidad%2C+aviso+oportuno%2C+anuncios+en+peri%C3%B3dicos%2C+Jornada%2C+La+Jornada';
var metaContents  = 'Anuncios+en+cualquier+peri%C3%B3dico+de+cualquier+tipo';
					                                                                    
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 */					                                                            
