function GetTitle(img,vx,vy,objname)
{
// определение разрешения монитора у пользователя
var screen_width = screen.width
var screen_height = screen.height

var vxm=vx+40;
var vym=vy+70;
// ограничение размеров окна так, чтобы его размеры
// не превышали разрешение монитора
if ( vxm > screen_width )
{
  vxm = screen_width - 20;
}
if ( vym > screen_height )
{
  vym = screen_height - 70;
}
// открытие нового окна и помещение в него фотографии
// с заданными в HTML-коде размерами
myWin= window.open ("", "window",
    "width="+vxm+",height="+vym+",top=0,left=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes");
myWin.focus();
myWin.document.open();
myWin.document.writeln('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">');
myWin.document.writeln('<html><head><meta http-equiv="content-type" content="text/html; charset=windows-1251">');
myWin.document.writeln('<meta content="text/html; charset=windows-1251" name="content-type"><meta http-equiv="Content-Language" content="ru">');
myWin.document.writeln('<title>ПОЛНОФОРМАТНОЕ ИЗОБРАЖЕНИЕ</title><LINK REL="SHORTCUT ICON" href="img/index.ico">');
myWin.document.writeln('<STYLE type="text/css">BODY {margin: 5px 5px 5px 5px; BACKGROUND-COLOR: #e4e4e4; background-image: url(http://iverny.ru/img/bgr_048.gif); background-attachment: fixed; overflow: auto;}');
myWin.document.writeln('img {border-style: solid; border-width: 2px; border-color: #bab5b1;}');
myWin.document.writeln('.text {FONT-SIZE: 14px;	COLOR: #000000;	FONT-FAMILY: "Times New Roman"; TEXT-DECORATION: none; text-align: center; padding-top: 4px; FONT-WEIGHT: normal;}');
myWin.document.writeln('</STYLE>');
myWin.document.writeln('<META HTTP-EQUIP=Cache-Control content=nocache><META HTTP-EQUIV=Pragma CONTENT=no-cache>');
myWin.document.writeln('</head>');
myWin.document.writeln('<body><div onClick=window.close();>');
myWin.document.writeln('<table valign=top align=center cellPadding="0" cellspacing="0" width="100%" height="100%" border="0"><tbody>');
myWin.document.writeln('<tr><td valign=middle align=center><img src='+img+' width='+vx+' height='+vy+' style="CURSOR:hand;" alt="Окно закрывается щелчком мыши" title="Окно закрывается щелчком мыши" galleryimg=no></td></tr>');
myWin.document.writeln('<tr><td class=text valign=top align=center>'+objname+'</td></tr>');
myWin.document.writeln('</tbody></table></div></body></html>');

myWin.document.close();
myWin.document.focus();
}


function GetTit1(img,vx,vy,objname,hh,ww)
{
// определение разрешения монитора у пользователя
var screen_width = screen.width
var screen_height = screen.height

var vxm=vx+40;
var vym=vy+70;
var vxt=vx+0;
var vyt=vy+0;
// ограничение размеров окна так, чтобы его размеры
// не превышали разрешение монитора
if ( vxm > screen_width )
{
  vxm = screen_width - 40;
}
if ( vym > screen_height )
{
  vym = screen_height - 60;
}
// открытие нового окна и помещение в него фотографии
// с заданными в HTML-коде размерами
myWin= window.open ("", "window",
    "width="+vxm+",height="+vym+",top=0,left=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes");
myWin.focus();
myWin.document.open();
myWin.document.writeln('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">');
myWin.document.writeln('<html><head><meta http-equiv="content-type" content="text/html; charset=windows-1251">');
myWin.document.writeln('<meta content="text/html; charset=windows-1251" name="content-type">');
myWin.document.writeln('<title>ПОЛНОФОРМАТНОЕ ИЗОБРАЖЕНИЕ</title><LINK REL="SHORTCUT ICON" href="img/index.ico"><LINK href="http://www.iverny.ru/styles/main.css" type="text/css" rel="stylesheet">');
myWin.document.writeln('<STYLE type="text/css">BODY {margin:6px 5px 5px 5px;padding:0; BACKGROUND-COLOR: #e4e4e4; background-image: url(http://iverny.ru/img/bgr_048.gif); background-attachment: fixed;}');
myWin.document.writeln('.text {FONT-SIZE: 14px;	COLOR: #000000;	FONT-FAMILY: Times New Roman; TEXT-DECORATION: none; text-align: center; padding-top: 5px; FONT-WEIGHT: normal;}');
myWin.document.writeln('img{behavior: url(http://www.iverny.ru/styles/iepngfix.htc)}</STYLE>');
myWin.document.writeln('<META HTTP-EQUIP=Cache-Control content=nocache><META HTTP-EQUIV=Pragma CONTENT=no-cache>');
myWin.document.writeln('</head>');
myWin.document.writeln('<body><div onClick=window.close();><div align=center style="CURSOR:hand;">');

myWin.document.writeln('<table border="0" align="center" width='+vxt+' height='+vyt+' cellPadding="0" cellspacing="0"><tr><td align="left" style="background-image:url('+img+');background-repeat:no-repeat;background-position: 2px 2px;"><img src="http://www.iverny.ru/img/iverny.gif" align=center width='+vx+' height='+vy+' style="position:relative;z-index:1;border:2px solid gray;" alt="Окно закрывается щелчком мыши" title="Окно закрывается щелчком мыши" galleryimg=no>');
myWin.document.writeln('<img src="http://www.iverny.ru/img/iverny_lb_60s.png" align="center" style="position:relative;z-index:0;'+hh+';'+ww+';width:100px;height:30px;border:0;"></td></tr></table>');

myWin.document.writeln('<div class=text valign=top align=center style="margin-top:-31px;">'+objname+'</div></div></div></body></html>');
myWin.document.close();
myWin.document.focus();
}


