/* [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','601',jdecode('VENDAS+ON+LINE'),jdecode(''),'/601.html','true',[],''],
	['PAGE','14101',jdecode('AMIL+SA%C3%9ADE'),jdecode(''),'/14101/index.html','true',[ 
		['PAGE','11601',jdecode('Planos+Indiv%2FFam'),jdecode(''),'/14101/11601.html','true',[],''],
		['PAGE','11643',jdecode('Planos+Empresariais'),jdecode(''),'/14101/11643.html','true',[],''],
		['PAGE','13501',jdecode('Planos+em+Grupo'),jdecode(''),'/14101/13501.html','true',[],'']
	],''],
	['PAGE','13522',jdecode('AMIL+DENTAL'),jdecode(''),'/13522/index.html','true',[ 
		['PAGE','13543',jdecode('Planos+Indiv+%2F+Fam'),jdecode(''),'/13522/13543.html','true',[],''],
		['PAGE','13564',jdecode('Planos++Empresariais'),jdecode(''),'/13522/13564.html','true',[],'']
	],''],
	['PAGE','13101',jdecode('GUIA+M%C3%89DICO'),jdecode(''),'/13101.html','true',[],''],
	['PAGE','13122',jdecode('GLOSS%C3%81RIO'),jdecode(''),'/13122.html','true',[],''],
	['PAGE','35701',jdecode('CLIENTES+AMIL'),jdecode(''),'/35701.html','true',[],''],
	['PAGE','13143',jdecode('Cota%C3%A7%C3%A3o+via+email'),jdecode(''),'/13143.html','true',[],'']];
var siteelementCount=12;
theSitetree.topTemplateName='Trend';
theSitetree.paletteFamily='3F70CF';
theSitetree.keyvisualId='7929';
theSitetree.keyvisualName='kv_7929.jpg';
theSitetree.fontsetId='16911';
theSitetree.graphicsetId='12323';
theSitetree.contentColor='163D88';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'true',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'false',
				name: 			'Trend',
				paletteFamily: 	'3F70CF',
				keyvisualId: 	'7929',
				keyvisualName: 	'kv_7929.jpg',
				fontsetId: 		'16911',
				graphicsetId: 	'12323',
				contentColor: 	'163D88',
				contentBGColor: 'FFFFFF',
				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['1008']={
webappId:    '1008',
documentId:  '13143',
internalId:  '3282459',
customField: 'pt:BR:'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '601',
internalId:  '1006',
customField: '1006'
};
var canonHostname = 'diywk00.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10IN3WEO';
var companyName   = 'PRODUTOS+AMIL%3A+Nacional%2C+Blue%2C+Dix+Sa%C3%BAde';
var htmlTitle	  = 'amil+vendas+curitiba+ligue+3079-4242+ou+9157-7730+o+adicione+msn+planos+individuais%2Cfamiliares+e+empresariais+coretor+on+line';
var metaKeywords  = 'amil+%2C+clinihauer%2C+dix+saude+em+curitiba++%2Cplanos%2C+planos+individuaus%2C+planos+de+saude+curitiba+vendas%2C+curitiba%2C++amil+20%2C+plano%2C+de+saude%2C++%2C+msn%2C+emergencias%2C+medicos+amil+%2C+credenciados%2C+amil%2C+credenciados+amil%2C+amil+em+curitiba++laboratorios%2C+amil+20%2C+amil+30%2C+amil+40%2C+Laborat%C3%B3rio%2C+domiciliar%2C+++hospitais+em+curitiba%2Cexaes%2Cressonancia%2Cfisioterapia%2Ccirurgiaspequeno+principe%2C+cajuru%2C+vita%2C+BR+116%2C+cota%C3%A7%C3%A3o%2C+on+line%2C+all%2C+cross%2C+all+cross%2C+hospital+cruz+vermelha%2C+hospital+Santa+Cruz%2C+Branca+de+neve%2CLaborat%C3%B3rios+Frischaman+Aisengart%2C+Hospital+Vita%2C+Atendimento+Domiciliar%2C+Amil+20%2C+Vendas%2C+Corretor%2C+Vendedor%2C+';
var metaContents  = 'amil+vends+curitiba++Fa%C3%A7o+consultorias+de+v%C3%A1rias+operadoras+de+Curitiba+%2C+como++Unimed%2C+Clinipam%2C+Clinipan%2C+aaug+%2CClinihauer%2C+amiPlanos+Individuais%2C+planos+Empresariais%2C+Planos+familiares++Solicite+cota%C3%A7%C3%A3o%2C+n%C3%A3o+perca+tempo+por+ai%2C+Ligue+%2F3079-4242%2F3229-7464+++MURICY+1019+%2F+91577730%2Fmsn%3A+amilvendascuritiba%40hotmail.com+++Cota%C3%A7%C3%A3o+online.melhores+hospitais%2C+clinicas%2Claboratorios+';
					                                                                    
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 */					                                                            
