/* [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','148801',jdecode('J+O+R+N+A+I+S++de+hoje'),jdecode(''),'/148801.html','true',[],'',''],
	['PAGE','149901',jdecode('CBN++r%C3%A1dio+'),jdecode(''),'/149901.html','true',[],'',''],
	['PAGE','197422',jdecode('G1++portal'),jdecode(''),'/197422.html','true',[],'',''],
	['PAGE','197401',jdecode('Colunistas'),jdecode(''),'/197401.html','true',[],'',''],
	['PAGE','601',jdecode('A+P+R+E+S+E+N+T+A+%C3%87+%C3%83+O'),jdecode(''),'/601.html','true',[],'',''],
	['PAGE','180101',jdecode('B+++L+++O+++G'),jdecode(''),'/180101.html','true',[],'',''],
	['PAGE','883',jdecode('CONTATO'),jdecode(''),'/883.html','true',[],'',''],
	['PAGE','652',jdecode('A+EMPRESA'),jdecode(''),'/652.html','true',[],'',''],
	['PAGE','673',jdecode('+++++++Foco'),jdecode(''),'/673.html','true',[],'',''],
	['PAGE','63901',jdecode('+++++++Vis%C3%A3o'),jdecode(''),'/63901.html','true',[],'',''],
	['PAGE','63922',jdecode('+++++++Valores+++'),jdecode(''),'/63922.html','true',[],'',''],
	['PAGE','71001',jdecode('SOLU%C3%87%C3%95ES'),jdecode(''),'/71001.html','true',[],'',''],
	['PAGE','71701',jdecode('+++++++P+E+C+++%2F+++P+E+S++++'),jdecode(''),'/71701/index.html','true',[ 
		['PAGE','71722',jdecode('objetivo++'),jdecode(''),'/71701/71722.html','true',[],'','']
	],'',''],
	['PAGE','72901',jdecode('+++++++A+P+P+++++++'),jdecode(''),'/72901/index.html','true',[ 
		['PAGE','109901',jdecode('APP+web'),jdecode(''),'/72901/109901.html','true',[],'','']
	],'',''],
	['PAGE','121901',jdecode('Cl%C3%ADnica+de+Gest%C3%A3o'),jdecode(''),'/121901.html','true',[],'',''],
	['PAGE','72922',jdecode('+++++Hunting'),jdecode(''),'/72922.html','true',[],'',''],
	['PAGE','88501',jdecode('++++Coaching+'),jdecode(''),'/88501/index.html','true',[ 
		['PAGE','72943',jdecode('Master+++'),jdecode(''),'/88501/72943.html','true',[],'',''],
		['PAGE','73301',jdecode('Personal+++'),jdecode(''),'/88501/73301.html','true',[],'',''],
		['PAGE','73322',jdecode('Executive++'),jdecode(''),'/88501/73322.html','true',[],'','']
	],'',''],
	['PAGE','73343',jdecode('++++Palestras'),jdecode(''),'/73343/index.html','true',[ 
		['PAGE','84901',jdecode('10+FCS+++'),jdecode(''),'/73343/84901.html','true',[],'','']
	],'',''],
	['PAGE','78501',jdecode('OUTRAS+SOLU%C3%87%C3%95ES'),jdecode(''),'/78501.html','true',[],'',''],
	['PAGE','78522',jdecode('G.Crescimento'),jdecode(''),'/78522.html','true',[],'',''],
	['PAGE','78543',jdecode('Plano+Sucess%C3%B3rio'),jdecode(''),'/78543.html','true',[],'',''],
	['PAGE','78564',jdecode('Plano+Estrat%C3%A9gico'),jdecode(''),'/78564.html','true',[],'',''],
	['PAGE','78585',jdecode('G.Conhecimento'),jdecode(''),'/78585.html','true',[],'',''],
	['PAGE','63943',jdecode('COORDENA%C3%87%C3%83O'),jdecode(''),'/63943.html','true',[],'',''],
	['PAGE','63964',jdecode('CLIENTES'),jdecode(''),'/63964.html','true',[],'',''],
	['PAGE','50401',jdecode('APPWEB'),jdecode(''),'/50401.html','true',[],'',''],
	['PAGE','5201',jdecode('ENVIAR+CURR%C3%8DCULO'),jdecode(''),'/5201.html','true',[],'',''],
	['PAGE','59001',jdecode('ARTIGOS'),jdecode(''),'/59001/index.html','true',[ 
		['PAGE','59401',jdecode('Estrat%C3%A9gias+++'),jdecode(''),'/59001/59401.html','true',[],'',''],
		['PAGE','59801',jdecode('Planejar'),jdecode(''),'/59001/59801.html','true',[],'',''],
		['PAGE','62701',jdecode('Aprimorando'),jdecode(''),'/59001/62701.html','true',[],'',''],
		['PAGE','116401',jdecode('Intelig%C3%AAncia'),jdecode(''),'/59001/116401.html','true',[],'','']
	],'',''],
	['PAGE','61301',jdecode('D%C3%9AVIDAS'),jdecode(''),'/61301/index.html','true',[ 
		['PAGE','61322',jdecode('Talentos%3F'),jdecode(''),'/61301/61322.html','true',[],'',''],
		['PAGE','61343',jdecode('Reter+Talentos%3F'),jdecode(''),'/61301/61343.html','true',[],'',''],
		['PAGE','61364',jdecode('Mudan%C3%A7as%3F'),jdecode(''),'/61301/61364.html','true',[],'','']
	],'',''],
	['PAGE','89801',jdecode('LIVROS'),jdecode(''),'/89801.html','true',[],'',''],
	['PAGE','90901',jdecode('MENTORES'),jdecode(''),'/90901.html','true',[],'',''],
	['PAGE','55701',jdecode('LINKS+%C3%BAteis'),jdecode(''),'/55701.html','true',[],'',''],
	['PAGE','163301',jdecode('REVISTA+digital'),jdecode(''),'/163301.html','true',[],'',''],
	['PAGE','160001',jdecode('RC+TV'),jdecode(''),'/160001.html','true',[],'',''],
	['PAGE','160022',jdecode('RC+Tecnologia'),jdecode(''),'/160022.html','true',[],'',''],
	['PAGE','154001',jdecode('RC+Shopping'),jdecode(''),'/154001.html','true',[],'','']];
var siteelementCount=49;
theSitetree.topTemplateName='Display';
theSitetree.paletteFamily='4F4F4B';
theSitetree.keyvisualId='11379';
theSitetree.keyvisualName='kv_11379.jpg';
theSitetree.fontsetId='31963';
theSitetree.graphicsetId='13801';
theSitetree.contentColor='1B1B1B';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'pt',
  country: 'BR'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Display',
				paletteFamily: 	'4F4F4B',
				keyvisualId: 	'11379',
				keyvisualName: 	'kv_11379.jpg',
				fontsetId: 		'31963',
				graphicsetId: 	'13801',
				contentColor: 	'1B1B1B',
				contentBGColor: 'FFFFFF',
				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:     'false'
			  };
var webappMappings = {};
webappMappings['7008']=webappMappings['7008-275']={
webappId:    '7008',
documentId:  '5201',
internalId:  '275',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '148801',
internalId:  '',
customField: '20100813-094926'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '197401',
internalId:  '',
customField: '20100813-094630'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '149901',
internalId:  '',
customField: '20100813-101914'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '154001',
internalId:  '',
customField: '20100813-102118'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '883',
internalId:  '',
customField: '20090508-113548'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '601',
internalId:  '',
customField: '20100813-180339'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '652',
internalId:  '',
customField: '20090529-130211'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '673',
internalId:  '',
customField: '20090217-093957'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63901',
internalId:  '',
customField: '20090217-093924'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63922',
internalId:  '',
customField: '20090217-094042'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71001',
internalId:  '',
customField: '20100816-180409'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72901',
internalId:  '',
customField: '20090529-130932'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '109901',
internalId:  '',
customField: '20090112-110917'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71701',
internalId:  '',
customField: '20100813-092810'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71722',
internalId:  '',
customField: '20090529-131254'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72922',
internalId:  '',
customField: '20090529-131458'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88501',
internalId:  '',
customField: '20090529-131733'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72943',
internalId:  '',
customField: '20090217-095231'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73301',
internalId:  '',
customField: '20080130-131452'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73322',
internalId:  '',
customField: '20090324-113800'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73343',
internalId:  '',
customField: '20090324-113851'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '84901',
internalId:  '',
customField: '20090324-113957'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '121901',
internalId:  '',
customField: '20100813-180953'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78501',
internalId:  '',
customField: '20090529-132204'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78522',
internalId:  '',
customField: '20090529-132346'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78543',
internalId:  '',
customField: '20090529-132610'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78564',
internalId:  '',
customField: '20090529-132758'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78585',
internalId:  '',
customField: '20090529-132946'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63943',
internalId:  '',
customField: '20090529-133218'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63964',
internalId:  '',
customField: '20090529-133415'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50401',
internalId:  '',
customField: '20090529-133547'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5201',
internalId:  '',
customField: '20071106-130204'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59001',
internalId:  '',
customField: '20071207-162134'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59401',
internalId:  '',
customField: '20090326-175048'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59801',
internalId:  '',
customField: '20090326-175302'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62701',
internalId:  '',
customField: '20090326-175425'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '116401',
internalId:  '',
customField: '20080630-162736'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61301',
internalId:  '',
customField: '20071123-153637'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61322',
internalId:  '',
customField: '20071126-130411'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61343',
internalId:  '',
customField: '20071030-130434'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61364',
internalId:  '',
customField: '20071119-113543'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89801',
internalId:  '',
customField: '20071123-153837'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90901',
internalId:  '',
customField: '20090115-072104'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55701',
internalId:  '',
customField: '20071123-155006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '160022',
internalId:  '',
customField: '20090610-081310'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '160001',
internalId:  '',
customField: '20090223-142208'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '163301',
internalId:  '',
customField: '20090507-113043'
};
webappMappings['1501']=webappMappings['1501-13600548']={
webappId:    '1501',
documentId:  '601',
internalId:  '13600548',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '197422',
internalId:  '',
customField: '20100813-101715'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '180101',
internalId:  '',
customField: '20100810-181027'
};
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INEIR9';
var companyName   = 'RC++Searching+++++++++SOLU%C3%87%C3%95ES++EMPRESARIAIS++FUNCIONAIS';
var htmlTitle	  = 'RC+Gest%C3%A3o+de+Neg%C3%B3cios';
var metaKeywords  = 'Search%2C+Executive+Search%2CCapta%C3%A7%C3%A3o%2C+Sele%C3%A7%C3%A3o%2C+Consultoria+de+Headhunting%2C+planejamento+estrat%C3%A9gico%2C+coach%2C+gest%C3%A3o%2C+gest%C3%A3o+organizacional%2C+gest%C3%A3o+do+conhecimento%2C+gest%C3%A3o+hol%C3%ADstica.';
var metaContents  = 'Sele%C3%A7%C3%A3o%2C+Capta%C3%A7%C3%A3o%2C+Hunting%2C+Consultoria+de+Headhunting%2C+Search%2C+Executive+Search%2C+Searching%2CPlanejamento+estrat%C3%A9gico%2C+prop%C3%B3sito+de+vida%2C+coach%2C+coach+organizacional%2C+gest%C3%A3o+do+conhecimento%2C+gest%C3%A3o+hol%C3%ADstica.';
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();
};
