const buscar = 
"<form style='margin: 0pt;' method='get' target='_blank' action='http://www.google.com/search'><input name='q' size='50' maxlength='255' value='' type='text'><input value='Buscar' type='submit'><input style='visibility: hidden;' name='sitesearch' value='apoie.org' checked='checked' type='checkbox'>	<a href='IndiceTopico.htm' target='_blank'>Índice</a> <a href='http://www.projetopap.blogspot.com/' target='_blank'>Colabore </a> <span class='contato'> <a href='Contato.htm'>Contato:</a> carlos<img src='arroba.gif' alt='arroba'>apoie.org <a target='_blank' href='http://docs.google.com/Doc?docid=dfxzqg3w_593hc2xdmgc&amp;hl=en' style='text-decoration: none; color: rgb(0, 0, 0); font-weight: normal;'>|</a>		leandro<img src='arroba.gif' alt='arroba'>apoie.org</span> </form>";
const referencia = ["Arquivo origem <a href='~origem~' target='_blank'>~origem~</a>.  ", "Ver: <a href='~fonte~' target='_blank'>~nome~ (sintaxe original)</a>.  ", '<a href="DiagramaSintatico.htm">Diagramas Sintáticos - Diagramas de Sintaxe</a> gerados a partir de <a target="_blank" href="LazyBnf.htm">BNF</a> no site <a target="_blank" href="http://www-cgi.uni-regensburg.de/%7Ebrf09510/syntax.html" title="Converter BNF em Diagrama Sintático - Diagrama de Sintaxe">uni-regensburg.de</a>.'];
var x; var primeiro = 1;	var ultimo;
const bnf = '<a href="http://pt.wikipedia.org/wiki/Bnf" target="_blank">BNF</a>';
const ds= '<a href="DiagramaSintatico.htm">Diagrama Sint&aacute;tico</a>';
const s = 1; const S = 1; const n = 0; const N = 0;

var Evento= [['Evento',	'Evento',	'',	''],
['Projeto Apoie', 0, 1, 1, [''], "iniciar ('SBApoie.xml', [1], 2)", ''],
['Curso de XML', 0, 1, 1, [''], "iniciar ('NegocioPrepararMatDitXml.xml', [1], 2)", ''],
['Páginas sobre XML', 0, 1, 1, [''], "iniciar ('ProduzirPaginasSobreXml.xml', [1], 2)", ''],
['Sintaxe de XML', 0, 1, 1, [''], "iniciar ('ProduzirComponenteSintaxeXML.xml', [1], 2)", '']];
	
var Componente= [['Componente',	'Componente',	'',	''],
['ExibirLinguagem.htm', 0, 1, 1, [''], "iniciar ('ComponenteExibirLinguagem.xml', [1], 2)", ''],
['Lista', 0, 1, 1, [''], "iniciar ('Lista.xml', [1], 2)", '']];

var linguagem= [['Linguagem',	'linguagem',	'',	''],
['LDC',			0, 1, 1, [''], "iniciar ('Ldc.xml', [1], 2)", ''],
['Python 3.0',	0, 1, 1, [''], "iniciar ('Python3.xml', [1], 2)", ''],
['Shell',		0, 1, 1, [''], "iniciar ('Shell.xml', [1], 2)", ''],
['Javascript',	0, 1, 1, [''], "iniciar ('Javascript.xml', [1], 2)", ''],
['Lua'	,		0, 1, 1, [''], "iniciar ('Lua.xml', [1], 2)", ''],
['PHP'	,		0, 1, 1, [''], "iniciar ('Php.xml', [1], 2)", ''],
['XML'	,		0, 1, 1, [''], "iniciar ('Xml.xml', [1], 2)", ''],
['LazyBnf',		0, 1, 1, [''], "iniciar ('LazyBnf.xml', [1], 2)", ''],
['Diagrama Warnier/Orr', 0, 1, 1, [''], "iniciar ('WarnierOrr.xml', [1], 2)", '']];
	
var ElementoPagina = [['Página',	'ElementoPagina'],
['Nome',			0, 1, 1, ['~nome~'], [],'nome'],
['Lead',			0, 0, 0, ['~lead~'], [],'lead'],
['Link',			0, 1, 1, ['~link~'], [],'link']];

var ElementoTopico = [['Tópico','ElementoTopico'],
['Comando',		0, 1, 1, [''], "ExibirElemento();", ''],
['BNF',			0, 1, 1, [''], "ExibirElemento();", ''],
['Exemplo',		0, 1, 1, [''], "ExibirElemento();", ''],
['Descrição',	0, 1, 1, [''], "ExibirElemento();", ''],
['Observações',	0, 0, 0, [''], "ExibirElemento();", '']];

var FormatoPagina = [['Configuração', 'FormatoPagina'],
['Cabeçalho',	0, 0, 0, [''], [],'cab'],
['Buscar',		0, 0, 0, [buscar], [],'busca'],
['Referência',	0, 0, 0, referencia, [], 'referencia'],
['Tópico',		ElementoPagina, 1, 1],
['Elemento', 	ElementoTopico, 1, 1]];

var Indice = [['Índice', 'Indice']];

var ElementoFiltro=[['Filtro', 'ElementoFiltro', 0, 1, [''], 'if(ElementoFiltro[0][tipo])txt=ExibirConjunto(ElementoFiltro);', 'filtro'],
['Evento',		Evento,		1, 1],
['Componente',	Componente,	1, 1],
['Linguagem',	linguagem,	1, 1],
['Índice',		Indice,		0, 1],
['Página',		FormatoPagina, 1, 1]];
