/* [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','4201',jdecode('HOME+PAGE'),jdecode(''), jdecode('%2F4201.html'), 'true',[],'',''],
	['PAGE','1901',jdecode('01.+EVOLU%C3%87%C3%83O+DO+MERCADO'),jdecode(''), jdecode('%2F1901.html'), 'true',[],'',''],
	['PAGE','4501',jdecode('02.+CEN%C3%81RIO+INTERNACIONAL+E+NACIONAL+DO+MERCADO'),jdecode(''), jdecode('%2F4501.html'), 'true',[],'',''],
	['PAGE','142519',jdecode('Ranking+Mundial+de+Academias%3A+Brasil+em+Segundo+Lugar+em+N%C3%BAmero+de+Academias'),jdecode(''), jdecode('%2F142519.html'), 'true',[],'',''],
	['PAGE','195819',jdecode('Rio+de+Janeiro+-+Capital+Brasileira+do+Fitness%2C+da+Gin%C3%A1stica+e+do+Esporte'),jdecode(''), jdecode('%2F195819.html'), 'true',[],'',''],
	['PAGE','187919',jdecode('03.+UPGRADE+INSTITUTO+DE+ENSINO+-+Programa%C3%A7%C3%A3o+2011'),jdecode(''), jdecode('%2F187919.html'), 'true',[],'',''],
	['PAGE','213419',jdecode('Simp%C3%B3sio+de+Educa%C3%A7%C3%A3o+F%C3%ADsica+Especial+-+29%2F05%2F11+-+Rio+de+Janeiro'),jdecode(''), jdecode('%2F213419.html'), 'true',[],'',''],
	['PAGE','190440',jdecode('Workshop+Internacional+de+Gin%C3%A1stica+Art%C3%ADstica+-+16%2C+17%2C+18+e+19%2F06%2F11+-+Rio+de+Janeiro'),jdecode(''), jdecode('%2F190440.html'), 'true',[],'',''],
	['PAGE','190461',jdecode('Programa+Social+-+Festa+de+Lan%C3%A7amento+-+02%2F07%2F11+-+Rio+de+Janeiro'),jdecode(''), jdecode('%2F190461.html'), 'true',[],'',''],
	['PAGE','190482',jdecode('I+Conven%C3%A7%C3%A3o+de+Desportos+de+Combate+%28Lutas%29+-+03%2F09%2F11+-+Rio+de+Janeiro'),jdecode(''), jdecode('%2F190482.html'), 'true',[],'',''],
	['PAGE','190619',jdecode('I+Conven%C3%A7%C3%A3o+de+Educa%C3%A7%C3%A3o+F%C3%ADsica+Especial+-+04%2F09%2F11+-+Rio+de+Janeiro'),jdecode(''), jdecode('%2F190619.html'), 'true',[],'',''],
	['PAGE','3022',jdecode('04.+MBA+EM+GEST%C3%83O+E+MARKETING+DE+ACADEMIAS+%28Segunda+Turma%29+-+In%C3%ADcio+do+Curso++09%2F04%2F11'),jdecode(''), jdecode('%2F3022.html'), 'true',[],'',''],
	['PAGE','3043',jdecode('P%C3%BAblico-Alvo+e+Objetivos'),jdecode(''), jdecode('%2F3043.html'), 'true',[],'',''],
	['PAGE','3085',jdecode('Programa.+Disciplinas+e+Conte%C3%BAdos+Program%C3%A1ticos'),jdecode(''), jdecode('%2F3085.html'), 'true',[],'',''],
	['PAGE','3106',jdecode('Local+do+Curso%2C+Carga+Hor%C3%A1ria+e+Cronograma'),jdecode(''), jdecode('%2F3106.html'), 'true',[],'',''],
	['PAGE','7722',jdecode('Professores+Convidados'),jdecode(''), jdecode('%2F7722.html'), 'true',[],'',''],
	['PAGE','155019',jdecode('05.+MBA+EM+ADMINISTRA%C3%87%C3%83O%2C+GEST%C3%83O+E+MARKETING+DE+INSTITUI%C3%87%C3%95ES+DE+ENSINO'),jdecode(''), jdecode('%2F155019.html'), 'true',[],'',''],
	['PAGE','167519',jdecode('Professores+Convidados'),jdecode(''), jdecode('%2F167519.html'), 'true',[],'',''],
	['PAGE','147019',jdecode('06.+ESPECIALIZA%C3%87%C3%83O+EM+ATIVIDADES+COLETIVAS+EM+ACADEMIA'),jdecode(''), jdecode('%2F147019.html'), 'true',[],'',''],
	['PAGE','167561',jdecode('Professores+Convidados'),jdecode(''), jdecode('%2F167561.html'), 'true',[],'',''],
	['PAGE','215219',jdecode('07.+ESPECIALIZA%C3%87%C3%83O+EM+EDUCA%C3%87%C3%83O+F%C3%8DSICA+ESPECIAL'),jdecode(''), jdecode('%2F215219.html'), 'true',[],'',''],
	['PAGE','215240',jdecode('Professores+Convidados'),jdecode(''), jdecode('%2F215240.html'), 'true',[],'',''],
	['PAGE','155840',jdecode('08.+ESPECIALIZA%C3%87%C3%83O+EM+GIN%C3%81STICA+ART%C3%8DSTICA'),jdecode(''), jdecode('%2F155840.html'), 'true',[],'',''],
	['PAGE','166119',jdecode('Professores+Convidados'),jdecode(''), jdecode('%2F166119.html'), 'true',[],'',''],
	['PAGE','67701',jdecode('09.+ESPECIALIZA%C3%87%C3%83O+EM+PERSONAL+TRAINING'),jdecode(''), jdecode('%2F67701.html'), 'true',[],'',''],
	['PAGE','167540',jdecode('Professores+Convidados'),jdecode(''), jdecode('%2F167540.html'), 'true',[],'',''],
	['PAGE','224019',jdecode('10.+EMPREENDEDORISMO+%26+INTRA+EMPREENDEDORISMO'),jdecode(''), jdecode('%2F224019.html'), 'true',[],'',''],
	['PAGE','184719',jdecode('Professores+Convidados'),jdecode(''), jdecode('%2F184719.html'), 'true',[],'',''],
	['PAGE','3127',jdecode('17.+METODOLOGIA'),jdecode(''), jdecode('%2F3127.html'), 'true',[],'',''],
	['PAGE','3148',jdecode('Sistemas+de+Avalia%C3%A7%C3%A3o'),jdecode(''), jdecode('%2F3148.html'), 'true',[],'',''],
	['PAGE','3190',jdecode('Certifica%C3%A7%C3%A3o'),jdecode(''), jdecode('%2F3190.html'), 'true',[],'',''],
	['PAGE','3232',jdecode('Documenta%C3%A7%C3%A3o'),jdecode(''), jdecode('%2F3232.html'), 'true',[],'',''],
	['PAGE','6601',jdecode('18.+INSCRI%C3%87%C3%95ES%2C+CADASTRO%2C+OUTRAS+INFORMA%C3%87%C3%95ES'),jdecode(''), jdecode('%2F6601.html'), 'true',[],'',''],
	['PAGE','15301',jdecode('19.+UPGRADE+INSTITUTO+DE+ENSINO+-+Resumo%2FHist%C3%B3rico'),jdecode(''), jdecode('%2F15301.html'), 'true',[],'',''],
	['PAGE','3274',jdecode('Dire%C3%A7%C3%A3o+Acad%C3%AAmica+Executiva%3A+Prof.+Carlos+Cardoso'),jdecode(''), jdecode('%2F3274.html'), 'true',[],'',''],
	['PAGE','30701',jdecode('20.+EVENTOS+PROMOVIDOS+NAS+%C3%9ALTIMAS+TR%C3%8AS+D%C3%89CADAS+COM++FOTOS+ILUSTRATIVAS'),jdecode(''), jdecode('%2F30701.html'), 'true',[],'',''],
	['PAGE','190419',jdecode('III+Conven%C3%A7%C3%A3o+Educa%C3%A7%C3%A3o+F%C3%ADsica+e+%C3%81reas+Correlatas+-+19%2F03%2F11+-+Barra+da+Tijuca%2FRJ'),jdecode(''), jdecode('%2F190419.html'), 'true',[],'',''],
	['PAGE','188719',jdecode('II+Simp%C3%B3sio+Nacional+de+Academias%3A+20%2F01%2F11+-+Rio+de+Janeiro'),jdecode(''), jdecode('%2F188719.html'), 'true',[],'',''],
	['PAGE','185519',jdecode('II+Conven%C3%A7%C3%A3o+Educa%C3%A7%C3%A3o+F%C3%ADsica+e+%C3%81reas+Correlatas+%28Fotos%29%3A+09%2C+10+e+12%2F10%2F10+%28Marina+Barra+Clube%29'),jdecode(''), jdecode('%2F185519.html'), 'true',[],'',''],
	['PAGE','185540',jdecode('Empreendedorismo+em+Academias+e+Educa%C3%A7%C3%A3o+F%C3%ADsica+%28Fotos%29%3A+26%2F09%2F10+%28Academia+Bodyfactory%2FFlamengo%29'),jdecode(''), jdecode('%2F185540.html'), 'true',[],'',''],
	['PAGE','101719',jdecode('Gest%C3%A3o+e+Marketing+do+Relacionamento+com+Clientes+%28Fotos%29%3A+30+e+31%2F01%2F10+%28N%C3%BAcleo+de+Academias+-+Cascavel+%2F+Paran%C3%A1%29'),jdecode(''), jdecode('%2F101719.html'), 'true',[],'',''],
	['PAGE','101319',jdecode('I+Simp%C3%B3sio+Nacional+de+Academias+-+Radical+Summer+Rio+2010+%28Fotos%29%3A+16%2F01%2F10+%28Marina+Barra+Clube%29'),jdecode(''), jdecode('%2F101319.html'), 'true',[],'',''],
	['PAGE','115319',jdecode('Empreendedorismo%2C+Tecnologia%2C+Inova%C3%A7%C3%A3o%2C+Marketing+e+Planejamento+de+Carreira+Pessoal+%28Fotos%29%3A+20%2F12%2F09+%28Instituto+Villas+Boas+-+Vista+Alegre%29'),jdecode(''), jdecode('%2F115319.html'), 'true',[],'',''],
	['PAGE','37401',jdecode('I+Conven%C3%A7%C3%A3o+Educa%C3%A7%C3%A3o+F%C3%ADsica+e+%C3%81reas+Correlatas+%28Fotos%29%3A+15%2F08%2F09+%28C%C3%A2mara+Comunit%C3%A1ria+da+Barra%29'),jdecode(''), jdecode('%2F37401.html'), 'true',[],'',''],
	['PAGE','3295',jdecode('21.+PARCERIAS+ESTRAT%C3%89GICAS'),jdecode(''), jdecode('%2F3295.html'), 'true',[],'','']];
var siteelementCount=45;
theSitetree.topTemplateName='Chaste';
theSitetree.paletteFamily='B896F8';
theSitetree.keyvisualId='11550';
theSitetree.keyvisualName='kv_11550.jpg';
theSitetree.fontsetId='32877';
theSitetree.graphicsetId='13964';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'pt',
  country: 'BR'
};
var prodDef={
  wl_name: 'brazilprod',
  product: 'WSCSYSSSSLY0X9A9'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Chaste',
				paletteFamily: 	'B896F8',
				keyvisualId: 	'11550',
				keyvisualName: 	'kv_11550.jpg',
				fontsetId: 		'32877',
				graphicsetId: 	'13964',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'B896F8',
				b_color: 		'875DD4',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1901',
internalId:  '',
customField: '20101111-065210'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3022',
internalId:  '',
customField: '20110111-160654'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4201',
internalId:  '',
customField: '20120122-091231'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3043',
internalId:  '',
customField: '20110122-180500'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3106',
internalId:  '',
customField: '20110412-134210'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3085',
internalId:  '',
customField: '20110123-152138'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3127',
internalId:  '',
customField: '20101107-043248'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3148',
internalId:  '',
customField: '20101107-043205'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3190',
internalId:  '',
customField: '20101107-043128'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6601',
internalId:  '',
customField: '20101107-042417'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3232',
internalId:  '',
customField: '20101107-042455'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3274',
internalId:  '',
customField: '20110414-180042'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3295',
internalId:  '',
customField: '20101106-174206'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4501',
internalId:  '',
customField: '20101111-065324'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7722',
internalId:  '',
customField: '20110414-173353'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '195819',
internalId:  '',
customField: '20101111-072437'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15301',
internalId:  '',
customField: '20101107-164644'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '167540',
internalId:  '',
customField: '20110414-175103'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30701',
internalId:  '',
customField: '20110111-172208'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37401',
internalId:  '',
customField: '20101106-174400'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '115319',
internalId:  '',
customField: '20101106-174459'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '147019',
internalId:  '',
customField: '20120122-070921'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101319',
internalId:  '',
customField: '20101106-174640'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '166119',
internalId:  '',
customField: '20110414-174336'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '67701',
internalId:  '',
customField: '20110510-115731'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '167561',
internalId:  '',
customField: '20120122-071301'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '167519',
internalId:  '',
customField: '20120122-084251'
};
webappMappings['7008']=webappMappings['7008-12164']={
webappId:    '7008',
documentId:  '6601',
internalId:  '12164',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '142519',
internalId:  '',
customField: '20101105-160046'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101719',
internalId:  '',
customField: '20101106-175330'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '184719',
internalId:  '',
customField: '20110414-174007'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155019',
internalId:  '',
customField: '20120122-083614'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155840',
internalId:  '',
customField: '20110510-115435'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '185519',
internalId:  '',
customField: '20101105-194808'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '185540',
internalId:  '',
customField: '20101105-194847'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '187919',
internalId:  '',
customField: '20111013-073447'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '188719',
internalId:  '',
customField: '20110412-161809'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '190419',
internalId:  '',
customField: '20110412-162233'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '190440',
internalId:  '',
customField: '20110526-174752'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '190461',
internalId:  '',
customField: '20110503-143934'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '190619',
internalId:  '',
customField: '20110503-144222'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '190482',
internalId:  '',
customField: '20110503-144438'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '213419',
internalId:  '',
customField: '20110503-153548'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '215219',
internalId:  '',
customField: '20110510-115309'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '215240',
internalId:  '',
customField: '20111220-050543'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVFL30INHSZY';
var companyName   = 'UPGRADE+INSTITUTO+DE+ENSINO+-+CURSOS+DE+EDUCA%C3%87%C3%83O+F%C3%8DSICA+E+%C3%81REAS+CORRELATAS';
var htmlTitle	  = '';
var metaKeywords  = '';
var metaContents  = '';
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();
};

