/* [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','401',jdecode('Biograf%C3%ADa'),jdecode(''),'/401.html','true',[],''],
	['PAGE','14301',jdecode('Repertorio'),jdecode(''),'/14301.html','true',[],''],
	['PAGE','14322',jdecode('Proyectos'),jdecode(''),'/14322.html','true',[],''],
	['PAGE','42401',jdecode('Cr%C3%ADticas+-+Prensa'),jdecode(''),'/42401.html','true',[],''],
	['PAGE','4801',jdecode('Galer%C3%ADa+de+Fotos'),jdecode(''),'/4801.html','true',[],''],
	['PAGE','5285',jdecode('Contacto'),jdecode(''),'/5285.html','true',[],'']];
var siteelementCount=6;
theSitetree.topTemplateName='Ornaments';
theSitetree.paletteFamily='606ED4';
theSitetree.keyvisualId='3887';
theSitetree.keyvisualName='kv_3887.jpg';
theSitetree.fontsetId='10506';
theSitetree.graphicsetId='11073';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Ornaments',
				paletteFamily: 	'606ED4',
				keyvisualId: 	'3887',
				keyvisualName: 	'kv_3887.jpg',
				fontsetId: 		'10506',
				graphicsetId: 	'11073',
				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: 		'887248',
				e_color: 		'887248',
				f_color: 		'887248',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20090810-140702'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4801',
internalId:  '',
customField: '20090810-151128'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '14301',
internalId:  '',
customField: '20090810-142401'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '14322',
internalId:  '',
customField: '20100125-223553'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5285',
internalId:  '',
customField: '20080406-234231'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42401',
internalId:  '',
customField: '20080214-140906'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '5285',
internalId:  '1639943',
customField: 'es:ES:'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INL84P';
var companyName   = 'Alberto+Feria';
var htmlTitle	  = '';
var metaKeywords  = 'CANTANTE%2C+%C3%93PERA%2C+L%C3%8DRICA%2C+BAJO';
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 */					                                                            
