// Funcao para desabilitar o botao direito do mouse e nao permitir que o usuario copie as fotos
//function disableRightClick(e)
//{
// var message = "Prezado Visitante, para adquirir uma de nossas fotografias, visite o link BANCO DE IMAGENS !";
//
//  if(!document.rightClickDisabled) // initialize
//  {
//    if(document.layers) 
//    {
//      document.captureEvents(Event.MOUSEDOWN);
//      document.onmousedown = disableRightClick;
//    }
//    else document.oncontextmenu = disableRightClick;
//    return document.rightClickDisabled = true;
//  }
//  if(document.layers || (document.getElementById && !document.all))
//  {
//    if (e.which==2||e.which==3)
//    {
//      alert(message);
//      return false;
//    }
//  }
//  else
//  {
//    alert(message);
//    return false;
//  }
//}
//disableRightClick(); // Carrega a funcao

// Funcao para abrir Janela Popup
function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
toolbar_str = toolbar ? 'yes' : 'no';
menubar_str = menubar ? 'yes' : 'no';
statusbar_str = statusbar ? 'yes' : 'no';
scrollbar_str = scrollbar ? 'yes' : 'no';
resizable_str = resizable ? 'yes' : 'no';
// Manter o comando abaixo na mesma linha
window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',      menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}

function abre_galeria(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
	if (screen.availWidth > 800)
	{
	left = 150;
	top = 120;
	}
	else
	{
	left = 50;
	top = 0;
	}
width = 700;
height = 550;
toolbar_str = 'no';
menubar_str = 'no';
statusbar_str = 'no';
scrollbar_str = 'yes';
resizable_str = 'no';
// Manter o comando abaixo na mesma linha
window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',      menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}


