<!--
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];}
}


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 resettxt(elm){
	if (!elm.base) elm.base = elm.value
	if (elm.value == elm.base) elm.value = "";
	else if (elm.value == "") elm.value = elm.base;
}

function checkEmail(myForm) {
if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(myForm.email.value)){
return (true)
}
alert("Please enter a valid email address")
return (false)
}

function MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;
}


function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

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);

<!--

//Disable right click script III- By Renigade (renigade@mediaone.net)
//For full source code, visit http://www.dynamicdrive.com

var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")
// --> 

// itens expansivos
function expande(obj) {
	if (document.getElementById(obj).style.display != ""){ 
		document.getElementById(obj).style.display = "";
	} else {
		document.getElementById(obj).style.display = "none";
	}
}

// abas
var abaAtual = "botao1";
function abreAba (novo) {
	// elimina redundância
	if (abaAtual != novo) {	
		// variavies
		var novoObj = document.getElementById(novo);
		var novoNum = Number (novo.split("botao").join(""));
		var novoSrc = novoObj.src.substring(novoObj.src.lastIndexOf("/")+1, novoObj.src.indexOf(".gif"));
		var atualObj = document.getElementById(abaAtual);
		var atualNum = Number (abaAtual.split("botao").join(""));
		var atualSrc = atualObj.src.substring(atualObj.src.lastIndexOf("/")+1, atualObj.src.indexOf(".gif"));

		// destaca bot novo (nomeOn.gif)
		novoObj.src = "../images/" + novoSrc + "On.gif";
		// escurece bot atual (nome.gif)
		var temp = atualSrc.substring(0, atualSrc.length - 2);
		atualObj.src = "../images/" + temp + ".gif";
		// oculta conteúdo atual
		document.getElementById("linha" + atualNum).style.display = "none";
		// exibe conteúdo novo
		document.getElementById("linha" + novoNum).style.display = "block";
		// atribui novo atual
		abaAtual = novo;
	}
}

// pratos
pratoAtual = "";

function mouseoutPratos(nome) {
	// se não estiver atualmente aberto
	if (nome != pratoAtual) {
		MM_swapImgRestore();
	}
}

function exibePratos(novo) {
	// elimina redundância
	if (pratoAtual != novo) {
		
		// variavies
		var novoObj = document.getElementById(novo);
		var novoArray = novo.split("_")
		var novoArea = Number (novoArray[1]);
		var novoNum = Number (novoArray[2]);
		var novoSrc = novoObj.src.substring(novoObj.src.lastIndexOf("/")+1, novoObj.src.indexOf("On.gif"));
		
		if (pratoAtual != "") {
			var atualObj = document.getElementById(pratoAtual);
			var atualArray = pratoAtual.split("_")
			var atualArea = Number (atualArray[1]);
			var atualNum = Number (atualArray[2]);		
			var atualSrc = atualObj.src.substring(atualObj.src.lastIndexOf("/")+1, atualObj.src.indexOf(".gif"));
		}
				
		// imagem original: linha01
		// informações: detalhe1_1
		
		// destaca bot novo (nomeOn.gif)
		novoObj.src = "../images/" + novoSrc + "On.gif";

		if (pratoAtual != "") {
			// escurece bot atual (nome.gif)
			var temp = atualSrc.substring(0, atualSrc.length - 2);
			atualObj.src = "../images/" + temp + ".gif";
			// oculta conteúdo atual
			if (novoArea != atualArea) {
				document.getElementById("linha" + doisDigitos(atualArea)).style.display = "block";
			}
			document.getElementById("detalhe" + atualArea + "_" + atualNum).style.display = "none";			
		}
		
		// exibe conteúdo novo
		document.getElementById("linha" + doisDigitos(novoArea)).style.display = "none";
		document.getElementById("detalhe" + novoArea + "_" + novoNum).style.display = "block";
		
		// atribui novo atual
		pratoAtual = novo;
	}
}

function doisDigitos (num) {
	num = String(num)	
	if (num.length < 2) {
		num = "0" + num;
	}
	return num;
}

// glossário
itemAtual = null;
function abreItem (obj) {
	if (itemAtual != null) {
		itemAtual.style.display = "none";
	}
	obj.style.display = "block";
	itemAtual = obj;
}


//
// getPageSize()
// Returns array with page width, height and window width, height
// Core code from - quirksmode.org
// Edit for Firefox by pHaez
//

