/* [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','1511',jdecode('Inicio'),jdecode(''),'/1511.html','true',[],''],
	['PAGE','1542',jdecode('Biograf%C3%ADa'),jdecode(''),'/1542.html','true',[],''],
	['PAGE','1608',jdecode('Fotos'),jdecode(''),'/1608.html','true',[],''],
	['PAGE','1634',jdecode('Mi+blog'),jdecode(''),'/1634.html','true',[],''],
	['PAGE','1645',jdecode('Libro+de+invitados'),jdecode(''),'/1645.html','true',[],''],
	['PAGE','1666',jdecode('Contacto'),jdecode(''),'/1666.html','true',[],'']];
var siteelementCount=6;
theSitetree.topTemplateName='Celebration2';
theSitetree.paletteFamily='00C412';
theSitetree.keyvisualId='10013';
theSitetree.keyvisualName='kv_10013.jpg';
theSitetree.fontsetId='17745';
theSitetree.graphicsetId='13116';
theSitetree.contentColor='765EF6';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Celebration2',
				paletteFamily: 	'00C412',
				keyvisualId: 	'10013',
				keyvisualName: 	'kv_10013.jpg',
				fontsetId: 		'17745',
				graphicsetId: 	'13116',
				contentColor: 	'765EF6',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['7060']={
webappId:    '7060',
documentId:  '1608',
internalId:  '1de2fe6b4b8ffd8f521cbe02acf5a2ef',
customField: 'language:es;country:ES;'
};
webappMappings['7050']={
webappId:    '7050',
documentId:  '1634',
internalId:  '4565',
customField: 'language:es;country:ES;'
};
webappMappings['7002']={
webappId:    '7002',
documentId:  '1645',
internalId:  '4935',
customField: 'language:es;country:ES;'
};
webappMappings['7008']={
webappId:    '7008',
documentId:  '1666',
internalId:  '4976',
customField: 'language:es;country:ES;'
};
var canonHostname = 'wsc01a.arsys.es';
var accountId     = 'AARS20INLRGE';
var companyName   = 'La+zona+de+blog+de+GRUPO+ECOLOXISTA+ADENCO';
var htmlTitle	  = 'La+zona+de+blog+de+GRUPO+ECOLOXISTA+ADENCO';
var metaKeywords  = '';
var metaContents  = '';
					                                                                    
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 */					                                                            
