/* [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','27501',jdecode('P%C3%A1gina+inicial'),jdecode(''),'/27501.html','true',[],'',''],
	['PAGE','452',jdecode('A+F%C3%AAnix'),jdecode(''),'/452.html','true',[],'',''],
	['PAGE','473',jdecode('Projetos'),jdecode(''),'/473.html','true',[],'',''],
	['PAGE','401',jdecode('Noticias'),jdecode(''),'/401.html','true',[],'',''],
	['PAGE','494',jdecode('Aconteceu'),jdecode(''),'/494.html','true',[],'',''],
	['PAGE','66801',jdecode('Publica%C3%A7%C3%B5es'),jdecode(''),'/66801.html','true',[],'',''],
	['PAGE','5701',jdecode('Fotos'),jdecode(''),'/5701.html','true',[],'',''],
	['PAGE','62201',jdecode('Loja+Virtual'),jdecode(''),'/62201.html','true',[],'',''],
	['PAGE','72207',jdecode('Rede+Adolescente'),jdecode(''),'/72207.html','true',[],'',''],
	['PAGE','536',jdecode('Parceiros'),jdecode(''),'/536.html','true',[],'',''],
	['PAGE','13643',jdecode('Moda'),jdecode(''),'/13643.html','false',[],'',''],
	['PAGE','13601',jdecode('Aprendiz+de+Turismo'),jdecode(''),'/13601.html','false',[],'',''],
	['PAGE','13622',jdecode('Hotelaria+T%C3%A9cnico'),jdecode(''),'/13622.html','false',[],'',''],
	['PAGE','13664',jdecode('Reciclagem'),jdecode(''),'/13664.html','false',[],'',''],
	['PAGE','13685',jdecode('Inclus%C3%A3o+Digital'),jdecode(''),'/13685.html','false',[],'',''],
	['PAGE','13706',jdecode('Artes+Sacras+'),jdecode(''),'/13706.html','false',[],'',''],
	['PAGE','40401',jdecode('Com.Dom%C3%ADnio+Digital'),jdecode(''),'/40401.html','false',[],'',''],
	['PAGE','58101',jdecode('Fotografia'),jdecode(''),'/58101.html','false',[],'',''],
	['PAGE','14922',jdecode('Comp.+Experi%C3%AAncias'),jdecode(''),'/14922.html','false',[],'',''],
	['PAGE','14901',jdecode('Viva+Leite'),jdecode(''),'/14901.html','false',[],'',''],
	['PAGE','557',jdecode('Contato'),jdecode(''),'/557.html','true',[],'',''],
	['PAGE','10606',jdecode('Livro+de+visitas'),jdecode(''),'/10606.html','true',[],'','']];
var siteelementCount=22;
theSitetree.topTemplateName='Multimedia';
theSitetree.paletteFamily='98B4CA';
theSitetree.keyvisualId='11111';
theSitetree.keyvisualName='kv_11111.jpg';
theSitetree.fontsetId='32003';
theSitetree.graphicsetId='13832';
theSitetree.contentColor='262E36';
theSitetree.contentBGColor='98B4CA';
var localeDef={
  language: 'pt',
  country: 'BR'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Multimedia',
				paletteFamily: 	'98B4CA',
				keyvisualId: 	'11111',
				keyvisualName: 	'kv_11111.jpg',
				fontsetId: 		'32003',
				graphicsetId: 	'13832',
				contentColor: 	'262E36',
				contentBGColor: '98B4CA',
				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['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '27501',
internalId:  '1006',
customField: '1006'
};
webappMappings['7060']=webappMappings['7060-6439181a4b448f969f6eac9dd45f97cf']={
webappId:    '7060',
documentId:  '5701',
internalId:  '6439181a4b448f969f6eac9dd45f97cf',
customField: 'language:pt;country:BR;'
};
webappMappings['7008']=webappMappings['7008-1699']={
webappId:    '7008',
documentId:  '557',
internalId:  '1699',
customField: 'language:pt;country:BR;'
};
webappMappings['1002']=webappMappings['1002-10606avec10inl0kj']={
webappId:    '1002',
documentId:  '10606',
internalId:  '10606avec10inl0kj',
customField: 'icq=false'
};
webappMappings['7050']=webappMappings['7050-2294']={
webappId:    '7050',
documentId:  '72207',
internalId:  '2294',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27501',
internalId:  '',
customField: '20100316-144705'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20071129-132221'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20071220-091934'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20100701-234616'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '536',
internalId:  '',
customField: '20081117-173523'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66801',
internalId:  '',
customField: '20100316-135853'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20081117-163324'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72207',
internalId:  '',
customField: '20100702-000641'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13601',
internalId:  '',
customField: '20100312-102711'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13622',
internalId:  '',
customField: '20100316-134100'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13643',
internalId:  '',
customField: '20100316-133905'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13664',
internalId:  '',
customField: '20090630-152207'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13685',
internalId:  '',
customField: '20071205-092057'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13706',
internalId:  '',
customField: '20100316-134217'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14901',
internalId:  '',
customField: '20081020-125229'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14922',
internalId:  '',
customField: '20070828-135513'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40401',
internalId:  '',
customField: '20080410-084040'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '557',
internalId:  '',
customField: '20070719-112816'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5701',
internalId:  '',
customField: '20070719-111206'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10606',
internalId:  '',
customField: '20070806-072116'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58101',
internalId:  '',
customField: '20100316-132649'
};
webappMappings['7060']=webappMappings['7060-68db688da2ba39c13622eb23cc80f795']={
webappId:    '7060',
documentId:  '62201',
internalId:  '68db688da2ba39c13622eb23cc80f795',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62201',
internalId:  '',
customField: '20100316-150658'
};
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INL0KJ';
var companyName   = '';
var htmlTitle	  = 'Organiza%C3%A7%C3%A3o+F%C3%AAnix';
var metaKeywords  = 'Cursos+Gratuitos+Inclus%C3%A3o+Social+barueri+Santana+do+Parnaiba+Pirapora+do+Bom+Jesus+Patrocinio+projetos+sociais+gera%C3%A7ao+de+renda+inform%C3%A1tica';
var metaContents  = 'Organiza%C3%A7ao+Fenix+objetivo+promover+a+inclus%C3%A3o+social+e+capacita%C3%A7%C3%A3o+para+o+trabalho+e+gera%C3%A7ao+de+renda++Divulga%C3%A7ao+de+uma+organiza%C3%A7ao+nao+governamental+a+procura+de+patrocinadores+';
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();
};
