/*

	[	Desenvolvimento	 ]
		Filter Netmarketing
		www.filter.com.br
		falecom@filter.com.br
		47. 326 3742

	[	Responsável	]
		Marco Aurélio Neuwiem
		marco@filter.com.br
		07/2004
*/

tms=new Array()

//Mostra o submenu no mouseover
function over(n){
	if(typeof(tms[n])!="undefined")clearTimeout(tms[n])
	document.getElementById(n).style.visibility="visible"
}
//Esconde o submenu no mouseout
function out(n){
	tms[n]=setTimeout('document.getElementById("'+n+'").style.visibility="hidden"',200)
}

function muda_css(obj,classe){
	if (document.all){elemento=event.srcElement;}
	else if (document.getElementById){elemento=obj.target;}
	elemento.className=classe;
}

function under(){
	alert("This website is under development.");
}

function vai(selObj)	{
	valor = selObj.options[selObj.selectedIndex].value;
		if(valor != "#")	{
			self.location = valor;
		}
}

function POP_CENTER(local,w,h,scrollbar,status_bar){
instancia = 'POP_'+w+'_'+h+'_'+scrollbar+'_'+status_bar+'_';
largura = screen.width;
altura = screen.height;
XX =(largura-w)/2;
YY = (altura-h)/2;
janela = window.open(local,'POP_'+instancia,'width='+w+',height='+h+',left='+XX+',top='+YY+',scrollbars='+scrollbar+',status='+status_bar+',resizable=yes, toolbar=no,directories=no,menubar=no');
janela.focus();
}

function abre_foto_noticia(img){
	w = 400;
	h = 300;
	largura = screen.width;
	altura = screen.height;
	XX =(largura-w)/2;
	YY = (altura-h)/2;
	janela = window.open('../noticias/foto.php?img='+img,'POP_'+img,'width='+w+',height='+h+',left='+XX+',top='+YY+',scrollbars=no,status=no,resizable=no, toolbar=no,directories=no,menubar=no');
	janela.focus();
}

function slide(img)	{
	document.images.bt_idioma.src="../imagens/comuns/"+img+".gif";
}

function rodape(arquivo){
	var browser=navigator.appName
	if (browser=="Microsoft Internet Explorer"){
		mostrarConteudo("../includes/rodape.ie.php?arquivo="+arquivo,"flash");
	}
	else {
		mostrarConteudo("../includes/rodape.ff.php?arquivo="+arquivo,"flash");
	}
}
