// JavaScript Document
function aberje2004()
{
	window.open('popup_aberje2004.asp','_blank','scrollbars=no,resizible=no,toolbar=no,location=no,status=no,menubar=no,width=550,height=330,top=50,left=50')
}
function aberje2005()
{
	window.open('popup_aberje2005.asp','_blank','scrollbars=yes,resizible=no,toolbar=no,location=no,status=no,menubar=no,width=600,height=400,top=50,left=50')
}
function pix()
{
	w = 600
	h = 500
	
	var l = (screen.width - w) / 2
	var t = (screen.height - h - 60) / 2
	window.open('popup_pix_aniversario.asp','_blank','scrollbars=no,resizible=no,toolbar=no,location=no,status=yes,menubar=no,width=' + w + ',height=' + h + ',top=' + t + ',left=' + l)
}
function getPopIndique()
{
	w = 500
	h = 400
	
	var l = (screen.width - w) / 2
	var t = (screen.height - h - 60) / 2
	window.open('faleconosco_indique.asp','_blank','scrollbars=no,resizible=no,toolbar=no,location=no,status=yes,menubar=no,width=' + w + ',height=' + h + ',top=' + t + ',left=' + l)
}
function getPopIndiqueLink()
{
	w = 500
	h = 400
	
	var l = (screen.width - w) / 2
	var t = (screen.height - h - 60) / 2
	window.open('links_indique.asp','_blank','scrollbars=no,resizible=no,toolbar=no,location=no,status=yes,menubar=no,width=' + w + ',height=' + h + ',top=' + t + ',left=' + l)
}
function pix2()
{
	w = 612
	h = 550
	
	var l = (screen.width - w) / 2
	var t = (screen.height - h - 60) / 2
	window.open('popup_pix.asp','_blank','scrollbars=yes,resizible=no,toolbar=no,location=no,status=yes,menubar=no,width=' + w + ',height=' + h + ',top=' + t + ',left=' + l)
}
function pix_natal()
{
	w = 504
	h = 400
	
	var l = (screen.width - w) / 2
	var t = (screen.height - h - 60) / 2
	window.open('popup_pix_natal.asp','_blank','scrollbars=yes,resizible=no,toolbar=no,location=no,status=yes,menubar=no,width=' + w + ',height=' + h + ',top=' + t + ',left=' + l)
}
function pix_aberje()
{
	window.open('contaclique.asp?url=pix_aberje.htm','_blank','scrollbars=yes,resizible=no,toolbar=no,location=no,status=no,menubar=no,width=655,height=' + (screen.height - 50) + ',top=0,left=0')
}
function pesquisa()
{
window.open('pesquisa.asp','_blank','scrollbars=no,resizible=no,toolbar=no,location=no,status=no,menubar=no,width=550,height=450,top=1,left=1')
}

function portfolio_poesia()
{
w = 780

if (screen.height > 600)
	h = 610
else
	h = 550

var l = (screen.width - w) / 2
var t = (screen.height - h - 60) / 2
window.open('portfolio_poesia.asp','_blank','scrollbars=yes,resizible=no,toolbar=no,location=no,status=no,menubar=no,width=' + w + ',height=' + h + ',top=' + t + ',left=' + l)
}


function popup_galeriaWF()
{
	cod = 3452;
	w = screen.width;
	h = screen.height - 50;
	window.open('clientes_lista_eventos_thumb.asp?w=' + screen.width + '&galeria=' + cod,'_blank','scrollbars=no,resizible=no,toolbar=no,location=no,status=no,menubar=no,width=' + w + ',height=' + h + ',top=1,left=1')
}


function balanco()
{
w = 600

if (screen.height > 600)
	h = 610
else
	h = 550

var l = (screen.width - w) / 2
var t = (screen.height - h - 60) / 2
window.open('balanco_2006.asp','_blank','scrollbars=yes,resizible=no,toolbar=no,location=no,status=no,menubar=no,width=' + w + ',height=' + h + ',top=' + t + ',left=' + l)
}
function writeFlash(TxArquivo,Idioma,x) {
	document.getElementById("menu_direita_" + x).innerHTML = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='130' height='30' id='myflash' align='middle'><param name='allowScriptAccess' value='sameDomain' /><param name='movie' value='img/" + TxArquivo + "_" + Idioma + ".swf' /><param name='quality' value='high' /><param name='bgcolor' value='#ffffff' /><embed src='img/" + TxArquivo + "_" + Idioma + ".swf' quality='high' bgcolor='#ffffff' width='130' height='30' name='mymovie' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object>";
}
function writeFlashHome() {
	document.getElementById("flash_home").innerHTML = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='770' height='150' id='myflash' align='middle'><param name='allowScriptAccess' value='sameDomain' /><param name='movie' value='img/Home_4anos.swf' /><param name='quality' value='high' /><param name='bgcolor' value='#ffffff' /><embed src='img/Home_4anos.swf' quality='high' bgcolor='#ffffff' width='770' height='150' name='mymovie' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object>";
}
function imprensa()
{

	w = 640
	h = 550
	
	var l = (screen.width - w) / 2
	var t = (screen.height - h - 60) / 2
	window.open('imprensa.asp','_blank','scrollbars=yes,resizible=no,toolbar=no,location=no,status=yes,menubar=no,width=' + w + ',height=' + h + ',top=' + t + ',left=' + l)
}

function popup_fotonahora()
{
	w = 552
	h = 550
	
	var l = (screen.width - w) / 2
	var t = (screen.height - h - 60) / 2
	window.open('Popup_fotoNaHora.asp','_blank','scrollbars=no,resizible=no,toolbar=no,location=no,status=yes,menubar=no,width=' + w + ',height=' + h + ',top=' + t + ',left=' + l)
}
function chkFormEnvio(objForm) {
	if(objForm.nome.value == objForm.email.value) {
		alert("O valor digitado no campo nome é inválido.");
		return false;
	}
	else
		return true;
}
function portfolio(cod)
{
	w = screen.width;
	h = screen.height - 50;
	window.open('clientes_lista_eventos_thumb.asp?w=' + screen.width + '&h=' + screen.height + '&galeria=' + cod,'_blank','scrollbars=no,resizible=no,toolbar=no,location=no,status=no,menubar=no,width=' + w + ',height=' + h + ',top=1,left=1')
}
var IE = document.all?true:false

// If NS -- that is, !IE -- then set up for mouse capture
if (!IE) document.captureEvents(Event.MOUSEMOVE)

// Set-up to use getMouseXY function onMouseMove
document.onmousemove = getMouseXY;

// Temporary variables to hold mouse x-y pos.s
var tempX = 0
var tempY = 0

// Main function to retrieve mouse x-y pos.s

function getMouseXY(e) {
  if (IE) { // grab the x-y pos.s if browser is IE
    tempX = event.clientX + document.body.scrollLeft
    tempY = event.clientY + document.body.scrollTop
  } else {  // grab the x-y pos.s if browser is NS
    tempX = e.pageX
    tempY = e.pageY
  }  
  // catch possible negative values in NS4
  if (tempX < 0){tempX = 0}
  if (tempY < 0){tempY = 0}  
  // show the position values in the form named Show
  // in the text fields named MouseX and MouseY
  return true
}
function abrir_postal(cod)
{
window.open('entrepostal2.asp?cod=' + cod,'_blank','scrollbars=no,resizible=yes,toolbar=no,location=no,status=no,menubar=no,width=680,height=534,top=1,left=1')
}