<!--

var Version = 6;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
                 var words = navigator.plugins["Shockwave Flash"].description.split(" ");
            for (var i = 0; i < words.length; ++i)
            {
                if (isNaN(parseInt(words[i])))
                continue;
                var Version = words[i]; 
            }
        var CanPlay = Version >= Version;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
   && (navigator.appVersion.indexOf("Win") != -1)) {
        document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n');
        document.write('on error resume next \n');
        document.write('CanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & Version)))\n');
        document.write('</SCR' + 'IPT\> \n');
}

function cw(file, x, y) {

    if ( !(x&&y)) return false;
    var popwin;
    var left=(screen.Width-x)/2;
    var top=(screen.Height-y)/2;
    var html='<html><head><title>ЗАО &laquo;Ижторгметалл&raquo;</title><style type="text/css">body {margin:0;padding:0;}</style></head></html><body bgcolor="#ffffff" marginwidth="0" marginheight="0" topmargin="0" leftmargin="0"><a href="#" onclick="window.close(); return false;"><img src="'+file+'" width="'+x+'" height="'+y+'" border="0" alt="Закрыть окно"></a></body></html>';

    if ( popwin=window.open("/empty.html", "_blank", 'width='+x+',height='+y+',scrollbars=0,status=1,left='+left+',top='+top+'') ) {
        popwin.document.open();
        popwin.document.write(html);
        popwin.document.close();
        popwin.focus();
        return true;
    }

    return false;
}

function popup(file, x, y) {

    if ( !(x&&y) ) return false;
    var popwin;
    var left=(screen.Width-x)/2;
    var top=(screen.Height-y)/2;

    if ( popwin=window.open(file, "_blank", 'width='+x+',height='+y+',scrollbars=0,status=1,left='+left+',top='+top+'') ) {
        return true;
    }

    return false;
}

//-->
