/* [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','1508',jdecode('PRINCIPAL'),jdecode(''),'/1508.html','true',[],''],
	['PAGE','62801',jdecode('C%C3%93MO+LLEGAR'),jdecode(''),'/62801/index.html','true',[ 
		['PAGE','182922',jdecode('VER+FOTO+AMPLIADA'),jdecode(''),'/62801/182922.html','true',[],''],
		['PAGE','22301',jdecode('VISTA+A%C3%89REA'),jdecode(''),'/62801/22301.html','true',[],'']
	],''],
	['PAGE','62828',jdecode('CLASES+INDIVIDUALES'),jdecode(''),'/62828/index.html','true',[ 
		['PAGE','185222',jdecode('METODOLOG%C3%8DA'),jdecode(''),'/62828/185222.html','true',[],''],
		['PAGE','185201',jdecode('MATERIAS+IMPARTIDAS'),jdecode(''),'/62828/185201.html','true',[],'']
	],''],
	['PAGE','194122',jdecode('EC.+y+EMPRESARIALES'),jdecode(''),'/194122/index.html','true',[ 
		['PAGE','194101',jdecode('METODOLOG%C3%8DA'),jdecode(''),'/194122/194101.html','true',[],'']
	],''],
	['PAGE','76101',jdecode('Ciclos+ADMINISTRATIVOS'),jdecode(''),'/76101.html','true',[],''],
	['PAGE','291001',jdecode('Pruebas+ACCESO+CICLOS'),jdecode(''),'/291001.html','true',[],''],
	['PAGE','297401',jdecode('Pruebas+ACCESO+UNIV.'),jdecode(''),'/297401/index.html','true',[ 
		['PAGE','297422',jdecode('SELECTIVIDAD'),jdecode(''),'/297401/297422.html','true',[],''],
		['PAGE','297443',jdecode('Acceso+Mayores+25+a%C3%B1os'),jdecode(''),'/297401/297443.html','true',[],''],
		['PAGE','297464',jdecode('Acceso+Mayores+45+a%C3%B1os'),jdecode(''),'/297401/297464.html','true',[],'']
	],''],
	['PAGE','13617',jdecode('BACHILLERATOS'),jdecode(''),'/13617.html','true',[],''],
	['PAGE','13644',jdecode('E.S.O.'),jdecode(''),'/13644.html','true',[],''],
	['PAGE','13671',jdecode('PRIMARIA'),jdecode(''),'/13671.html','true',[],''],
	['PAGE','47801',jdecode('IDIOMAS'),jdecode(''),'/47801.html','true',[],''],
	['PAGE','47855',jdecode('EUSKERA'),jdecode(''),'/47855.html','true',[],''],
	['PAGE','47828',jdecode('INGL%C3%89S'),jdecode(''),'/47828.html','true',[],''],
	['PAGE','218001',jdecode('FORMACI%C3%93N+LABORAL'),jdecode(''),'/218001.html','true',[],''],
	['PAGE','295801',jdecode('EMPLEO+EN+IKASLEKU'),jdecode(''),'/295801.html','true',[],''],
	['PAGE','24582',jdecode('CONTACTO'),jdecode(''),'/24582.html','true',[],'']];
var siteelementCount=24;
theSitetree.topTemplateName='Alpha';
theSitetree.paletteFamily='5351C2';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10555';
theSitetree.graphicsetId='10894';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Alpha',
				paletteFamily: 	'5351C2',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10555',
				graphicsetId: 	'10894',
				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: 		'5351C2',
				e_color: 		'5351C2',
				f_color: 		'5351C2',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1501']={
webappId:    '1501',
documentId:  '1508',
internalId:  '5070950',
customField: '1501'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '24582',
internalId:  '11814061',
customField: 'es:ES:'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '1508',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1508',
internalId:  '',
customField: '20100826-211711'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '47801',
internalId:  '',
customField: '20100826-210828'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '291001',
internalId:  '',
customField: '20100826-212246'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '194122',
internalId:  '',
customField: '20100826-210349'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '62801',
internalId:  '',
customField: '20100801-173439'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '22301',
internalId:  '',
customField: '20100220-190304'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '295801',
internalId:  '12773406',
customField: 'es:ES:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '297401',
internalId:  '',
customField: '20100826-210550'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '297422',
internalId:  '',
customField: '20100826-210613'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '297443',
internalId:  '',
customField: '20100826-210630'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '218001',
internalId:  '',
customField: '20100826-210952'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '76101',
internalId:  '',
customField: '20100826-210509'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '194101',
internalId:  '',
customField: '20100826-210445'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '13617',
internalId:  '',
customField: '20100826-210729'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '13644',
internalId:  '',
customField: '20100826-210744'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '13671',
internalId:  '',
customField: '20100826-210805'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '47855',
internalId:  '',
customField: '20100826-210856'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '47828',
internalId:  '',
customField: '20100826-210917'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '295801',
internalId:  '',
customField: '20090917-003250'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '62828',
internalId:  '',
customField: '20100826-210222'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '24582',
internalId:  '',
customField: '20090109-183320'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '182922',
internalId:  '',
customField: '20100220-190240'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '185201',
internalId:  '',
customField: '20100826-210318'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '185222',
internalId:  '',
customField: '20100826-210300'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '297464',
internalId:  '',
customField: '20100826-210647'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INEODP';
var companyName   = 'Tu+Academia+en+Basauri';
var htmlTitle	  = 'Ikasleku%2C+Tu+academia+en+Basauri';
var metaKeywords  = 'IKASLEKU+BASAURI+IKASLEKU+BASAURI+IKASLEKU+BASAURI+IKASLEKU+BASAURI+IKASLEKU+BASAURI+IKASLEKU+BASAURICentro+Academias+Basauri+Clases+Basauri+Matematicas+Euskera+Ingles+Fisica+Quimica+Lenguaje+Historia+Basauri+Sarriko+Elkano+Elcano+Universidad+Centro+de+Estudios+Ikasleku.BASAURI.+Clases+de+Apoyo+y+Recuperacion.Primaria%2C+ESO%2C+Bachilleratos%2C+Gestion+Administrativa%2C+Administracion+y+Finanzas%2C+Secretariado%2C+Economicas+y+Empresariales+Ingenierias+ingenieria+carreras+magisterio+Leioa.+C%2F+Uribarri+n+6%2C+Entreplanta.+48970+Basauri.+BIZKAIA.+ikasleku%40ikasleku.com+-+Tels.+944+40+50+75+-+620+69+39+75+Euskera+Ingles+Frances+Matematicas+Fisica+Quimica+Dibujo+Tecnico+Basauri+Academia+academias+profesor+particular+clases+particulares+Basauri+profesores';
var metaContents  = 'Centro+de+Estudios+IKASLEKU.BASAURI.+Clases+de+Apoyo+y+Recuperacion.Primaria%2C+ESO%2C+Bachilleratos%2C+Ciclos+Formativos%2C+Economicas+y+Empresariales%2C+Ingenierias%2C+Carreras+de+Ciencias%2C+Idiomas.+C%2F+Uribarri+n+6%2C+Entreplanta.+48970+Basauri.+BIZKAIA.+ikasleku%40ikasleku.com+-+Tels.+944+40+50+75+-+620+69+39+75';
					                                                                    
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 */					                                                            
