// funções de sistema - WEB - (0__11) 5505-8714

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 MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

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];}
}

<!-- funções de abertura, menu e imagens --->
function maximiza() {
    var sw = screen.availWidth;
    var sh = screen.availHeight;
    self.resizeTo(sw,sh);
    self.moveTo(0,0);
  }

function opHome(url) {
    if ( navigator.appName == "Netscape" ) {
      window.open(url, 'dcbgc', 'fullscreen=no,maximized=yes,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=800,height=600');
    }
    else {
     window.open(url, 'dcbgc', 'fullscreen=no,maximized=yes,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=800,height=600');
    }
  }

function opAdd(url,wid,hei) {
    if ( navigator.appName == "Netscape" ) {
      window.open(url, 'new', 'left=0, top=0, maximized=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+wid+',height='+hei+'');
    }
    else {
     window.open(url, 'new', 'left=0, top=0, maximized=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+wid+',height='+hei+'');
    }
  }

function opAddy(url,wid,hei) {
    if ( navigator.appName == "Netscape" ) {
      window.open(url, 'newy', 'left=0, top=0, maximized=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width='+wid+',height='+hei+'');
    }
    else {
     window.open(url, 'newy', 'left=0, top=0, maximized=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width='+wid+',height='+hei+'');
    }
  }

<!-------------- encerra visita ------------->
	function confback(){
		top.location = "a_empresa.htm"
	}
<!-------------- final - encerra visita ------------->

<!-------------- anúncios em alerta ------------->
  function anuncio() {
    alert('AGUARDE UM MOMENTO POR FAVOR...')
  }
<!-------------- final - anúncios em alerta ------------->
<!-------------- encerra visita ------------->
	function sair(){
		if(confirm('Você deseja realmente encerrar esta sessão?')){
				top.location = "index.htm"
		}
	}
<!-------------- final - encerra visita ------------->
<!--------------SCREEN COPY PROTECTION--------------------->
	<!-- INICIO DO CODIGO PARA BLOQUEIO -->
	if (window.Event) 
	document.captureEvents(Event.MOUSEUP); 
	function nocontextmenu() 
	{ 
	event.cancelBubble = true 
	event.returnValue = false; 
	return false; 
	} 
	function norightclick(e) 
	{ 
	if (window.Event) 
	{ 
	if (e.which == 2 || e.which == 3) 
	return false; 
	} 
	else 
	if (event.button == 2 || event.button == 3) 
	alert('Olá! Fale Conosco! \n Teremos o maior prazer em atendê-lo! \n Envie seu e-mail para: falecom@jacanamoveisltda.com.br')
	{ 
	event.cancelBubble = true 
	event.returnValue = false; 
	return false; 
	} 
	
	} 
	if (document.layers) { 
	document.captureEvents(Event.MOUSEDOWN); 
	} 
	document.oncontextmenu = nocontextmenu; 
	document.onmousedown = norightclick; 
	document.onmouseup = norightclick; 
	
	function disableselect(e){
	return false
	}
	function reEnable(){
	return true
	}
	document.onselectstart=new Function ("return false")
	if (window.sidebar){
	document.onmousedown=disableselect
	document.onclick=reEnable
	}
	<!-- FIM DO CODIGO PARA BLOQUEIO -->
<!--------------/SCREEN COPY PROTECTION--------------------->

<!--------------STATUS BAR SCROLL BANNER VERSÃO 02 --------->
  message     = "JAÇANÃ MÓVEIS - Gerando Economia e Lucros na fabricação de Móveis!^" +
                "JAÇANÃ MÓVEIS - Criatividade, Rapidez e Qualidade ao seu dispor!^" +
                "JAÇANÃ MÓVEIS E DECORAÇÕES - Desenvolvimento de Projetos Mobiliários!^" +
                "Sempre ajudando você a economizar em Móveis e Decorações!^" +
                "JAÇANÃ MÓVEIS AGRADECE SUA VISITA... VOLTE SEMPRE E DIVULGUE NOSSO SITE...^"
  scrollSpeed = 25
  lineDelay   = 1500

  txt         = ""
  function scrollText(pos) {
    if (message.charAt(pos) != '^') {
      txt    = txt + message.charAt(pos)
      status = txt
      pauze  = scrollSpeed
    }
    else {
      pauze = lineDelay
      txt   = ""
      if (pos == message.length-1) pos = -1
    }
    pos++
    setTimeout("scrollText('"+pos+"')",pauze)
  }
  scrollText(0)
<!--------------/STATUS BAR SCROLL BANNER VERSÃO 02 --------->

<!--------------DATE INFO TABLE-(INSIDE THE BODY PART)--------------------> 
   function minhaData() {
            document.writeln('<table align="center" height="15"><td width=100%><font face="Verdana" color="#333333" size="1"><strong>');
            meses = new Array("JAN","FEV","MAR","ABR","MAI","JUN","JUL","AGO","SET","OUT","NOV","DEZ");
            dias = new Array("Domingo","Segunda","Terça","Quarta","Quinta","Sexta","Sábado");
            var curdate=new Date();
            var mes=curdate.getMonth();
            var dia_num=curdate.getDate();
            var dia_sem=curdate.getDay();
            var ano=curdate.getYear();
            var hora=curdate.getHours();
			var minutos=curdate.getMinutes();
			var sauda = " "
            if(ano < 2000) ano = 1900 + ano;
			if (dia_num <10) dia_num = "" + dia_num;
            if (hora <10) hora= "0" + hora;
            if (minutos <10) minutos = "0" + minutos;
						if (hora >18) sauda = "Boa noite!";
						else if (hora <12) sauda = "Bom dia!";
						else sauda = "Boa tarde!";
            document.writeln( sauda+" "+dias[dia_sem]+" - ");
            document.writeln( dia_num+"/"+meses[mes]+"/"+ano );
			document.write(" - "+hora+":"+minutos+"")
            document.writeln('</strong></font></td></table>');
}
<!--------------/DATE INFO TABLE--------------------->