/* [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','701',jdecode('INICIO'),jdecode(''),'/701.html','true',[],''],
	['PAGE','65101',jdecode('NUESTRAS+INSTALACIONES'),jdecode(''),'/65101.html','true',[],''],
	['PAGE','773',jdecode('MOTOS+'),jdecode(''),'/773/index.html','true',[ 
		['PAGE','11601',jdecode('Hyosung'),jdecode(''),'/773/11601.html','true',[],''],
		['PAGE','12901',jdecode('Sumco'),jdecode(''),'/773/12901.html','true',[],''],
		['PAGE','17101',jdecode('Megelli'),jdecode(''),'/773/17101.html','true',[],'']
	],''],
	['PAGE','86601',jdecode('OCASION'),jdecode(''),'/86601/index.html','true',[ 
		['PAGE','815',jdecode('Motos'),jdecode(''),'/86601/815.html','true',[],''],
		['PAGE','86622',jdecode('Bicicletas'),jdecode(''),'/86601/86622.html','true',[],'']
	],''],
	['PAGE','836',jdecode('PREPARACIONES'),jdecode(''),'/836.html','true',[],''],
	['PAGE','91501',jdecode('ACCESORIOS'),jdecode(''),'/91501/index.html','true',[ 
		['PAGE','36901',jdecode('Escapes'),jdecode(''),'/91501/36901.html','true',[],''],
		['PAGE','91522',jdecode('Amortiguadores'),jdecode(''),'/91501/91522.html','true',[],''],
		['PAGE','95601',jdecode('Horquillas'),jdecode(''),'/91501/95601.html','true',[],''],
		['PAGE','121101',jdecode('Manillares'),jdecode(''),'/91501/121101.html','true',[],''],
		['PAGE','121122',jdecode('Manetas'),jdecode(''),'/91501/121122.html','true',[],''],
		['PAGE','121143',jdecode('Protectores+de+manillar'),jdecode(''),'/91501/121143.html','true',[],''],
		['PAGE','121164',jdecode('Estriberas'),jdecode(''),'/91501/121164.html','true',[],'']
	],''],
	['PAGE','794',jdecode('BOUTIQUE+OFF+ROAD'),jdecode(''),'/794/index.html','true',[ 
		['PAGE','78101',jdecode('Cascos'),jdecode(''),'/794/78101.html','true',[],''],
		['PAGE','78122',jdecode('Camisetas'),jdecode(''),'/794/78122.html','true',[],''],
		['PAGE','78143',jdecode('Pantalones'),jdecode(''),'/794/78143.html','true',[],''],
		['PAGE','79601',jdecode('Monos'),jdecode(''),'/794/79601.html','true',[],''],
		['PAGE','79622',jdecode('Guantes'),jdecode(''),'/794/79622.html','true',[],''],
		['PAGE','79643',jdecode('Chaquetas'),jdecode(''),'/794/79643.html','true',[],''],
		['PAGE','79664',jdecode('Botas'),jdecode(''),'/794/79664.html','true',[],''],
		['PAGE','79685',jdecode('Protecciones'),jdecode(''),'/794/79685.html','true',[],''],
		['PAGE','78164',jdecode('Gafas'),jdecode(''),'/794/78164.html','true',[],''],
		['PAGE','80601',jdecode('Varios'),jdecode(''),'/794/80601.html','true',[],'']
	],''],
	['PAGE','87501',jdecode('BOUTIQUE+CARRETERA'),jdecode(''),'/87501/index.html','true',[ 
		['PAGE','71501',jdecode('Cascos'),jdecode(''),'/87501/71501.html','true',[],''],
		['PAGE','87522',jdecode('Cazadoras'),jdecode(''),'/87501/87522.html','true',[],''],
		['PAGE','87543',jdecode('Pantalones'),jdecode(''),'/87501/87543.html','true',[],''],
		['PAGE','120401',jdecode('Monos+de+piel+y+trajes'),jdecode(''),'/87501/120401.html','true',[],''],
		['PAGE','91901',jdecode('Guantes'),jdecode(''),'/87501/91901.html','true',[],''],
		['PAGE','87564',jdecode('Botas'),jdecode(''),'/87501/87564.html','true',[],''],
		['PAGE','87585',jdecode('Ropa+interior'),jdecode(''),'/87501/87585.html','true',[],''],
		['PAGE','120422',jdecode('+Chuvasquero'),jdecode(''),'/87501/120422.html','true',[],'']
	],''],
	['PAGE','124301',jdecode('OULET'),jdecode(''),'/124301.html','true',[],''],
	['PAGE','82901',jdecode('CASUAL'),jdecode(''),'/82901.html','true',[],''],
	['PAGE','101301',jdecode('AUTOMOVIL'),jdecode(''),'/101301.html','true',[],''],
	['PAGE','86643',jdecode('BICICLETAS'),jdecode(''),'/86643/index.html','true',[ 
		['PAGE','86664',jdecode('Bicicletas'),jdecode(''),'/86643/86664.html','true',[],''],
		['PAGE','86685',jdecode('Recambio'),jdecode(''),'/86643/86685.html','true',[],'']
	],''],
	['PAGE','6001',jdecode('TIENDA+ONLINE'),jdecode(''),'/6001.html','true',[],''],
	['PAGE','32501',jdecode('Trial+SQeM'),jdecode(''),'/32501.html','true',[],''],
	['PAGE','54801',jdecode('MOTOCLUB+SQeM'),jdecode(''),'/54801/index.html','true',[ 
		['PAGE','54822',jdecode('Nuestro+Equipo'),jdecode(''),'/54801/54822.html','true',[],''],
		['PAGE','136601',jdecode('Noticias+2012'),jdecode(''),'/54801/136601.html','true',[],''],
		['PAGE','89301',jdecode('Noticias+2011'),jdecode(''),'/54801/89301.html','true',[],'']
	],''],
	['PAGE','878',jdecode('CONT%C3%81CTENOS'),jdecode(''),'/878.html','true',[],'']];
var siteelementCount=51;
theSitetree.topTemplateName='Trend';
theSitetree.paletteFamily='619A45';
theSitetree.keyvisualId='7928';
theSitetree.keyvisualName='kv_7928.jpg';
theSitetree.fontsetId='16911';
theSitetree.graphicsetId='12324';
theSitetree.contentColor='386721';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Trend',
				paletteFamily: 	'619A45',
				keyvisualId: 	'7928',
				keyvisualName: 	'kv_7928.jpg',
				fontsetId: 		'16911',
				graphicsetId: 	'12324',
				contentColor: 	'386721',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'true',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '701',
internalId:  '',
customField: '20120128-130239'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '124301',
internalId:  '',
customField: '20111128-151944'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '773',
internalId:  '',
customField: '20111128-144428'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '794',
internalId:  '',
customField: '20111128-134715'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '815',
internalId:  '',
customField: '20120201-194906'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '836',
internalId:  '',
customField: '20101006-153729'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '701',
internalId:  '1071459',
customField: '1501'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '878',
internalId:  '',
customField: '20100814-133409'
};
webappMappings['4001']={
webappId:    '4001',
documentId:  '6001',
internalId:  '1062593',
customField: 'language:es;country:ES;'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6001',
internalId:  '',
customField: '20090325-130027'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '701',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11601',
internalId:  '',
customField: '20110824-202714'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12901',
internalId:  '',
customField: '20111215-151430'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '65101',
internalId:  '',
customField: '20101006-191502'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17101',
internalId:  '',
customField: '20090509-004444'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '71501',
internalId:  '',
customField: '20120116-193736'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '78101',
internalId:  '',
customField: '20111201-204928'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '32501',
internalId:  '1217955dd25',
customField: 'g.145sgaisf.cmm2eikvik.3o'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '32501',
internalId:  '',
customField: '20110430-144645'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '78164',
internalId:  '',
customField: '20111010-192939'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '78143',
internalId:  '',
customField: '20111010-211616'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '36901',
internalId:  '',
customField: '20110301-130301'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '78122',
internalId:  '',
customField: '20111010-201100'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '54801',
internalId:  '',
customField: '20110215-160811'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '54822',
internalId:  '',
customField: '20110623-014043'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '79601',
internalId:  '',
customField: '20110927-123711'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '79622',
internalId:  '',
customField: '20111008-145227'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '79643',
internalId:  '',
customField: '20101215-205239'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '79664',
internalId:  '',
customField: '20120119-153646'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '79685',
internalId:  '',
customField: '20110926-204147'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '80601',
internalId:  '',
customField: '20111010-194325'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '82901',
internalId:  '',
customField: '20110603-185853'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '86601',
internalId:  '',
customField: '20110301-153751'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '86622',
internalId:  '',
customField: '20110704-181200'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '86643',
internalId:  '',
customField: '20110203-183743'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '86664',
internalId:  '',
customField: '20110912-193428'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '86685',
internalId:  '',
customField: '20110203-182337'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '87501',
internalId:  '',
customField: '20110928-182714'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '87522',
internalId:  '',
customField: '20110928-185756'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '87543',
internalId:  '',
customField: '20110502-221251'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '87564',
internalId:  '',
customField: '20110912-213727'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '87585',
internalId:  '',
customField: '20110203-200105'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '89301',
internalId:  '',
customField: '20111226-141216'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '91501',
internalId:  '',
customField: '20111109-201553'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '91522',
internalId:  '',
customField: '20110926-200334'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '91901',
internalId:  '',
customField: '20111003-151814'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '95601',
internalId:  '',
customField: '20110304-134134'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '101301',
internalId:  '',
customField: '20110524-195629'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '120401',
internalId:  '',
customField: '20111110-154625'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '120422',
internalId:  '',
customField: '20111109-145306'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '121101',
internalId:  '',
customField: '20111109-203436'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '121122',
internalId:  '',
customField: '20111109-203436'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '121143',
internalId:  '',
customField: '20111109-203436'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '121164',
internalId:  '',
customField: '20111109-203436'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '136601',
internalId:  '',
customField: '20120201-204743'
};
var canonHostname = 'localhost';
var accountId     = 'AAK020IN2MOE';
var companyName   = 'SQeM';
var htmlTitle	  = '++++...SQeM...++++++++++++%3A%3A%3A%3A%3A%3A%3AScooters+Quads+e+Motos%3A%3A%3A%3A%3A%3A%3A%3A%3A%3A%3A%3A%3A%3A';
var metaKeywords  = 'motos+hyosung+sumco+gas+gas+ohlins+megelli+i+moto+hebo+honda+ktm+dainese+mx+onda+yamaha+ducati+suzuki+vilagarcia+diadora+jebs+nolan+x+lite+premier+g+mac+hjc+gaerne+fly+racing+scooter+carretera+enduro+trial+trail+cross+motocross+bagster+arosa+arousa+rueda+slick+wet+vor+husqvarna+sachs+bikes+motocicleta+megamo+troy+lee+desings+';
var metaContents  = 'SQeM+Su+Tienda+De+Motos+Y+Accesorios+En+Villagarc%C3%ADa+De+Arosa';
					                                                                    
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 */					                                                            

