/* [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','401',jdecode('INICIO+-+Home'),jdecode(''),'/401.html','true',[],''],
	['PAGE','232222',jdecode('Qui%C3%A9nes+Somos'),jdecode(''),'/232222.html','true',[],''],
	['PAGE','282801',jdecode('Descarga+de+Cat%C3%A1logos'),jdecode(''),'/282801.html','true',[],''],
	['PAGE','434401',jdecode('Nuestros+ART%C3%8DCULOS'),jdecode(''),'/434401.html','true',[],''],
	['PAGE','457601',jdecode('Perlas+Cultivadas'),jdecode(''),'/457601.html','true',[],''],
	['PAGE','5727',jdecode('Coral+Japon%C3%A9s+y+Otros+'),jdecode(''),'/5727.html','true',[],''],
	['PAGE','381722',jdecode('Turquesa+Natural+y+Rec.'),jdecode(''),'/381722.html','true',[],''],
	['PAGE','51801',jdecode('Camafeos'),jdecode(''),'/51801.html','true',[],''],
	['PAGE','456001',jdecode('Cierres+para+Collar'),jdecode(''),'/456001.html','true',[],''],
	['PAGE','432501',jdecode('Nuestras+CREACIONES'),jdecode(''),'/432501.html','true',[],''],
	['PAGE','306901',jdecode('Engarces+y+Arreglos'),jdecode(''),'/306901.html','true',[],''],
	['PAGE','381701',jdecode('Sobre+las+PERLAS'),jdecode(''),'/381701.html','true',[],''],
	['PAGE','459001',jdecode('Bolsa+de+Trabajo'),jdecode(''),'/459001.html','true',[],''],
	['PAGE','61901',jdecode('CONTACTAR+'),jdecode(''),'/61901.html','true',[],'']];
var siteelementCount=14;
theSitetree.topTemplateName='Polo';
theSitetree.paletteFamily='5966A9';
theSitetree.keyvisualId='7517';
theSitetree.keyvisualName='kv_7517.jpg';
theSitetree.fontsetId='16555';
theSitetree.graphicsetId='12187';
theSitetree.contentColor='6A6A6A';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Polo',
				paletteFamily: 	'5966A9',
				keyvisualId: 	'7517',
				keyvisualName: 	'kv_7517.jpg',
				fontsetId: 		'16555',
				graphicsetId: 	'12187',
				contentColor: 	'6A6A6A',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '61901',
internalId:  '56797',
customField: 'es:ES:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '432501',
internalId:  '',
customField: '20100210-210106'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20100215-153429'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '381722',
internalId:  '',
customField: '20100210-205831'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '381701',
internalId:  '',
customField: '20100210-210211'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5727',
internalId:  '',
customField: '20100210-205744'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '51801',
internalId:  '',
customField: '20100210-205943'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '61901',
internalId:  '',
customField: '20091119-133903'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '306901',
internalId:  '',
customField: '20100118-212454'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '282801',
internalId:  '',
customField: '20091119-133745'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '456001',
internalId:  '',
customField: '20100210-210027'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '457601',
internalId:  '',
customField: '20100210-205628'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '459001',
internalId:  '',
customField: '20100211-201705'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '459001',
internalId:  '1231893',
customField: 'es:ES:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '232222',
internalId:  '',
customField: '20100210-203024'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '434401',
internalId:  '',
customField: '20100210-203456'
};
var canonHostname = 'localhost';
var accountId     = 'AAK020INXFUB';
var companyName   = 'Tel.+%28%2B34%29+957+271510++-++Fax+%28%2B34%29+957+401492';
var htmlTitle	  = 'Perlasur%2C+S.L.+-+Materias+Primas+para+Joyer%C3%ADa+y+Bisuter%C3%ADa';
var metaKeywords  = 'Perlas%2C+Perlas+Cultivadas%2C+Collar+de+Perlas%2C+Comprar+Perlas%2C+Joyer%C3%ADa%2C+Promociones%2C+Coral%2C+Turquesa%2C+Joyas%2C+Plata%2C+Regalo';
var metaContents  = '';
					                                                                    
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 */					                                                            
