/*
	[	Desenvolvimento	] 
		Filter Netmarketing
			www.filter.com.br
			falecom@filter.com.br
			
		[	Responsável	]
			Marco Aurélio Neuwiem
			marco@filter.com.br
			02/2004
*/

function site(idm){
w = 792;
h = 545;
largura = screen.width;
altura = screen.height;
XX =parseInt((largura-w)/2);
YY = parseInt((altura-h)/2);
YY = YY -30;
XX = XX - 3;
janela = window.open('../home/apresentacao.php?idm='+idm+'','POP_SITE','width='+w+',height='+h+',left='+XX+',top='+YY+',scrollbars=no,status=no,resizable=no, toolbar=no,directories=no,menubar=no');
janela.focus();
self.location = "../home/obrigado.php?idm="+idm;
}

function home(){
self.location = "../home/capa.php";
}

function getElement(id){
 if(document.all) return document.all(id);
 if(document.getElementById) return document.getElementById(id);
}


function mostra_seta(sp){
	var obj=getElement(sp);
	 obj.innerHTML = "<img src='../imagens/menu_dir/principal_seta.gif' align='absmiddle' hspace='1'>";
}

 function esconde_seta(sp){
	var obj=getElement(sp);
	obj.innerHTML = "";
}

function pop_15anos(){
w = 600;
h = 373;
largura = screen.width;
altura = screen.height;
XX =parseInt((largura-w)/2);
YY = parseInt((altura-h)/2);
YY = YY -30;
XX = XX - 3;
janela = window.open('pop15anos.php','POP15ANOS','width='+w+',height='+h+',left='+XX+',top='+YY+',scrollbars=no,status=no,resizable=no, toolbar=no,directories=no,menubar=no');
janela.focus();
}

function noticias(id_not){
w = 510;
h = 400;
largura = screen.width;
altura = screen.height;
XX =parseInt((largura-w)/2);
YY = parseInt((altura-h)/2);
YY = YY -30;
XX = XX - 3;
janela = window.open('../noticias/index.php?id_not='+id_not,'POP_NOTICIAS','width='+w+',height='+h+',left='+XX+',top='+YY+',scrollbars=yes,status=no,resizable=no, toolbar=no,directories=no,menubar=no');
janela.focus();
}

function links_(){
w = 490;
h = 370;
largura = screen.width;
altura = screen.height;
XX =parseInt((largura-w)/2);
YY = parseInt((altura-h)/2);
YY = YY -30;
XX = XX - 3;
janela = window.open('../home/pop_links.php','POP_LINKS','width='+w+',height='+h+',left='+XX+',top='+YY+',scrollbars=no,status=no,resizable=no, toolbar=no,directories=no,menubar=no');
janela.focus();
}

function contato(){
w = 510;
h = 430;
largura = screen.width;
altura = screen.height;
XX =parseInt((largura-w)/2);
YY = parseInt((altura-h)/2);
YY = YY -30;
XX = XX - 3;
janela = window.open('../home/pop_contato.php','POP_CONTATO','width='+w+',height='+h+',left='+XX+',top='+YY+',scrollbars=yes,status=no,resizable=no, toolbar=no,directories=no,menubar=no');
janela.focus();
}

function localizacao(){
w = 840;
h = 600;
largura = screen.width;
altura = screen.height;
XX =parseInt((largura-w)/2);
YY = parseInt((altura-h)/2);
YY = YY -30;
XX = XX - 3;
janela = window.open('../google/googlemaps.php','POP_LOCALIZACAO','width='+w+',height='+h+',left='+XX+',top='+YY+',scrollbars=yes,status=no,resizable=no, toolbar=no,directories=no,menubar=no');
janela.focus();
}

function abre_produtos(){
w = 510;
h = 320;
largura = screen.width;
altura = screen.height;
XX =parseInt((largura-w)/2);
YY = parseInt((altura-h)/2);
YY = YY -30;
XX = XX - 3;
janela = window.open('../produtos/pop_produtos.php','POP_PRODUTOS','width='+w+',height='+h+',left='+XX+',top='+YY+',scrollbars=yes,status=no,resizable=no, toolbar=no,directories=no,menubar=no');
janela.focus();
}

function abre_equipamento(grupo,h){
w = 528;
largura = screen.width;
altura = screen.height;
XX =parseInt((largura-w)/2);
YY = parseInt((altura-h)/2);
YY = YY -30;
XX = XX - 3;
janela = window.open('../produtos/pop_equipamentos.php?grupo='+grupo,'POP_EQUIPAMENTOS','width='+w+',height='+h+',left='+XX+',top='+YY+',scrollbars=yes,status=no,resizable=no, toolbar=no,directories=no,menubar=no');
janela.focus();
}


function assistencia(){
w = 510;
h = 320;
largura = screen.width;
altura = screen.height;
XX =parseInt((largura-w)/2);
YY = parseInt((altura-h)/2);
YY = YY -30;
XX = XX - 3;
janela = window.open('../home/pop_assistencia.php','POP_ASSISTENCIA','width='+w+',height='+h+',left='+XX+',top='+YY+',scrollbars=yes,status=no,resizable=no, toolbar=no,directories=no,menubar=no');
janela.focus();
}

