<!--
var nocolor = 0;


function setWidth() {
        if (document.body.offsetWidth < 900) x = "880"
        else if (document.body.offsetWidth > 1100) x = "1080"
        else x = "100%"
        return x;
}

function getRealTop(obj) {
        yPos = obj.offsetTop;
        tempEl = obj.offsetParent;
        while (tempEl != null) {
                yPos += tempEl.offsetTop;
                tempEl = tempEl.offsetParent;
        }
        return yPos;
}

function handleMice(eventSrc,state) {
         if (eventSrc != document.getElementById('menu'+nocolor))
         {

        if (state) {
                y = getRealTop(eventSrc);
                h = eventSrc.offsetHeight;
                topStyle = document.getElementById('tstyle');
                btmStyle = document.getElementById('bstyle');
                topStyle.style.top = y - 4;
                btmStyle.style.top = y + h;
                eventSrc.style.background = "#ff9e1a url(/i/arrow_white.gif) no-repeat 16px 9px";
                topStyle.style.visibility = "visible";
                btmStyle.style.visibility = "visible";
        } else {
                topStyle.style.visibility = "hidden";
                btmStyle.style.visibility = "hidden";
                eventSrc.style.background = "url(/i/arrow_green.gif) no-repeat 16px 9px";
        }
        }
}

function colorme(el) {
                eventSrc = document.getElementById('menu'+el);
                nocolor = el;

                if (el <= 5)
                {
                  eventSrc.style.color="#FFA72E";
                }
                else
                {
                  y = getRealTop(eventSrc);
                  h = eventSrc.offsetHeight;
                  topStyle = document.getElementById('tstyle');
                  btmStyle = document.getElementById('bstyle');
                  topStyle.style.top = y - 4;
                  btmStyle.style.top = y + h;
                  eventSrc.style.background = "#ff9e1a url(/i/arrow_white.gif) no-repeat 16px 9px";
                  topStyle.style.visibility = "visible";
                  btmStyle.style.visibility = "visible";
                }

}

numMenus = 8;

function offSub() {
        for (i=1;i<=numMenus;i++) {
                hideSub = document.getElementById('sub'+i);
                if (hideSub != null) {
                        if (hideSub.style.display == 'block') {
                                hideSub.style.display = 'none';
                        }
                }
        }
}

function changeSub(num) {

        if (num > 5 && num != 7 && num != 12 && num != 13)
        {

        whatSub = document.getElementById('sub'+num);
        if ((whatSub.style.display == 'none')||(whatSub.style.display == '')) {
                offSub();
                whatSub.style.display = 'block';
        } else {
                whatSub.style.display = 'none';
        }
        }
}

function OnClickSearch(){

        var o = document.getElementById('sform');
        if(!o)
                return false;

        o.submit();

        return false;

}


function openPopupImage(img_url, w, h, img_title, nonAutoClose, low_src, stripped_comment) {
        JSVer = (navigator.userAgent.indexOf ("Mozilla") != -1 ? parseInt(navigator.appVersion.substring(0,1)) : 0);
        MSIE = (navigator.userAgent.indexOf ("MSIE") != -1);

        var leftPos = (window.screen.width - w)/2;
        var topPos = (window.screen.height - h)/2;

    var r_w = w, r_h = h, s = '', s_scroll = 'no';
    if (JSVer >= 3) {
        if (JSVer == 3) {
            r_w += 32; r_h += 32;
        }
        if (img_title)  r_h += 18;
        if (screen) {
            if (screen.availWidth < r_w) {
                s_scroll = 'yes';
                r_w = screen.availWidth;
            }
            if (screen.availHeight < r_h) {
                s_scroll = 'yes';
                r_h = screen.availHeight;
            }
        } else
            s_scroll = 'yes';
        s = 'status=no,resizable=yes,scrollbars=' + s_scroll + ',width=' + r_w + ',height=' + r_h + ',left=' + leftPos + ',top=' + topPos ;
        var secWnd = window.open('', 'SecondWnd', s);
        with (secWnd) {
            document.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">\n");
            document.write("<html>\n");
            document.write("<head>\n");
            document.write("<title></title>\n");
            document.write("<meta http-equiv=\"content-type\" content=\"text/html; charset=windows-1251\">\n");
            document.write("<style>\n");
            document.write("P {margin:0px; margin-bottom: -50px; margin-top: 20px;padding:0px;}\n");
            document.write("body {margin: 0px; padding: 0px; text-align: center;}\n");
            document.write("img {border: none;}\n");
            document.write("</style>\n");
            document.write("</head>\n");
            document.write("<body>");
            if (JSVer >= 4 || MSIE) {
//                document.write("<div>");
            }
            document.write("<img src=\""+img_url+"\" " + (low_src != null ? (" lowsrc=" + low_src) : '') + " border=0>");
            if ((img_title != null) && (img_title != "")) {
                if (JSVer >= 4)
                    document.write("<p>");
                else
                    document.write("<p>");
                document.writeln(img_title);
                if (JSVer >= 4)
                    document.write("</p>");
                else
                    document.writeln("</p>");
            }
            if (JSVer >= 4 || MSIE) {
//               document.write("</div>\n");
            }
            document.writeln("</body>\n</html>");
            document.close();
        }
        return false;
    }
    return false;
}



//-->