//TOOLTIP
//Window.onDomReady(function() {
	//var myTips = new Tips($$('label[title]'));
//})

// JavaScript Document

function Get_Cookie(name)
{
	var start = document.cookie.indexOf(name+"=");
	var len = start+name.length+1;
	if ((!start) && (name != document.cookie.substring(0,name.length))) return null;
	if (start == -1) return null;
	var end = document.cookie.indexOf(";",len);
	if (end == -1) end = document.cookie.length;
	return unescape(document.cookie.substring(len,end));
}

function Set_Cookie(name,value,expires,path,domain,secure)
{
	var cookieString = name + "=" +escape(value) +
		( (expires) ? ";expires=" + expires.toGMTString() : "") +
		( (path) ? ";path=" + path : "") +
		( (domain) ? ";domain=" + domain : "") +
		( (secure) ? ";secure" : "");
	document.cookie = cookieString;
}

function Delete_Cookie(name,path,domain) 
{
	if (Get_Cookie(name)) document.cookie = name + "=" +
		( (path) ? ";path=" + path : "") +
		( (domain) ? ";domain=" + domain : "") +
		";expires=Thu, 01-Jan-70 00:00:01 GMT";
}

var tomorrow = new Date();
tomorrow.setHours(tomorrow.getHours()+48);
cookie_expire_date = tomorrow


/******************************************************
FLASH DETECT 2.5
All code by Ryan Parman and mjac, unless otherwise noted.
(c) 1997-2004 Ryan Parman and mjac
http://www.skyzyx.com
/******************************************************/

// This script will test up to the following version.
flash_versions = 20;

// Initialize variables and arrays
var flash = new Object();
flash.installed=false;
flash.version='0.0';

// Dig through Netscape-compatible plug-ins first.
if (navigator.plugins && navigator.plugins.length) 
{
	for (x=0; x < navigator.plugins.length; x++) 
	{
		if (navigator.plugins[x].name.indexOf('Shockwave Flash') != -1) 
		{
			flash.version = navigator.plugins[x].description.split('Shockwave Flash ')[1];
			flash.installed = true;
			break;
		}
	}
}

// Then, dig through ActiveX-style plug-ins afterwords
else if (window.ActiveXObject) 
{
	for (x = 2; x <= flash_versions; x++) 
	{
		try 
		{
			oFlash = eval("new ActiveXObject('ShockwaveFlash.ShockwaveFlash." + x + "');");
			if(oFlash) 
			{
				flash.installed = true;
				flash.version = x + '.0';
			}
		}
		catch(e) {}
	}
}

// Create sniffing variables in the following style: flash.ver[x]
// Modified by mjac
flash.ver = Array();
for(i = 4; i <= flash_versions; i++) 
{
	eval("flash.ver[" + i + "] = (flash.installed && parseInt(flash.version) >= " + i + ") ? true : false;");
}

// *** Executa a checkagem do flash
if (flash.installed && flash.version.substr(0, 1) < 8)
{
	//swf_path = "hot_spot.swf";
	if(Get_Cookie("flash_ver") == null)
	{
		//Set_Cookie( "flash_ver" , "old" , cookie_expire_date);
		//if(confirm("Para melhorar sua navegao no site por favor insta-le gratuitamente o plug-in do Flash Player 8.\nVoc dever estar com seu bloqueador de pop-up desabilitado."))
		//{
		//	window.open("http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&promoid=BIOW", "Get_Flash")
		//}
	}
}
else
{
	//swf_path = "hot_spot.swf";
	Delete_Cookie("flash_ver");
}

noCache = "?" + new Date();
var header = "";
function showHeader(swf_path, width, height, title, wmode, menu)
{
	header  = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" width=\"" + width + "\" height=\"" + height + "\" title=\"" + title + "\">";
	header += "<param name=\"movie\" value=\"/swf/" + swf_path + "\" />";
	header += "<param name=\"quality\" value=\"high\" />";
	header += "<param name=\"wmode\" value=\"" + wmode + "\" />";
	header += "<param name=\"menu\" value=\"" + menu + "\" />";
	header += "<embed menu=\"" + menu + "\" wmode=\"" + wmode + "\" src=\"/swf/"+ swf_path +"\" quality=\"high\" pluginspage=\"https://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"" + width + "\" height=\"" + height + "\"></embed>";
	header += "</object>";
	
	document.write(header);
}


function valida_ddd() {
			obj=document.getElementById('ddd');
			
			if (obj.value.length==3){
				document.getElementById('telefone').focus();
			}
			
}

function popChat()
  {
    window.open('http://ncc.digiweb.com.br/chat4/cliente/frm_login.asp?IDArea=2&sel=HomePage','Atendimento','toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,menubar=no,width=490,height=500');
  }



<!--//////////////////////////////////////////////////////////////////-->
<!--Abre janelas de Streaming!!!!!-->

<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->

<!--//////////////////////////////////////////////////////////////////-->
<!-- Abre janels de streaming real, flash, windows media


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 popGb()
  {
    window.open('../calculadora-de-banda/popup_gb.htm','Limite_Gb','toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,menubar=no,width=350,height=310');
  }

  function popKbps()
  {
    window.open('../calculadora-de-banda/popup_kbps.htm','Limite_Kbps','toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,menubar=no,width=275,height=250');
  }
  
<!-- Termina (Abre janels de streaming real, flash, windows media)
<!--//////////////////////////////////////////////////////////////////-->
<!--Abre popup-->


function popupcentral(arquivo,largura,altura){
	calcleft = (screen.width / 2) - (largura / 2)
	calctop = (screen.height / 2) - (altura / 2)
	open(arquivo,"popup","status,width=" + largura + ",height=" + altura + ",left=" + calcleft + ",top=" + calctop)
}

/*Termino */

/*Inicio de popups de suport */

    function pop_win(){
      window.open ('outlook_imagem_passo1.htm','pagetitle','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,menubar=no,width=540,height=450')
    }
  
      function pop_win2(){
      window.open ('outlook_imagem_passo2.htm','pagetitle','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,menubar=no,width=540,height=300')
    }
  
      function pop_win3(){
      window.open ('../suporte-email/outlook_imagem_passo3.htm','pagetitle','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,menubar=no,width=540,height=400')
    }
	
     function pop_win4(){
      window.open ('outlook_imagem_passo4.htm','pagetitle','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,menubar=no,width=540,height=400')
    }
  	
     function pop_win5(){
      window.open ('outlook_imagem_passo5.htm','pagetitle','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,menubar=no,width=540,height=400')
    }
	  	
     function pop_win6(){
      window.open ('outlook_imagem_passo6.htm','pagetitle','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,menubar=no,width=540,height=400')
    }
		  	
     function pop_win7(){
      window.open ('outlook_imagem_passo7.htm','pagetitle','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,menubar=no,width=540,height=400')
    }
		  	
     function pop_win9(){
      window.open ('outlook_imagem_passo9.htm','pagetitle','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,menubar=no,width=540,height=450')
    }
	
     function pop_win8(){
      window.open ('outlook_imagem_passo8.htm','pagetitle','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,menubar=no,width=540,height=500')
    }


/*Termino  pop suporte*/

function escondeBFlutuante(){
	document.getElementById('banner_flutuante').style.display = "none";
}

function escondeAviso(){
	document.getElementById('aviso_digiweb').style.display = "none";
}


