/* [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','16',jdecode('%C2%BF+QUIENES+SOMOS+%3F'),jdecode(''),'/16.html','true',[],''],
	['PAGE','5979',jdecode('TIENDA+ONLINE'),jdecode(''),'/5979/index.html','true',[ 
		['PAGE','6028',jdecode('Gastos+de+env%C3%ADo'),jdecode(''),'/5979/6028.html','true',[],'']
	],''],
	['PAGE','1289',jdecode('CURSOS+DE+INICIACI%C3%93N'),jdecode(''),'/1289.html','true',[],''],
	['PAGE','1298',jdecode('CURSOS+DE+EMISORAS'),jdecode(''),'/1298.html','true',[],''],
	['PAGE','1190',jdecode('LIBROS'),jdecode(''),'/1190/index.html','true',[ 
		['PAGE','5856',jdecode('HELIC%C3%93PTEROS+%28follow+up+page%29'),jdecode(''),'/1190/5856.html','false',[],'']
	],''],
	['PAGE','107621',jdecode('SIMULADORES'),jdecode(''),'/107621.html','true',[],''],
	['PAGE','189321',jdecode('HELIC%C3%93PTEROS'),jdecode(''),'/189321.html','true',[],''],
	['PAGE','251533',jdecode('PACKS+HELIC%C3%93PTEROS'),jdecode(''),'/251533.html','true',[],''],
	['PAGE','266333',jdecode('REPUESTOS-ACCESORIOS'),jdecode(''),'/266333/index.html','true',[ 
		['PAGE','266733',jdecode('Pedido+repuestos-accesorios'),jdecode(''),'/266333/266733.html','true',[],'']
	],''],
	['PAGE','1235',jdecode('CONTACTAR'),jdecode(''),'/1235.html','true',[],''],
	['PAGE','277333',jdecode('VIDEOS+ON-LINE'),jdecode(''),'/277333.html','true',[],''],
	['PAGE','1226',jdecode('ENLACES'),jdecode(''),'/1226.html','true',[],''],
	['PAGE','4818',jdecode('CONDICIONES+DE+COMPRA'),jdecode(''),'/4818.html','true',[],''],
	['PAGE','5846',jdecode('C%C3%93MO+ENCONTRARNOS'),jdecode(''),'/5846.html','true',[],'']];
var siteelementCount=17;
theSitetree.topTemplateName='Sportive';
theSitetree.paletteFamily='F6F6E6';
theSitetree.keyvisualId='2664';
theSitetree.keyvisualName='digital2.jpg';
theSitetree.fontsetId='225';
theSitetree.graphicsetId='260';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='F6F6E6';
var theTemplate={
				name: 			'Sportive',
				paletteFamily: 	'F6F6E6',
				keyvisualId: 	'2664',
				keyvisualName: 	'digital2.jpg',
				fontsetId: 		'225',
				graphicsetId: 	'260',
				contentColor: 	'000000',
				contentBGColor: 'F6F6E6',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'F6F6E6',
				b_color: 		'CCCCC0',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '16',
internalId:  '1006',
customField: '1006'
};
webappMappings['4001']={
webappId:    '4001',
documentId:  '5979',
internalId:  '13363',
customField: 'language:es;country:ES;'
};
webappMappings['2002']={
webappId:    '2002',
documentId:  '5846',
internalId:  'routing',
customField: 'es_ES'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '1235',
internalId:  '1222631',
customField: 'es:ES:'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '5856',
internalId:  'aak010inx36110a2dbe1cba',
customField: 'followUp'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '266733',
internalId:  '1082122',
customField: 'es:ES:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '16',
internalId:  '',
customField: '20100620-105001'
};
webappMappings['1010']={
webappId:    '1010',
documentId:  '266333',
internalId:  '_Ea_REPUESTOS_Y_MAS____',
customField: 'language:es;country:ES;isIncluded:false;'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5979',
internalId:  '',
customField: '20091228-225345'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '107621',
internalId:  '',
customField: '20071201-204744'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6028',
internalId:  '',
customField: '20091122-211426'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1289',
internalId:  '',
customField: '20070823-194630'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1298',
internalId:  '',
customField: '20100313-221217'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1190',
internalId:  '',
customField: '20081003-222139'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5856',
internalId:  '',
customField: '20060324-203215'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '251533',
internalId:  '',
customField: '20100314-125058'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1226',
internalId:  '',
customField: '20100620-105627'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1235',
internalId:  '',
customField: '20071103-111252'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '277333',
internalId:  '',
customField: '20100620-105445'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4818',
internalId:  '',
customField: '20091122-211923'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5846',
internalId:  '',
customField: '20100620-104438'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '16',
internalId:  '22924',
customField: '1501'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '189321',
internalId:  '',
customField: '20100314-214713'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '266733',
internalId:  '',
customField: '20090430-211956'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '266333',
internalId:  '',
customField: '20090430-213718'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '251533',
internalId:  '1485247',
customField: 'es:ES:'
};
var canonHostname = 'localhost';
var accountId     = 'AAK010INX361';
var companyName   = 'HELIROTOR.NET';
var htmlTitle	  = 'HELIROTOR.NET';
var metaKeywords  = 'ESCUELA%2C+CURSOS%2C+HELICOPTEROS%2C+RADIOCONTROL';
var metaContents  = 'ESCUELA+DE+HELICOPTEROS+DE+RADICONTROL.+Esta+Escuela+est%C3%A1+dirigida+a+los+que+deseen+aprender+a+manejar+correctamente+los+helic%C3%B3pteros+de+radicontrol+tanto+a+distancia+como+in+situ+en+el+campo+de+vuelo.';
					                                                                    
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 */					                                                            
