/* [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','18',jdecode('Home'),jdecode(''),'/18.html','true',[],'',''],
	['PAGE','39',jdecode('Profissionais'),jdecode(''),'/39.html','true',[],'',''],
	['PAGE','2039',jdecode('Nossa+estrutura'),jdecode(''),'/2039.html','true',[],'',''],
	['PAGE','57',jdecode('Cirurgia+Pl%C3%A1stica'),jdecode(''),'/57.html','true',[],'',''],
	['PAGE','87701',jdecode('Est%C3%A9tica'),jdecode(''),'/87701.html','true',[],'',''],
	['PAGE','66',jdecode('Preenchimentos'),jdecode(''),'/66.html','true',[],'',''],
	['PAGE','12501',jdecode('Luz+Pulsada'),jdecode(''),'/12501.html','true',[],'',''],
	['PAGE','117101',jdecode('Epila%C3%A7%C3%A3o'),jdecode(''),'/117101.html','true',[],'',''],
	['PAGE','134712',jdecode('Laser+CO2+Fracionado'),jdecode(''),'/134712.html','true',[],'','']];
var siteelementCount=9;
theSitetree.topTemplateName='Tendril';
theSitetree.paletteFamily='F5E7D2';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='33093';
theSitetree.graphicsetId='14060';
theSitetree.contentColor='956929';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'pt',
  country: 'BR'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Tendril',
				paletteFamily: 	'F5E7D2',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'33093',
				graphicsetId: 	'14060',
				contentColor: 	'956929',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '18',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18',
internalId:  '',
customField: '20100614-165556'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39',
internalId:  '',
customField: '20100614-165611'
};
webappMappings['7008']=webappMappings['7008-3171']={
webappId:    '7008',
documentId:  '18',
internalId:  '3171',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2039',
internalId:  '',
customField: '20090128-111739'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57',
internalId:  '',
customField: '20090525-194943'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87701',
internalId:  '',
customField: '20090905-202038'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66',
internalId:  '',
customField: '20091110-131727'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12501',
internalId:  '',
customField: '20100610-151232'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '134712',
internalId:  '',
customField: '20100620-174638'
};
webappMappings['1501']=webappMappings['1501-9123036']={
webappId:    '1501',
documentId:  '18',
internalId:  '9123036',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '117101',
internalId:  '',
customField: '20100610-151331'
};
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10IN2E0K';
var companyName   = 'Pianowski+Cl%C3%ADnica+de+Cirurgia+Pl%C3%A1stica';
var htmlTitle	  = 'www.pianowskiclinica.com.br';
var metaKeywords  = 'Pianowski+Clinica+de+Cirurgia+Plastica%2C+Cirurgia+Pl%C3%A1stica%2C+Pianowski%2C+Renato+Pianowski%2C+Sandra+Pianowski%2C+Protese+de+mama%2Credu%C3%A7%C3%A3o+de+mamas%2C+Ritidoplastia%2C+Blefaroplastia%2C+Abdominoplastia%2C+Orelha+em+abano%2C+Lipoaspira%C3%A7%C3%A3o%2C+Lipoescultura%2C+reconstru%C3%A7%C3%A3o+de+areola+e+mamilo%2C+reconstru%C3%A7%C3%A3o+de+mamas+pos+cancer+de+mama%2C+dermopigmenta%C3%A7%C3%A3o+param%C3%A9dica%2C+maquiagem+definitiva%2C+fisioterapia+dermato+funcional%2C+fisioterapia+est%C3%A9tica%2C++drenagem+linf%C3%A1tica+pos-operatorio%2C+luz+pulsada%2C+manchas+da+apele+da+face%2C+peeling+facial%2C+peeling+de+m%C3%A3os%2C+depila%C3%A7%C3%A3o%2C+epila%C3%A7%C3%A3o%2C+tratamento+est%C3%A9tico+facial+e+corporal%2C+angela+nodari+lange%2C+katia+hokazono%2C+curitiba%2C+parana.';
var metaContents  = 'Pianowski+Clinica+de+Cirurgia+Plastica%2C+Cirurgia+Pl%C3%A1stica%2C+Pianowski%2C+Renato+Pianowski%2C+Sandra+Pianowski%2C+Protese+de+mama%2Credu%C3%A7%C3%A3o+de+mamas%2C+Ritidoplastia%2C+Blefaroplastia%2C+Abdominoplastia%2C+Orelha+em+abano%2C+Lipoaspira%C3%A7%C3%A3o%2C+Lipoescultura%2C+reconstru%C3%A7%C3%A3o+de+areola+e+mamilo%2C+reconstru%C3%A7%C3%A3o+de+mamas+pos+cancer+de+mama%2C+dermopigmenta%C3%A7%C3%A3o+param%C3%A9dica%2C+maquiagem+definitiva%2C+fisioterapia+dermato+funcional%2C+fisioterapia+est%C3%A9tica%2C+drenagem+linfatica+pos+operatoria%2C+luz+pulsada%2C+manchas+da+apele+da+face%2C+peeling+facial%2C+peeling+de+m%C3%A3os%2C+depila%C3%A7%C3%A3o%2C+epila%C3%A7%C3%A3o%2C+tratamento+est%C3%A9tico+facial+e+corporal%2C+angela+nodari+lange%2C+katia+hokazono%2C+curitiba%2C+parana.';
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();
};
