/* [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','1411',jdecode('Inicio'),jdecode(''),'/1411.html','true',[],''],
	['PAGE','1437',jdecode('Informaci%C3%B3n+personal'),jdecode(''),'/1437.html','true',[],''],
	['PAGE','1458',jdecode('Galer%C3%ADa'),jdecode(''),'/1458.html','true',[],''],
	['PAGE','1479',jdecode('Mi+blog'),jdecode(''),'/1479.html','true',[],''],
	['PAGE','1490',jdecode('Libro+de+invitados'),jdecode(''),'/1490.html','true',[],''],
	['PAGE','1511',jdecode('Contacto'),jdecode(''),'/1511.html','true',[],'']];
var siteelementCount=6;
theSitetree.topTemplateName='Plant';
theSitetree.paletteFamily='777777';
theSitetree.keyvisualId='9452';
theSitetree.keyvisualName='kv_9452.jpg';
theSitetree.fontsetId='17400';
theSitetree.graphicsetId='12820';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='DEDBDB';
var theTemplate={
				name: 			'Plant',
				paletteFamily: 	'777777',
				keyvisualId: 	'9452',
				keyvisualName: 	'kv_9452.jpg',
				fontsetId: 		'17400',
				graphicsetId: 	'12820',
				contentColor: 	'000000',
				contentBGColor: 'DEDBDB',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'B3B1B1',
				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:  '1458',
internalId:  '698c9147d4ba2066dad558b138d9913d',
customField: 'language:es;country:ES;'
};
webappMappings['7050']={
webappId:    '7050',
documentId:  '1479',
internalId:  '4139',
customField: 'language:es;country:ES;'
};
webappMappings['7002']={
webappId:    '7002',
documentId:  '1490',
internalId:  '4455',
customField: 'language:es;country:ES;'
};
webappMappings['7008']={
webappId:    '7008',
documentId:  '1511',
internalId:  '4488',
customField: 'language:es;country:ES;'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1411',
internalId:  '',
customField: '20090717-111108'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1437',
internalId:  '',
customField: '20090717-111239'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1458',
internalId:  '',
customField: '20090715-205932'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1479',
internalId:  '',
customField: '20090715-205933'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1490',
internalId:  '',
customField: '20090717-111628'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1511',
internalId:  '',
customField: '20090715-230025'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '1411',
internalId:  '1006',
customField: '1006'
};
var canonHostname = 'wsc01a.arsys.es';
var accountId     = 'AARS20INLAR3';
var companyName   = 'Afalagu+Cer%C3%A1mica';
var htmlTitle	  = 'Afalagu+Cer%C3%A1mica+-+In%C3%A9s+Rodr%C3%ADguez+Caso';
var metaKeywords  = 'Cer%C3%A1mica%2C+cer%C3%A1mica+contempor%C3%A1nea%2C+ceramica%2C+escultura%2C+ceramistas%2C+Asturias%2C+Barro';
var metaContents  = 'Piezas+de+la+ceramista+In%C3%A9s+Rodr%C3%ADguez+Caso.';
					                                                                    
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 */					                                                            

