<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


function mOvr(src,clrOver) {
	if (!src.contains(event.fromElement)) {
		src.style.cursor = 'hand';
		src.bgColor = clrOver;
	}
}
function mOut(src,clrIn) {
	if (!src.contains(event.toElement)) {
		src.style.cursor = 'default';
		src.bgColor = clrIn;
	}
}
function janela(mypage, w, h, scroll,add) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'width='+w+',height='+h+',top='+wint+',left='+winl+',scrollbars='+scroll+','+add+'';
	win = window.open(mypage, 'Janela', winprops)
	if (parseInt(navigator.appVersion) >= 4) {
		win.window.focus();
	}
}
function resize() {
	var i=0;
	if (navigator.appName == 'Netscape') i=40;
	if (document.images[0]) window.resizeTo(document.images[0].width+16, document.images[0].height+65-i);
}
function mover() {
	ponto_x = ((screen.width - document.images[0].width) / 2); 
	ponto_y = ((screen.height  - document.images[0].height-85) / 2); 
	window.moveTo(ponto_x, ponto_y) 
}
function telacheia() {
	window.resizeTo(screen.width, screen.height);
	window.moveTo(0,0);
}

var news = new Array(
[ "Busca no Cadastro Nacional de Estabelecimentos de Saúde. Clique aqui." , "http://cnes.datasus.gov.br/Lista_Es_Nome.asp?VTipo=0" ] ,
[ "Acompanhe as Licitações eletronicamente. Clique aqui." , "https://www.licitacoes-e.com.br/aop/index.jsp?codSite=24442&url=www.itabuna.ba.gov.br" ] ,
[ "Cadastro Nacional de Estabelecimentos de Saúde. Clique aqui." , "http://cnes.datasus.gov.br/Lista_Es_Nome.asp?VTipo=0" ] ,
[ "Clique aqui, e acompanhe o pregão on-line." , "https://www.licitacoes-e.com.br/aop/index.jsp?codSite=24442&url=www.itabuna.ba.gov.br" ] ,
[ "Licitações-e: acompanhe as licitações da Prefeitura on-line." , "https://www.licitacoes-e.com.br/aop/index.jsp?codSite=24442&url=www.itabuna.ba.gov.br" ] ,
[]
) ;

var ticker_layer = false ;
var step_time = 70 ;
var freeze_time = 5000 ;
var news_index = 0 ;
var title_index = 0 ;
var end_title = "_" ;

function begin_roll_ticker(){
	window.setTimeout( "roll_ticker()" , step_time ) ;
}
function roll_ticker(){
	var title ;
	if ( news.length > news_index + 1 && news[news_index][0].length >= title_index ){
		title = news[ news_index ] ;
		document.all('ticker_anchor').href = title[1] ;
		document.all('ticker').innerHTML = title[0].substring( 0 , title_index ) ;
		if ( title[0].length > title_index ) document.all('ticker').innerHTML += end_title ;
		title_index++ ;
		window.setTimeout( "roll_ticker()" , step_time ) ;
	} else{
		news.length == news_index + 2 ? news_index = 0 : news_index++ ;
		title_index = 0 ;
		window.setTimeout( "roll_ticker()" , freeze_time ) ;
	}
}

function load3() {
	var index = document.form3.secao1.options[document.form3.secao1.selectedIndex].value;
	var tam   = codare[index].length;
	var i     = 0;
	var tam1  = document.form3.categoria.length;
	var a     = 0;
	for (a = 1; a < tam1; a++){
		document.form3.categoria.options[a] = null;
	}
	for (i = 1; i < tam; i++){
		document.form3.categoria.options[i]       = new Option();
		document.form3.categoria.options[i].value = codare[index][i];
		document.form3.categoria.options[i].text  = secaooc[index][i];
	}
}

function resetaForm() {
	// document.forms['formulario'].submit();
	settimer = setTimeout("limpaForm()",3000);
}

function limpaForm() {
	document.forms['formulario'].reset()
}
function setCookie(name, value, expires, path, domain, secure) {
	var curCookie = name + "=" + escape(value) +
	((expires) ? "; expires=" + expires.toGMTString() : "") +
	((path) ? "; path=" + path : "") +
	((domain) ? "; domain=" + domain : "") +
	((secure) ? "; secure" : "");
	document.cookie = curCookie;
}
function getCookie(name) {
	var dc = document.cookie;
	var prefix = name + "=";
	var begin = dc.indexOf("; " + prefix);
	if (begin == -1) {
		begin = dc.indexOf(prefix);
		if (begin != 0) return null;
	} else
		begin += 2;
	var end = document.cookie.indexOf(";", begin);
	if (end == -1)
		end = dc.length;
	return unescape(dc.substring(begin + prefix.length, end));
}
function fixDate(date) {
	var base = new Date(0);
	var skew = base.getTime();
	if (skew > 0) date.setTime(date.getTime() - skew);
} 

// --> 
