/* [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','457601',jdecode('Perlas+Cultivadas'),jdecode(''),'/457601/index.html','true',[ 
		['PAGE','381701',jdecode('Sobre+las+Perlas'),jdecode(''),'/457601/381701.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','306901',jdecode('Engarces+%2F+Arreglos'),jdecode(''),'/306901.html','true',[],''],
	['PAGE','468501',jdecode('Bisuter%C3%ADa+artesanal+'),jdecode(''),'/468501.html','true',[],''],
	['PAGE','61901',jdecode('Contactar'),jdecode(''),'/61901.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Groove';
theSitetree.paletteFamily='B6B3B8';
theSitetree.keyvisualId='6007';
theSitetree.keyvisualName='kv_6007.jpg';
theSitetree.fontsetId='11126';
theSitetree.graphicsetId='11916';
theSitetree.contentColor='5F5F60';
theSitetree.contentBGColor='E4E4E6';
var theTemplate={
				name: 			'Groove',
				paletteFamily: 	'B6B3B8',
				keyvisualId: 	'6007',
				keyvisualName: 	'kv_6007.jpg',
				fontsetId: 		'11126',
				graphicsetId: 	'11916',
				contentColor: 	'5F5F60',
				contentBGColor: 'E4E4E6',
				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:  '401',
internalId:  '',
customField: '20100715-201402'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '381722',
internalId:  '',
customField: '20100623-140700'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '381701',
internalId:  '',
customField: '20100623-135402'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5727',
internalId:  '',
customField: '20100707-160519'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '51801',
internalId:  '',
customField: '20100414-192129'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '61901',
internalId:  '',
customField: '20100618-235736'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '306901',
internalId:  '',
customField: '20100706-192539'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '457601',
internalId:  '',
customField: '20100706-191239'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '401',
internalId:  '19501',
customField: '1501'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '468501',
internalId:  '',
customField: '20100707-160023'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '232222',
internalId:  '',
customField: '20100715-201541'
};
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+Creaci%C3%B3n+de+Joyer%C3%ADa%2C+Bisuter%C3%ADa+y+Complementos';
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  = 'Perlas+cultivadas%2C+Coral';
					                                                                    
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 */					                                                            
