/* [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','1506',jdecode('Home'),jdecode(''),'/1506.html','true',[],''],
	['PAGE','1563',jdecode('Mensaje+de+bienvenida'),jdecode(''),'/1563.html','true',[],''],
	['PAGE','20029',jdecode('Libros'),jdecode(''),'/20029/index.html','true',[ 
		['PAGE','20628',jdecode('Prosperidad'),jdecode(''),'/20029/20628.html','true',[],''],
		['PAGE','20637',jdecode('Viaje+hacia+fe'),jdecode(''),'/20029/20637.html','true',[],''],
		['PAGE','20646',jdecode('Autoestima'),jdecode(''),'/20029/20646.html','true',[],''],
		['PAGE','20655',jdecode('Ley+de+la+atracci%C3%B3n'),jdecode(''),'/20029/20655.html','true',[],'']
	],''],
	['PAGE','1590',jdecode('Articulos+gratis'),jdecode(''),'/1590/index.html','true',[ 
		['PAGE','1725',jdecode('C%C3%B3mo+salir+de+deudas'),jdecode(''),'/1590/1725.html','true',[],''],
		['PAGE','1698',jdecode('Gastando+-+por+%2B'),jdecode(''),'/1590/1698.html','true',[],''],
		['PAGE','1779',jdecode('Crea+lazos+con+tus+posesiones'),jdecode(''),'/1590/1779.html','true',[],''],
		['PAGE','20038',jdecode('Los+chakras+y+la+prosperidad'),jdecode(''),'/1590/20038.html','true',[],''],
		['PAGE','20047',jdecode('Atraer+%2B+clientes+a+tu+campo+magn%C3%A9tico'),jdecode(''),'/1590/20047.html','true',[],''],
		['PAGE','20056',jdecode('Juego+de+prosperidad+a+la+inversa'),jdecode(''),'/1590/20056.html','true',[],''],
		['PAGE','20065',jdecode('Sincronicidades'),jdecode(''),'/1590/20065.html','true',[],''],
		['PAGE','20074',jdecode('Abrir+el+coraz%C3%B3n+para+recibir+prosperidad'),jdecode(''),'/1590/20074.html','true',[],''],
		['PAGE','20083',jdecode('%C2%BFEstas+repitiendo+tu+pasado%3F'),jdecode(''),'/1590/20083.html','true',[],'']
	],''],
	['PAGE','20092',jdecode('P.+A.+T.+%28programa+atrayendo+prosperidad%29'),jdecode(''),'/20092.html','true',[],''],
	['PAGE','17130',jdecode('Blog'),jdecode(''),'/17130.html','true',[],''],
	['PAGE','20900',jdecode('Tienda+virtual'),jdecode(''),'/20900.html','true',[],'']];
var siteelementCount=20;
theSitetree.topTemplateName='Collage';
theSitetree.paletteFamily='D43A3A';
theSitetree.keyvisualId='2453';
theSitetree.keyvisualName='garten.jpg';
theSitetree.fontsetId='403';
theSitetree.graphicsetId='460';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Collage',
				paletteFamily: 	'D43A3A',
				keyvisualId: 	'2453',
				keyvisualName: 	'garten.jpg',
				fontsetId: 		'403',
				graphicsetId: 	'460',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'FFFFFF',
				b_color: 		'D43A3A',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '1506',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '1506',
internalId:  '50173',
customField: '1501'
};
var canonHostname = '199.237.213.2';
var accountId     = 'AVEC10INXSZ3';
var companyName   = '%22La+prosperidad+es+un+resultado%22';
var htmlTitle	  = 'Atraccion-Prosperidad';
var metaKeywords  = 'la+ley+de+la+atraccion';
var metaContents  = 'prosperidad+y+la+ley+de+la+atraccion+';
					                                                                    
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 */					                                                            
