/* [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','401',jdecode('Home'),jdecode(''),'/401.html','true',[],'',''],
	['PAGE','452',jdecode('Quem+somos'),jdecode(''),'/452/index.html','true',[ 
		['PAGE','473',jdecode('Vis%C3%A3o%2C+miss%C3%A3o+e+valores'),jdecode(''),'/452/473.html','true',[],'','']
	],'',''],
	['PAGE','20901',jdecode('CURSOS'),jdecode(''),'/20901/index.html','true',[ 
		['PAGE','20922',jdecode('Lideran%C3%A7a'),jdecode(''),'/20901/20922.html','true',[],'',''],
		['PAGE','20943',jdecode('Excel%C3%AAncia+Profissional'),jdecode(''),'/20901/20943.html','true',[],'',''],
		['PAGE','20964',jdecode('Formando+Equipes'),jdecode(''),'/20901/20964.html','true',[],'',''],
		['PAGE','20985',jdecode('Relacionamento+Interpessoal'),jdecode(''),'/20901/20985.html','true',[],'',''],
		['PAGE','21006',jdecode('Coaching+e+Mentoring'),jdecode(''),'/20901/21006.html','true',[],'',''],
		['PAGE','60901',jdecode('Gest%C3%A3o+do+Tempo'),jdecode(''),'/20901/60901.html','true',[],'',''],
		['PAGE','74701',jdecode('Gerenciando+Mudan%C3%A7as'),jdecode(''),'/20901/74701.html','true',[],'',''],
		['PAGE','60922',jdecode('T%C3%A9cnicas+de+Vendas'),jdecode(''),'/20901/60922.html','true',[],'','']
	],'',''],
	['PAGE','494',jdecode('Refer%C3%AAncias+de+clientes'),jdecode(''),'/494.html','true',[],'',''],
	['PAGE','515',jdecode('Contato'),jdecode(''),'/515.html','true',[],'',''],
	['PAGE','536',jdecode('Artigos'),jdecode(''),'/536/index.html','true',[ 
		['PAGE','77401',jdecode('Feedback+e+Avalia%C3%A7%C3%A3o+de+Desempenho'),jdecode(''),'/536/77401.html','true',[],'',''],
		['PAGE','77001',jdecode('O+Follow-Up'),jdecode(''),'/536/77001.html','true',[],'',''],
		['PAGE','75101',jdecode('Sinto%2C+penso+e+ajo.'),jdecode(''),'/536/75101.html','true',[],'',''],
		['PAGE','74001',jdecode('Voc%C3%AA+cuida+do+seu+Capital+Intelectual%3F'),jdecode(''),'/536/74001.html','true',[],'',''],
		['PAGE','34701',jdecode('Funcion%C3%A1rios+motivados'),jdecode(''),'/536/34701.html','true',[],'',''],
		['PAGE','59401',jdecode('Sua+empresa+%C3%A9+seu+melhor+cliente'),jdecode(''),'/536/59401.html','true',[],'',''],
		['PAGE','34722',jdecode('Vis%C3%A3o+c%C3%AAnica+empresarial'),jdecode(''),'/536/34722.html','true',[],'',''],
		['PAGE','35201',jdecode('Crescer+com+sa%C3%BAde'),jdecode(''),'/536/35201.html','true',[],'',''],
		['PAGE','56301',jdecode('O+melhor+dos+melhores'),jdecode(''),'/536/56301.html','true',[],'',''],
		['PAGE','58301',jdecode('Que+tal+come%C3%A7armos+um+novo+ano%3F'),jdecode(''),'/536/58301.html','true',[],'',''],
		['PAGE','69801',jdecode('A+empresa+%C3%A9+uma+grande+fam%C3%ADlia%3F'),jdecode(''),'/536/69801.html','true',[],'','']
	],'',''],
	['PAGE','23701',jdecode('Renova%C3%A7%C3%A3o'),jdecode(''),'/23701.html','true',[],'',''],
	['PAGE','557',jdecode('Parceiros'),jdecode(''),'/557.html','true',[],'',''],
	['PAGE','25101',jdecode('Chega+de+ser+chefe...'),jdecode(''),'/25101.html','true',[],'','']];
var siteelementCount=29;
theSitetree.topTemplateName='Natural';
theSitetree.paletteFamily='325349';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='155';
theSitetree.graphicsetId='180';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FCFCF4';
var localeDef={
  language: 'pt',
  country: 'BR'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Natural',
				paletteFamily: 	'325349',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'155',
				graphicsetId: 	'180',
				contentColor: 	'000000',
				contentBGColor: 'FCFCF4',
				a_color: 		'325349',
				b_color: 		'689183',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-2003784']={
webappId:    '1501',
documentId:  '401',
internalId:  '2003784',
customField: '1501'
};
webappMappings['7008']=webappMappings['7008-3845']={
webappId:    '7008',
documentId:  '515',
internalId:  '3845',
customField: 'language:pt;country:BR;'
};
webappMappings['7008']=webappMappings['7008-3846']={
webappId:    '7008',
documentId:  '20922',
internalId:  '3846',
customField: 'language:pt;country:BR;'
};
webappMappings['7008']=webappMappings['7008-3847']={
webappId:    '7008',
documentId:  '20943',
internalId:  '3847',
customField: 'language:pt;country:BR;'
};
webappMappings['7008']=webappMappings['7008-3848']={
webappId:    '7008',
documentId:  '20985',
internalId:  '3848',
customField: 'language:pt;country:BR;'
};
webappMappings['7008']=webappMappings['7008-3849']={
webappId:    '7008',
documentId:  '21006',
internalId:  '3849',
customField: 'language:pt;country:BR;'
};
webappMappings['7008']=webappMappings['7008-3850']={
webappId:    '7008',
documentId:  '60922',
internalId:  '3850',
customField: 'language:pt;country:BR;'
};
webappMappings['7008']=webappMappings['7008-3851']={
webappId:    '7008',
documentId:  '60901',
internalId:  '3851',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20080925-103918'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20081002-192811'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20080411-153252'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20901',
internalId:  '',
customField: '20080426-094349'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20922',
internalId:  '',
customField: '20100201-152943'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20943',
internalId:  '',
customField: '20100201-153101'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20964',
internalId:  '',
customField: '20080308-144341'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20985',
internalId:  '',
customField: '20090719-181027'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21006',
internalId:  '',
customField: '20080308-144438'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60901',
internalId:  '',
customField: '20081024-132209'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60922',
internalId:  '',
customField: '20080308-144524'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20090817-205029'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '515',
internalId:  '',
customField: '20070111-103459'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '536',
internalId:  '',
customField: '20090201-184226'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34701',
internalId:  '',
customField: '20070922-113659'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34722',
internalId:  '',
customField: '20070922-110634'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35201',
internalId:  '',
customField: '20070922-110746'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56301',
internalId:  '',
customField: '20071019-165728'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58301',
internalId:  '',
customField: '20080107-103038'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59401',
internalId:  '',
customField: '20080107-103002'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69801',
internalId:  '',
customField: '20080508-113351'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23701',
internalId:  '',
customField: '20080517-192759'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '557',
internalId:  '',
customField: '20080426-100253'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25101',
internalId:  '',
customField: '20090719-182410'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74001',
internalId:  '',
customField: '20090201-182504'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74701',
internalId:  '',
customField: '20090228-131125'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75101',
internalId:  '',
customField: '20090430-091650'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77001',
internalId:  '',
customField: '20100205-074912'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77401',
internalId:  '',
customField: '20100210-172532'
};
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INEI48';
var companyName   = 'EAGLE+Consultoria+e+Treinamentos';
var htmlTitle	  = 'Eagle+Consultoria+e+Treinamentos';
var metaKeywords  = 'Eagle+Consultoria+e+Treinamentos+em+RH%2C+lideran%C3%A7a%2C+desenvolvimento+de+equipes';
var metaContents  = 'Eagle+Consultoria+e+Treinamentos';
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();
};
