<!--

// ------------------------------------------
// ----- configuracao de Menus/SubMenus -----
// ------------------------------------------
// IDs dos Menus contendo Submenus
var arrIDSubmenu = new Array(0,1,3,5,7);
// Pastas de destino
var arrDestinos = new Array("/apresentacao/","/novidades/","/legislacao/","/abccomercial/","/formularios/","/curiosidades/","/links/","/codex/");

// Comprimento da string para as pastas de destino
//var iLenPastas = 4;
// Total de Opcoes existentes no Menu
//var iTotalDeOpcoesNoMenu = 8;
// ------------------------------------------

	function abremenu(menuid) {

		if (eval("document.all."+menuid+".style.display")=="none") {

                        for (i=1;i<11;i++) {
                             eval("document.all.mm"+i+".style.display='none'");
                             }

			eval("document.all."+menuid+".style.display=''");
                        window.location='#bk'+menuid;
		}

		else {
			eval("document.all."+menuid+".style.display='none'");
		}	

	}

	function submenu(bid) {
		eval("document.all.b.style.display='none'");
		
		for (i=0; i <= arrDestinos.length-1; i++) {
			eval("document.all.b"+i+"a.style.display=''");
			eval("document.all.b"+i+"b.style.display='none'");
			
			for (j=0;j<=arrIDSubmenu.length ;j++) {
				if (i == arrIDSubmenu[j]) {
					eval("document.all.s"+i+".style.display='none'");	
				}
			}
		}

		eval("document.all.b"+bid+"a.style.display='none'");
		eval("document.all.b"+bid+"b.style.display=''");
		
		for (j=0;j<=arrIDSubmenu.length ;j++) {
			if (bid == arrIDSubmenu[j]) {
				eval("document.all.s"+bid+".style.display=''");
			}
		}

	}

	function menu() {		
		var theURL=document.location.toString();

		for (i=0;i<=arrDestinos.length ;i++) {
			if (theURL.indexOf(arrDestinos[i]) >= 0) { submenu(i) }
			//if (theURL.substring(theURL.indexOf(arrDestinos[i]),theURL.indexOf(arrDestinos[i])+iLenPastas) == arrDestinos[i]) { submenu(i) }
		}
	}


browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);
        if (browserName == "Netscape" && browserVer >= 3 || browserName == "Microsoft Internet Explorer" && browserVer>=4) version = "n3";
        else version="x";
if (version == "n3")
{
var AManim = false;

	image1= new Image();
	image1.src = "/images/nav/int_bot_anterior.gif";
	image1on = new Image();
	image1on.src = "/images/nav/int_bot_anterior1.gif";

	image2= new Image();
	image2.src = "/images/nav/int_bot_inicio.gif";
	image2on = new Image();
	image2on.src = "/images/nav/int_bot_inicio1.gif";

	image3= new Image();
	image3.src = "/images/nav/int_bot_imprimir.gif";
	image3on = new Image();
	image3on.src = "/images/nav/int_bot_imprimir1.gif";

	image4= new Image();
	image4.src = "/images/nav/int_bot_enviarlink.gif";
	image4on = new Image();
	image4on.src = "/images/nav/int_bot_enviarlink1.gif";

	image5= new Image();
	image5.src = "/images/nav/int_bot_topo.gif";
	image5on = new Image();
	image5on.src = "/images/nav/int_bot_topo1.gif";

	image6= new Image();
	image6.src = "/images/nav/int_bot_anterior.gif";
	image6on = new Image();
	image6on.src = "/images/nav/int_bot_anterior1.gif";

	image7= new Image();
	image7.src = "/images/nav/int_bot_inicio.gif";
	image7on = new Image();
	image7on.src = "/images/nav/int_bot_inicio1.gif";

	image8= new Image();
	image8.src = "/images/nav/int_bot_imprimir.gif";
	image8on = new Image();
	image8on.src = "/images/nav/int_bot_imprimir1.gif";

	image9= new Image();
	image9.src = "/images/nav/int_bot_enviarlink.gif";
	image9on = new Image();
	image9on.src = "/images/nav/int_bot_enviarlink1.gif";

	image10= new Image();
	image10.src = "/images/nav/int_bot_imprimir_capa.gif";
	image10on = new Image();
	image10on.src = "/images/nav/int_bot_imprimir_capa1.gif";


function ON1(name) {
	document[name].src = eval(name + "on.src");
	}

function OFF1(name) {
document[name].src = eval(name + ".src");
	}

AManim = true;

function on(name) {
	if (AManim) ON1(name);
	}

function off(name) {
	if (AManim) OFF1(name);
	}
}

