/* [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','4558',jdecode('HOME+PAGE'),jdecode(''),'/4558.html','true',[],''],
	['PAGE','11303',jdecode('QUEM+SOMOS'),jdecode(''),'/11303.html','true',[],''],
	['PAGE','376627',jdecode('CONDI%C3%87%C3%95ES+DE+REGISTO'),jdecode(''),'/376627.html','true',[],''],
	['PAGE','11330',jdecode('A+MASSAGEM'),jdecode(''),'/11330/index.html','true',[ 
		['PAGE','12903',jdecode('O+que+%C3%A9'),jdecode(''),'/11330/12903.html','true',[],''],
		['PAGE','12930',jdecode('Para+que+serve'),jdecode(''),'/11330/12930.html','true',[],''],
		['PAGE','12957',jdecode('Como+se+faz'),jdecode(''),'/11330/12957.html','true',[],''],
		['PAGE','12984',jdecode('Cuidados+a+ter'),jdecode(''),'/11330/12984.html','true',[],'']
	],''],
	['PAGE','135303',jdecode('LEGISLA%C3%87%C3%83O'),jdecode(''),'/135303.html','true',[],''],
	['PAGE','161918',jdecode('C%C3%93DIGO+DE+%C3%89TICA'),jdecode(''),'/161918.html','true',[],''],
	['PAGE','11357',jdecode('TIPOLOGIA'),jdecode(''),'/11357/index.html','true',[ 
		['PAGE','13011',jdecode('Saiba+Escolher'),jdecode(''),'/11357/13011.html','true',[],'']
	],''],
	['PAGE','178718',jdecode('ASSOCIA%C3%87%C3%95ES'),jdecode(''),'/178718.html','true',[],''],
	['PAGE','74130',jdecode('TERAPEUTAS'),jdecode(''),'/74130.html','true',[],''],
	['PAGE','224716',jdecode('BENEF%C3%8DCIOS'),jdecode(''),'/224716.html','true',[],''],
	['PAGE','460027',jdecode('ESCOLAS'),jdecode(''),'/460027.html','true',[],''],
	['PAGE','82703',jdecode('FORMA%C3%87%C3%83O'),jdecode(''),'/82703.html','true',[],''],
	['PAGE','82730',jdecode('CONSULTAS+%26+TRATAMENTOS'),jdecode(''),'/82730.html','true',[],''],
	['PAGE','124303',jdecode('F%C3%93RUM+DE+DISCUSS%C3%83O'),jdecode(''),'/124303.html','true',[],''],
	['PAGE','282827',jdecode('F%C3%93RUM+MASSAGEM'),jdecode(''),'/282827.html','true',[],''],
	['PAGE','368327',jdecode('MASAGHO+-+Loja+Online'),jdecode(''),'/368327.html','true',[],''],
	['PAGE','471827',jdecode('VIVER+SA%C3%9ADE+2010'),jdecode(''),'/471827.html','true',[],''],
	['PAGE','385627',jdecode('ACREDITA%C3%87%C3%83O+WIS'),jdecode(''),'/385627.html','true',[],''],
	['PAGE','36003',jdecode('PARCERIAS'),jdecode(''),'/36003.html','true',[],''],
	['PAGE','99903',jdecode('REVISTAS'),jdecode(''),'/99903.html','true',[],''],
	['PAGE','28403',jdecode('AGENDA'),jdecode(''),'/28403.html','true',[],''],
	['PAGE','389927',jdecode('EVENTOS'),jdecode(''),'/389927.html','true',[],''],
	['PAGE','25203',jdecode('EMPREGO'),jdecode(''),'/25203.html','true',[],''],
	['PAGE','28430',jdecode('PUBLICIDADE'),jdecode(''),'/28430.html','true',[],''],
	['PAGE','190918',jdecode('DOWNLOADS'),jdecode(''),'/190918.html','true',[],''],
	['PAGE','85803',jdecode('TESTEMUNHOS'),jdecode(''),'/85803.html','true',[],''],
	['PAGE','90403',jdecode('LINKS'),jdecode(''),'/90403.html','true',[],''],
	['PAGE','29003',jdecode('AVISOS+LEGAIS'),jdecode(''),'/29003.html','true',[],''],
	['PAGE','11411',jdecode('CONTACTO'),jdecode(''),'/11411/index.html','true',[ 
		['PAGE','25602',jdecode('Contacto+%28volgende+pagina%29'),jdecode(''),'/11411/25602.html','false',[],'']
	],''],
	['PAGE','107903',jdecode('International'),jdecode(''),'/107903.html','true',[],'']];
var siteelementCount=36;
theSitetree.topTemplateName='Stylus';
theSitetree.paletteFamily='B0CBD6';
theSitetree.keyvisualId='1979';
theSitetree.keyvisualName='masage.jpg';
theSitetree.fontsetId='328';
theSitetree.graphicsetId='383';
theSitetree.contentColor='000066';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Stylus',
				paletteFamily: 	'B0CBD6',
				keyvisualId: 	'1979',
				keyvisualName: 	'masage.jpg',
				fontsetId: 		'328',
				graphicsetId: 	'383',
				contentColor: 	'000066',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'B0CBD6',
				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['1006']={
webappId:    '1006',
documentId:  '4558',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '4558',
internalId:  '2129266',
customField: '1501'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '11411',
internalId:  'aam010ine1q9ff4b7e8b09',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '25602',
internalId:  'aam010ine1q9ff4b7e8b09',
customField: 'followUp'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4558',
internalId:  '',
customField: '20100303-213548'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '82730',
internalId:  '',
customField: '20100226-191902'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '28403',
internalId:  '',
customField: '20100301-110515'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '460027',
internalId:  '',
customField: '20100219-122438'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '74130',
internalId:  '',
customField: '20100303-202756'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11303',
internalId:  '',
customField: '20091004-114539'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11330',
internalId:  '',
customField: '20080803-113500'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12903',
internalId:  '',
customField: '20080803-113906'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12930',
internalId:  '',
customField: '20051214-174514'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12957',
internalId:  '',
customField: '20080803-115746'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12984',
internalId:  '',
customField: '20080803-120115'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '135303',
internalId:  '',
customField: '20100219-191442'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '161918',
internalId:  '',
customField: '20070612-191155'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11357',
internalId:  '',
customField: '20091003-211624'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '13011',
internalId:  '',
customField: '20061224-132305'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '389927',
internalId:  '',
customField: '20091029-164810'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '385627',
internalId:  '',
customField: '20090701-212642'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '471827',
internalId:  '',
customField: '20100308-193125'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '178718',
internalId:  '',
customField: '20090924-203529'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '82703',
internalId:  '',
customField: '20100226-191048'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '124303',
internalId:  '',
customField: '20090808-115343'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '36003',
internalId:  '',
customField: '20100202-135701'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '368327',
internalId:  '',
customField: '20100109-140950'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '99903',
internalId:  '',
customField: '20100225-203338'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25203',
internalId:  '',
customField: '20100303-210056'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '28430',
internalId:  '',
customField: '20091007-003247'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '190918',
internalId:  '',
customField: '20091111-173532'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '85803',
internalId:  '',
customField: '20100222-161544'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '90403',
internalId:  '',
customField: '20100222-171933'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '29003',
internalId:  '',
customField: '20061004-185208'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11411',
internalId:  '',
customField: '20090104-141940'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25602',
internalId:  '',
customField: '20040929-204045'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '107903',
internalId:  '',
customField: '20100206-175223'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '224716',
internalId:  '',
customField: '20100218-202148'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '282827',
internalId:  '',
customField: '20100213-125200'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '376627',
internalId:  '',
customField: '20100301-131631'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INE1Q9';
var companyName   = 'connosco+est%C3%A1+em+boas+m%C3%A3os';
var htmlTitle	  = 'Portal+da+Massagem';
var metaKeywords  = 'massagem%2C+terapeutas%2C+fisioterapia%2C+massagistas%2C+auto-massagem%2C+yoga%2C+desporto%2C+marquesas%2C+cadeiras%2C+acess%C3%B3rios%2C+tipos%2C+terapias%2C+manuais';
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 */					                                                            
