win = 0;
function enlargeImage(src, width, height, title, descr)
{
    if (win) win.close();
    width  = width  + 20;
    height = height + 50;
    win = window.open('','','width='+width+',height='+height + ', scrollbars=1' );
    win.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">');
    win.document.write('<html>');
    win.document.write('<head>');
    win.document.write('<title>' + title + ' Fondus</title>');
    win.document.write('</head>');
    win.document.write('<body leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0">');
    win.document.write('<img align="texttop" src="'+src+'" onclick="window.close()" alt="закрыть"><br><br>');
    win.document.write('<div style="padding-left: 10px;padding-top: -5px">' + descr + '</div>');
    win.document.write('</body>');
    win.document.write('</html>');
    return false;
}

function enlargeGalleryImage(src, width, height)
{
    if (win) win.close();
    win = window.open('','','width='+width+',height='+height + ', scrollbars=0' );
    win.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">');
    win.document.write('<html>');
    win.document.write('<head>');
    win.document.write('<title>Изображение :: Фото-Галерея :: Fondus</title>');
    win.document.write('</head>');
    win.document.write('<body leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0">');
    win.document.write('<img align="texttop" src="'+src+'" onclick="window.close()" alt="закрыть"><br><br>');
    win.document.write('</body>');
    win.document.write('</html>');
    return false;
}

function GoToGallery()
{
		sel = document.getElementById('gSelect');
		val = sel.options[sel.selectedIndex].value;
		if (!val) return;
		window.location.href = "/manors/photo/?id=" + val;
}

function showArticle(id)
{
    window.open('/zsms/article.php?id=' + id, 'article_win', 'width=800, height=600, toolbar=no, directories=no, menubar=no, status=yes, scrollbars=yes, location=no, resizable=yes');
}
