/* [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('Informaci%C3%B3n+Corporativa'),jdecode(''),'/501.html','true',[],''],
	['PAGE','552',jdecode('Grupo+Empresarial'),jdecode(''),'/552.html','true',[],''],
	['PAGE','615',jdecode('Agr%C3%ADcola'),jdecode(''),'/615.html','true',[],''],
	['PAGE','657',jdecode('Comercio+'),jdecode(''),'/657.html','true',[],''],
	['PAGE','678',jdecode('Medio+Ambiente'),jdecode(''),'/678.html','true',[],''],
	['PAGE','573',jdecode('Futuro'),jdecode(''),'/573.html','true',[],''],
	['PAGE','699',jdecode('Cont%C3%A1ctenos'),jdecode(''),'/699.html','true',[],'']];
var siteelementCount=7;
theSitetree.topTemplateName='Measure';
theSitetree.paletteFamily='D6C18A';
theSitetree.keyvisualId='3879';
theSitetree.keyvisualName='kv_3879.jpg';
theSitetree.fontsetId='10705';
theSitetree.graphicsetId='11067';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Measure',
				paletteFamily: 	'D6C18A',
				keyvisualId: 	'3879',
				keyvisualName: 	'kv_3879.jpg',
				fontsetId: 		'10705',
				graphicsetId: 	'11067',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'A08A4F',
				e_color: 		'A08A4F',
				f_color: 		'A08A4F',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20090324-124345'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '552',
internalId:  '',
customField: '20081216-041905'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '573',
internalId:  '',
customField: '20090324-123438'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '615',
internalId:  '',
customField: '20090323-182818'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '657',
internalId:  '',
customField: '20090323-182946'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '678',
internalId:  '',
customField: '20080818-055218'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '699',
internalId:  '',
customField: '20081216-041743'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '501',
internalId:  '1006',
customField: '1006'
};
var canonHostname = 'wsc01a.arsys.es';
var accountId     = 'AARS20IN3FLX';
var companyName   = 'GLOBAL+INVERSIONES';
var htmlTitle	  = 'www.globulo.com';
var metaKeywords  = 'productor+nueces+nueces+chilenas+nueces+sin+cascara+sorolla+chile+sorolla+nueces+NUECES++++++++++++++++++NUEZ+++++++++++++++++++++++++++eXPORTACION+nueces+venta+nueces++++SOROLLA++++++++++++++++++++EXPORTADOR+++++++++CHILENUT+FRUTOS+SECOS+NUEZ+MARIPOSA+CON+CASCARA+SIN+CASCARA+NUECES+PELADAS+GLOBAL+INVERSIONES+NUECES+CHOAPA+NUECES+CHILE+GLOBAL+CHILE+AGRICOLA+SOROLLA+SOROLLA.CL+CHILENUT.NET+NUEZ+SEMILLA+SERR+CHANDELER+chilenut+NUTS++++++++++++++++++++EXPORTATION+EXPORTING++NUT+LIGHT+NUT+EXTRALIGHT+DRY+FRUITS+NUTS+PEELED+NUTS+CHOAPA+NUTS+CHILE++';
var metaContents  = 'Producci%C3%B3n+y+exportaci%C3%B3n+de+nuez+chilena%2C+con+o+sin+cascara.+Nueces+de+Chile%2C+m%C3%A1xima+calidad.+Sorolla+Nuts+-+Global+Inversiones+Ltda.';
					                                                                    
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 */					                                                            

