/* [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','4499',jdecode('Inicio'),jdecode(''),'/4499.html','true',[],''],
	['PAGE','89501',jdecode('Tienda+virtual'),jdecode(''),'/89501.html','true',[],''],
	['PAGE','9003',jdecode('Catalogos'),jdecode(''),'/9003.html','true',[],''],
	['PAGE','36901',jdecode('Trucos+y+consejos'),jdecode(''),'/36901/index.html','true',[ 
		['PAGE','9516',jdecode('Ajuste+coche+RC'),jdecode(''),'/36901/9516.html','true',[],''],
		['PAGE','38701',jdecode('Carburar+motores'),jdecode(''),'/36901/38701.html','true',[],''],
		['PAGE','39501',jdecode('Servos'),jdecode(''),'/36901/39501.html','true',[],''],
		['PAGE','39528',jdecode('Cargadores'),jdecode(''),'/36901/39528.html','true',[],''],
		['PAGE','36928',jdecode('Montaje+avi%C3%B3n+1%C2%BA'),jdecode(''),'/36901/36928.html','true',[],''],
		['PAGE','37901',jdecode('Montaje+avi%C3%B3n+2%C2%BA'),jdecode(''),'/36901/37901.html','true',[],''],
		['PAGE','37928',jdecode('Montaje+avi%C3%B3n+3%C2%BA'),jdecode(''),'/36901/37928.html','true',[],''],
		['PAGE','37955',jdecode('Montaje+avi%C3%B3n+4%C2%BA'),jdecode(''),'/36901/37955.html','true',[],''],
		['PAGE','37982',jdecode('Montaje+avi%C3%B3n+5%C2%BA'),jdecode(''),'/36901/37982.html','true',[],''],
		['PAGE','38009',jdecode('Montaje+avi%C3%B3n+6%C2%BA'),jdecode(''),'/36901/38009.html','true',[],''],
		['PAGE','38036',jdecode('Montaje+avi%C3%B3n+7%C2%BA'),jdecode(''),'/36901/38036.html','true',[],''],
		['PAGE','60601',jdecode('Pistolas+Paintball'),jdecode(''),'/36901/60601.html','true',[],'']
	],''],
	['PAGE','46201',jdecode('Instrucciones'),jdecode(''),'/46201.html','true',[],''],
	['PAGE','14515',jdecode('Eventos'),jdecode(''),'/14515.html','true',[],''],
	['PAGE','90501',jdecode('Contacto'),jdecode(''),'/90501.html','true',[],''],
	['PAGE','9462',jdecode('T%C3%A9rminos+de+uso'),jdecode(''),'/9462.html','true',[],''],
	['PAGE','45802',jdecode('Mapa+de+acceso'),jdecode(''),'/45802.html','true',[],''],
	['PAGE','24215',jdecode('Privado'),jdecode(''),'/24215.html','true',[],'']];
var siteelementCount=22;
theSitetree.topTemplateName='Roadsign';
theSitetree.paletteFamily='CFD5F7';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10741';
theSitetree.graphicsetId='10496';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Roadsign',
				paletteFamily: 	'CFD5F7',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10741',
				graphicsetId: 	'10496',
				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: 		'666666',
				e_color: 		'999999',
				f_color: 		'663300',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1501']={
webappId:    '1501',
documentId:  '4499',
internalId:  '524817',
customField: '1501'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4499',
internalId:  '1006',
customField: '1006'
};
webappMappings['2001']={
webappId:    '2001',
documentId:  '45802',
internalId:  'location',
customField: 'language:es;country:ES;isIncluded:false;'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '24215',
internalId:  'fa6cbc13a9',
customField: 'Privado'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4499',
internalId:  '',
customField: '20100512-094616'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9462',
internalId:  '',
customField: '20091105-123634'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9003',
internalId:  '',
customField: '20100506-105153'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '36901',
internalId:  '',
customField: '20051015-165033'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9516',
internalId:  '',
customField: '20040510-001613'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '38701',
internalId:  '',
customField: '20100512-102802'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '39501',
internalId:  '',
customField: '20041116-232431'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '39528',
internalId:  '',
customField: '20041116-232631'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '36928',
internalId:  '',
customField: '20041114-183914'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '37901',
internalId:  '',
customField: '20041114-194006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '37928',
internalId:  '',
customField: '20041115-170348'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '37955',
internalId:  '',
customField: '20041120-123113'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '37982',
internalId:  '',
customField: '20041120-125318'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '38009',
internalId:  '',
customField: '20041120-130511'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '38036',
internalId:  '',
customField: '20041120-132936'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '60601',
internalId:  '',
customField: '20060929-214431'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '46201',
internalId:  '',
customField: '20091026-113851'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '89501',
internalId:  '',
customField: '20091105-113628'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '90501',
internalId:  '',
customField: '20091105-123707'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '90501',
internalId:  '12878572',
customField: 'es:ES:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '14515',
internalId:  '',
customField: '20091021-104707'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '24215',
internalId:  '',
customField: '20091105-114718'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '45802',
internalId:  '',
customField: '20050705-115229'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010IN20BH';
var companyName   = '...............+ESPECIALISTAS+DEL+HOBBY+...............';
var htmlTitle	  = 'Super-Ocio.+Especialistas+del+hobby.+Ofertas+especiales';
var metaKeywords  = 'Puzzles+1000+piezas.+Carabinas+de+perdigon.+Casas+de+mu%C3%B1ecas.+Coches+radiocontrol+de+gasolina.+coches+radiocontrol+electricos%2C+puzzles+educa.+puzzles+ravensburger%2C+dianas+electronicas%2C+pistolas+de+perdigon%2C+aviones+radiocontrol+electricos';
var metaContents  = 'Visite+nuestra+central+en+un+Paseo+Virtual.+Puzzles+de+3+a+24000+piezas.+Carabinas+de+perdigon.+Casas+de+mu%C3%B1ecas.+Coches+de+radiocontrol.+Dianas+electronicas.+Helicopteros.';
					                                                                    
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 */					                                                            
