/* [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','4599',jdecode('Repar+Electrodom%C3%A9sticos'),jdecode(''),'/4599/index.html','true',[ 
		['PAGE','4802',jdecode('Reparaci%C3%B3n+electrodom%C3%A9sticos+%28follow+up+page%29'),jdecode(''),'/4599/4802.html','false',[],'']
	],''],
	['PAGE','4656',jdecode('Otros+servic.+y+productos'),jdecode(''),'/4656/index.html','true',[ 
		['PAGE','5302',jdecode('Inicio+%28follow+up+page%29'),jdecode(''),'/4656/5302.html','false',[],'']
	],'']];
var siteelementCount=4;
theSitetree.topTemplateName='Moonflight';
theSitetree.paletteFamily='5B7A93';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='445';
theSitetree.graphicsetId='499';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Moonflight',
				paletteFamily: 	'5B7A93',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'445',
				graphicsetId: 	'499',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'2C5574',
				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['1001']={
webappId:    '1001',
documentId:  '4599',
internalId:  'aam010ine3ux102253a24ee',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '4802',
internalId:  'aam010ine3ux102253a24ee',
customField: 'followUp'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '4656',
internalId:  'aam010ine3ux1022547d7a1',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '5302',
internalId:  'aam010ine3ux1022547d7a1',
customField: 'followUp'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4599',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4599',
internalId:  '',
customField: '20110622-124105'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4656',
internalId:  '',
customField: '20110622-124408'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4802',
internalId:  '',
customField: '20050218-122849'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5302',
internalId:  '',
customField: '20050218-124347'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INE3UX';
var companyName   = 'Comercial+de+Especialidades+Tecnicas+Hogar+SL';
var htmlTitle	  = 'Reparaci%C3%B3n+de+electrodom%C3%A9sticos+Madrid+%28T%C3%A9cnicashogar%29';
var metaKeywords  = 'reparacion+de+electrodomesticos%2C+aeg%2C+amana%2C+balay%2C+ariston%2C+aspes%2C+bauknecht%2C+bosch%2C+candy%2C+cointra%2C+corbero%2C+crolls%2C+junkers%2C+saunier+duval%2C+de+dietrich%2C+edesa%2C+electrolux%2C+fagor%2C+hoover%2C+iberna%2C+ignis%2C+imperial%2C+indesit%2C+kelvinator%2C+liebherr%2C+lynx%2Cnewpol%2C+otsein%2C+rosieres%2C+siemens%2C+superser%2C+teka%2C+tornado%2C+white+westinghouse%2C+whirpool%2C+zanussi+yokan%2C+daikin%2C+fujitsu%2C+general%2C+mitsubishi%2C+repuestos+de+electrodom%C3%A9sticos%2C+Ferroli%2C+Vaillant';
var metaContents  = 'Empresa+ubicada+en+Madrid+y+especializada+en+la+venta%2C+reparacion%2C+e+instalacion+de+electrodomesticos+de+todas+las+marcas.+Instalacion+de+aire+acondicionado%2C+venta+de+repuestos+de+electrodomesticos%2C+Instalaci%C3%B3n%2C+venta%2C+reparaci%C3%B3n+y+mantenimiento+de+calderas+y+calentadores+a+gas%2C+el%C3%A9ctricos+o+gasoil.';
					                                                                    
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 */					                                                            

