/* [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','4528',jdecode('Automoviles'),jdecode(''),'/4528.html','true',[],''],
	['PAGE','6205',jdecode('Beb%E9+y+Maternidad'),jdecode(''),'/6205.html','true',[],''],
	['PAGE','29658',jdecode('Cabinas+Telef%F3nicas'),jdecode(''),'/29658.html','true',[],''],
	['PAGE','6178',jdecode('Caf%E9+Internet'),jdecode(''),'/6178.html','true',[],''],
	['PAGE','6286',jdecode('Carreras+Universitarias'),jdecode(''),'/6286.html','true',[],''],
	['PAGE','6367',jdecode('Centros+Comerciales'),jdecode(''),'/6367.html','true',[],''],
	['PAGE','24421',jdecode('Computadores+y+Accesorios'),jdecode(''),'/24421.html','true',[],''],
	['PAGE','25003',jdecode('Deportes'),jdecode(''),'/25003.html','true',[],''],
	['PAGE','29685',jdecode('Educaci%F3n'),jdecode(''),'/29685.html','true',[],''],
	['PAGE','29712',jdecode('Entretenimiento'),jdecode(''),'/29712.html','true',[],''],
	['PAGE','29739',jdecode('Finanzas'),jdecode(''),'/29739.html','true',[],''],
	['PAGE','29766',jdecode('Flores%2C+regalos%2C+fiestas'),jdecode(''),'/29766.html','true',[],''],
	['PAGE','29793',jdecode('Gastronom%EDa+y+Cocina'),jdecode(''),'/29793.html','true',[],''],
	['PAGE','29820',jdecode('Hogar+y+Jard%EDn'),jdecode(''),'/29820.html','true',[],''],
	['PAGE','29847',jdecode('Joyer%EDa'),jdecode(''),'/29847.html','true',[],''],
	['PAGE','29874',jdecode('Juguetes'),jdecode(''),'/29874.html','true',[],''],
	['PAGE','29901',jdecode('Libros+y+Revistas'),jdecode(''),'/29901.html','true',[],''],
	['PAGE','29928',jdecode('Oficina'),jdecode(''),'/29928.html','true',[],''],
	['PAGE','6259',jdecode('Restaurantes'),jdecode(''),'/6259.html','true',[],''],
	['PAGE','29955',jdecode('Ropa%2C+Zapatos%2C+Accesorios'),jdecode(''),'/29955.html','true',[],''],
	['PAGE','29982',jdecode('Salud'),jdecode(''),'/29982.html','true',[],''],
	['PAGE','30009',jdecode('Seguros'),jdecode(''),'/30009.html','true',[],''],
	['PAGE','30036',jdecode('Servicios'),jdecode(''),'/30036.html','true',[],''],
	['PAGE','30063',jdecode('Viajes'),jdecode(''),'/30063.html','true',[],'']];
var siteelementCount=24;
theSitetree.topTemplateName='Pain';
					                                                                    
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 */					                                                            
