/* [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','11',jdecode('Home'),jdecode(''),'/11.html','true',[],''],
	['PAGE','41',jdecode('Estudios+de+mercado'),jdecode(''),'/41.html','true',[],''],
	['PAGE','77',jdecode('Cont%C3%A1ctenos'),jdecode(''),'/77/index.html','true',[ 
		['PAGE','1671',jdecode('Cont%C3%A1ctenos+%28follow+up+page%29'),jdecode(''),'/77/1671.html','false',[],'']
	],''],
	['PAGE','95',jdecode('Servicios+Retelur'),jdecode(''),'/95.html','true',[],''],
	['PAGE','113',jdecode('Bolsa+de+trabajo'),jdecode(''),'/113/index.html','true',[ 
		['PAGE','1609',jdecode('Bolsa+de+trabajo+%28follow+up+page%29'),jdecode(''),'/113/1609.html','false',[],'']
	],''],
	['PAGE','1182',jdecode('Enlaces+recomendados'),jdecode(''),'/1182.html','true',[],''],
	['PAGE','24911',jdecode('Mapa+de+acceso'),jdecode(''),'/24911.html','true',[],''],
	['PAGE','35811',jdecode('Retelur+Media'),jdecode(''),'/35811.html','true',[],''],
	['PAGE','39111',jdecode('Mundoofertas.com'),jdecode(''),'/39111.html','true',[],'']];
var siteelementCount=11;
theSitetree.topTemplateName='Speed';
theSitetree.paletteFamily='3F751D';
theSitetree.keyvisualId='2322';
theSitetree.keyvisualName='digital2.jpg';
theSitetree.fontsetId='373';
theSitetree.graphicsetId='425';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='3F751D';
var theTemplate={
				name: 			'Speed',
				paletteFamily: 	'3F751D',
				keyvisualId: 	'2322',
				keyvisualName: 	'digital2.jpg',
				fontsetId: 		'373',
				graphicsetId: 	'425',
				contentColor: 	'FFFFFF',
				contentBGColor: '3F751D',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'3F751D',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '11',
internalId:  '1006',
customField: '1006'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '113',
internalId:  'aak010inx3so10895f2e91f',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '1609',
internalId:  'aak010inx3so10895f2e91f',
customField: 'followUp'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '77',
internalId:  'aak010inx3so10895fcb4d0',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '1671',
internalId:  'aak010inx3so10895fcb4d0',
customField: 'followUp'
};
webappMappings['2001']={
webappId:    '2001',
documentId:  '24911',
internalId:  'location',
customField: 'language:es;country:ES;isIncluded:false;'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11',
internalId:  '',
customField: '20080527-155150'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1182',
internalId:  '',
customField: '20080527-151406'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '41',
internalId:  '',
customField: '20080527-155650'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '77',
internalId:  '',
customField: '20060717-193726'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1671',
internalId:  '',
customField: '20060104-161533'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '95',
internalId:  '',
customField: '20070214-132636'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '113',
internalId:  '',
customField: '20060104-160756'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1609',
internalId:  '',
customField: '20060104-160451'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '39111',
internalId:  '',
customField: '20091021-125259'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '24911',
internalId:  '',
customField: '20061115-115130'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '35811',
internalId:  '',
customField: '20080527-152132'
};
var canonHostname = 'localhost';
var accountId     = 'AAK010INX3SO';
var companyName   = '++Consultora-incubadora+marketing+online';
var htmlTitle	  = 'Retelur+Marketing%3A+Consultora-incubadora+marketing+online.+Afiliaci%C3%B3n%2C+buscadores%2C+email%2C+e-commerce%2C+tiendas+online%2C+redes+sociales%2C+....';
var metaKeywords  = 'afiliaci%C3%B3n%2C+afiliacion%2C+marketing+resultados%2C+cpc%2C+ppc%2C+buscadores%2C+marketing+buscadores%2C+comercio+electr%C3%B3nico%2C+e-commerce%2C+venta+online%2C+redes+ventas+online%2C+marketing+online%2C+marketing+internet%2C+programas+afiliaci%C3%B3n%2C+ppv%2C+comisi%C3%B3n+venta%2C+consultor%C3%ADa%2C+consultora%2C+fnac%2C+codigobarras%2C+google';
var metaContents  = 'afiliaci%C3%B3n%2C+afiliacion%2C+marketing+resultados%2C+cpc%2C+ppc%2C+buscadores%2C+marketing+buscadores%2C+comercio+electr%C3%B3nico%2C+e-commerce%2C+venta+online%2C+redes+ventas+online%2C+marketing+online%2C+marketing+internet%2C+programas+afiliaci%C3%B3n%2C+ppv%2C+comisi%C3%B3n+venta%2C+consultora+online%2C+consultora+internet%2C+google%2C+fnac%2C+afiliados%2C+marketing+online%2C+';
					                                                                    
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 */					                                                            
