/**
 * Megnyit egy popup ablakot, amelybe betölt egy képet
 *
 * @author      Aurum <aurum@aurum.hu>
 * @copyright   Copyright (c)2003 by Aurum
 * @version     0.1
 *
 * @param   string      imageName       Betöltendő kép neve útvonallal
 * @param   integer     imageWidth      Kép szélessége pixelben
 * @param   integer     imageHeight     Kép magassága pixelben
 * @param   string      alt             Alternatív szöveg
 * @param   integer     posLeft         Ablak bal felső sarok X pozíciója
 * @param   integer     posTop          Ablak bel felső sarok Y pozíciója
 *
 * @return  void
 */
function showImage(imageName, imageWidth, imageHeight, alt, posLeft, posTop) {
	newWindow = window.open("", "", "width="+imageWidth+", height="+imageHeight+", left="+posLeft+", top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><head><title>'+alt+'</title></head><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); 
	newWindow.document.write('<img src='+imageName+' width='+imageWidth+' height='+imageHeight+' alt='+alt+'>'); 
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}

function popupImages(siteUrl, galleryID, imageName, width, height)
{

    window.open(siteUrl+"/galeria/"+galleryID+"/"+imageName, "", 
            "scrollbars, width=" + width + ", height=" + height + 
            ", left=" +(screen.availWidth-width)/2 + 
            ", top=" + (screen.availHeight-height)/2);
}
