/* [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','4556',jdecode('Inicio'),jdecode(''),'/4556.html','true',[],''],
	['PAGE','4613',jdecode('%C2%BFQuienes+somos%3F'),jdecode(''),'/4613.html','true',[],''],
	['PAGE','4694',jdecode('Cont%C3%A1ctenos'),jdecode(''),'/4694.html','true',[],''],
	['PAGE','10502',jdecode('OBRA+CIVIL'),jdecode(''),'/10502.html','true',[],''],
	['PAGE','10529',jdecode('OBRA+ELECTROMECANICA'),jdecode(''),'/10529.html','true',[],''],
	['PAGE','11702',jdecode('GALERIA'),jdecode(''),'/11702.html','true',[],''],
	['PAGE','13875',jdecode('Libro+de+visitas'),jdecode(''),'/13875/index.html','true',[ 
		['PAGE','13874',jdecode('Leer+el+libro+de+Visitas'),jdecode(''),'/13875/13874.html','true',[],'']
	],'']];
var siteelementCount=8;
theSitetree.topTemplateName='Zoe';
theSitetree.paletteFamily='243356';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='411';
theSitetree.graphicsetId='456';
theSitetree.contentColor='1B2B52';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Zoe',
				paletteFamily: 	'243356',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'411',
				graphicsetId: 	'456',
				contentColor: 	'1B2B52',
				contentBGColor: 'FFFFFF',
				a_color: 		'FFFFFF',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'1B2B52',
				e_color: 		'676F74',
				f_color: 		'FE7F01',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4556',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '4556',
internalId:  '181356',
customField: '1501'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '11702',
internalId:  '10d499d000b',
customField: 'g.11l4pq00b.49s0ur0g7vius.h5a40'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '13875',
internalId:  '13875avec10inx3xn',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '13874',
internalId:  '13875avec10inx3xn',
customField: 'action=list'
};
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INX3XN';
var companyName   = 'Ingenier%C3%ADa%2C+Montaje+y+Estructuras+SA+de+CV';
var htmlTitle	  = 'INGENIERIA+MONTAJE+Y+ESTRUCTURAS+--ZONA+CENTRAL--';
var metaKeywords  = 'Proyectos+digitalizaci%C3%B3n+de+planos+gesti%C3%B3n+tramites+construcci%C3%B3n+especialistas+maquetas+virtuales+animaciones+por+computadora+Dise%C3%B1o+procesos+c%C3%A1lculo+estructuras+tuber%C3%ADas+equipo+maquila+planos+supervisi%C3%B3n+control+proyectos+planes+mantenimiento+preventivo+correctivo+Instalaci%C3%B3n+equipos+tuber%C3%ADas+procesos+servicios+fabricaci%C3%B3n+tanques+acero+carb%C3%B3n+inoxidable+electricidad+baja+media+alta+tensi%C3%B3n+refrigeraci%C3%B3n+calderas+alumbrado+cableado+pararrayos++sistemas+de+tierras+comunicaci%C3%B3n+e+instrumentaci%C3%B3n+Ejecuci%C3%B3n+proyectos+construcci%C3%B3n+reconstrucci%C3%B3n+residencias+locales+comerciales+naves+industriales++oficinas+pavimentaci%C3%B3n+de+calles+urbanizaci%C3%B3n+concreto+hidr%C3%A1ulico+instalaciones+el%C3%A9ctricas+gas+e+hidrosanitarias+pintura+impermeabilizaciones+dise%C3%B1o+jardines.';
var metaContents  = 'DISE%C3%91O+ARQUITECTONICO%2C+INGENIERIA%2C+MACANICA+INDUSTRIAL%2C+REMODELACIONES+Y+OBRA+CIVIL';
					                                                                    
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 */					                                                            