function pop_menu(n1){
w = 510;
h = 350;
largura = screen.width;
altura = screen.height;
XX =parseInt((largura-w)/2);
YY = parseInt((altura-h)/2);
YY = YY -30;
XX = XX - 3;
janela = window.open('../home/pop_menu.php?q='+n1,'POP_MENU','width='+w+',height='+h+',left='+XX+',top='+YY+',scrollbars=yes,status=no,resizable=no, toolbar=no,directories=no,menubar=no');
janela.focus();

}

function pop_espec_tec(nm){
w = 450;
h = 300;
largura = screen.width;
altura = screen.height;
XX =parseInt((largura-w)/2);
YY = parseInt((altura-h)/2);
YY = YY -30;
XX = XX - 3;
janela = window.open('../esp_tecnicas/'+nm+'.html','POP_ESPEC_TEC','width='+w+',height='+h+',left='+XX+',top='+YY+',scrollbars=yes,status=no,resizable=yes, toolbar=no,directories=no,menubar=no');
janela.focus();
}


function zoom_produtos(nm){
w = 510;
h = 400;
largura = screen.width;
altura = screen.height;
XX =parseInt((largura-w)/2);
YY = parseInt((altura-h)/2);
YY = YY -30;
XX = XX - 3;
janela = window.open('../produtos/pop_zoom.php?nm='+nm,'POP_ZOOM','width='+w+',height='+h+',left='+XX+',top='+YY+',scrollbars=yes,status=no,resizable=yes, toolbar=no,directories=no,menubar=no');
janela.focus();
}

function catalogo_produtos(nm){
	pop_pdfs(nm);
}

function pop_pdfs(nm){
w = 490;
h = 290;
largura = screen.width;
altura = screen.height;
XX =parseInt((largura-w)/2);
YY = parseInt((altura-h)/2);
YY = YY -30;
XX = XX - 3;
janela = window.open('../pdfs/index.php?nm='+nm,'POP_PDFS','width='+w+',height='+h+',left='+XX+',top='+YY+',scrollbars=no,status=no,resizable=no, toolbar=no,directories=no,menubar=no');
janela.focus();
}

function abre_pop_busca(){
w = 510;
h = 320;
largura = screen.width;
altura = screen.height;
XX =parseInt((largura-w)/2);
YY = parseInt((altura-h)/2);
YY = YY -30;
XX = XX - 3;
janela = window.open('','POP_BUSCA','width='+w+',height='+h+',left='+XX+',top='+YY+',scrollbars=yes,status=no,resizable=no, toolbar=no,directories=no,menubar=no');
janela.focus();
apaga = setTimeout("document.form.q.value='BUSCA';",2000);
}

 /// banner satake
function vai(){
w = 740;
h = 400;
largura = screen.width;
altura = screen.height;
XX =(largura-w)/2;
YY = (altura-h)/2;
janela = window.open('../banners/satake.php','POP_SATAKE2','width='+w+',height='+h+',left='+XX+',top='+YY+',scrollbars=yes,status=no,resizable=no, toolbar=no,directories=no,menubar=no');
janela.focus();
}


nn = document.layers ? 1:0;
ie = document.all ? 1:0;
dom = (document.getElementById && !document.all) ? 1:0;
apaga = "";
function mostra_balao(layer) {
	if (dom) { document.getElementById(layer).style.visibility = 'visible'; }
	else if (nn) { document.layers[layer].visibility = 'show'; }
	else if (ie) { document.all[layer].style.visibility = 'visible'; }
	l=layer;
	apaga = setTimeout("esconde_balao(l)",5000);
}

function esconde_balao(layer) {
	if (dom) { document.getElementById(layer).style.visibility = 'hidden'; }
	else if (nn) { document.layers[layer].visibility = 'hide'; }
	else if (ie) { document.all[layer].style.visibility = 'hidden'; }
	apaga = "";
}

function abre_soja(){
w = 735;
h = 495;
largura = screen.width;
altura = screen.height;
XX =(largura-w)/2;
YY = (altura-h)/2;
janela = window.open('../banners/pop_soja.php','POP_SOJA','width='+w+',height='+h+',left='+XX+',top='+YY+',scrollbars=no,status=no,resizable=yes, toolbar=no,directories=no,menubar=no');
janela.focus();
}

function abre_top(){
w = 612;
h = 370;
largura = screen.width;
altura = screen.height;
XX =(largura-w)/2;
YY = (altura-h)/2;
janela = window.open('../banners/pop_top_negocios.php','POP_TOP','width='+w+',height='+h+',left='+XX+',top='+YY+',scrollbars=yes,status=no,resizable=yes, toolbar=no,directories=no,menubar=no');
janela.focus();
}

function emdes(idioma){

	if(idioma == "ing"){
		alert("This area is under development.");
	}else{
		alert("Esta área está en el desarrollo.");
	}
}

