/* [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','301',jdecode('Home'),jdecode(''), jdecode('%2F301.html'), 'true',[],'',''],
	['PAGE','352',jdecode('Dr.+Andr%C3%A9+Maranh%C3%A3o'),jdecode(''), jdecode('%2F352.html'), 'true',[],'',''],
	['PAGE','55401',jdecode('English'),jdecode(''), jdecode('%2F55401%2Findex.html'), 'true',[ 
		['PAGE','55422',jdecode('Who+we+are'),jdecode(''), jdecode('%2F55401%2F55422.html'), 'true',[],'',''],
		['PAGE','55443',jdecode('How+we+work'),jdecode(''), jdecode('%2F55401%2F55443.html'), 'true',[],'',''],
		['PAGE','55464',jdecode('Facial+Surgery'),jdecode(''), jdecode('%2F55401%2F55464.html'), 'true',[],'',''],
		['PAGE','55485',jdecode('Breast+Surgery'),jdecode(''), jdecode('%2F55401%2F55485.html'), 'true',[],'',''],
		['PAGE','55506',jdecode('Abdominoplasty'),jdecode(''), jdecode('%2F55401%2F55506.html'), 'true',[],'',''],
		['PAGE','55527',jdecode('Post+Bariatric'),jdecode(''), jdecode('%2F55401%2F55527.html'), 'true',[],'',''],
		['PAGE','55548',jdecode('Liposuction'),jdecode(''), jdecode('%2F55401%2F55548.html'), 'true',[],'','']
	],'',''],
	['PAGE','394',jdecode('Not%C3%ADcias'),jdecode(''), jdecode('%2F394.html'), 'true',[],'',''],
	['PAGE','2901',jdecode('Anestesia+um+Mito'),jdecode(''), jdecode('%2F2901.html'), 'true',[],'',''],
	['PAGE','6801',jdecode('P%C3%B3s-Cirurgia+Bari%C3%A1trica'),jdecode(''), jdecode('%2F6801.html'), 'true',[],'',''],
	['PAGE','415',jdecode('Fotos+%2F+Pics'),jdecode(''), jdecode('%2F415.html'), 'true',[],'',''],
	['PAGE','436',jdecode('Contato+%2F+Find+us'),jdecode(''), jdecode('%2F436.html'), 'true',[],'',''],
	['PAGE','457',jdecode('Hor%C3%A1rios+%2F+Office+Time'),jdecode(''), jdecode('%2F457.html'), 'true',[],'',''],
	['PAGE','478',jdecode('Cirurgias'),jdecode(''), jdecode('%2F478%2Findex.html'), 'true',[ 
		['PAGE','499',jdecode('Pl%C3%A1stica+P%C3%B3s-Bari%C3%A1trica'),jdecode(''), jdecode('%2F478%2F499.html'), 'true',[],'',''],
		['PAGE','520',jdecode('Cirurgia+facial'),jdecode(''), jdecode('%2F478%2F520.html'), 'true',[],'',''],
		['PAGE','541',jdecode('P%C3%A1lpebras'),jdecode(''), jdecode('%2F478%2F541.html'), 'true',[],'',''],
		['PAGE','562',jdecode('Nariz'),jdecode(''), jdecode('%2F478%2F562.html'), 'true',[],'',''],
		['PAGE','583',jdecode('Queixo'),jdecode(''), jdecode('%2F478%2F583.html'), 'true',[],'',''],
		['PAGE','604',jdecode('Orelhas'),jdecode(''), jdecode('%2F478%2F604.html'), 'true',[],'',''],
		['PAGE','625',jdecode('Mamoplastia'),jdecode(''), jdecode('%2F478%2F625.html'), 'true',[],'',''],
		['PAGE','7701',jdecode('Ginecomastia'),jdecode(''), jdecode('%2F478%2F7701.html'), 'true',[],'',''],
		['PAGE','646',jdecode('Implantes+Mam%C3%A1rios'),jdecode(''), jdecode('%2F478%2F646.html'), 'true',[],'',''],
		['PAGE','53301',jdecode('Pl%C3%A1stica+Masculina'),jdecode(''), jdecode('%2F478%2F53301.html'), 'true',[],'',''],
		['PAGE','14601',jdecode('Pl%C3%A1stica+Abdominal'),jdecode(''), jdecode('%2F478%2F14601.html'), 'true',[],'',''],
		['PAGE','667',jdecode('Cirurgia+de+Membros'),jdecode(''), jdecode('%2F478%2F667.html'), 'true',[],'',''],
		['PAGE','688',jdecode('Lipo+%2FHidrolipoaspira%C3%A7%C3%A3o'),jdecode(''), jdecode('%2F478%2F688.html'), 'true',[],'',''],
		['PAGE','709',jdecode('Tumores+de+Pele'),jdecode(''), jdecode('%2F478%2F709.html'), 'true',[],'',''],
		['PAGE','730',jdecode('Reconstru%C3%A7%C3%A3o+de+Mama'),jdecode(''), jdecode('%2F478%2F730.html'), 'true',[],'',''],
		['PAGE','751',jdecode('Cirurgia+Reparadora'),jdecode(''), jdecode('%2F478%2F751.html'), 'true',[],'','']
	],'',''],
	['PAGE','14622',jdecode('Est%C3%A9tica'),jdecode(''), jdecode('%2F14622%2Findex.html'), 'true',[ 
		['PAGE','21501',jdecode('ULTRASHAPE'),jdecode(''), jdecode('%2F14622%2F21501.html'), 'true',[],'',''],
		['PAGE','45001',jdecode('ACCENT'),jdecode(''), jdecode('%2F14622%2F45001.html'), 'true',[],'',''],
		['PAGE','5422',jdecode('Toxina+Botul%C3%ADnica'),jdecode(''), jdecode('%2F14622%2F5422.html'), 'true',[],'',''],
		['PAGE','772',jdecode('Preenchimentos'),jdecode(''), jdecode('%2F14622%2F772.html'), 'true',[],'',''],
		['PAGE','14643',jdecode('Carboxiterapia'),jdecode(''), jdecode('%2F14622%2F14643.html'), 'true',[],'',''],
		['PAGE','14664',jdecode('Drenagem+Linf%C3%A1tica'),jdecode(''), jdecode('%2F14622%2F14664.html'), 'true',[],'','']
	],'',''],
	['PAGE','3601',jdecode('Orienta%C3%A7%C3%B5es'),jdecode(''), jdecode('%2F3601%2Findex.html'), 'true',[ 
		['PAGE','3622',jdecode('Pr%C3%A9-operat%C3%B3rio'),jdecode(''), jdecode('%2F3601%2F3622.html'), 'true',[],'',''],
		['PAGE','3643',jdecode('P%C3%B3s-operat%C3%B3rio'),jdecode(''), jdecode('%2F3601%2F3643.html'), 'true',[],'',''],
		['PAGE','3664',jdecode('Prescri%C3%A7%C3%B5es'),jdecode(''), jdecode('%2F3601%2F3664.html'), 'true',[],'','']
	],'',''],
	['PAGE','3685',jdecode('Nutri%C3%A7%C3%A3o'),jdecode(''), jdecode('%2F3685%2Findex.html'), 'true',[ 
		['PAGE','40001',jdecode('Dicas'),jdecode(''), jdecode('%2F3685%2F40001.html'), 'true',[],'',''],
		['PAGE','40022',jdecode('Not%C3%ADcias'),jdecode(''), jdecode('%2F3685%2F40022.html'), 'true',[],'','']
	],'',''],
	['PAGE','793',jdecode('Equipe'),jdecode(''), jdecode('%2F793.html'), 'true',[],'',''],
	['PAGE','877',jdecode('Links+interessantes'),jdecode(''), jdecode('%2F877.html'), 'true',[],'',''],
	['PAGE','3406',jdecode('Livro+de+visitas%2FVisitors+Area'),jdecode(''), jdecode('%2F3406%2Findex.html'), 'true',[ 
		['PAGE','3401',jdecode('Servi%C3%A7o+de+bilhetes'),jdecode(''), jdecode('%2F3406%2F3401.html'), 'false',[],'','']
	],'','']];
var siteelementCount=51;
theSitetree.topTemplateName='Champagne';
theSitetree.paletteFamily='426388';
theSitetree.keyvisualId='11062';
theSitetree.keyvisualName='kv_11062.jpg';
theSitetree.fontsetId='31943';
theSitetree.graphicsetId='13786';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='426388';
var localeDef={
  language: 'pt',
  country: 'BR'
};
var prodDef={
  wl_name: 'brazilprod',
  product: 'WSCSYSSSSLY0X9WF'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Champagne',
				paletteFamily: 	'426388',
				keyvisualId: 	'11062',
				keyvisualName: 	'kv_11062.jpg',
				fontsetId: 		'31943',
				graphicsetId: 	'13786',
				contentColor: 	'000000',
				contentBGColor: '426388',
				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',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1002']=webappMappings['1002-3406avec10ineemw']={
webappId:    '1002',
documentId:  '3406',
internalId:  '3406avec10ineemw',
customField: 'icq=false'
};
webappMappings['1501']=webappMappings['1501-2671634']={
webappId:    '1501',
documentId:  '301',
internalId:  '2671634',
customField: '1501'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '301',
internalId:  '1006',
customField: '1006'
};
webappMappings['7005']=webappMappings['7005-395']={
webappId:    '7005',
documentId:  '478',
internalId:  '395',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '301',
internalId:  '',
customField: '20110125-211848'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '352',
internalId:  '',
customField: '20110125-203125'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55401',
internalId:  '',
customField: '20090831-083633'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55422',
internalId:  '',
customField: '20080701-214639'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55443',
internalId:  '',
customField: '20090831-195959'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55464',
internalId:  '',
customField: '20080701-213450'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55485',
internalId:  '',
customField: '20080701-213528'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55506',
internalId:  '',
customField: '20080731-081058'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55527',
internalId:  '',
customField: '20080731-090201'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55548',
internalId:  '',
customField: '20080701-213851'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '394',
internalId:  '',
customField: '20100118-205424'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2901',
internalId:  '',
customField: '20070220-114241'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6801',
internalId:  '',
customField: '20090127-194110'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21501',
internalId:  '',
customField: '20080408-160121'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '415',
internalId:  '',
customField: '20091223-222214'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '436',
internalId:  '',
customField: '20090410-095609'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '457',
internalId:  '',
customField: '20080728-091543'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '478',
internalId:  '',
customField: '20091216-102711'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '499',
internalId:  '',
customField: '20090127-194747'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '520',
internalId:  '',
customField: '20080323-093712'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '541',
internalId:  '',
customField: '20070310-095656'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '562',
internalId:  '',
customField: '20070705-093052'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '583',
internalId:  '',
customField: '20070310-120223'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '604',
internalId:  '',
customField: '20070310-120333'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '625',
internalId:  '',
customField: '20070501-122246'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7701',
internalId:  '',
customField: '20070923-151702'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '646',
internalId:  '',
customField: '20070919-071043'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53301',
internalId:  '',
customField: '20080616-062147'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14601',
internalId:  '',
customField: '20070128-105416'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '667',
internalId:  '',
customField: '20070310-115843'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '688',
internalId:  '',
customField: '20100118-202904'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '709',
internalId:  '',
customField: '20080317-223438'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '730',
internalId:  '',
customField: '20070919-062839'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '751',
internalId:  '',
customField: '20070310-121738'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14622',
internalId:  '',
customField: '20090127-134549'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45001',
internalId:  '',
customField: '20080408-160012'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5422',
internalId:  '',
customField: '20080408-155759'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '772',
internalId:  '',
customField: '20080408-155929'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14643',
internalId:  '',
customField: '20070308-083230'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14664',
internalId:  '',
customField: '20070308-093758'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3601',
internalId:  '',
customField: '20080616-061930'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3622',
internalId:  '',
customField: '20091104-201809'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3643',
internalId:  '',
customField: '20070128-105213'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3664',
internalId:  '',
customField: '20091104-202137'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3685',
internalId:  '',
customField: '20090127-192444'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40001',
internalId:  '',
customField: '20070927-080312'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40022',
internalId:  '',
customField: '20091216-102608'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '793',
internalId:  '',
customField: '20080718-053240'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '877',
internalId:  '',
customField: '20090518-174214'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3406',
internalId:  '',
customField: '20080622-084435'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3401',
internalId:  '',
customField: '20070310-122007'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INEEMW';
var companyName   = 'Dr.+Andr%C3%A9+Maranh%C3%A3o+-+Cirurgi%C3%A3o+Pl%C3%A1stico';
var htmlTitle	  = 'Dr.+Andr%C3%A9+Maranh%C3%A3o+-+Cirurgia+Pl%C3%A1stica+Segura';
var metaKeywords  = 'Andre+Maranhao%2C+Cirurgia+Plastica+Pos+Bariatrica%2C+Cirurgia+Bariatrica%2C+Cirurgia+Plastica++Estetica+e+Reparadora%2C+Botox%2C+Preenchimento%2C+Lipoaspiracao%2C+lipoescultura%2C+Beleza%2C+Cancer+de+Pele%2C+Tumor+de+Pele%2C+Cirurgia+Reparadora%2C+ULTRASHAPE%2C+Protese+de+mama%2C+Rio+de+Janeiro%2C+Obesidade+M%C3%B3rbida%2C+ACCENT%2C+Silicone%2C+Protese%2C++Fabio+Viegas%2C++Paulo+Athaide%2C++Carlos+Saboya%2C++Fernando+Barroso%2C+Prof.+Jose+Ribamar%2C+Plastica%2C+Lipo%2C+Implante';
var metaContents  = 'Cirurgia+Pl%C3%A1stica%2C++Cirurgia+Pl%C3%A1stica+Pos+Gastroplastia%2C+Cirurgia+Bariatrica%2C++Cirurgia+Est%C3%A9tica%2C+Cirurgia+Reparadora%2C++Andre+Maranhao%2C+Obesidade+Morbida%2C+Botox%2C+Preenchimento+Facial%2C+Orienta%C3%A7%C3%B5es+pr%C3%A9-operat%C3%B3rias%2C+Mamoplastia%2C+Abdominoplastia%2C+Ginecomastia%2C+Face-lifting%2C+Palpebras%2C+Anestesia%2C+Lipoaspira%C3%A7%C3%A2o%2C+Lipoescultura%2C+Cirurgia+Pl%C3%A1stica+Pos-Bari%C3%A1trica%2C+Pl%C3%A1stica+Bari%C3%A1trica%2C+Face%2C+Carboxiterapia%2C+ULTRASHAPE%2C+Implante+de+Mama%2C+Rio+de+Janeiro%2C+Obesidade+M%C3%B3rbida%2C+ACCENT%2C+Silicone%2C+Fabio+Viegas%2C+F%C3%A1bio+Viegas%2C+Beleza%2C+Ipanema%2C+Fernando+Barroso%2C+Carlos+Saboya%2C+Paulo+Athaide%2C+Lipo%2C+Plastica%2C+UERJ';
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();
};

