/* [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('HOME'),jdecode(''),'/4599.html','true',[],''],
	['PAGE','4903',jdecode('QUEM+SOMOS'),jdecode(''),'/4903.html','true',[],''],
	['PAGE','5011',jdecode('CEMIT%C3%89RIOS'),jdecode(''),'/5011.html','true',[],''],
	['PAGE','4930',jdecode('O+QUE+PROPOMOS'),jdecode(''),'/4930.html','true',[],''],
	['PAGE','4957',jdecode('O+QUE+J%C3%81+FIZEMOS'),jdecode(''),'/4957.html','true',[],''],
	['PAGE','4984',jdecode('DECOMPOSI%C3%87%C3%83O+AEROBIA'),jdecode(''),'/4984.html','true',[],''],
	['PAGE','9402',jdecode('EQUIPAMENTOS+DUWE'),jdecode(''),'/9402.html','true',[],''],
	['PAGE','5038',jdecode('CREMA%C3%87%C3%83O'),jdecode(''),'/5038.html','true',[],''],
	['PAGE','5702',jdecode('EQUIPAMENTO+DE+CREMA%C3%87%C3%83O'),jdecode(''),'/5702.html','true',[],''],
	['PAGE','28203',jdecode('OUTROS+EQUIPAMENTOS+CEMITERIAIS'),jdecode(''),'/28203.html','true',[],''],
	['PAGE','26704',jdecode('EQUIPAMENTOS+CEMITERIAIS'),jdecode(''),'/26704.html','true',[],''],
	['PAGE','27603',jdecode('PROJECTOS'),jdecode(''),'/27603.html','true',[],''],
	['PAGE','27630',jdecode('O+FUTURO'),jdecode(''),'/27630.html','true',[],''],
	['PAGE','5119',jdecode('Contacto'),jdecode(''),'/5119/index.html','true',[ 
		['PAGE','7802',jdecode('Contacto+%28volgende+pagina%29'),jdecode(''),'/5119/7802.html','false',[],''],
		['PAGE','5146',jdecode('Endere%C3%A7os'),jdecode(''),'/5119/5146.html','true',[],''],
		['PAGE','5173',jdecode('Onde+estamos'),jdecode(''),'/5119/5173.html','true',[],'']
	],''],
	['PAGE','5402',jdecode('Livro+de+visitas'),jdecode(''),'/5402/index.html','true',[ 
		['PAGE','5403',jdecode('Entradas'),jdecode(''),'/5402/5403.html','true',[],'']
	],''],
	['PAGE','34801',jdecode('Blog'),jdecode(''),'/34801.html','true',[],''],
	['PAGE','40412',jdecode('Mapa+de+acesso'),jdecode(''),'/40412.html','true',[],'']];
var siteelementCount=21;
theSitetree.topTemplateName='Stylus';
theSitetree.paletteFamily='B5D3B5';
theSitetree.keyvisualId='1964';
theSitetree.keyvisualName='blumen2.jpg';
theSitetree.fontsetId='328';
theSitetree.graphicsetId='384';
theSitetree.contentColor='006633';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Stylus',
				paletteFamily: 	'B5D3B5',
				keyvisualId: 	'1964',
				keyvisualName: 	'blumen2.jpg',
				fontsetId: 		'328',
				graphicsetId: 	'384',
				contentColor: 	'006633',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'B5D3B5',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1002']={
webappId:    '1002',
documentId:  '5402',
internalId:  '5402aam010inezq6',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '5403',
internalId:  '5402aam010inezq6',
customField: 'action=list'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '4599',
internalId:  '4414972',
customField: '1501'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '5702',
internalId:  '102a1343c38',
customField: 'g.12lfmvuji.653rdsk34l3hn.6rn80'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4599',
internalId:  '1006',
customField: '1006'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '9402',
internalId:  '102b13b73c3',
customField: 'g.12lfmvul0.5qoiqu52f892a.6rn80'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '5119',
internalId:  'aam010inezq6102a717dd55',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '7802',
internalId:  'aam010inezq6102a717dd55',
customField: 'followUp'
};
webappMappings['1005']={
webappId:    '1005',
documentId:  '5038',
internalId:  '10728591a86.918d5ac4',
customField: 'pt:PT:'
};
webappMappings['1005']={
webappId:    '1005',
documentId:  '5011',
internalId:  '107285d59b6.c2d2512f',
customField: 'pt:PT:'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '26704',
internalId:  '10e9a2176b0',
customField: 'g.12lfmvulg.7p1vh3115dubu.6rn80'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4599',
internalId:  '',
customField: '20090107-174842'
};
webappMappings['3030']={
webappId:    '3030',
documentId:  '34801',
internalId:  '34801',
customField: 'language:pt;country:PT;'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '34801',
internalId:  '',
customField: '20071018-174601'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4903',
internalId:  '',
customField: '20090318-160227'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5011',
internalId:  '',
customField: '20070117-170028'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4930',
internalId:  '',
customField: '20081007-183252'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4957',
internalId:  '',
customField: '20080902-185937'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4984',
internalId:  '',
customField: '20070606-175453'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9402',
internalId:  '',
customField: '20050317-170115'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5038',
internalId:  '',
customField: '20070608-164501'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5702',
internalId:  '',
customField: '20070117-180238'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '28203',
internalId:  '',
customField: '20081007-182644'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '26704',
internalId:  '',
customField: '20061030-175054'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '27603',
internalId:  '',
customField: '20070110-155427'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '27630',
internalId:  '',
customField: '20070110-155427'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5119',
internalId:  '',
customField: '20050316-175927'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7802',
internalId:  '',
customField: '20050315-174201'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5146',
internalId:  '',
customField: '20050315-174704'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5173',
internalId:  '',
customField: '20050311-184312'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5402',
internalId:  '',
customField: '20050311-185213'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5403',
internalId:  '',
customField: '20050311-185213'
};
webappMappings['2001']={
webappId:    '2001',
documentId:  '40412',
internalId:  'location',
customField: 'language:pt;country:PT;isIncluded:false;'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '40412',
internalId:  '',
customField: '20090406-164246'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INEZQ6';
var companyName   = 'NECROPOLIS%2C+LDA';
var htmlTitle	  = 'www.necropolis.pt';
var metaKeywords  = 'crema%C3%A7%C3%A3o%2C+fornos+crematorios%2C+constru%C3%A7%C3%A3o+de+cemiterios%2C+amplia%C3%A7%C3%A3o+de+cemiterios%2C+decomposi%C3%A7%C3%A3o+aerobia%2C+sistema+duwe%2C+duwe%2C+incinera%C3%A7%C3%A3o%2C+cemiterios%2C+oss%C3%A1rios%2C+nichos%2C+sepulturas%2C+gavet%C3%B5es%2C+jazigos%2C+exuma%C3%A7%C3%B5es%2C+inuma%C3%A7%C3%B5es%2C+cemiterios%2C+fornos%2C+incineradores%2C+cemiterios+biologicos%2C+bilologicos%2C+anti-sismicos%2C+cemiterios+do+futuro';
var metaContents  = 'constru%C3%A7%C3%A3o+e+amplia%C3%A7%C3%A3o+de+cemit%C3%A9rios%2C+gest%C3%A3o+cemiterial%2C+tanatorios++constru%C3%A7%C3%A3o+cemiterial%2C+crema%C3%A7%C3%A3o%2C++incinera%C3%A7%C3%A3o%2C+decomposi%C3%A7%C3%A3o+aerobia%2C+fornos+crematorios%2C+fornos+incineradores%2C+constru%C3%A7%C3%A3o%2C+constru%C3%A7%C3%A3o+cemiterios%2C+crematorios%2C+pr%C3%A9-fabricados%2C+nichos%2C+oss%C3%A1rios%2C+sepulturas%2C+gavet%C3%B5es%2C+jazigos%2C+cemiterios+biologicos';
					                                                                    
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 */					                                                            
