<!--
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 ( !(file && 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("", "_blank", 'width='+x+',height='+y+',scrollbars=0,left='+left+',top='+top+'') ) {
        popwin.document.open();
        popwin.document.write(html);
        popwin.document.close();
        popwin.focus();
        return true;
    }

    return false;
}

function cwmap(file, x, y)
{
    if ( !(file && x && y) ) return false;

    var windowX=x+50;
    var windowY=y+120;

    var popwin;
    var left=(screen.Width-windowX)/2;
    var top=(screen.Height-windowY)/2;
    var html ='<html><head><title>Схема проезда &mdash; ООО &laquo;Пассат&raquo;</title><style type="text/css">p, td {font-family: verdana, arial, sans_serif; font-size: 8pt; color: #666}a { text-decoration:underline; color: #666; } a:hover { text-decoration:none; color: #666; }</style></head></html><body bgcolor="#ffffff"><p align="center">Подробная схема проезда:</p><p align="center"><img src="'+file+'" width="'+x+'" height="'+y+'" border="0" alt="Подробная схема проезда"></p><table width="100%" border="0"><tr align="center"><td><a href="#" onclick="window.print(); return false;">Распечатать</a></td><td><a href="#" onclick="window.close(); return false;">Закрыть окно</a></td></tr></table></body></html>';

    if ( popwin=window.open("", "_blank", 'width='+windowX+',height='+windowY+',scrollbars=0,left='+left+',top='+top+'') ) {
        popwin.document.open();
        popwin.document.write(html);
        popwin.document.close();
        popwin.focus();
        return true;
    }

    return false;
}

function cwitem(file, x, y, itemname)
{
    if ( !(file && x && y)) return false;

    var windowX=x+200;
    var windowY=y+75;
    var popwin;
    var left=(screen.Width-windowX)/2;
    var top=(screen.Height-windowY)/2;

    var root=file.substr(0, file.indexOf('user_images'));

    if (itemname && itemname.length>0) {
        title=itemname+' &mdash; ';
    } else {
        title='';
    }
    title+='ООО &laquo;Пассат&raquo;';

    var html='<html><head><title>' + title + '</title><link type="text/css" rel="stylesheet" href="' + root + 'css/popup.css" /></head><body bgcolor="#FFFFFF" text="#999999" leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"><tr><td height="34"><img src="' + root + 'img/arrow_green.gif" width="48" height="15" alt="&gt;" /></td><td width="100%">' + itemname + '</td><td><div style="width:32px;height:1px"><spacer type="block" width="32" height"1" /></div></td></tr><tr><td height="100%" bgcolor="#F1F1F1"><br /></td><td class="tovarbgr1"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"><tr><td class="tovar"><img src="' + file + '" width="' + x + '" height="' + y + '" alt="' + itemname + '" /></td></tr></table></td><td></td></tr><tr><td height="13" colspan="2" class="tovarbgr2"><br /></td><td></td></tr><tr><td height="26" colspan="2" class="tovarbgr3" align="center"><a href="#" onclick="window.close(); return false;">закрыть окно</a></td><td></td></tr></table></body></html>';

    if ( popwin=window.open("", "_blank", 'width='+windowX+',height='+windowY+',scrollbars=0,status=1,left='+left+',top='+top+'') ) {
        popwin.document.open();
        popwin.document.write(html);
        popwin.document.close();
        popwin.focus();
        return true;
    }

    return false;
}
//-->