function Redireciona(opcao){
location.href=opcao;
}



if (navigator.appName=="Netscape" && parseInt(navigator.appVersion)==4) {
	widthCheck = window.innerWidth;
	heightCheck = window.innerHeight;
	window.onResize = resizeFix;
}

function resizeFix() {
	if (widthCheck != window.innerWidth || heightCheck != window.innerHeight)
	document.location.href = document.location.href;
}




var isNew=0;
var isNS4=0;
var isIE4=0;
var brow= ((navigator.appName)+(parseInt(navigator.appVersion)));
if (parseInt(navigator.appVersion >=5)) {
isNew=1}
else if (brow=="Netscape4")
{isNS4 = 1;}
else if(brow=="Microsoft Internet Explorer4")
{isIE4=1;}

docObj=(isNS4)?'document' :'document.all';
styleObj= (isNS4)?'':'.style';

function lyroff(currElem){
	dom= eval(docObj+'.'+currElem+styleObj);
	state = dom.visibility;
	if(state=="visible" || state=="show"){dom.visibility="hidden";}
}

function lyron(currElem){
	dom=eval(docObj+'.'+currElem+styleObj);
	state=dom.visibility;
	if(state=="hide" || state=="hidden"){dom.visibility="visible"};
}

function alterNate(elm){
if (!elm.base) elm.base = elm.value
if (elm.value == elm.base) elm.value = "";
else if (elm.value == "") elm.value = elm.base;
}

function checkmail(str)
{
	var filter = new RegExp("^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?)$");
	if (filter.test(str))
	{
		return true;
	}
	else
	{
		alert("O e-mail digitado não é válido!")
		return false;
	}
}


function openpopup(url, width, height, scrollbars){
window.open(url,"","toolbar=no,status=no,menubar=no,scrollbars=" + scrollbars + "top=10,left=10,width=" + width + ",height=" + height)
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

<!-- Enviados Eurolink
function keyToUpper(ev, obj)
{
 
  ev.cancelBubble = true;
  if (obj.maxLength!=null && obj.maxLength!=0 && obj.value.length>=obj.maxLength)
  {ev.returnValue = false;}
  else
  {
    var charcode = ev.keyCode;
    
    strChar = String.fromCharCode(charcode);
    if (charcode>=97 && charcode<=122)
    {
      charcode = charcode - 32;
      strChar = String.fromCharCode(charcode);
    } 
    strOld = obj.value;
    strOld = strOld.toUpperCase();
    strNew = strOld + strChar; 
    obj.value = strNew; 
    ev.returnValue = false;
  }
}



function checkSubmit() {
	blErr = false;
	strErr = "Para seguir:\n\n";
	if (document.frm.web.value.length<6) {blErr = true; strErr += "Informe seu Web ID de 6 digitos.\n";}
	if (document.frm.user.value.length<6) {blErr = true; strErr += "Informe seu User ID de 6 digitos.\n";}
	if (document.frm.pass.value.length<1) {blErr = true; strErr += "Informe a sua senha.";}
	if (blErr) {alert(strErr);} else {
	
	document.frm.submit();
	
	
	}
}

var persistmenu="sub1"
var persisttype="sitewide" 

if (document.getElementById){
document.write('<style type="text/css">\n')
document.write('.submenu{display: none;}\n')
document.write('</style>\n')
}

function SwitchMenu(obj){
	if(document.getElementById){
	var el = document.getElementById(obj);
	var ar = document.getElementById("masterdiv").getElementsByTagName("span"); 
	
		if(el.style.display != "block"){ 
			for (var i=0; i<ar.length; i++){
				if (ar[i].className=="submenu") 
				ar[i].style.display = "none";
			}
			el.style.display = "block";
		}else{
			el.style.display = "none";
		}
	}
}






function carregaFlash(caminho,largura,altura)
{
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+largura+'" height="'+altura+'">');
document.write('<param name="movie" value="'+caminho+'">');
document.write('<param name="quality" value="high">');
document.write('<param name="wmode" value="transparent">');
document.write('<param name="menu" value="false">');
document.write('<embed src="'+caminho+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+largura+'" height="'+altura+'"></embed>');
document.write('</object>');



var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));





var pageTracker = _gat._getTracker("UA-4419376-1");
pageTracker._initData();
pageTracker._trackPageview();