function getPageSize(){
	
	var xScroll, yScroll;
	
	if (window.innerHeight && window.scrollMaxY) {	
		xScroll = document.body.scrollWidth;
		yScroll = window.innerHeight + window.scrollMaxY;
	} else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
		xScroll = document.body.scrollWidth;
		yScroll = document.body.scrollHeight;
	} else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari
		xScroll = document.body.offsetWidth;
		yScroll = document.body.offsetHeight;
	}
	
	var windowWidth, windowHeight;
	if (self.innerHeight) {	// all except Explorer
		windowWidth = self.innerWidth;
		windowHeight = self.innerHeight;
	} else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
		windowWidth = document.documentElement.clientWidth;
		windowHeight = document.documentElement.clientHeight;
	} else if (document.body) { // other Explorers
		windowWidth = document.body.clientWidth;
		windowHeight = document.body.clientHeight;
	}	
	
	// for small pages with total height less then height of the viewport
	if(yScroll < windowHeight){
		pageHeight = windowHeight;
	} else { 
		pageHeight = yScroll;
	}

	// for small pages with total width less then width of the viewport
	if(xScroll < windowWidth){	
		pageWidth = windowWidth;
	} else {
		pageWidth = xScroll;
	}

	arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight) 
	return arrayPageSize;
}

//
// getPageScroll()
// Returns array with x,y page scroll values.
// Core code from - quirksmode.org
//
function getPageScroll(){

	var yScroll;

	if (self.pageYOffset) {
		yScroll = self.pageYOffset;
	} else if (document.documentElement && document.documentElement.scrollTop){	 // Explorer 6 Strict
		yScroll = document.documentElement.scrollTop;
	} else if (document.body) {// all other Explorers
		yScroll = document.body.scrollTop;
	}

	arrayPageScroll = new Array('',yScroll) 
	return arrayPageScroll;
}

// pops
popAtual = ""
originalVisualizaSWF = null
function abrePop (nome) {
	var arrayPageSize = getPageSize();
	document.getElementById("bkgPops").style.height = (arrayPageSize[1] + 'px');
	document.getElementById("bkgPops").style.display = "block";
	var tempScroll = getPageScroll()
	document.getElementById(nome).style.top = String(35 + tempScroll[1]) + "px";
	document.getElementById(nome).style.display = "block";
	popAtual = nome
	return false;
}

function fechaPop () {
	document.getElementById(popAtual).style.display = "none";
	document.getElementById("bkgPops").style.display = "none";
	return false;
}

function abreVisualizaSWF (nome) {
	
	var temp = abrePop(nome);

	var tempScroll = getPageScroll()
	document.getElementById("visualiza").style.top = String(85 + tempScroll[1]) + "px";
	document.getElementById("visualiza").style.display = "block";
	
	if (nome != "felizaniversario") {
		/*
		var params = {wmode:"transparent"};
		var attributes = {};
		swfobject.embedSWF("images/"+ nome +".swf", "visualizaSWF", "420", "280", "8.0.0", "../flash/expressInstall.swf", flashvars, params, attributes);
		*/
		
		//var so = new SWFObject("images/"+ nome +".swf", "visualizaSWFID", "420", "280", "8");
		var so = new SWFObject("../flash/"+ nome +".swf", "visualizaSWFID", "420", "280", "8");
		
		so.addParam("wmode", "transparent");
		so.write("visualizaSWF");
	}
}

function fechaVisualizaSWF () {
	fechaPop();
	var obj = document.getElementById("visualiza").innerHTML = "";
	var newdiv = document.createElement("div");
	newdiv.setAttribute('id','visualizaSWF');
	newdiv.innerHTML = '';
	var obj = document.getElementById("visualiza");
	obj.appendChild(newdiv);
}

function abrePrivacidade () {
	var arrayPageSize = getPageSize();
	document.getElementById("bkgPrivacidade").style.height = (arrayPageSize[1] + 'px');
	document.getElementById("bkgPrivacidade").style.display = "block";
	var tempScroll = getPageScroll()
	document.getElementById("janelaPrivacidade").style.top = String(35 + tempScroll[1]) + "px";
	document.getElementById("janelaPrivacidade").style.display = "block";
	return false;
}

function fechaPrivacidade () {
	document.getElementById("janelaPrivacidade").style.display = "none";
	document.getElementById("bkgPrivacidade").style.display = "none";
	return false;
}

function abreEsqueciSenha () {
	var arrayPageSize = getPageSize();
	document.getElementById("bkgPrivacidade").style.height = (arrayPageSize[1] + 'px');
	document.getElementById("bkgPrivacidade").style.display = "block";
	var tempScroll = getPageScroll()
	document.getElementById("Senha01").style.top = String(35 + tempScroll[1]) + "px";
	document.getElementById("Senha01").style.display = "block";
	return false;
}

function fechaEsqueciSenha () {
	document.getElementById("Senha01").style.display = "none";
	document.getElementById("bkgPrivacidade").style.display = "none";
	return false;
}

function abreLembreteSenha () {
	var arrayPageSize = getPageSize();
	document.getElementById("bkgPrivacidade").style.height = (arrayPageSize[1] + 'px');
	document.getElementById("bkgPrivacidade").style.display = "block";
	var tempScroll = getPageScroll()
	document.getElementById("Senha02").style.top = String(35 + tempScroll[1]) + "px";
	document.getElementById("Senha02").style.display = "block";
	return false;
}

