var setaEsquerda = true;
function setEsq(){setaEsquerda = false;}
function setEsq2(){setaEsquerda = true;}
function abreGaleria(codigo){
window.location="#";
document.getElementById("fundo").style.marginLeft = "-393px";
document.getElementById("galeria").style.marginLeft = "-354px";
window.galeria.location="../fotos/galeria.asp?id="+codigo;
}
function fechaGaleria(){
document.getElementById("fundo").style.marginLeft = "-20000px";
document.getElementById("galeria").style.marginLeft = "-20000px";
window.galeria.location="../fotos/galeria_vazia.htm";
}
function abreFoto(){
document.getElementById("fundo_foto").style.marginLeft = "-295px";
document.getElementById("foto").style.marginLeft = "-257px";
}
function fechaFoto(){
document.getElementById("fundo_foto").style.marginLeft = "-20000px";
document.getElementById("foto").style.marginLeft = "-20000px";
window.foto.location="../fotos/galeria_vazia.htm";
}
function inicio(){
window.foto.location="../fotos/galeria_vazia.htm";
window.galeria.location="../fotos/galeria_vazia.htm";
document.getElementById("esquerda").style.left = "-20000px";
}
function showArrow(){
if (setaEsquerda != false) document.getElementById("esquerda").style.left = "17px";
document.getElementById("direita").style.left = "474px";
document.getElementById("fechar2").style.left = "478px";
}
function hideArrow(){
document.getElementById("esquerda").style.left = "-20000px";
document.getElementById("direita").style.left = "-20000px";
document.getElementById("fechar2").style.left = "-20000px";
}
function proxima(){window.foto.proxima();}
function anterior(){window.foto.anterior();}
