/* [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','4598',jdecode('Home'),jdecode(''),'/4598.html','true',[],''],
	['PAGE','4655',jdecode('Riviera+del+Sol'),jdecode(''),'/4655/index.html','true',[ 
		['PAGE','306998',jdecode('Riviera+Plaza'),jdecode(''),'/4655/306998.html','true',[],''],
		['PAGE','306967',jdecode('Centro+Commercial'),jdecode(''),'/4655/306967.html','true',[],''],
		['PAGE','205251',jdecode('Bars%2FRestaurants'),jdecode(''),'/4655/205251.html','true',[],''],
		['PAGE','206651',jdecode('Transport'),jdecode(''),'/4655/206651.html','true',[],'']
	],''],
	['PAGE','291825',jdecode('Images+of+Riviera+del+Sol'),jdecode(''),'/291825.html','true',[],''],
	['PAGE','342228',jdecode('Property+For+Sale'),jdecode(''),'/342228.html','true',[],''],
	['PAGE','148811',jdecode('Holiday+Rentals'),jdecode(''),'/148811/index.html','true',[ 
		['PAGE','148838',jdecode('Rental+Guide'),jdecode(''),'/148811/148838.html','true',[],''],
		['PAGE','263658',jdecode('Rental+Quick+Search'),jdecode(''),'/148811/263658.html','true',[],''],
		['PAGE','154545',jdecode('Riviera+del+Sol+-+2+beds'),jdecode(''),'/148811/154545.html','true',[],''],
		['PAGE','157645',jdecode('Riviera+del+Sol+-+2+beds'),jdecode(''),'/148811/157645.html','true',[],''],
		['PAGE','199351',jdecode('Riviera+del+Sol+-+2+beds'),jdecode(''),'/148811/199351.html','true',[],''],
		['PAGE','213349',jdecode('Riviera+del+Sol+-+2+beds'),jdecode(''),'/148811/213349.html','true',[],''],
		['PAGE','236149',jdecode('Riviera+del+Sol+-+2+beds'),jdecode(''),'/148811/236149.html','true',[],''],
		['PAGE','262249',jdecode('Riviera+del+Sol+-+2+beds'),jdecode(''),'/148811/262249.html','true',[],''],
		['PAGE','294367',jdecode('Riviera+del+Sol+-+2+beds'),jdecode(''),'/148811/294367.html','true',[],''],
		['PAGE','309067',jdecode('Riviera+del+Sol+-+2+beds'),jdecode(''),'/148811/309067.html','true',[],''],
		['PAGE','310967',jdecode('Riviera+del+Sol+-+3+beds'),jdecode(''),'/148811/310967.html','true',[],''],
		['PAGE','353644',jdecode('Riviera+del+Sol+-+2+beds'),jdecode(''),'/148811/353644.html','true',[],''],
		['PAGE','320471',jdecode('Riviera+del+Sol+-+2+beds'),jdecode(''),'/148811/320471.html','true',[],''],
		['PAGE','330871',jdecode('Riviera+del+Sol+-+2+beds'),jdecode(''),'/148811/330871.html','true',[],''],
		['PAGE','333671',jdecode('Riviera+del+Sol+-+1+bed'),jdecode(''),'/148811/333671.html','true',[],''],
		['PAGE','340244',jdecode('Calahonda+-+1+bed'),jdecode(''),'/148811/340244.html','true',[],''],
		['PAGE','344744',jdecode('Riviera+del+Sol+-+2+beds'),jdecode(''),'/148811/344744.html','true',[],''],
		['PAGE','345944',jdecode('Riviera+del+Sol+-+2+beds'),jdecode(''),'/148811/345944.html','true',[],''],
		['PAGE','347044',jdecode('Riviera+del+Sol+-+2+beds'),jdecode(''),'/148811/347044.html','true',[],''],
		['PAGE','350444',jdecode('Riviera+del+Sol+-+2+beds'),jdecode(''),'/148811/350444.html','true',[],''],
		['PAGE','351944',jdecode('Riviera+del+Sol+-+2+beds'),jdecode(''),'/148811/351944.html','true',[],''],
		['PAGE','369944',jdecode('Riviera+del+Sol+-++2+beds'),jdecode(''),'/148811/369944.html','true',[],''],
		['PAGE','370944',jdecode('Riviera+del+Sol+-+2+beds'),jdecode(''),'/148811/370944.html','true',[],''],
		['PAGE','371844',jdecode('Riviera+del+Sol+-+3+beds'),jdecode(''),'/148811/371844.html','true',[],''],
		['PAGE','373244',jdecode('Calahonda+-+1+bed'),jdecode(''),'/148811/373244.html','true',[],''],
		['PAGE','374044',jdecode('Elviria+-+2+beds'),jdecode(''),'/148811/374044.html','true',[],''],
		['PAGE','153545',jdecode('Your+property'),jdecode(''),'/148811/153545.html','true',[],'']
	],''],
	['PAGE','5103',jdecode('Resorts+'),jdecode(''),'/5103.html','true',[],''],
	['PAGE','5130',jdecode('Attractions++'),jdecode(''),'/5130.html','true',[],''],
	['PAGE','4709',jdecode('Golf+%26+Sports++'),jdecode(''),'/4709.html','true',[],''],
	['PAGE','5157',jdecode('Markets+'),jdecode(''),'/5157.html','true',[],''],
	['PAGE','330371',jdecode('Day+trip+to+Tangiers'),jdecode(''),'/330371.html','true',[],''],
	['PAGE','285167',jdecode('Camping+Cabopino'),jdecode(''),'/285167.html','true',[],''],
	['PAGE','124932',jdecode('Fiestas+%26+Festivals+etc'),jdecode(''),'/124932/index.html','true',[ 
		['PAGE','125013',jdecode('+Spanish+Bank+Holidays'),jdecode(''),'/124932/125013.html','true',[],''],
		['PAGE','124986',jdecode('Summer+Fairs'),jdecode(''),'/124932/124986.html','true',[],'']
	],''],
	['PAGE','326471',jdecode('Holiday+Home+Insurance'),jdecode(''),'/326471/index.html','true',[ 
		['PAGE','335571',jdecode('FAQ%26%23x27%3Bs'),jdecode(''),'/326471/335571.html','true',[],''],
		['PAGE','328571',jdecode('Terms+of+Business'),jdecode(''),'/326471/328571.html','true',[],'']
	],''],
	['PAGE','195851',jdecode('Mijas+%26+Mijas+Costa'),jdecode(''),'/195851.html','true',[],''],
	['PAGE','147323',jdecode('Property+Management'),jdecode(''),'/147323.html','true',[],''],
	['PAGE','260552',jdecode('Estate+Agents'),jdecode(''),'/260552.html','true',[],''],
	['PAGE','312767',jdecode('Spanish+Solicitors'),jdecode(''),'/312767.html','true',[],''],
	['PAGE','130556',jdecode('Buying+a+Property'),jdecode(''),'/130556.html','true',[],''],
	['PAGE','239749',jdecode('Instant+Spanish+Lesson'),jdecode(''),'/239749/index.html','true',[ 
		['PAGE','240364',jdecode('Numbers'),jdecode(''),'/239749/240364.html','true',[],''],
		['PAGE','239849',jdecode('Meeting+People'),jdecode(''),'/239749/239849.html','true',[],''],
		['PAGE','239949',jdecode('Shopping'),jdecode(''),'/239749/239949.html','true',[],''],
		['PAGE','240049',jdecode('At+the+Restaurant'),jdecode(''),'/239749/240049.html','true',[],''],
		['PAGE','250261',jdecode('Everyday+Talk'),jdecode(''),'/239749/250261.html','true',[],''],
		['PAGE','246063',jdecode('Health'),jdecode(''),'/239749/246063.html','true',[],'']
	],''],
	['PAGE','143218',jdecode('Driving+in+Spain'),jdecode(''),'/143218.html','true',[],''],
	['PAGE','5184',jdecode('Medical+Facilities'),jdecode(''),'/5184.html','true',[],''],
	['PAGE','313967',jdecode('Emergencies+-+what+to+do'),jdecode(''),'/313967/index.html','true',[ 
		['PAGE','314102',jdecode('Accident+or+assault'),jdecode(''),'/313967/314102.html','true',[],''],
		['PAGE','314133',jdecode('Passport+lost'),jdecode(''),'/313967/314133.html','true',[],''],
		['PAGE','314164',jdecode('Credit+card+stolen'),jdecode(''),'/313967/314164.html','true',[],''],
		['PAGE','314195',jdecode('Medical+Emergency'),jdecode(''),'/313967/314195.html','true',[],''],
		['PAGE','314226',jdecode('Consulate-General'),jdecode(''),'/313967/314226.html','true',[],'']
	],''],
	['PAGE','145459',jdecode('Emergency+Phone+Nos.'),jdecode(''),'/145459.html','true',[],''],
	['PAGE','129174',jdecode('Useful+Numbers'),jdecode(''),'/129174.html','true',[],''],
	['PAGE','311467',jdecode('Sangria+Recipe'),jdecode(''),'/311467.html','true',[],''],
	['PAGE','153245',jdecode('Forum'),jdecode(''),'/153245.html','true',[],''],
	['PAGE','128473',jdecode('Guestbook'),jdecode(''),'/128473/index.html','true',[ 
		['PAGE','128474',jdecode('Read+Guestbook'),jdecode(''),'/128473/128474.html','true',[],'']
	],''],
	['PAGE','168345',jdecode('Links+Page'),jdecode(''),'/168345.html','true',[],''],
	['PAGE','5211',jdecode('Contact+Us'),jdecode(''),'/5211.html','true',[],''],
	['PAGE','357194',jdecode('Sitemap'),jdecode(''),'/357194.html','true',[],'']];
var siteelementCount=77;
theSitetree.topTemplateName='Speed';
					                                                                    
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 */					                                                            
