/* [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','501',jdecode('Sobre+a+%22RBT%22'),jdecode(''), jdecode('%2F501.html'), 'true',[],'',''],
	['PAGE','195669',jdecode('METODOLOGIA'),jdecode(''), jdecode('%2F195669.html'), 'true',[],'',''],
	['PAGE','67601',jdecode('PROGRAMAS'),jdecode(''), jdecode('%2F67601%2Findex.html'), 'true',[ 
		['PAGE','32101',jdecode('LTGP'),jdecode(''), jdecode('%2F67601%2F32101.html'), 'true',[],'',''],
		['PAGE','68201',jdecode('PILDE'),jdecode(''), jdecode('%2F67601%2F68201.html'), 'true',[],'','']
	],'',''],
	['PAGE','68243',jdecode('TREINAMENTOS'),jdecode(''), jdecode('%2F68243%2Findex.html'), 'true',[ 
		['PAGE','68264',jdecode('EQUIPES'),jdecode(''), jdecode('%2F68243%2F68264.html'), 'true',[],'',''],
		['PAGE','68285',jdecode('TELDN'),jdecode(''), jdecode('%2F68243%2F68285.html'), 'true',[],'',''],
		['PAGE','68601',jdecode('PALESTRAS'),jdecode(''), jdecode('%2F68243%2F68601.html'), 'true',[],'',''],
		['PAGE','87201',jdecode('LIDERAN%C3%87A-COACH'),jdecode(''), jdecode('%2F68243%2F87201.html'), 'true',[],'',''],
		['PAGE','87222',jdecode('ALTA+PERFORMANCE'),jdecode(''), jdecode('%2F68243%2F87222.html'), 'true',[],'','']
	],'',''],
	['PAGE','32122',jdecode('COACHING'),jdecode(''), jdecode('%2F32122.html'), 'true',[],'',''],
	['PAGE','32143',jdecode('THE+COACHING+CLINIC'),jdecode(''), jdecode('%2F32143.html'), 'true',[],'',''],
	['PAGE','32164',jdecode('CONSULTORIA'),jdecode(''), jdecode('%2F32164.html'), 'true',[],'',''],
	['PAGE','32601',jdecode('PROFISSIONAIS+da+RBT'),jdecode(''), jdecode('%2F32601.html'), 'true',[],'',''],
	['PAGE','97601',jdecode('DIFERENCIAIS+RBT'),jdecode(''), jdecode('%2F97601.html'), 'true',[],'',''],
	['PAGE','32622',jdecode('CLIENTES'),jdecode(''), jdecode('%2F32622.html'), 'true',[],'',''],
	['PAGE','32643',jdecode('CONTATO'),jdecode(''), jdecode('%2F32643.html'), 'true',[],'','']];
var siteelementCount=18;
theSitetree.topTemplateName='Multimedia';
theSitetree.paletteFamily='3D464F';
theSitetree.keyvisualId='11369';
theSitetree.keyvisualName='kv_11369.jpg';
theSitetree.fontsetId='32003';
theSitetree.graphicsetId='13835';
theSitetree.contentColor='000F1F';
theSitetree.contentBGColor='3D464F';
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: 			'Multimedia',
				paletteFamily: 	'3D464F',
				keyvisualId: 	'11369',
				keyvisualName: 	'kv_11369.jpg',
				fontsetId: 		'32003',
				graphicsetId: 	'13835',
				contentColor: 	'000F1F',
				contentBGColor: '3D464F',
				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:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '501',
internalId:  '1006',
customField: '1006'
};
webappMappings['7008']=webappMappings['7008-2929']={
webappId:    '7008',
documentId:  '32643',
internalId:  '2929',
customField: 'language:pt;country:BR;'
};
webappMappings['7008']=webappMappings['7008-2930']={
webappId:    '7008',
documentId:  '32143',
internalId:  '2930',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20110331-114115'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '67601',
internalId:  '',
customField: '20100126-132119'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32101',
internalId:  '',
customField: '20100128-072839'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68201',
internalId:  '',
customField: '20100129-075027'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68243',
internalId:  '',
customField: '20100613-161027'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68264',
internalId:  '',
customField: '20100125-073243'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68285',
internalId:  '',
customField: '20100128-071514'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68601',
internalId:  '',
customField: '20100128-073052'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87201',
internalId:  '',
customField: '20120126-202939'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87222',
internalId:  '',
customField: '20120126-203101'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32122',
internalId:  '',
customField: '20120126-202643'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32143',
internalId:  '',
customField: '20120202-172834'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32164',
internalId:  '',
customField: '20100128-074839'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32601',
internalId:  '',
customField: '20120104-080311'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97601',
internalId:  '',
customField: '20120202-171830'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32622',
internalId:  '',
customField: '20120126-192854'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32643',
internalId:  '',
customField: '20100127-081618'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '195669',
internalId:  '',
customField: '20110927-211911'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INFMQC';
var companyName   = 'RBT+Consultoria+%26+Coaching';
var htmlTitle	  = 'RBT+Consultoria++Coaching';
var metaKeywords  = 'RBT+Consultoria%2C+Coach%2C+Coaching%2C+Coaching+Clinic%2C+Treinamentos%2C+treinamentos+ao+ar+livre%2C+Palestras%2C+Consultoria+empresarial%2C+TELDN%2C+PILDE%2C+MULHERES+EXECUTIVAS%2C+GEST%C3%83O+DE+CONFLITOS%2C+THE+COACHING+CLINIC%2C+CLINIC%2C+COACHING+CLINIC%2C+RBT%2C+CONSULTORIA%2C+RBT+CONSULTORIA%2C+TREINAMENTO+EMPRESARIAL%2C+TREINAMENTO%2C+L%C3%8DDERES%2C+LIDERAN%C3%87A%2C+GERENCIAMENTO%2C+GERENTES%2C+ALTA+PERFORMANCE%2C+EQUIPES%2C+DESENVOLVIMENTO+DE+EQUIPES%2C+DESENVOLVIMENTO+ORGANIZACIONAL%2C+COMUNICA%C3%87%C3%83O%2C+COACHING+EXECUTIVE%2C+LIDERAN%C3%87A+M%C3%81XIMA%2C';
var metaContents  = 'RBT+Consultoria%2C+Coach%2C+Coaching%2C+Coaching+Clinic%2C+Treinamentos%2C+treinamentos+ao+ar+livre%2C+Palestras%2C+Consultoria+empresarial%2C+TELDN%2C+PILDE%2C+MULHERES+EXECUTIVAS%2C+GEST%C3%83O+DE+CONFLITOS%2C+THE+COACHING+CLINIC%2C+CLINIC%2C+COACHING+CLINIC%2C+RBT%2C+CONSULTORIA%2C+RBT+CONSULTORIA%2C+TREINAMENTO+EMPRESARIAL%2C+TREINAMENTO%2C+L%C3%8DDERES%2C+LIDERAN%C3%87A%2C+GERENCIAMENTO%2C+GERENTES%2C+ALTA+PERFORMANCE%2C+EQUIPES%2C+DESENVOLVIMENTO+DE+EQUIPES%2C+DESENVOLVIMENTO+ORGANIZACIONAL%2C+COMUNICA%C3%87%C3%83O%2C+COACHING+EXECUTIVE%2C+LIDERAN%C3%87A+M%C3%81XIMA%2C';
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();
};

