/* [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','4599',jdecode('Inicio'),jdecode(''),'/4599/index.html','true',[ 
		['PAGE','4626',jdecode('Home'),jdecode(''),'/4599/4626.html','true',[],'']
	],''],
	['PAGE','6203',jdecode('%C2%BFQuienes+somos%3F'),jdecode(''),'/6203/index.html','true',[ 
		['PAGE','6230',jdecode('Nuestro+equipo'),jdecode(''),'/6203/6230.html','true',[],'']
	],''],
	['PAGE','60746',jdecode('Enlaces+'),jdecode(''),'/60746.html','true',[],''],
	['PAGE','6257',jdecode('Productos'),jdecode(''),'/6257/index.html','true',[ 
		['PAGE','35846',jdecode('Redes+de+Seguridad'),jdecode(''),'/6257/35846.html','true',[],''],
		['PAGE','6284',jdecode('Innovaci%C3%B3n+en+Sistemas'),jdecode(''),'/6257/6284.html','true',[],''],
		['PAGE','16728',jdecode('Redes+de+Protecci%C3%B3n'),jdecode(''),'/6257/16728.html','true',[],''],
		['PAGE','6338',jdecode('Mallas+Mosquiteras'),jdecode(''),'/6257/6338.html','true',[],''],
		['PAGE','16701',jdecode('Arneses+y+Cinturones'),jdecode(''),'/6257/16701.html','true',[],''],
		['PAGE','57446',jdecode('MultiGarBen+'),jdecode(''),'/6257/57446.html','true',[],''],
		['PAGE','27701',jdecode('Soluciones+MultiGarBen'),jdecode(''),'/6257/27701.html','true',[],''],
		['PAGE','20507',jdecode('L%C3%ADneas+de+Vida+Textiles'),jdecode(''),'/6257/20507.html','true',[],''],
		['PAGE','88046',jdecode('L%C3%ADneas+de+Vida+de+Acero'),jdecode(''),'/6257/88046.html','true',[],''],
		['PAGE','20534',jdecode('Cuerdas+Auxiliares'),jdecode(''),'/6257/20534.html','true',[],''],
		['PAGE','20561',jdecode('Cordeler%C3%ADa'),jdecode(''),'/6257/20561.html','true',[],'']
	],''],
	['PAGE','6419',jdecode('Cont%C3%A1ctenos'),jdecode(''),'/6419.html','true',[],''],
	['PAGE','7102',jdecode('Galer%C3%ADa+de+Im%C3%A1genes'),jdecode(''),'/7102.html','true',[],'']];
var siteelementCount=19;
theSitetree.topTemplateName='Stars';
theSitetree.paletteFamily='3C5284';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10510';
theSitetree.graphicsetId='10913';
theSitetree.contentColor='DDDDDD';
theSitetree.contentBGColor='3C5284';
var theTemplate={
				name: 			'Stars',
				paletteFamily: 	'3C5284',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10510',
				graphicsetId: 	'10913',
				contentColor: 	'DDDDDD',
				contentBGColor: '3C5284',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'3C5284',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4626',
internalId:  '1006',
customField: '1006'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '7102',
internalId:  '10af6328582',
customField: 'g.12lfnd1lk.6nbbqmlh7ial4.6rn80'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4599',
internalId:  '',
customField: '20090422-110609'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6257',
internalId:  '',
customField: '20090422-110439'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '20507',
internalId:  '',
customField: '20081010-174408'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '60746',
internalId:  '',
customField: '20081027-102737'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6203',
internalId:  '',
customField: '20080930-155117'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6230',
internalId:  '',
customField: '20081027-101704'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4626',
internalId:  '',
customField: '20090107-121808'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '35846',
internalId:  '',
customField: '20070212-120458'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6284',
internalId:  '',
customField: '20080214-153252'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '16728',
internalId:  '',
customField: '20081006-203238'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6338',
internalId:  '',
customField: '20080228-195642'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '16701',
internalId:  '',
customField: '20090422-110719'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '27701',
internalId:  '',
customField: '20071116-150006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '20534',
internalId:  '',
customField: '20070207-123138'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '20561',
internalId:  '',
customField: '20070207-123113'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6419',
internalId:  '',
customField: '20081027-094240'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7102',
internalId:  '',
customField: '20070202-174009'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '57446',
internalId:  '',
customField: '20080925-181243'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '88046',
internalId:  '',
customField: '20081010-173453'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INEW1N';
var companyName   = 'SISTEMAS+DE+PROTECCI%C3%93N+GARBEN%2C+s.l.+++++++++++++++';
var htmlTitle	  = 'SISTEMAS+DE+PROTECCI%C3%93N+GARBEN';
var metaKeywords  = 'BENAYAS';
var metaContents  = 'FABRICANTE+DE+REDES+Y+CUERDAS+DE+SEGURIDAD%2CREDES+DE+PROTECCION%2C+DISPOSITIVOS+DE+ANCLAJE+MULTIGARBEN%2C+LINEAS+DE+VIDA%2C+CORDELERIA%2C+MALLAS+MOSQUITERAS%2CARNESES%2C+CONECTORES%2C+CUERDAS+DE+AMARRE+-+ESPECIALISTA+EN+PROTECCI%EF%BF%BDN+INDIVIDUAL+Y+COLECTIVA+CONTRA+CAIDAS+EN+ALTURA.++';
					                                                                    
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 */					                                                            
