/* [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','11',jdecode('Home'),jdecode(''), jdecode('%2F11.html'), 'true',[],'',''],
	['PAGE','41',jdecode('Hist%C3%B3ria+'),jdecode(''), jdecode('%2F41.html'), 'true',[],'',''],
	['PAGE','1082',jdecode('++Livro+de+visitas'),jdecode(''), jdecode('%2F1082%2Findex.html'), 'true',[ 
		['PAGE','1081',jdecode('Servi%C3%A7o+de+bilhetes'),jdecode(''), jdecode('%2F1082%2F1081.html'), 'false',[],'','']
	],'',''],
	['PAGE','32',jdecode('Na+M%C3%ADdia'),jdecode(''), jdecode('%2F32.html'), 'true',[],'',''],
	['PAGE','73234',jdecode('programa%C3%A7%C3%A3o'),jdecode(''), jdecode('%2F73234.html'), 'false',[],'',''],
	['PAGE','1448',jdecode('Informativo'),jdecode(''), jdecode('%2F1448.html'), 'true',[],'',''],
	['PAGE','42201',jdecode('SEMIN%C3%81RIO+2008'),jdecode(''), jdecode('%2F42201.html'), 'true',[],'',''],
	['PAGE','80834',jdecode('SEMIN%C3%81RIO+2009'),jdecode(''), jdecode('%2F80834.html'), 'true',[],'',''],
	['PAGE','95656',jdecode('SEMIN%C3%81RIO+2010'),jdecode(''), jdecode('%2F95656.html'), 'true',[],'',''],
	['PAGE','136178',jdecode('SEMIN%C3%81RIO+2011'),jdecode(''), jdecode('%2F136178.html'), 'true',[],'',''],
	['PAGE','46601',jdecode('EVENTOS'),jdecode(''), jdecode('%2F46601.html'), 'true',[],'',''],
	['PAGE','76834',jdecode('MEMORIAL'),jdecode(''), jdecode('%2F76834.html'), 'true',[],'',''],
	['PAGE','1362',jdecode('Jur%C3%ADdico'),jdecode(''), jdecode('%2F1362%2Findex.html'), 'true',[ 
		['PAGE','1789',jdecode('LEI+11143'),jdecode(''), jdecode('%2F1362%2F1789.html'), 'false',[],'',''],
		['PAGE','1919',jdecode('LEI+10559'),jdecode(''), jdecode('%2F1362%2F1919.html'), 'false',[],'',''],
		['PAGE','1973',jdecode('DECRETO+4897'),jdecode(''), jdecode('%2F1362%2F1973.html'), 'false',[],'',''],
		['PAGE','3168',jdecode('REGIMENTO+INT+CA'),jdecode(''), jdecode('%2F1362%2F3168.html'), 'false',[],'',''],
		['PAGE','17801',jdecode('PORTARIA+756'),jdecode(''), jdecode('%2F1362%2F17801.html'), 'false',[],'',''],
		['PAGE','20601',jdecode('PARECER+MPS%2FCJ+N%C2%BA1'),jdecode(''), jdecode('%2F1362%2F20601.html'), 'false',[],'','']
	],'',''],
	['PAGE','103967',jdecode('LEI+6683%2F79'),jdecode(''), jdecode('%2F103967.html'), 'false',[],'',''],
	['PAGE','78934',jdecode('LEI+11354%2F2006'),jdecode(''), jdecode('%2F78934.html'), 'false',[],'',''],
	['PAGE','71634',jdecode('PROCESSO+GUARATINGUETA'),jdecode(''), jdecode('%2F71634.html'), 'false',[],'',''],
	['PAGE','69523',jdecode('Fal%C3%AAncia+VASP'),jdecode(''), jdecode('%2F69523.html'), 'false',[],'',''],
	['PAGE','69823',jdecode('SRH+ON+de+4+de+9+2008'),jdecode(''), jdecode('%2F69823.html'), 'false',[],'',''],
	['PAGE','69544',jdecode('ISEN%C3%87%C3%83O+IR'),jdecode(''), jdecode('%2F69544.html'), 'false',[],'',''],
	['PAGE','1187',jdecode('Fotos+%2F+Eventos'),jdecode(''), jdecode('%2F1187.html'), 'true',[],'',''],
	['PAGE','1371',jdecode('Social'),jdecode(''), jdecode('%2F1371.html'), 'true',[],'',''],
	['PAGE','2313',jdecode('SA%C3%9ADE+em+DIA'),jdecode(''), jdecode('%2F2313.html'), 'true',[],'',''],
	['PAGE','1457',jdecode('Avia%C3%A7%C3%A3o'),jdecode(''), jdecode('%2F1457.html'), 'true',[],'',''],
	['PAGE','1380',jdecode('Links'),jdecode(''), jdecode('%2F1380.html'), 'true',[],'',''],
	['PAGE','1691',jdecode('Contato'),jdecode(''), jdecode('%2F1691%2Findex.html'), 'true',[ 
		['PAGE','2145',jdecode('Novo+%28p%C3%A1gina+seguir%29'),jdecode(''), jdecode('%2F1691%2F2145.html'), 'false',[],'','']
	],'',''],
	['PAGE','2577',jdecode('Associados'),jdecode(''), jdecode('%2F2577.html'), 'true',[],'',''],
	['PAGE','126567',jdecode('Nova+p%C3%A1gina'),jdecode(''), jdecode('%2F126567.html'), 'false',[],'',''],
	['PAGE','126588',jdecode('Nova+p%C3%A1gina1'),jdecode(''), jdecode('%2F126588.html'), 'false',[],'',''],
	['PAGE','126609',jdecode('Nova+p%C3%A1gina2'),jdecode(''), jdecode('%2F126609.html'), 'false',[],'',''],
	['PAGE','126630',jdecode('Nova+p%C3%A1gina3'),jdecode(''), jdecode('%2F126630.html'), 'false',[],'',''],
	['PAGE','126651',jdecode('Nova+p%C3%A1gina4'),jdecode(''), jdecode('%2F126651.html'), 'false',[],'','']];
var siteelementCount=39;
theSitetree.topTemplateName='Circulation';
theSitetree.paletteFamily='B1942D';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10587';
theSitetree.graphicsetId='10563';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='000000';
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: 			'Circulation',
				paletteFamily: 	'B1942D',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10587',
				graphicsetId: 	'10563',
				contentColor: 	'FFFFFF',
				contentBGColor: '000000',
				a_color: 		'FFFFFF',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '11',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11',
internalId:  '',
customField: '20111018-092935'
};
webappMappings['1002']=webappMappings['1002-1082AVEC10IN236G']={
webappId:    '1002',
documentId:  '1082',
internalId:  '1082AVEC10IN236G',
customField: 'icq=false'
};
webappMappings['7005']=webappMappings['7005-84']={
webappId:    '7005',
documentId:  '11',
internalId:  '84',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '126567',
internalId:  '',
customField: '20110909-084235'
};
webappMappings['7060']=webappMappings['7060-f2bfa3198f62eeb5536333c2c92cdb78']={
webappId:    '7060',
documentId:  '2577',
internalId:  'f2bfa3198f62eeb5536333c2c92cdb78',
customField: 'language:pt;country:BR;'
};
webappMappings['1501']=webappMappings['1501-1317700']={
webappId:    '1501',
documentId:  '11',
internalId:  '1317700',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69544',
internalId:  '',
customField: '20090731-172245'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69523',
internalId:  '',
customField: '20090731-163211'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41',
internalId:  '',
customField: '20100315-154923'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32',
internalId:  '',
customField: '20111027-095709'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1448',
internalId:  '',
customField: '20111122-083945'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42201',
internalId:  '',
customField: '20110827-153001'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46601',
internalId:  '',
customField: '20111122-084351'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1362',
internalId:  '',
customField: '20110909-084629'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1789',
internalId:  '',
customField: '20060326-210750'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1919',
internalId:  '',
customField: '20060326-210838'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1973',
internalId:  '',
customField: '20060326-211213'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3168',
internalId:  '',
customField: '20070712-221213'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17801',
internalId:  '',
customField: '20070712-222720'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20601',
internalId:  '',
customField: '20070727-163601'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73234',
internalId:  '',
customField: '20090805-103743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1187',
internalId:  '',
customField: '20110827-152103'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1371',
internalId:  '',
customField: '20110827-152146'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1457',
internalId:  '',
customField: '20110827-152422'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1082',
internalId:  '',
customField: '20060326-211604'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1081',
internalId:  '',
customField: '20060419-112841'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1380',
internalId:  '',
customField: '20110827-152533'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1691',
internalId:  '',
customField: '20110827-152645'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2145',
internalId:  '',
customField: '20060318-010111'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2577',
internalId:  '',
customField: '20110827-152802'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2313',
internalId:  '',
customField: '20111016-171317'
};
webappMappings['7008']=webappMappings['7008-6793']={
webappId:    '7008',
documentId:  '1691',
internalId:  '6793',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69823',
internalId:  '',
customField: '20090731-165450'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71634',
internalId:  '',
customField: '20090731-181858'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76834',
internalId:  '',
customField: '20110827-151538'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78934',
internalId:  '',
customField: '20090921-102212'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80834',
internalId:  '',
customField: '20110827-152852'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95656',
internalId:  '',
customField: '20100813-144353'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '103967',
internalId:  '',
customField: '20110619-183815'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '126588',
internalId:  '',
customField: '20110909-082703'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '126609',
internalId:  '',
customField: '20110909-082703'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '126630',
internalId:  '',
customField: '20110909-082703'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '126651',
internalId:  '',
customField: '20110909-082703'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '136178',
internalId:  '',
customField: '20111014-224445'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10IN236G';
var companyName   = 'Aeronautas+Anistiados';
var htmlTitle	  = 'UNAA+-+Uni%C3%A3o+Nacional+de+Aeronautas+Anistiados';
var metaKeywords  = 'Tato%2C+Dr.+Alexandre+Tarciso+Tavares%2C+Tarciso+Tavares%2C+anistia+pol%C3%ADtica%2C+UNAA%2C+Uni%C3%A3o+Nacional+de+Aeronautas+Anistiados%2C+ditadura%2C+democracia%2C+liberdade%2C+direitos%2C+avia%C3%A7%C3%A3o%2C+pol%C3%ADtica%2C+Comiss%C3%A3o+de+Anistia%2C+anistia+ampla+geral%2C+Ditadura+Militar%2C+aeronautas%2C+aeronauta%2C+UNI%C3%83O%2C+repress%C3%A3o%2C+persegui%C3%A7%C3%A3o+pol%C3%ADtica%2C+unaabrasil.com%2C+www.unaabrasil.com%2C+minist%C3%A9rio+do+planejamento%2C+minist%C3%A9rio+da+justi%C3%A7a%2C+persegui%C3%A7%C3%A3o%2C+sindicato+nacional+dos+aeronautas%2C+indeniza%C3%A7%C3%A3o+aeronautas%2Cnsw-10txhmar-ljnfatsn70vqr56iqklrmdzgkv9-tfwrjrcqo1f0ae-k40fkbnkop7p2t8z1nax5v94og63n1g2dhajorwtec9hj2-vyp-209h1ay7noypqi5n8j5vlaauq%2C%3Cmeta+name%3D%22keywords%22+content%3D%22keyword1%2C+keyword2%2Cnsw-10txhmar-ljnfatsn70vqr56iqklrmdzgkv9-tfwrjrcqo1f0ae-k40fkbnkop7p2t8z1nax5v94og63n1g2dhajorwtec9hj2-vyp-209h1ay7noypqi5n8j5vlaauq%22%2F%3E+%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A';
var metaContents  = 'Anistia+Pol%C3%ADtica%2C+Cultura%2C+Avia%C3%A7%C3%A3o%2C+Social%2C+inform%C3%A1tica%2C+Pol%C3%ADtica%2C+variedades%2C+Brasil%2C+Jur%C3%ADdico%2C+democracia%2C+liberdade%2C+tortura%2C+ditadura%2C+grevistas%2C+greve+aeronautas%2C+greve+vasp%2C+SNA%2C+sindicato%2C+indeniza%C3%A7%C3%A3o+anistiados%2C+tripulantes%2C+VARIG%2Ccomiss%C3%A3o+de+anistia%2C+comiss%C3%A3o+da+verdade%2C+direitos+humanos%2C+sa%C3%BAde%2C+unaa%2C+uni%C3%A3o+nacional+de+aeronautas+anistiados%2C+unaabrasil%2C+unaainfo%2C+persegui%C3%A7%C3%A3o%2Cabertura+democr%C3%A1tica%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();
};

