/* [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','18101',jdecode('%C2%BFQu%C3%A9+ofrecemos%3F'),jdecode(''),'/18101.html','true',[],''],
	['PAGE','18299',jdecode('Contacto'),jdecode(''),'/18299/index.html','true',[ 
		['PAGE','26801',jdecode('Cont%C3%A1ctenos+%28follow+up+page%29'),jdecode(''),'/18299/26801.html','false',[],'']
	],'']];
var siteelementCount=3;
theSitetree.topTemplateName='Galerie';
theSitetree.paletteFamily='333333';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='73';
theSitetree.graphicsetId='83';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='D6D6D6';
var theTemplate={
				name: 			'Galerie',
				paletteFamily: 	'333333',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'73',
				graphicsetId: 	'83',
				contentColor: 	'000000',
				contentBGColor: 'D6D6D6',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'333333',
				b_color: 		'DBD9D9',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18101',
internalId:  '',
customField: '20090917-091003'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '18299',
internalId:  'aars20in3rwc11d7653ea0c',
customField: ''
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18299',
internalId:  '',
customField: '20090917-090942'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '18101',
internalId:  '1006',
customField: '1006'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '26801',
internalId:  'aars20in3rwc11d7653ea0c',
customField: 'followUp'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '26801',
internalId:  '',
customField: '20081107-104130'
};
var canonHostname = 'wsc01a.arsys.es';
var accountId     = 'AARS20IN3RWC';
var companyName   = 'mas+curvas%2C+rutas+exclusivas';
var htmlTitle	  = 'mas+curvas%3A+tus+rutas+en+moto+grabadas+en+video...+y+mas%21';
var metaKeywords  = 'rutas+en+moto+por+carreteras+grabadas+en+video%2C+moto%2C+motocicleta%2C+motorbike%2C+spain%2C+road+trips%2C+motorbike+trips+in+spain%2C+viajes+en+moto+por+espa%C3%B1a%2C+motorbike+tours+spain%2C+road+trips%2C+motorbike+trips+in+spain%2C+videocamaras+para+moto%2C+fotos+en+circuitos';
var metaContents  = 'Organizacion+de+rutas+por+carreteras+alternativas%2C+tandas+en+circuitos+filmadas%2C+grabaci%C3%B3n+en+video+de+las+salidas%2C+excursiones+en+moto%2C+rutas+exclusivas%2C+viajes+en+moto+por+Espa%C3%B1a%2C+Motorbike+tours+in+Spain.';
					                                                                    
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 */					                                                            