function fechaLembreteSenha () {
	document.getElementById("Senha02").style.display = "none";
	document.getElementById("bkgPrivacidade").style.display = "none";
	return false;
}

function abreLembreteSenha2 () {
	var arrayPageSize = getPageSize();
	document.getElementById("bkgPrivacidade").style.height = (arrayPageSize[1] + 'px');
	document.getElementById("bkgPrivacidade").style.display = "block";
	var tempScroll = getPageScroll()
	document.getElementById("LembreteSenhaEmail").style.top = String(35 + tempScroll[1]) + "px";
	document.getElementById("LembreteSenhaEmail").style.display = "block";
	return false;
}

function fechaLembreteSenha2 () {
	document.getElementById("LembreteSenhaEmail").style.display = "none";
	document.getElementById("bkgPrivacidade").style.display = "none";
	return false;
}

function abreRespSenha () {
	var arrayPageSize = getPageSize();
	document.getElementById("bkgPrivacidade").style.height = (arrayPageSize[1] + 'px');
	document.getElementById("bkgPrivacidade").style.display = "block";
	var tempScroll = getPageScroll()
	document.getElementById("RespSenha").style.top = String(35 + tempScroll[1]) + "px";
	document.getElementById("RespSenha").style.display = "block";
	return false;
}

function fechaRespSenha () {
	document.getElementById("RespSenha").style.display = "none";
	document.getElementById("bkgPrivacidade").style.display = "none";
	return false;
}

function abreTransp (obj) {
	var arrayPageSize = getPageSize();
	document.getElementById("bkgPrivacidade").style.height = (arrayPageSize[1] + 'px');
	document.getElementById("bkgPrivacidade").style.display = "block";
	var tempScroll = getPageScroll()
	document.getElementById(obj).style.top = String(35 + tempScroll[1]) + "px";
	document.getElementById(obj).style.display = "block";
	return false;
}

function fechaTransp (obj) {
	document.getElementById(obj).style.display = "none";
	document.getElementById("bkgPrivacidade").style.display = "none";
	return false;
}

function abreLayer () {
	var arrayPageSize = getPageSize();
	document.getElementById("bkgPrivacidade").style.height = (arrayPageSize[1] + 'px');
	document.getElementById("bkgPrivacidade").style.display = "block";
	
	return false;
}


function Pop(param, name, propriedade){
	window.open(param, name, propriedade); 
}

function mudarAction( p_strUf )
{
	with( document.ctl00 )
	{
		switch( p_strUf,baseurl )
		{
			case "DF/GO":
				action = baseurl+"enderecos-do-outback-no-df-goias.asp";
			break;
			case "MG":
				action = baseurl+"enderecos-do-outback-em-minas-gerais.asp";
			break;
			case "ES":
				action = baseurl+"enderecos-do-outback-no-espirito-santo.asp";
			break;
			case "RJ":
				action = baseurl+"enderecos-do-outback-no-rio-de-janeiro.asp";
			break;
			case "RS":
				action = baseurl+"enderecos-do-outback-no-rio-grande-do-sul.asp";
			break;
			case "SP":
				action = baseurl+"enderecos-do-outback-em-sao-paulo.asp";
			break;
			case "SPC":
				action = baseurl+"enderecos-do-outback-em-sao-paulo-capital.asp";
			break;
			case "BA":
				action = baseurl+"enderecos-do-outback-na-bahia.asp";
			break;
			case "PR":
				action = baseurl+"enderecos-do-outback-no-parana.asp";
			break;
			default:
				action = baseurl+"default.asp";
		}
	}
}

function mudarActionHome( p_strUf,baseurl )
{
	with( document.ctl00 )
	{
		switch( p_strUf )
		{
			case "DF/GO":
				action = baseurl+"enderecos-do-outback-no-df-goias.asp";
			break;
			case "MG":
				action = baseurl+"enderecos-do-outback-em-minas-gerais.asp";
			break;
			case "ES":
				action = baseurl+"enderecos-do-outback-no-espirito-santo.asp";
			break;
			case "RJ":
				action = baseurl+"enderecos-do-outback-no-rio-de-janeiro.asp";
			break;
			case "RS":
				action = baseurl+"enderecos-do-outback-no-rio-grande-do-sul.asp";
			break;
			case "SP":
				action = baseurl+"enderecos-do-outback-em-sao-paulo.asp";
			break;
			case "SPC":
				action = baseurl+"enderecos-do-outback-em-sao-paulo-capital.asp";
			break;
			case "BA":
				action = baseurl+"enderecos-do-outback-na-bahia.asp";
			break;
			case "PR":
				action = baseurl+"enderecos-do-outback-no-parana.asp";
			break;
			default:
				action = "";
		}
	}
}
