/* [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','4481',jdecode('Inicio'),jdecode(''),'/4481.html','true',[],''],
	['PAGE','108001',jdecode('Nuestro+producto'),jdecode(''),'/108001.html','true',[],''],
	['PAGE','108022',jdecode('Encimeras'),jdecode(''),'/108022/index.html','true',[ 
		['PAGE','148001',jdecode('Granito'),jdecode(''),'/108022/148001.html','true',[],''],
		['PAGE','148022',jdecode('Silestone'),jdecode(''),'/108022/148022.html','true',[],''],
		['PAGE','148043',jdecode('Quartz+Compac'),jdecode(''),'/108022/148043.html','true',[],''],
		['PAGE','148064',jdecode('Quarella'),jdecode(''),'/108022/148064.html','true',[],'']
	],''],
	['PAGE','108043',jdecode('Mesas+y+sillas'),jdecode(''),'/108043/index.html','true',[ 
		['PAGE','148085',jdecode('Costaazul'),jdecode(''),'/108043/148085.html','true',[],''],
		['PAGE','173101',jdecode('Moblib%C3%A9rica'),jdecode(''),'/108043/173101.html','true',[],'']
	],''],
	['PAGE','17803',jdecode('LIQUIDACI%C3%93N+EXPOSICIONES'),jdecode(''),'/17803.html','true',[],''],
	['PAGE','7103',jdecode('Contactemos'),jdecode(''),'/7103/index.html','true',[ 
		['PAGE','79302',jdecode('Contactemos+%28follow+up+page%29'),jdecode(''),'/7103/79302.html','false',[],''],
		['PAGE','7502',jdecode('Contactemos+%28follow+up+page%29'),jdecode(''),'/7103/7502.html','false',[],'']
	],'']];
var siteelementCount=14;
theSitetree.topTemplateName='NewYork';
theSitetree.paletteFamily='FFCC33';
theSitetree.keyvisualId='1014';
theSitetree.keyvisualName='kueche.jpg';
theSitetree.fontsetId='166';
theSitetree.graphicsetId='199';
theSitetree.contentColor='000066';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'NewYork',
				paletteFamily: 	'FFCC33',
				keyvisualId: 	'1014',
				keyvisualName: 	'kueche.jpg',
				fontsetId: 		'166',
				graphicsetId: 	'199',
				contentColor: 	'000066',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000066',
				b_color: 		'FFCC33',
				c_color: 		'000000',
				d_color: 		'406BC0',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1001']={
webappId:    '1001',
documentId:  '7103',
internalId:  'aam010in3fe110a08444499',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '7502',
internalId:  'aam010in3fe110a08444499',
customField: 'followUp'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4481',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '4481',
internalId:  '7429064',
customField: '1501'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4481',
internalId:  '',
customField: '20091103-105958'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17803',
internalId:  '',
customField: '20100519-195414'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '148001',
internalId:  '',
customField: '20091029-123455'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '173101',
internalId:  '',
customField: '20091030-191050'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '108022',
internalId:  '',
customField: '20100408-180224'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '108043',
internalId:  '',
customField: '20100408-175807'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '148085',
internalId:  '',
customField: '20090928-134047'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '108001',
internalId:  '',
customField: '20100408-181000'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7103',
internalId:  '',
customField: '20091103-110232'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '79302',
internalId:  '',
customField: '20061121-212206'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7502',
internalId:  '',
customField: '20060317-135312'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '148022',
internalId:  '',
customField: '20091029-134740'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '148043',
internalId:  '',
customField: '20091029-202238'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '148064',
internalId:  '',
customField: '20090914-123908'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010IN3FE1';
var companyName   = 'Villaverde';
var htmlTitle	  = 'Master+Kitchen+Villaverde.+Dise%C3%B1o+en+muebles+de+cocina.';
var metaKeywords  = 'Cadena+Master+Electrodomesticos%2C+Master+Kitchen%2C+Master+cocinas%2C+cocinas%2C+muebles+de+cocina%2C+lavadoras%2C+cocinas%2C+vitroceramicas%2C+hornos+independientes%2C+hornos+polivalentes%2C+hornos+piroliticos%2C+secadoras%2C+campanas%2C+chimeneas%2C+frigorificos%2C+congelador+vertical%2C+congelador+horizontal%2C+cocinas+a+gas%2C+cristalgas%2C+bodeguero%2C+aeg%2C+amana%2C+ariston%2C+aspes%2C+balay%2C+bosch%2C+candy%2C+cointra%2C+corbero%2C+crolls%2C+de+dietrich%2C+edesa%2C+electrolux%2C+fagor%2C+hoover%2C+iberna%2C+ignis%2C+philips%2C+imperial%2C+indesit%2C+kelvinator%2C+franke%2C+liebherr%2C+lynx%2C+miele%2C+neff%2C+newpol%2C+otsein%2C+siemens%2C+superser%2C+teka%2C+tornado%2C+white+westinghouse%2C+whirlpool%2C+zanussi%2C+aquastil%2C+blanco%2C+metasola%2C+mobliberica%2C+silestone%2C+encimeras%2C+fregadero%2C+granito%2C+marmol%2C+';
var metaContents  = 'Empresa+ubicada+en+Madrid+y+especializada+en+el+dise%EF%BF%BDo+de+muebles+de+cocina%2C+suministro+e+instalaci%EF%BF%BDn+de+muebles+de+cocina%2C+y+venta+de+electrdom%EF%BF%BDsticos.+Pertenecemos+a+la+cadena+Master+electrodomesticos.';
					                                                                    
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 */					                                                            
