function popWin(url, name, width, height, scroller){
   width = width + 0;
   height = height + 25;
   var outStr = 'height=' + height + ',width=' + width;
   if (scroller != 'true') {
   outStr = outStr + ',menubar=no,toolbar=no,location=no,directories=no,status=no,resizable=no,';
       }
       else {
       outStr = outStr + ',menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=no';
       }
         imageWindow = window.open(url, '', outStr);
         imageWindow.document.open();
         imageWindow.document.write("<html><head><title>© 2004 Спортторг - ");
         imageWindow.document.write(name);
         imageWindow.document.write("</title><link rel='stylesheet' type='text/css' href='st.css'>");
         imageWindow.document.write("<script language='javascript'>");
         imageWindow.document.write("function vision() {");
         imageWindow.document.write("if(document.all) { document.all.loading.style.visibility='hidden';");
         imageWindow.document.write("} else { document.layers.loading.visibility='hide'; }");
         imageWindow.document.write("}</script>");
         imageWindow.document.write("</head>");
         imageWindow.document.write("<style type='text/css'><!--body {margin:0;}//--></style>");
         imageWindow.document.write("<body onLoad='vision()'; leftmargin='0' topmargin='0' marginwidth='0' marginheight='0' bgcolor='#ffffff'>");
         imageWindow.document.write("<div id='loading' style='position:absolute; left:0; top:0; width:100%; height:100%;'><table width='100%' height='100%' bgcolor='#e6e6e6'><tr><td align='center' valign='middle'><img src='img/loading.gif' alt='' width=123 height=8 border=0></td></tr></table></div>");
         imageWindow.document.write("<table cellpadding='0' cellspacing='0' width='100%' height='25'>");
         imageWindow.document.write("<tr><td align=left height=24 bgcolor='#e6e6e6'><img src='img/gallery.gif' width=25 height=22 border=0></td><td align=right height=24 bgcolor='#e6e6e6'><img src='img/icon-x.gif' width=12 height=12 hspace='3' align='absbottom' border=0><a class=\"mlink\" href='javascript:self.close();'>Закрыть</a>&nbsp;</td></tr><tr><td colspan=2 bgcolor='#979797' height=1><img src='img/dot.gif' width=1 height=1 border=0></td></tr></table>");
         imageWindow.document.write("<table cellpadding='0' cellspacing='0' width='100%'><tr><td align='center'><img src='");
         imageWindow.document.write(url);
         imageWindow.document.write("' alt='");
         imageWindow.document.write(name);
         imageWindow.document.write("'></td></tr></table>");
         imageWindow.document.write("</body></html>");
         if (parseInt(navigator.appVersion) >= 4) { imageWindow.focus(); }
         imageWindow.document.close();
}