/* [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','801',jdecode('Home'),jdecode(''),'/801.html','true',[],'',''],
	['PAGE','21901',jdecode('Quem+somos'),jdecode(''),'/21901/index.html','true',[ 
		['PAGE','21943',jdecode('Apresenta%C3%A7%C3%A3o'),jdecode(''),'/21901/21943.html','true',[],'','']
	],'',''],
	['PAGE','5301',jdecode('Sobre+o+C%C3%A3ncer'),jdecode(''),'/5301/index.html','true',[ 
		['PAGE','5322',jdecode('Dicas'),jdecode(''),'/5301/5322.html','true',[],'',''],
		['PAGE','127212',jdecode('Direito+%C3%A0+sa%C3%BAde'),jdecode(''),'/5301/127212.html','true',[],'',''],
		['PAGE','128212',jdecode('Espa%C3%A7o+da+Fam%C3%ADlia'),jdecode(''),'/5301/128212.html','true',[],'',''],
		['PAGE','128233',jdecode('Profissionais'),jdecode(''),'/5301/128233.html','true',[],'','']
	],'',''],
	['PAGE','5406',jdecode('Artigos'),jdecode(''),'/5406.html','true',[],'',''],
	['PAGE','134112',jdecode('Agenda'),jdecode(''),'/134112.html','true',[],'',''],
	['PAGE','5532',jdecode('Grupo+Zinnia'),jdecode(''),'/5532/index.html','true',[ 
		['PAGE','129412',jdecode('Cl%C3%ADnica+de+adultos'),jdecode(''),'/5532/129412.html','true',[],'',''],
		['PAGE','135512',jdecode('Crian%C3%A7a+e+adolescente'),jdecode(''),'/5532/135512.html','true',[],'',''],
		['PAGE','128254',jdecode('Depoimentos'),jdecode(''),'/5532/128254.html','true',[],'',''],
		['PAGE','54801',jdecode('%C3%81lbum+de+fotos'),jdecode(''),'/5532/54801.html','true',[],'',''],
		['PAGE','96001',jdecode('Eventos'),jdecode(''),'/5532/96001.html','true',[],'','']
	],'',''],
	['PAGE','126212',jdecode('Sa%C3%BAde'),jdecode(''),'/126212/index.html','true',[ 
		['PAGE','128275',jdecode('Mensagens'),jdecode(''),'/126212/128275.html','true',[],'','']
	],'',''],
	['PAGE','136412',jdecode('Desfile+2009'),jdecode(''),'/136412/index.html','true',[ 
		['PAGE','138012',jdecode('Galeria+'),jdecode(''),'/136412/138012.html','true',[],'',''],
		['PAGE','144512',jdecode('Galeria+Metr%C3%B4'),jdecode(''),'/136412/144512.html','true',[],'','']
	],'',''],
	['PAGE','5574',jdecode('Cursos'),jdecode(''),'/5574.html','true',[],'',''],
	['PAGE','127812',jdecode('Palestras+e+Workshops'),jdecode(''),'/127812.html','true',[],'',''],
	['PAGE','5826',jdecode('Fale+conosco'),jdecode(''),'/5826.html','true',[],'',''],
	['PAGE','5847',jdecode('Links+Favoritos'),jdecode(''),'/5847.html','true',[],'','']];
var siteelementCount=25;
theSitetree.topTemplateName='Stitch';
theSitetree.paletteFamily='E9F1EE';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10769';
theSitetree.graphicsetId='10797';
theSitetree.contentColor='4E7C6A';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'pt',
  country: 'BR'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Stitch',
				paletteFamily: 	'E9F1EE',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10769',
				graphicsetId: 	'10797',
				contentColor: 	'4E7C6A',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'969595',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['7008']=webappMappings['7008-2938']={
webappId:    '7008',
documentId:  '5826',
internalId:  '2938',
customField: 'language:pt;country:BR;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '801',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-6505331']={
webappId:    '1501',
documentId:  '801',
internalId:  '6505331',
customField: '1501'
};
webappMappings['7060']=webappMappings['7060-2df65eeba4d49da2e0266a94f5d07e5a']={
webappId:    '7060',
documentId:  '54801',
internalId:  '2df65eeba4d49da2e0266a94f5d07e5a',
customField: 'language:pt;country:BR;'
};
webappMappings['7060']=webappMappings['7060-e67efd196e399e5eb0a54a5f7738bf07']={
webappId:    '7060',
documentId:  '96001',
internalId:  'e67efd196e399e5eb0a54a5f7738bf07',
customField: 'language:pt;country:BR;'
};
webappMappings['7008']=webappMappings['7008-2939']={
webappId:    '7008',
documentId:  '5826',
internalId:  '2939',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '801',
internalId:  '',
customField: '20100506-170209'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5826',
internalId:  '',
customField: '20090823-174334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21901',
internalId:  '',
customField: '20100212-152927'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '129412',
internalId:  '',
customField: '20091024-172119'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21943',
internalId:  '',
customField: '20090921-122816'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5301',
internalId:  '',
customField: '20090912-152512'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5322',
internalId:  '',
customField: '20090823-114347'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5406',
internalId:  '',
customField: '20090912-152347'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '138012',
internalId:  '',
customField: '20091122-200704'
};
webappMappings['7060']=webappMappings['7060-04788eda30e5dae37ef7c1ee17747061']={
webappId:    '7060',
documentId:  '144512',
internalId:  '04788eda30e5dae37ef7c1ee17747061',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '134112',
internalId:  '',
customField: '20100506-164744'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5532',
internalId:  '',
customField: '20091122-200859'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '126212',
internalId:  '',
customField: '20090823-162822'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5574',
internalId:  '',
customField: '20100506-165843'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '136412',
internalId:  '',
customField: '20091123-062607'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '128254',
internalId:  '',
customField: '20091122-214848'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '128275',
internalId:  '',
customField: '20090823-171029'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '127212',
internalId:  '',
customField: '20090823-114737'
};
webappMappings['7060']=webappMappings['7060-8f0ec3878b35e9be68977f837bc3ce24']={
webappId:    '7060',
documentId:  '138012',
internalId:  '8f0ec3878b35e9be68977f837bc3ce24',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5847',
internalId:  '',
customField: '20091122-210616'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '135512',
internalId:  '',
customField: '20091122-170958'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '127812',
internalId:  '',
customField: '20100217-074331'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '128212',
internalId:  '',
customField: '20090823-114837'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '128233',
internalId:  '',
customField: '20090823-161915'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54801',
internalId:  '',
customField: '20071211-201317'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '96001',
internalId:  '',
customField: '20091122-171432'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '144512',
internalId:  '',
customField: '20091129-163216'
};
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INLUP1';
var companyName   = 'ZINNIA+-+Psico-oncologia+Integrada';
var htmlTitle	  = '%3A+%3A+%3A+%3A+%3A+%3A+%3A+ZINNIA+-+PSICOONCOLOGIA+INTEGRADA+%3A+%3A+%3A+%3A+%3A+%3A+%3A';
var metaKeywords  = 'psicooncologia%2C+cancer%2C+curso+cancer+e+o+cuidador%2C+psico-oncologia%2C+c%C3%A2ncer%2C+psicologia%2C+sa%C3%BAde%2C+mulher%2C+zinnia%2C+grupo+zinnia%2C+cancer+de+mama%2C+mama%2C+c%C3%A2ncer+de+mama%2C+Belo+Horizonte%2C+direito%2C+cidadania%2C+qualidade+de+vida%2C+desfile%2C+saude%2C+curso%2C+curso+c%C3%A2ncer+e+o+cuidador%2C+cuidador%2C+curso+sa%C3%BAde%2C+cuidados%2C+medico%2C+oncologista%2C+oncologia%2C+espiritualidade%2C+mastologista%2C+f%C3%A9%2C+oficina%2C+din%C3%A2mica+de+grupo%2C+curso+psicooncologia%2C+paciente+com+c%C3%A2ncer%2C+c%C3%A2ncer+bh%2C+curso+din%C3%A2mica+de+grupo%2C+multiprofissional%2C+atendimento+psicol%C3%B3gico%2C+apoio+psicol%C3%B3gico+para+pessoas+co+diagn%C3%B3stico+de+c%C3%A2ncer%2C+enfermagem%2C+medicina%2C+servi%C3%A7o+social%2C+fisioterapia%2C+moda%2C+sesc%2C+psicologia+hospitalar%2C+pedagogia%2C+ciran%C3%A7a+e+adolescente.';
var metaContents  = 'Grupo+Zinnia+-+Grupo+terap%C3%AAutico+para+pessoas+com+diagn%C3%B3stico+de+C%C3%A2ncer%2C+no+grupo+voc%C3%AA+acessa+aspectos+saud%C3%A1veis+atrav%C3%A9s+do+fortalecimentos+de+seus+pr%C3%B3prios+recursos.';
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();
};
