"use strict";
var 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>";

var 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</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, primeiro = 1, ultimo;

var bnf = '<a href="http://pt.wikipedia.org/wiki/Bnf" target="_blank">BNF</a>';

var ds = '<a href="DiagramaSintatico.htm">Diagrama Sint&aacute;tico</a>';

var s = 1, S = 1, n = 0, N = 0;

var ElementoDojo = [['Soluções Coding Dojo',	'ElementoDojo',	'',	''],
['Coding Dojo', 0, 1, 1, [''], "Dojo.htm", ''],
['#34 Expressão Aritmética', 0, 1, 1, [''], "DojoExpressaoAritmetica.htm", ''],
['#33 Impedimento', 0, 1, 1, [''], "DojoImpedimento.htm", ''],
['#32 Sequência Numérica', 0, 1, 1, [''], "DojoSequencia.htm", ''],
['#31 Tráfego', 0, 1, 1, [''], "DojoTrafego.htm", ''],
['#29 Boliche', 0, 1, 1, [''], "DojoBoliche.htm", ''],
['#28 Jogo da Vida', 0, 1, 1, [''], "DojoJogoVida.htm", '']];

var Evento = [['Evento',	'Evento',	'',	''],
['Projeto Apoie', 0, 1, 1, [''], "SBApoie.htm", ''],
['Curso de XML', 0, 1, 1, [''], "SBCursoXml.htm", ''],
['Páginas sobre XML', 0, 1, 1, [''], "ProduzirPaginasSobreXml.htm", ''],
['Sintaxe de XML', 0, 1, 1, [''], "ProduzirComponenteSintaxeXML.htm", ''],
['Pendência', 0, 1, 1, [''], "Pendencia.htm", ''],
['Prioridade', 0, 1, 1, [''], "Prioridade.htm", '']];
	
var Componente = [['Componente',	'Componente',	'',	''],
['ExibirLinguagem.htm', 0, 1, 1, [''], "ComponenteExibirLinguagem.htm", ''],
['Gerar Páginas', 0, 1, 1, [''], "GerarHtm.htm", ''],
['Lista', 0, 1, 1, [''], "Lista.htm", ''],
['Tabela de Decisões', 0, 1, 1, [''], "TabelaDecisoes.htm", '']];

var Metodo = [['Método',	'Metodo',	'',	''],
['Diagrama Warnier/Orr', 0, 1, 1, [''], "WarnierOrr.htm", ''],
['Simples x Complexo ', 0, 1, 1, [''], "SimplesComplexo.htm", '']];

var Qualidade = [['Qualidade',	'Qualidade',	'',	''],
['5w2h', 0, 1, 1, [''], "5W2H.htm", ''],
['PDCA', 0, 1, 1, [''], "PDCA.htm", '']];

var linguagem = [['Linguagem',	'linguagem',	'',	''],
['LDC',			0, 1, 1, [''], "Ldc.htm", ''],
['Python 3.0',	0, 1, 1, [''], "Python3.htm", ''],
['Shell',		0, 1, 1, [''], "Shell.htm", ''],
['Javascript',	0, 1, 1, [''], "Javascript.htm", ''],
['Lua',			0, 1, 1, [''], "Lua.htm", ''],
['PHP',			0, 1, 1, [''], "Php.htm", ''],
['XML',			0, 1, 1, [''], "Xml.htm", ''],
['LazyBnf',		0, 1, 1, [''], "LazyBnf.htm", '']];
	
var ElementoPagina = [['Configuração Página',	'ElementoPagina'],
['Nome',		0, 1, 1, ['~nome~'], '', 'nome'],
['Lead',		0, 1, 1, ['~lead~'], '', 'lead']];

var ElementoTopico = [['Tópico', 'ElementoTopico'],
['Titulo',		0, 1, 1, [''], "javascript:Refresh(ElementoTopico, 1);", ''],
['BNF',			0, 0, 0, [''], "javascript:Refresh(ElementoTopico, 2);", ''],
['Exemplo',		0, 1, 1, [''], "javascript:Refresh(ElementoTopico, 3);", ''],
['Descrição',	0, 1, 1, [''], "javascript:Refresh(ElementoTopico, 4);", ''],
['Observações',	0, 1, 1, [''], "javascript:Refresh(ElementoTopico, 5);", '']];

var FormatoPagina = [['Configuração', 'FormatoPagina'],
['Cabeçalho',	0, 1, 1, [CabPap], '', 'cabecalho'],
['Buscar',		0, 1, 1, [buscar], '', 'busca'],
['Referência',	0, 1, 1, referencia, '', 'referencia'],
['Tópico',		ElementoPagina, 1, 1, [], '', ''],
['Elemento', 	ElementoTopico, 1, 1, [], '', '']];

var Indice = [['Índice', 'Indice']];
var Log = [['Histórico', 'Log']];

var ElementoFiltro = [['Filtro', 'ElementoFiltro', 1, 0, [''], 'txt=""; if(ElementoFiltro[0][tipo])txt=ExibirConjunto(ElementoFiltro);', 'indice'],
['Índice',		Indice,		1, 1],
['Soluções Coding Dojo', ElementoDojo,1, 1],
['Evento',		Evento,		0, 0],
['Componente',	Componente,	0, 0],
['Linguagem',	linguagem,	0, 0],
['Método',		Metodo,		0, 0],
['Qualidade',	Qualidade,	0, 0],
['Configurar Página',FormatoPagina, 1, 0]];
