<!-- 
var msgstatus = "";

function openWindow(url) {
  popupWin = window.open(url, 'new_page', 'width=685px,height=540px,scrollbars=0,left=50px,top=20px');
  }
  
function openPrint(url) {
  popupWin = window.open(url, 'new_page', 'width=685px,height=540px,scrollbars=1,left=50px,top=20px');
  }  

function right(e) {
  // Original:  Martin Webb (martin@irt.org)
  if (navigator.appName == 'Netscape' && 
    (e.which == 3 || e.which == 2))
    return false;
  else if (navigator.appName == 'Microsoft Internet Explorer' && 
    (event.button == 2 || event.button == 3)) {
    alert("Todos os direitos reservados/all rights reserved.\n\rProibida a reprodução não autorizada/no authorized copy are prohibited.");
    return false;
    }
  return true;
  }  
  
function openMap(url) {
  popupWin1 = window.open(url, 'new_page1', 'width=685,height=490,scrollbars=1,left=50,top=20')
  }
  
function preloadImages(lang) {
  if(lang==2){
    window.status="click on the menu options, to navigate...";
	}
  else {
    window.status="clique nas opções de menu, para navegar...";
    }
  }
  
function newImage(arg) {
  if (document.images) {
    rslt = new Image();
    rslt.src = arg;
	return rslt;
    }
  }

function aleat(num)	{
  return Math.floor(Math.random()* num) +1;
  }
   
function display_promo(){
  ra_num = aleat(4);
  //document.write(ra_num);
  if(ra_num==1){
	document.write("<a href='http://www.mestrehugo.com.br/promo.php' target='_blank'><img src='imagens/promo_1.jpg' border='0' alt='' /></a>"); 
	}
  else {
	document.write("<a href='http://www.rioaraguaia.com.br/appacks.php'><img src='imagens/promo_"+ra_num+".jpg' border='0' alt='' /></a>");
	}
  }  
-->
