/* [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('%C3%81nima'),jdecode(''),'/401.html','true',[],''],
	['PAGE','452',jdecode('Cursos'),jdecode(''),'/452.html','true',[],''],
	['PAGE','473',jdecode('Profesores'),jdecode(''),'/473.html','true',[],''],
	['PAGE','494',jdecode('Noticias%2C+prensa'),jdecode(''),'/494.html','true',[],''],
	['PAGE','515',jdecode('Arte+Dram%C3%A1tico'),jdecode(''),'/515.html','true',[],''],
	['PAGE','536',jdecode('Escuela+de+Gui%C3%B3n'),jdecode(''),'/536.html','true',[],''],
	['PAGE','557',jdecode('+Ubicaci%C3%B3n%2C+Contacto'),jdecode(''),'/557.html','true',[],'']];
var siteelementCount=7;
theSitetree.topTemplateName='Disco';
theSitetree.paletteFamily='3D5465';
theSitetree.keyvisualId='1866';
theSitetree.keyvisualName='party01.jpg';
theSitetree.fontsetId='308';
theSitetree.graphicsetId='364';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='3D5465';
var theTemplate={
				name: 			'Disco',
				paletteFamily: 	'3D5465',
				keyvisualId: 	'1866',
				keyvisualName: 	'party01.jpg',
				fontsetId: 		'308',
				graphicsetId: 	'364',
				contentColor: 	'FFFFFF',
				contentBGColor: '3D5465',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'3D5465',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20100708-135414'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20100714-000639'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20100824-004349'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20100806-032529'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '515',
internalId:  '',
customField: '20100429-232552'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '557',
internalId:  '',
customField: '20100416-194555'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '536',
internalId:  '',
customField: '20090714-022205'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '557',
internalId:  '5065243',
customField: 'es:ES:'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '452',
internalId:  '5065377',
customField: 'es:ES:'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INZWBH';
var companyName   = '%C3%81NIMA%2C+Escuela+de+Teatro+y+Cine';
var htmlTitle	  = 'Anima+Eskola%2C+Escuela+de+Teatro+y+Cine';
var metaKeywords  = 'Escuela+de+Teatro+y+cine.+Arte+dramatico%2C+arte+dram%C3%A1tico%2C+guionistas%2C+gui%C3%B3n%2C+guion%2C+escritura+dramatica%2C+magia%2C+audiovisuales%2C+promocion+personal%2C+m%C3%A9tdo+stanislavsky%2C+metodo+estanilasqui%2C+sistema+de+Stanislavsky%2C+Mikhail+Chejov%2C+biomecanica%2C+Vajtangov%2C+voz+escenica%2C+movimiento+esc%C3%A9nico%2C+casting%2C+historia+de+teatro%2C+interpretaci%C3%B3n+y+marketing%2C+teatro+ruso%2C+dram%C3%A1tico%2C+dramatico';
var metaContents  = 'Formaci%C3%B3n+de+actores+y+guionistas+profesionales+que+se+completa+con+amplia+gama+educativa+en+forma+de+talleres+tanto+de+ocio+%28teatro%2C+magia%2C+canto%2C+escritura%2C+video+digital+etc.%29+como+en+%C3%A1reas+espec%C3%ADficas+%28actuar+ante+la+c%C3%A1mara%2C+promoci%C3%B3n+personal%2C+interpretaci%C3%B3n+aplicada+al+marketing+etc.%29+';
					                                                                    
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 */					                                                            