function GetTit3(img,vx,vy,objname,hhl,wwl,hhc,wwc,hhr,wwr)
{
// определение разрешения монитора у пользователя
var screen_width = screen.width
var screen_height = screen.height

var vxm=vx+20;
var vym=vy+65;
var vxt=vx+10;
var vyt=vy+0;
// ограничение размеров окна так, чтобы его размеры
// не превышали разрешение монитора
if ( vxm > screen_width )
{
  vxm = screen_width - 40;
}
if ( vym > screen_height )
{
  vym = screen_height - 60;
}
// открытие нового окна и помещение в него фотографии
// с заданными в HTML-коде размерами
myWin= window.open ("", "window",
    "width="+vxm+",height="+vym+",top=0,left=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes");
myWin.focus();
myWin.document.open();
myWin.document.writeln('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">');
myWin.document.writeln('<html><head><meta http-equiv="content-type" content="text/html; charset=windows-1251">');
myWin.document.writeln('<meta content="text/html; charset=windows-1251" name="content-type">');
myWin.document.writeln('<title>ПОЛНОФОРМАТНОЕ ИЗОБРАЖЕНИЕ</title><LINK REL="SHORTCUT ICON" href="img/index.ico"><LINK href="http://www.iverny.ru/styles/main.css" type="text/css" rel="stylesheet">');
myWin.document.writeln('<STYLE type="text/css">BODY {margin:6px 5px 5px 5px;padding:0; BACKGROUND-COLOR: #e4e4e4; background-image: url(http://iverny.ru/img/bgr_048.gif); background-attachment: fixed;}');
myWin.document.writeln('.text {FONT-SIZE: 14px;	COLOR: #000000;	FONT-FAMILY: "Times New Roman"; TEXT-DECORATION: none; text-align: center; padding-top: 5px; FONT-WEIGHT: normal;}');
myWin.document.writeln('img{behavior: url(http://www.iverny.ru/styles/iepngfix.htc)}</STYLE>');
myWin.document.writeln('<META HTTP-EQUIP=Cache-Control content=nocache><META HTTP-EQUIV=Pragma CONTENT=no-cache>');
myWin.document.writeln('</head>');
myWin.document.writeln('<body><div onClick=window.close();><div align=center style="CURSOR:hand;">');

myWin.document.writeln('<table border="0" align="center" width='+vxt+' height='+vyt+' cellPadding="0" cellspacing="0"><tr><td align="left" style="background-image:url('+img+');background-repeat:no-repeat;background-position: 2px 2px;"><img src="http://www.iverny.ru/img/iverny.gif" align=center width='+vx+' height='+vy+' style="position:relative;z-index:1;border:2px solid gray;" alt="Окно закрывается щелчком мыши" title="Окно закрывается щелчком мыши" galleryimg=no>');
myWin.document.writeln('<img class=dock src="http://www.iverny.ru/img/iverny_lb_60s.png" align="center" style="position:relative;z-index:0;'+hhl+';'+wwl+';width:100px;height:30px;border:0;"><img class=dock src="http://www.iverny.ru/img/iverny_lb_60s.png" align="center" style="position:relative;z-index:0;'+hhc+';'+wwc+';width:100px;height:30px;border:0;"><img class=dock src="http://www.iverny.ru/img/iverny_lb_60s.png" align="center" style="position:relative;z-index:0;'+hhr+';'+wwr+';width:100px;height:30px;border:0;"></td></tr></table>');

myWin.document.writeln('<div class=text valign=top align=center style="margin-top:-31px;">'+objname+'</div></div></div></body></html>');
myWin.document.close();
myWin.document.focus();
}

