
function cambio(capa) 
{soy = document.getElementById(capa);
for (var i = 1; i<=30; i++)
{if (capa!=i) {if (document.getElementById(i)) {document.getElementById(i).style.display='none';}}}
soy.style.display = (soy.style.display == "block") ? "none" : "block";
}

function fen()
{
document.writeln ("<div>&#169; 2008, All right reserved by <BR>The Ukrainian Autocephalous Orthodox Church of North & South America and the Diaspora.<BR><a href=\"http://www.uaoc.org/en/userights.html\">Rights and use information</a>. <a href=\"http://www.uaoc.org/en/privacy.html\">Privacy policy</a><BR>New York City, NY, U.S.A.<BR></div>")
}


function fes()
{
document.writeln ("<div>&#169; 2008, Todos los derechos reservados por la<BR>Iglesia Ortodoxa Ucraniana Autoc&#233;fala  del Norte y Sur de Am&#233;rica y la Di&#225;spora.<BR><a href=\"#\">Informaci&#243;n de Derecho y uso</a>. <a href=\"#\">Pol&#237;tica de Privacidad</a><BR>New York City, NY, U.S.A.<BR></div>")
}



//Abrir Ventana con imagen por Tunait
//<a href="javascript:afoto('images/thumb/blancasfem004h.jpg','el título que quieras')"> <img src = "images/thumb/blancasfem004h.jpg"> </a>
var ventana
var cont=0
var titulopordefecto = "UAOC - Pictures"
function afoto(cual,titulo)
{
if(cont==1){ventana.close();ventana=null}
if(titulo==null){titulo=titulopordefecto}
ventana=window.open('','ventana','resizable=no,sc rollbars=no,width=50,height=50')
ventana.document.write('<html><head><title>' + titulo + '</title></head><body style="overflow:hidden" marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" scroll="no"  onUnload="opener.cont=0"><div align="center"><a href="javascript:this.close()"><img src="' + cual + '" onLoad="opener.redimensionar(this.width, this.height)" style="border:none"></a></div>')
ventana.document.close()
cont++
}
function redimensionar(ancho, alto)
{
ventana.resizeTo(ancho+5,alto+30)
ventana.moveTo((screen.width-ancho)/2,(screen.height-alto)/2) //centra la ventana. Eliminar si no se quiere centrar el popup
}