function abremenu(menuid,n) {

		if (eval("document.all."+menuid+".style.display")=="none") {

                        for (i=1;i<n;i++) {
                             eval("document.all.m"+i+"orig.style.display=''");
                             eval("document.all.m"+i+".style.display='none'");
                             }

			eval("document.all."+menuid+"orig.style.display='none'");
			eval("document.all."+menuid+".style.display=''");

		}

		else {
                        eval("document.all."+menuid+"orig.style.display=''");
			eval("document.all."+menuid+".style.display='none'");
		}	

	}


function abre(tid,n) {

		if (eval("document.all."+tid+".style.display")=="none") {

                        for (i=1;i<n;i++) {
                             eval("document.all.t"+i+".style.display='none'");
                             }

			eval("document.all."+tid+".style.display=''");

		}

		else {
			eval("document.all."+tid+".style.display='none'");
		}	

	}

function go(url) {

			document.location=url;

	}

/*
function amigo(pagina) {
	var theURL;

	switch (pagina) {
		case 1: { theURL="www.dnci.net/apresentacao/default.aspx"; } break;
		case 2: { theURL="www.dnci.net/apresentacao/perfil.aspx"; } break;
	}
	
	window.open('/auxiliar/pop_amigo.aspx?theURL='+theURL,'amigo','toolbar=no,width=430,height=300,location=no,status=no,directories=no,menubar=no,scrollbars=no,resizable=no');
}
*/

function amigo() {
	var theURL = document.location;
	window.open('/auxiliar/pop_amigo.aspx?theURL='+theURL,'amigo','toolbar=no,width=430,height=300,location=no,status=no,directories=no,menubar=no,scrollbars=no,resizable=no');
}


function Pop() {
window.open('/auxiliar/pop_mensagem.aspx','DNCI','toolbar=no,width=569,height=460,location=no,status=no,directories=no,menubar=no,scrollbars=yes,resizable=no');
}

function PopFolheto2() {
window.open('/docs/abc/documentacao/pop_folheto2.aspx','DNCI','toolbar=no,width=569,height=460,location=no,status=no,directories=no,menubar=no,scrollbars=yes,resizable=no');
}

function PopFolheto3() {
window.open('/docs/abc/documentacao/pop_folheto3.aspx','DNCI','toolbar=no,width=569,height=460,location=no,status=no,directories=no,menubar=no,scrollbars=yes,resizable=no');
}

function PopFolheto4() {
window.open('/docs/abc/documentacao/pop_folheto4.aspx','DNCI','toolbar=no,width=569,height=460,location=no,status=no,directories=no,menubar=no,scrollbars=yes,resizable=no');
}

function PopMinistros() {
window.open('/auxiliar/pop_ministros2006.aspx','Ministros','toolbar=no,width=600,height=438,location=no,status=no,directories=no,menubar=no,scrollbars=no,resizable=no');
}

function pop_img(im) {

  window.open('/auxiliar/pop_img.aspx?imagem='+im, "Detalhe", "toolbar=no,width=450,height=520,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no");
}

function pop_imgvertical(im) {

  window.open('/auxiliar/pop_img.aspx?imagem='+im, "Detalhe", "toolbar=no,width=612,height=520,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no");
}




function imprime(numero) {

                    for (i=1;i<numero+1;i++) {
                         eval("document.all.t"+i+".style.display=''");
                    }
                    print();
                    for (i=1;i<numero+1;i++) {
                         eval("document.all.t"+i+".style.display='none'");
                    }

}

function gonovidade()

      {
if (document.formnovidade.novidades.options[document.formnovidade.novidades.selectedIndex].value != "none")
{ 
location = document.formnovidade.novidades.options[document.formnovidade.novidades.selectedIndex].value
       }           
}

function gonovidade2()

      {
if (document.formnovidade2.novidades.options[document.formnovidade2.novidades.selectedIndex].value != "none")
{ 
location = document.formnovidade2.novidades.options[document.formnovidade2.novidades.selectedIndex].value
       }           
}

function goabc()

      {
if (document.formabc.abc.options[document.formabc.abc.selectedIndex].value != "none")
{ 
location = document.formabc.abc.options[document.formabc.abc.selectedIndex].value
       }           
}

function Sponsor() {
	window.open('/auxiliar/3aniv.aspx','paraolimpicos','toolbar=no,width=740,height=540,location=no,status=no,directories=no,menubar=no,scrollbars=no,resizable=no');
}


//-->