// JavaScript Document

var bookmarkurl="http://www.eletrofusion.com.br"
var bookmarktitle="EletroFusion" 

function addbookmark(){
	if (document.all)
	window.external.AddFavorite(bookmarkurl,bookmarktitle)
}

function complemento(n){
	if (n=="Parceria" || n=="Contato"){
		document.getElementById('completar').style.display="none";
	}else{
		document.getElementById('completar').style.display="";
	}
}

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 move_i(what) { what.style.background='#88BDC8'; }
function move_o(what) { what.style.background='#E7E7E7'; }
function MM_openBrWindow(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);
	void(0);
}
function vermat(n){
	document.getElementById(n).style.display="";
	void(0);
	var abrir=document.getElementById('ver'+n);
	abrir.innerHTML='<a href="javascript:fechamat(\''+n+'\')"><img src="images/menos.gif" alt="Minimizar" width="8" height="8" border="0"></a>';
}
function fechamat(n){
	document.getElementById(n).style.display="none";
	void(0);
	var abrir=document.getElementById('ver'+n);
	abrir.innerHTML='<a href="javascript:vermat(\''+n+'\')"><img src="images/mais.gif" alt="Maximizar" width="8" height="8" border="0"></a>';
}
function open_menos(n){
	document.getElementById(n).style.display="";
	void(0);
	var abrir=document.getElementById(n);
	abrir.innerHTML='<a href="javascript:fechamat(\''+n+'\')"><img src="images/menos.gif" alt="Minimizar" width="8" height="8" border="0"></a>';
}
function close_menos(n){
	document.getElementById(n).style.display="none";
	void(0);
	var abrir=document.getElementById(n);
	abrir.innerHTML='';
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


function flyer_close(){
	document.getElementById('flyer').style.display="none";
	void(0);
}


try{
    xmlhttp = new XMLHttpRequest();
}catch(ee){
    try{
        xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
    }catch(e){
        try{
            xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
        }catch(E){
            xmlhttp = false;
        }
    }
}

atual=0

function alt(m,n){
   
    //Guarda a página escolhida na variável atual
    atual=n

    //Abre a url
    xmlhttp.open("GET", n,true);

    //Executada quando o navegador obtiver o código
    xmlhttp.onreadystatechange=function() {

        if (xmlhttp.readyState==4){

            //Lê o texto
            var texto=xmlhttp.responseText

            //Desfaz o urlencode
            //texto=texto.replace(/\+/g," ")
            //texto=unescape(texto)

            //Exibe o texto no div conteúdo
            var conteudo=document.getElementById(m)
            conteudo.innerHTML=texto
        }
    }
    xmlhttp.send(null)
}
function abre_meu(){
	if(document.getElementById('login_eletro').style.display=="none"){
		document.getElementById('login_eletro').style.display="";
		document.getElementById('busca_inicial').style.display="none";
	}else{
		document.getElementById('login_eletro').style.display="none";
		document.getElementById('busca_inicial').style.display="";
	}
	void(0);
}
function abre_meu2(){
	
		document.getElementById('login_eletro').style.display="";
		document.getElementById('busca_inicial').style.display="none";
	
	void(0);
}
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
