// JavaScript Document
<!--

  document.onmouseover = doDocumentOnMouseOver ;
  document.onmouseout = doDocumentOnMouseOut ;

  function doDocumentOnMouseOver() {
    var eSrc = window.event.srcElement ;
    if (eSrc.className == "item") {
      window.event.srcElement.className = "highlight"; // change class
    }
  }


  function doDocumentOnMouseOut() {
    var eSrc = window.event.srcElement ;
    if (eSrc.className == "highlight") {
      window.event.srcElement.className = "item"; // change class
    }
  }


var bV=parseInt(navigator.appVersion);

NS4=(document.layers) ? true : false;

IE4=((document.all)&&(bV>=4))?true:false;

ver4 = (NS4 || IE4) ? true : false;



function expandIt(){return}

function expandAll(){return}



function ratonin(src,fondoin) { 

if (!src.contains(event.fromElement)) { 

	src.style.cursor = 'hand';

	src.bgColor = fondoin; 

	} 

} 

function ratonout(src,fondout) { 

	if (!src.contains(event.toElement)) {

	src.style.cursor = 'default'; 

	src.bgColor = fondout; 

	} 

} 

function ratonclick(src) {

if(event.srcElement.tagName=='TD'){ 

	src.children.tags('A')[0].click(); 

} 

} 



isExpanded = false;



function getIndex(el) {

	ind = null;

	for (i=0; i<document.layers.length; i++) {

		whichEl = document.layers[i];

		if (whichEl.id == el) {

			ind = i;

			break;

		}

	}

	return ind;

}



function arrange() {

	nextY = document.layers[firstInd].pageY + document.layers[firstInd].document.height;

	for (i=firstInd+1; i<document.layers.length; i++) {

		whichEl = document.layers[i];

		if (whichEl.visibility != "hide") {

			whichEl.pageY = nextY;

			nextY += whichEl.document.height;

		}

	}

}



function initIt(){

	if (NS4) {

		for (i=0; i<document.layers.length; i++) {

			whichEl = document.layers[i];

			if (whichEl.id.indexOf("Child") != -1) whichEl.visibility = "hide";

		}

		arrange();

	}

	else {

		tempColl = document.all.tags("DIV");

		for (i=0; i<tempColl.length; i++) {

			if (tempColl(i).className == "child") tempColl(i).style.display = "none";

		}

	}

}



function expandIt(el) {

	if (!ver4) return;

	if (IE4) {expandIE(el)} else {expandNS(el)}

}



function expandIE(el) { 

	whichEl = eval(el + "Child");

	whichIm = event.srcElement;



	if (whichEl.style.display == "none") {

		whichEl.style.display = "block";

		whichIm.src = "images/_spacer.gif";		

	}

	else {

		whichEl.style.display = "none";

		whichIm.src = "images/_spacer.gif";

	}

    window.event.cancelBubble = true ;

}



function expandNS(el) {

	whichEl = eval("document." + el + "Child");

	whichIm = eval("document." + el + "Parent.document.images['imEx']");

	if (whichEl.visibility == "hide") {

		whichEl.visibility = "show";

		whichIm.src = "images/_spacer.gif";

	}

	else {

		whichEl.visibility = "hide";

		whichIm.src = "images/_spacer.gif";

	}

	arrange();

}



function showAll() {

	for (i=firstInd; i<document.layers.length; i++) {

		whichEl = document.layers[i];

		whichEl.visibility = "show";

	}

}



function expandAll(isBot) {

	newSrc = (isExpanded) ? "images/_spacer.gif" : "images/_spacer.gif";



	if (NS4) {

        document.images["imEx"].src = newSrc;

		for (i=firstInd; i<document.layers.length; i++) {

			whichEl = document.layers[i];

			if (whichEl.id.indexOf("Parent") != -1) {

				whichEl.document.images["imEx"].src = newSrc;

			}

			if (whichEl.id.indexOf("Child") != -1) {

				whichEl.visibility = (isExpanded) ? "hide" : "show";

			}

		}



		arrange();

		if (isBot && isExpanded) scrollTo(0,document.layers[firstInd].pageY);

	}

	else {

		divColl = document.all.tags("DIV");

		for (i=0; i<divColl.length; i++) {

			if (divColl(i).className == "child") {

				divColl(i).style.display = (isExpanded) ? "none" : "block";

			}

		}

		imColl = document.images.item("imEx");

		for (i=0; i<imColl.length; i++) {

			imColl(i).src = newSrc;

		}

	}



	isExpanded = !isExpanded;

}



