/* [nodename, id, name, navigationtext, href, isnavigation, childs[], templatename] */

if (typeof(decodeURIComponent) == 'undefined') {
  decodeURIComponent = function(s) {
    return unescape(s);
  }
}

function jdecode(s) {
    s = s.replace(/\+/g, "%20")
    return decodeURIComponent(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 POS_TARGET=8;
var theSitetree=[ 
	['PAGE','12',jdecode('Home'),jdecode(''),'/12.html','true',[],'',''],
	['PAGE','51',jdecode('Produtos'),jdecode(''),'/51/index.html','true',[ 
		['PAGE','2070',jdecode('Profissionais'),jdecode(''),'/51/2070.html','true',[],'',''],
		['PAGE','2079',jdecode('Consumo'),jdecode(''),'/51/2079.html','true',[],'',''],
		['PAGE','2088',jdecode('Ortopedia'),jdecode(''),'/51/2088.html','true',[],'',''],
		['PAGE','2097',jdecode('Para+diab%C3%A9ticos'),jdecode(''),'/51/2097.html','true',[],'',''],
		['PAGE','2106',jdecode('Podologia'),jdecode(''),'/51/2106.html','true',[],'',''],
		['PAGE','2115',jdecode('Home-Care'),jdecode(''),'/51/2115.html','true',[],'','']
	],'',''],
	['PAGE','40301',jdecode('Novidades'),jdecode(''),'/40301.html','true',[],'',''],
	['PAGE','6702',jdecode('Promo%C3%A7%C3%B5es'),jdecode(''),'/6702.html','true',[],'',''],
	['PAGE','7075',jdecode('Fornecedores'),jdecode(''),'/7075.html','true',[],'',''],
	['PAGE','60',jdecode('Loca%C3%A7%C3%A3o'),jdecode(''),'/60.html','true',[],'',''],
	['PAGE','42',jdecode('Onde+estamos'),jdecode(''),'/42.html','true',[],'',''],
	['PAGE','69',jdecode('Informativo'),jdecode(''),'/69.html','true',[],'',''],
	['PAGE','6911',jdecode('Links+'),jdecode(''),'/6911.html','true',[],'',''],
	['PAGE','40322',jdecode('SINAM'),jdecode(''),'/40322.html','true',[],'',''],
	['PAGE','78',jdecode('Contato'),jdecode(''),'/78.html','true',[],'','']];
var siteelementCount=17;
theSitetree.topTemplateName='Stylus';
theSitetree.paletteFamily='B5D3B5';
theSitetree.keyvisualId='1989';
theSitetree.keyvisualName='stetoskop.jpg';
theSitetree.fontsetId='330';
theSitetree.graphicsetId='384';
theSitetree.contentColor='006633';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'pt',
  country: 'BR'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Stylus',
				paletteFamily: 	'B5D3B5',
				keyvisualId: 	'1989',
				keyvisualName: 	'stetoskop.jpg',
				fontsetId: 		'330',
				graphicsetId: 	'384',
				contentColor: 	'006633',
				contentBGColor: 'FFFFFF',
				a_color: 		'B5D3B5',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '12',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-1217658']={
webappId:    '1501',
documentId:  '12',
internalId:  '1217658',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69',
internalId:  '',
customField: '20100511-082826'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12',
internalId:  '',
customField: '20100511-082242'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7075',
internalId:  '',
customField: '20100413-090000'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51',
internalId:  '',
customField: '20090516-091749'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2070',
internalId:  '',
customField: '20100413-080543'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2079',
internalId:  '',
customField: '20100413-080947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2088',
internalId:  '',
customField: '20060726-082424'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2097',
internalId:  '',
customField: '20060726-085939'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2106',
internalId:  '',
customField: '20100413-081439'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2115',
internalId:  '',
customField: '20061026-114837'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40301',
internalId:  '',
customField: '20100413-084144'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6702',
internalId:  '',
customField: '20100511-082432'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60',
internalId:  '',
customField: '20080911-141058'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42',
internalId:  '',
customField: '20080927-072722'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6911',
internalId:  '',
customField: '20080911-141007'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40322',
internalId:  '',
customField: '20090516-092712'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78',
internalId:  '',
customField: '20090516-092816'
};
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10IN2XVI';
var companyName   = 'Anestec';
var htmlTitle	  = 'Anestec+-+Vendendo+Sa%C3%BAde';
var metaKeywords  = 'estetosc%C3%B3pios%2C++esfigmoman%C3%B5metros%2C++descart%C3%A1veis%2C++cadeira+de+rodas%2C++monitor+de+glicemia%2C++fralda+geri%C3%A1trica%2C++muletas%2C++len%C3%A7ol+t%C3%A9rmico%2C++pedicure+%2Cmanicure%2C++aparelhos+de+press%C3%A3o+digital+de+pulso%2C+itu%2C+salto%2C+porto+feliz%2C+cabreuva%2C+sorocaba%2C+jundia%C3%AD%2C+hospitais%2C+laborat%C3%B3rios%2C+clinicas%2C+veterin%C3%A1rio%2C+est%C3%A9tica%2C+sigvaris%2C+doctor+clean%2C+baxmann+jaguaribe%2C+bd%2C+3M%2C+chantal%2C+plascalp%2C+nathalya%2C+prestige%2C+precision%2C+mp%2C+ncs%2C+dersani%2C+saneskin%2C+sunssex%2C+geratherm%2C+mercur%2C+ns%2C+inaladores%2C+umidificadores+de+ar%2C+copespuma%2C+supermax%2C+luvas%2C+diabetes%2C+equipamentos%2C+ortopedia%2C+cirurgica%2C+curativo%2C+kolplast%2C+convatec%2C+welmy%2C+littmann%2C+solidor%2C+techline%2C+preservativos%2C+seringas%2C+agulhas%2C+nipro%2C+injex%2C+taylor%2C+carbogel%2C+descarpack%2C+fami-ita%2C+anadona%2C+miyako%2C+rioqu%C3%ADmica%2C+glicomed%2C+zedamed%2C+missouri%2C+missner%2C+cremer%2C+embramed%2C+embramac%2C+fava%2C+grandesc%2C+anestec%2C+auriflex%2C+paramount%2C+estilo%2C+diu%2C+diafragma%2C+lbs%2C+santa+luzia%2C+wariper%2C+lm%2C+salvap%C3%A9%2C+kendall%2C+tensor%2C+sara+lee%2C+doutor+coluna%2C+dr.+coluna%2C+indai%C3%A1%2C+vecan%2C+ag%2C+ortho+pauher%2C+termo+gel%2C+nevoni%2C+soniclear%2C+unitec%2C+roche%2C+active%2C+advantage%2C+accu-check%2C+ituvita%2C+macom%2C+alergoshop%2C+braspress%2C+nac%2C+semina%2C+ass%C3%A9ptico%2C+termobras%2C+medleverson%2C+cir%C3%BArgica+brasil%2C+cbs%2C+carci%2C+chase%2C+segreta%2C+consult%C3%B3rio%2C+pronto-socorro%2C+gel+antiss%C3%A9ptico%2C+sabonete+antiss%C3%A9ptico%2C+ganzoini%2C+jornal+perisc%C3%B3pio%2C+revista+aqui%2C+regional%2C+malhas+de+compress%C3%A3o%2C+lycra%2C+sankey%2C+advance+plus%2C+glutaraldeido%2C+medsense%2C+coluna%2C+indaiatuba%2C+campinas%2C+viracopos%2C++mark+of+fitness%2C+plenna%2C+bigfral%2C+mucambo%2C+preserv%2C+respiron%2C+ituano%2C+ituana%2C+kinner+med%2C+dry+man%2C+m-s%C3%B3%2C+mundial+inox%2C+esbelt%2C+med+term%2C+sterilair%2C+suavis%2C+vagispec%2C+free-bac%2C+flexor%2C+waltex%2C+coleflex%2C+mewmed%2C+lengruber%2C+cipamed%2C+sanobiol%2C+lilly%2C+optium%2C+palmilha%2C+joelheira%2C+cotoveleira%2C+tornozeleira%2C+colch%C3%A3o+perfilado%2C+respiradores%2C+ksn%2C+lixa+plantar%2C+homeomag%2C+homeocreme%2C+homeopast%2C+lm%2C+dipromed%2C+cama+hospitalar%2C+cunha%2C+encosto%2C+segreta%2C+meias+medicinais+segreta%2C+repomen%2C+calibratto%2C+collanta%2C+maeia-cal%C3%A7a%2C+meia+7%2F8%2C+panturrilha%2C+segreta%2C+pff1%2C+doctor+clean%2C+sabonete%2C+toalheiro++';
var metaContents  = 'aluguel+de+muletas%2C++aluguel+de+cadeira+de+rodas%2C++tudo+para+sa%C3%BAde%2C++produtos+para+diab%C3%A9ticos%2C+produtos+m%C3%A9dico-hospitalares%2C++estancia+turistica+de+itu%2C+prefeitura+de+itu%2C+itu-SP%2C+vendendo+sa%C3%BAde%2C+guia+saude%2C+itu%2C+medicos%2C+medicina%2C+produtos+para+sa%C3%BAde%2C+saude%2C';
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;
};

theSitetree.getByXx = function(lookup, xx, ar) {
    if (typeof(ar) == 'undefined'){
    	ar = this;
    }
    for (var i=0; i < ar.length; i++) {
        if (ar[i][xx] == lookup){
        	return ar[i];
        }
        if (ar[i][POS_CHILDS].length > 0) {
        	var result=this.getByXx(lookup, xx, ar[i][POS_CHILDS]);
            if (result != null){
                return result;
               }
        }
    }
    return null;
};

function gotoPage(lookup) {
	if(__path_prefix__ == "/servlet/CMServeRES" && typeof (changePage) == 'function'){
		changePage(lookup);
		return;
	}
	var page = theSitetree.getHREF(lookup);
	if (!page) {
		var testFor = [ POS_NAME, POS_NAVIGATIONTEXT ];
		for (var i=0 ; i < testFor.length ; i++) {
			var p = theSitetree.getByXx(lookup, testFor[i]);
			if (p != null) {
				page = p[POS_HREF];
				break;
			}
		}
	}
	document.location.href = (new URL(__path_prefix__ + page, true, true)).toString();
};
