<!--

/***********************************************
* Script para habilitar o menu para o IE
***********************************************/



sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);




/***********************************************
* Script para abrir janelas
***********************************************/
		
		function novajanela(janela) {
			args = "width=" + (700) + ",height=" + (505)
			+ ",location=0,menubar=0,resizable=1,scrollbars=yes,status=0,titlebar=no,"
			+ "toolbar=0,hotkeys=0,z-lock=1,screenx=0,screeny=0,left=20,top=10";
			window.open( janela,'',args );
		}


/************************************************************
* Script para abrir janelas com as imagens de trānsito (CTTU)
*************************************************************/
		
		function janelacttu(janela) {
			args = "width=" + (800) + ",height=" + (600)
			+ ",location=0,menubar=0,resizable=0,scrollbars=0,status=0,titlebar=no,"
			+ "toolbar=0,hotkeys=0,z-lock=1,screenx=0,screeny=0,left=20,top=10";
			window.open( janela,'',args );
		}		
		
		
/***********************************************
* Script para abrir janelas dos mapas de Seplan
***********************************************/

	
	function JanelaMapa(newURL,winName) {
	window.open(newURL,winName,'width=790,height=547,top=0,left=0,toolbar=no,resizable=0,scrollbars=yes');
	}
	

	function JanelaBairro(url,winName) {
	window.open(url,winName,'width=500,height=450,top=30,left=150,toolbar=no,scrollbars=yes');
	}

	
			

<!--
startList = function() {

	// code for IE
	if(!document.body.currentStyle) return;
	var subs = document.getElementsByName('submenu');
	for(var i=0; i<subs.length; i++) {
		var li = subs[i].parentNode;
		if(li && li.lastChild.style) {
			li.onmouseover = function() {
				this.lastChild.style.visibility = 'visible';
			}
			li.onmouseout = function() {
				this.lastChild.style.visibility = 'hidden';
			}
		}
	}
}
window.onload=startList;




/*************************************************************************
Scroll das noticias da index.php
*************************************************************************/

var timer_id;
function scroll_iframe(frm,inc,dir) {
  if (timer_id) clearTimeout(timer_id);
  if (window.frames[frm]) {
	if (dir == "v") window.frames[frm].scrollBy(50, inc);
	else window.frames[frm].scrollBy(inc, 50);
	timer_id = setTimeout("scroll_iframe('" + frm + "'," + inc + ",'" + dir + "')", 0);
  }
}

function stopScroll() { if (timer_id) clearTimeout(timer_id); }


/***************************************************************************
FUNCAO Q ABRE UMA NOVA JANELA
***************************************************************************/

window.focus();

function janela( pageToLoad, winName, width, height, center, barra) { 
	xposition=0;
	yposition=0;
	if ((parseInt(navigator.appVersion) >= 4 ) && (center)){
		xposition = (screen.width - width) / 2;
		yposition = (screen.height - height) / 2;
	} 
	args = "width=" + width + "," 
	+ "height=" + height + "," 
	+ "location=0," 
	+ "menubar=0,"
	+ "resizable=1,"
	+ "scrollbars=" + barra + ","
	+ "status=0," 
	+ "titlebar=no,"
	+ "toolbar=0,"
	+ "hotkeys=0,"
	+ "z-lock=1," //Netscape Only
	+ "screenx=" + xposition + "," //Netscape Only
	+ "screeny=" + yposition + "," //Netscape Only
	+ "left=" + xposition + "," //Internet Explore Only
	+ "top=" + yposition; //Internet Explore Only
	window.open( pageToLoad,winName,args );
} 

-->