function enterSubmit(Controle) {

		if (window.event.keyCode == 13 || Controle==1) 

		{

			window.event.keyCode=0;

			if (document.all.TxtCodigo.value == "") {

				alert ("Favor digitar um Código");

				return false;

			}else{

				window.location = "index.php?page=4&Codigo=" + document.all.TxtCodigo.value

				return false;

			}

		}

	}





with (document) {

	write("<STYLE TYPE='text/css'>");

	if (NS4) {

		write(".parent {font-size:9pt; line-height:10pt; color:###webpagefontlinkcolor#; text-decoration:none; margin-top: 0px; margin-bottom: 0px; position:absolute; visibility:hidden; color: ###webpagefontlinkcolor#;}");

		write(".child {text-decoration:none; font-size:9pt; line-height:10pt; position:absolute; visibility:hidden}");

	        write(".item { color: ###webpagefontlinkcolor#; text-decoration:none;}");

		write(".regular {position:absolute; visibility:hidden}");

	        write("DIV { color:###webpagefontlinkcolor#; }")

	}

	else {

		write(".child {font:12px/13px Arial; display:none}");

		write(".parent {font:12px/13px Arial; color:###webpagefontlinkcolor#; font-weight:bold; text-decoration:none; margin-top: 0px; margin-bottom: 0px; color: ###webpagefontlinkcolor#;}");

	        write(".item { color: ###webpagefontlinkcolor#; text-decoration:none;}");

	        write(".highlight { color: ###webpagefontlinkcolor#; }");

	        write(".heada { font: 12px/13px; Arial}");

	        write("DIV { color:###webpagefontlinkcolor#; }")

	}

	write("</STYLE>");

}



onload = initIt;



function Hoje(){var diasemana=new Array()

diasemana[0]="domingo"

diasemana[1]="segunda-feira"

diasemana[2]="terça-feira"

diasemana[3]="quarta-feira"

diasemana[4]="quinta-feira"

diasemana[5]="sexta-feira"

diasemana[6]="sábado"

var mesnome=new Array();mesnome[0]="janeiro";mesnome[1]="fevereiro";mesnome[2]="março";mesnome[3]="abril";mesnome[4]="maio";mesnome[5]="junho";mesnome[6]="julho";mesnome[7]="agosto";mesnome[8]="setembro";mesnome[9]="outubro";mesnome[10]="novembro";mesnome[11]="dezembro";

var hoje=new Date()

var ano=hoje.getYear()

if(ano<2000){ano+=1900;}var mes=hoje.getMonth()

var dia=hoje.getDate()

var diasem=hoje.getDay()

var str=""+diasemana[diasem]+", dia "+dia+" de "+mesnome[mes]+" de "+ano;return str;}





function abre_janela(nome, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)

{

	LeftPosition = (screen.width) ? (screen.width-width)/2: 0;

	TopPosition = (screen.height) ? (screen.height-height)/4: 0;

	toolbar_str = toolbar ? 'yes' : 'no';

	menubar_str = menubar ? 'yes' : 'no';

	statusbar_str = statusbar ? 'yes' : 'no';

	scrollbar_str = scrollbar ? 'yes' : 'no';

	resizable_str = resizable ? 'yes' : 'no';

	window.open(url,nome,'left='+LeftPosition+',top='+TopPosition+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);

}



function bloqueia_mouse() {

	if(event.button > 1){

			alert("A CÓPIA do material contido neste site NÃO É AUTORIZADA!");

	}

}



document.onmousedown = bloqueia_mouse;

//-->

