/* [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','4394',jdecode('Inicio'),jdecode(''),'/4394.html','true',[],''],
	['PAGE','13238',jdecode('%BFQUIENES+SOMOS%3F'),jdecode(''),'/13238.html','true',[],''],
	['PAGE','13346',jdecode('SERVICIOS'),jdecode(''),'/13346/index.html','true',[ 
		['PAGE','13373',jdecode('Particulares'),jdecode(''),'/13346/13373.html','true',[],''],
		['PAGE','13400',jdecode('Empresas'),jdecode(''),'/13346/13400.html','true',[],'']
	],''],
	['PAGE','13265',jdecode('BARCOS+MOTOR'),jdecode(''),'/13265/index.html','true',[ 
		['PAGE','13319',jdecode('Starfisher+10%2C60'),jdecode(''),'/13265/13319.html','true',[],''],
		['PAGE','13292',jdecode('Ransea+625'),jdecode(''),'/13265/13292.html','true',[],''],
		['PAGE','33626',jdecode('Bavaria+35+Sport'),jdecode(''),'/13265/33626.html','true',[],''],
		['PAGE','58726',jdecode('Cranchi+Endurance+39'),jdecode(''),'/13265/58726.html','true',[],''],
		['PAGE','37480',jdecode('Astinor+12%2C75'),jdecode(''),'/13265/37480.html','true',[],''],
		['PAGE','37453',jdecode('Transcat+42'),jdecode(''),'/13265/37453.html','true',[],''],
		['PAGE','37426',jdecode('Rodman+56'),jdecode(''),'/13265/37426.html','true',[],'']
	],''],
	['PAGE','15120',jdecode('VELEROS'),jdecode(''),'/15120/index.html','true',[ 
		['PAGE','36159',jdecode('Base+El+masnou'),jdecode(''),'/15120/36159.html','true',[],''],
		['PAGE','37507',jdecode('Base+Barcelona'),jdecode(''),'/15120/37507.html','true',[],''],
		['PAGE','41988',jdecode('Base+Mataro'),jdecode(''),'/15120/41988.html','true',[],''],
		['PAGE','42015',jdecode('Base+Costa+Brava'),jdecode(''),'/15120/42015.html','true',[],''],
		['PAGE','50126',jdecode('Base+Garraf'),jdecode(''),'/15120/50126.html','true',[],''],
		['PAGE','37534',jdecode('Base+Palma+de+Mallorca'),jdecode(''),'/15120/37534.html','true',[],''],
		['PAGE','55926',jdecode('Base+Ibiza'),jdecode(''),'/15120/55926.html','true',[],''],
		['PAGE','57527',jdecode('Base+Menorca'),jdecode(''),'/15120/57527.html','true',[],''],
		['PAGE','60226',jdecode('Base+Tarragona'),jdecode(''),'/15120/60226.html','true',[],'']
	],''],
	['PAGE','79135',jdecode('YATES+DE+LUJO'),jdecode(''),'/79135/index.html','true',[ 
		['PAGE','80226',jdecode('Apache+1'),jdecode(''),'/79135/80226.html','true',[],''],
		['PAGE','80253',jdecode('Atsko'),jdecode(''),'/79135/80253.html','true',[],''],
		['PAGE','80280',jdecode('Azur+Rhapsodie'),jdecode(''),'/79135/80280.html','true',[],''],
		['PAGE','80307',jdecode('Cardigrae+IV'),jdecode(''),'/79135/80307.html','true',[],''],
		['PAGE','80334',jdecode('Costa+Magna'),jdecode(''),'/79135/80334.html','true',[],''],
		['PAGE','80361',jdecode('El+Bravo'),jdecode(''),'/79135/80361.html','true',[],''],
		['PAGE','80388',jdecode('Glamour'),jdecode(''),'/79135/80388.html','true',[],''],
		['PAGE','80415',jdecode('Ineke+IV'),jdecode(''),'/79135/80415.html','true',[],''],
		['PAGE','80442',jdecode('Lady+Liberty'),jdecode(''),'/79135/80442.html','true',[],''],
		['PAGE','80469',jdecode('Momentum'),jdecode(''),'/79135/80469.html','true',[],''],
		['PAGE','80496',jdecode('MY+Louise'),jdecode(''),'/79135/80496.html','true',[],''],
		['PAGE','80523',jdecode('Negreska'),jdecode(''),'/79135/80523.html','true',[],''],
		['PAGE','80550',jdecode('Saudades'),jdecode(''),'/79135/80550.html','true',[],''],
		['PAGE','80577',jdecode('SS+Delphine'),jdecode(''),'/79135/80577.html','true',[],''],
		['PAGE','80604',jdecode('Star+of+Kaitos'),jdecode(''),'/79135/80604.html','true',[],''],
		['PAGE','80631',jdecode('Tursiops'),jdecode(''),'/79135/80631.html','true',[],'']
	],''],
	['PAGE','13454',jdecode('TARIFAS+BARCOS+MOTOR'),jdecode(''),'/13454/index.html','true',[ 
		['PAGE','15420',jdecode('Ransea+625'),jdecode(''),'/13454/15420.html','true',[],''],
		['PAGE','15447',jdecode('Starfisher+10%2C60'),jdecode(''),'/13454/15447.html','true',[],''],
		['PAGE','33653',jdecode('Bavaria+35+Sport'),jdecode(''),'/13454/33653.html','true',[],''],
		['PAGE','58959',jdecode('Cranchi+Endurance+39'),jdecode(''),'/13454/58959.html','true',[],''],
		['PAGE','37783',jdecode('Astinor+12%2C75'),jdecode(''),'/13454/37783.html','true',[],''],
		['PAGE','37810',jdecode('Transcat+42'),jdecode(''),'/13454/37810.html','true',[],''],
		['PAGE','37837',jdecode('Rodman+56'),jdecode(''),'/13454/37837.html','true',[],'']
	],''],
	['PAGE','42407',jdecode('TARIFAS+VELEROS'),jdecode(''),'/42407/index.html','true',[ 
		['PAGE','15474',jdecode('Base+El+Masnou'),jdecode(''),'/42407/15474.html','true',[],''],
		['PAGE','42069',jdecode('Base+Barcelona'),jdecode(''),'/42407/42069.html','true',[],''],
		['PAGE','42096',jdecode('Base+Mataro'),jdecode(''),'/42407/42096.html','true',[],''],
		['PAGE','42123',jdecode('Base+Costa+Brava'),jdecode(''),'/42407/42123.html','true',[],''],
		['PAGE','50153',jdecode('Base+Garraf'),jdecode(''),'/42407/50153.html','true',[],''],
		['PAGE','42150',jdecode('Base+Palma+de+Mallorca'),jdecode(''),'/42407/42150.html','true',[],''],
		['PAGE','55953',jdecode('Base+Ibiza'),jdecode(''),'/42407/55953.html','true',[],''],
		['PAGE','57554',jdecode('Base+Menorca'),jdecode(''),'/42407/57554.html','true',[],''],
		['PAGE','60253',jdecode('Base+Tarragona'),jdecode(''),'/42407/60253.html','true',[],'']
	],''],
	['PAGE','13508',jdecode('CHARTER+DE+PESCA'),jdecode(''),'/13508/index.html','true',[ 
		['PAGE','71531',jdecode('Starfisher+10%2C60'),jdecode(''),'/13508/71531.html','true',[],''],
		['PAGE','71558',jdecode('Ransea+625'),jdecode(''),'/13508/71558.html','true',[],'']
	],''],
	['PAGE','13481',jdecode('OFERTAS+Y+BONOS'),jdecode(''),'/13481.html','true',[],''],
	['PAGE','76938',jdecode('ALBUM+FOTOS+PESCA'),jdecode(''),'/76938.html','true',[],''],
	['PAGE','77772',jdecode('RECETAS+DE+ATUN'),jdecode(''),'/77772.html','true',[],''],
	['PAGE','13562',jdecode('CONTACTENOS'),jdecode(''),'/13562/index.html','true',[ 
		['PAGE','13589',jdecode('Solicitar+Informacion'),jdecode(''),'/13562/13589/index.html','true',[ 
			['PAGE','24811',jdecode('Solicitar+Informaci%F3n+%28follow+up+page%29'),jdecode(''),'/13562/13589/24811.html','false',[],'']
		],''],
		['PAGE','13616',jdecode('Solicitar+Reserva'),jdecode(''),'/13562/13616/index.html','true',[ 
			['PAGE','28028',jdecode('Solicitar+Reserva+%28follow+up+page%29'),jdecode(''),'/13562/13616/28028.html','false',[],'']
		],'']
	],''],
	['PAGE','13535',jdecode('ENLACES+DE+INTERES'),jdecode(''),'/13535.html','true',[],'']];
var siteelementCount=70;
theSitetree.topTemplateName='Startup';
					                                                                    
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 */					                                                            
