/* [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','4556',jdecode('Home'),jdecode(''),'/4556.html','true',[],''],
	['PAGE','9065',jdecode('Apresenta%C3%A7%C3%A3o'),jdecode(''),'/9065.html','true',[],''],
	['PAGE','24021',jdecode('Contactos+%2F+Contact'),jdecode(''),'/24021.html','true',[],''],
	['PAGE','24048',jdecode('Pedido+Informa%C3%A7%C3%B5es'),jdecode(''),'/24048.html','true',[],''],
	['PAGE','80503',jdecode('ASTRAIA+SOFTWARE'),jdecode(''),'/80503/index.html','true',[ 
		['PAGE','80530',jdecode('Modulo+Pr%C3%A9-Natal'),jdecode(''),'/80503/80530.html','true',[],''],
		['PAGE','80557',jdecode('Modulo+Ginecologia'),jdecode(''),'/80503/80557.html','true',[],''],
		['PAGE','80584',jdecode('Modulo+Colposcopia'),jdecode(''),'/80503/80584.html','true',[],''],
		['PAGE','80611',jdecode('M%C3%B3dulo+Cardio-Fetal'),jdecode(''),'/80503/80611.html','true',[],''],
		['PAGE','80638',jdecode('M%C3%B3dulo+Mama'),jdecode(''),'/80503/80638.html','true',[],''],
		['PAGE','86901',jdecode('Calculo+do+Risco'),jdecode(''),'/80503/86901.html','true',[],''],
		['PAGE','84805',jdecode('Impress%C3%A3o+Relat%C3%B3rios'),jdecode(''),'/80503/84805.html','true',[],''],
		['PAGE','84832',jdecode('Agenda'),jdecode(''),'/80503/84832.html','true',[],''],
		['PAGE','86922',jdecode('Dicom%2CImagens-Dados'),jdecode(''),'/80503/86922.html','true',[],''],
		['PAGE','80665',jdecode('Hardware'),jdecode(''),'/80503/80665.html','true',[],''],
		['PAGE','80692',jdecode('Not%C3%ADcias'),jdecode(''),'/80503/80692.html','true',[],'']
	],''],
	['PAGE','24075',jdecode('ECOGRAFIA+%2F+US+Equip.'),jdecode(''),'/24075.html','true',[],''],
	['PAGE','24183',jdecode('SONY+MEDICAL'),jdecode(''),'/24183/index.html','true',[ 
		['PAGE','73648',jdecode('Video+Printers+P%2FB'),jdecode(''),'/24183/73648.html','true',[],''],
		['PAGE','80881',jdecode('Video+Printers+Cores'),jdecode(''),'/24183/80881.html','true',[],''],
		['PAGE','80962',jdecode('Impressoras+DICOM'),jdecode(''),'/24183/80962.html','true',[],''],
		['PAGE','80989',jdecode('Papel+Termico+P%2FB'),jdecode(''),'/24183/80989.html','true',[],''],
		['PAGE','81016',jdecode('Papel+Termico+Cores'),jdecode(''),'/24183/81016.html','true',[],''],
		['PAGE','125312',jdecode('Blue+thermal+Film+%28Dicom%29'),jdecode(''),'/24183/125312.html','true',[],''],
		['PAGE','80908',jdecode('Monitores+MD'),jdecode(''),'/24183/80908.html','true',[],''],
		['PAGE','80935',jdecode('Gravadores+DVD+Pro'),jdecode(''),'/24183/80935.html','true',[],''],
		['PAGE','125333',jdecode('Medical+Cameras'),jdecode(''),'/24183/125333.html','true',[],'']
	],''],
	['PAGE','24102',jdecode('OBSTETRICIA'),jdecode(''),'/24102/index.html','true',[ 
		['PAGE','80746',jdecode('Doppler+Fetal'),jdecode(''),'/24102/80746.html','true',[],''],
		['PAGE','80773',jdecode('Monitor+Fetal'),jdecode(''),'/24102/80773.html','true',[],'']
	],''],
	['PAGE','24129',jdecode('GINECOLOGIA'),jdecode(''),'/24129/index.html','true',[ 
		['PAGE','80800',jdecode('Colposcopia'),jdecode(''),'/24129/80800.html','true',[],''],
		['PAGE','80827',jdecode('Crio-Cirurgia'),jdecode(''),'/24129/80827.html','true',[],''],
		['PAGE','80854',jdecode('Electro-Cirurgia'),jdecode(''),'/24129/80854.html','true',[],'']
	],''],
	['PAGE','100222',jdecode('CARDIOLOGIA'),jdecode(''),'/100222/index.html','true',[ 
		['PAGE','100201',jdecode('PD+medical'),jdecode(''),'/100222/100201.html','true',[],''],
		['PAGE','100243',jdecode('Monitores+Multiparametros'),jdecode(''),'/100222/100243.html','true',[],''],
		['PAGE','100264',jdecode('Electrocard%C3%ADografos'),jdecode(''),'/100222/100264.html','true',[],'']
	],''],
	['PAGE','24210',jdecode('Assist%C3%AAncia+T%C3%A9cnica'),jdecode(''),'/24210.html','true',[],'']];
var siteelementCount=39;
theSitetree.topTemplateName='Profile';
theSitetree.paletteFamily='336699';
theSitetree.keyvisualId='1279';
theSitetree.keyvisualName='dose.jpg';
theSitetree.fontsetId='191';
theSitetree.graphicsetId='230';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Profile',
				paletteFamily: 	'336699',
				keyvisualId: 	'1279',
				keyvisualName: 	'dose.jpg',
				fontsetId: 		'191',
				graphicsetId: 	'230',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'336699',
				b_color: 		'336699',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1008']={
webappId:    '1008',
documentId:  '24048',
internalId:  '11991608',
customField: 'pt:PT:'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '80503',
internalId:  '11994109',
customField: 'pt:PT:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4556',
internalId:  '',
customField: '20080422-002725'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9065',
internalId:  '',
customField: '20080415-040725'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '24021',
internalId:  '',
customField: '20090419-221340'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '24048',
internalId:  '',
customField: '20080411-010809'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '80611',
internalId:  '',
customField: '20080411-032151'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '80503',
internalId:  '',
customField: '20090419-220243'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '80530',
internalId:  '',
customField: '20071104-011830'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '80557',
internalId:  '',
customField: '20080411-031803'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '84805',
internalId:  '',
customField: '20080411-032743'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '84832',
internalId:  '',
customField: '20080411-041225'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '80665',
internalId:  '',
customField: '20080416-012021'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '80692',
internalId:  '',
customField: '20070207-125039'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '24075',
internalId:  '',
customField: '20080416-011731'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '24183',
internalId:  '',
customField: '20080520-020757'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '24210',
internalId:  '',
customField: '20090419-221724'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '80935',
internalId:  '',
customField: '20080520-025201'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '80584',
internalId:  '',
customField: '20080411-023051'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '80638',
internalId:  '',
customField: '20080411-025356'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '86901',
internalId:  '',
customField: '20080411-041150'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '86922',
internalId:  '',
customField: '20080417-014456'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '24102',
internalId:  '',
customField: '20080331-014221'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '73648',
internalId:  '',
customField: '20080520-022834'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '80881',
internalId:  '',
customField: '20080520-022516'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '80908',
internalId:  '',
customField: '20080520-024245'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '81016',
internalId:  '',
customField: '20070207-125040'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '24129',
internalId:  '',
customField: '20060306-000633'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '80800',
internalId:  '',
customField: '20070207-125039'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '80746',
internalId:  '',
customField: '20070207-125039'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '80773',
internalId:  '',
customField: '20070207-125039'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '125333',
internalId:  '',
customField: '20080520-020643'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '125312',
internalId:  '',
customField: '20080520-020643'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '4556',
internalId:  '6933876',
customField: '1501'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '80827',
internalId:  '',
customField: '20070207-125039'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '80854',
internalId:  '',
customField: '20070207-125039'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '80962',
internalId:  '',
customField: '20080520-022349'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '80989',
internalId:  '',
customField: '20070207-125039'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '100201',
internalId:  '',
customField: '20080408-140750'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '100222',
internalId:  '',
customField: '20080401-203034'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '100243',
internalId:  '',
customField: '20080401-203034'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '100264',
internalId:  '',
customField: '20080401-203034'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4556',
internalId:  '1006',
customField: '1006'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '24210',
internalId:  '11991565',
customField: 'pt:PT:'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INE9TI';
var companyName   = 'AstriMed-Inform%C3%A1tica+e+Tecnologia+M%C3%A9dica';
var htmlTitle	  = '..++AstriMed+-+Inform%C3%A1tica+e+Tecnologia+M%C3%A9dica%2C+Lda.';
var metaKeywords  = 'ecografia+ecografo+ecografos+ecocardiografo+sondas+sonda+aloka+sonoscape+mindray+edam+preservativos+gel+ecogel+echogel+ultrasons+sony+monitores+printers+video+registo+imagem+papel+termico+astraia+obstetricia+ginecologia+base+dados+colposcopia+ecocardiografia+fetal+dicom+monitor+fetal+doppler+wallach+crio-cirurgia+consumiveis+electro-cirurgia+colposcopios+colposcopio+marquesas+ginecologicas+urologia+urovision+contratos+assist%C3%AAncia+manuten%C3%A7%C3%A3o+marquesa+pin%C3%A7as++ssd+ssi+ust+';
var metaContents  = 'ecografia%2C+ecografo%2C+ecografos%2C+ecocardiografo%2C+sondas%2C+sonda%2C+aloka%2C+sonoscape%2C+mindray%2C+edam%2C+preservativos%2C+gel%2C+ecogel%2C+echogel%2C+ultrasons%2C+sony%2C+monitores%2C+printers%2C+video%2C+registo%2C+imagem%2C+papel%2C+termico%2C+astraia%2C+obstetricia%2C+ginecologia%2C+base%2C+dados%2C+colposcopia%2C+ecocardiografia%2C+fetal%2C+dicom%2C+monitor%2C+fetal%2C+doppler%2C+wallach%2C+criocirurgia%2C+consumiveis%2C+electrocirurgia%2C+colposcopios%2C+colposcopio%2C+marquesas%2C+ginecologicas%2C+urologia%2C+urovision%2C+contratos%2C+assist%C3%AAncia%2C+manuten%C3%A7%C3%A3o%2C+marquesa%2C+pin%C3%A7as%2C+ssd%2C+ssi%2C+ust+';
					                                                                    
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 */					                                                            
