");
ThumbnailWnd.document.writeln("");
ThumbnailWnd.document.writeln("
");
ThumbnailWnd.document.writeln("");
ThumbnailWnd.document.writeln("
");
ThumbnailWnd.document.writeln(" ");
ThumbnailWnd.document.writeln(" | ");
ThumbnailWnd.document.writeln(" | ");
ThumbnailWnd.document.writeln(" | ");
ThumbnailWnd.document.writeln(" | ");
ThumbnailWnd.document.writeln(" | ");
ThumbnailWnd.document.writeln(" | ");
if(navigator.appName != "Netscape" || navigator.appVersion.charAt(0) > 4)
ThumbnailWnd.document.writeln(" | ");
ThumbnailWnd.document.writeln("
");
ThumbnailWnd.document.writeln("
");
ThumbnailWnd.document.writeln("
");
ThumbnailWnd.document.writeln("");
ThumbnailWnd.document.writeln("
Используются технологии
uCoz
");
ThumbnailWnd.document.writeln("");
if(navigator.appName != "Netscape" || navigator.appVersion.charAt(0) > 4)
{
str = "";
else
str = str + " width=" + nCurPicWidth + " height=" + nCurPicHeight + ">";
ThumbnailWnd.document.writeln(str);
}
else
{
for(i=0;inWndWidth || nPicHeight+125>nWndHeight)
{
if(nPicWidth*(nWndHeight-125)>nPicHeight*(nWndWidth-50))
{
nPicHeight = parseInt(nPicHeight*(nWndWidth-50)/nPicWidth);
nPicWidth = nWndWidth-50;
}
else
{
nPicWidth = parseInt(nPicWidth*(nWndHeight-125)/nPicHeight);
nPicHeight = nWndHeight-125;
}
}
var sImageCur = ImgSize[i*2]==0? "image/UnableOpen.jpg" : ImgName[i];
str = "";
ThumbnailWnd.document.writeln(str);
}
}
ThumbnailWnd.document.writeln("
");
ThumbnailWnd.document.writeln("");
if(navigator.appName != "Netscape" || navigator.appVersion.charAt(0) > 4)
ThumbnailWnd.document.close();
}
}
function ThumbnailBrowse(nImageIndex)
{
if(ThumbnailWnd==null || ThumbnailWnd.closed)
{
var nPicWidth = ImgSize[nImageIndex*2]==0 ? 250 : ImgSize[nImageIndex*2];
var nPicHeight = ImgSize[nImageIndex*2+1]==0 ? 250 : ImgSize[nImageIndex*2+1];
var nWndWidth = parseInt(screen.width*8/10);
var nWndHeight = parseInt(screen.height*8/10);
if(nPicWidth+50>nWndWidth || nPicHeight+125>nWndHeight)
{
if(nPicWidth*(nWndHeight-125)>nPicHeight*(nWndWidth-50))
{
nPicHeight = parseInt(nPicHeight*(nWndWidth-50)/nPicWidth);
nPicWidth = nWndWidth-50;
}
else
{
nPicWidth = parseInt(nPicWidth*(nWndHeight-125)/nPicHeight);
nPicHeight = nWndHeight-125;
}
}
nWndWidth = nPicWidth+50;
nWndHeight = nPicHeight+125;
var sWndOpt = "width="+nWndWidth+",height="+nWndHeight+",top=0,left=0,resizable=yes,scrollbars=yes";
ThumbnailWnd = window.open("", "ImageBrowser", sWndOpt);
WriteThumbnailBrowse(nImageIndex);
}
ThumbnailWnd.gotoImage(nImageIndex);
ThumbnailWnd.focus();
}
function CloseBrowser()
{
if(ThumbnailWnd && !ThumbnailWnd.closed)
{
ThumbnailWnd.close();
ThumbnailWnd=null;
}
}
//-->
Photo GalLerY
Используются технологии
uCoz
Назад
Вперёд