      /* ---------------------------------------------------------------------- */
      var sVersion  = "2010-06-10";
      var sSiteURL  = "http://www.wysotsky.com";
      var sAudioDir = "http://www.wysotsky.com/1049.ru/Audio/";
      var sFemPath  = "http://www.wysotsky.com/0005/";
      var sRAPath   = "http://www.kulichki.com/vv/audio/ra/";
      var sCHMsign  = ".chm::";
      var sLocSign  = "\wysotsky";
      var sSources  = "/1049.ru/";
      var bFrameSet = false;
      if (document.location.protocol != "http:")
      {
        try {bFrameSet = (top.document.title == "FRAMESET");}
        catch(e){}
      }
      /* ---------------------------------------------------------------------- *
      formatByMask(sPar, sMask)
      getCookie(sName)
      getInnerText(sPar)
      getStyle(selector, attribute)
      getUrlPars(sLoc)
      mail2(obj)
      mailTo(user, server)
      msieVersion()
      occurrencesOf(sText, sChar)
      setCookie(sName, sValue)
      strToInt(sVal)
      strTrim(sText)

      zContent(nPar)
      zCopyright()
      zCurPage(oWin, nPar)
      zFolder()
      zFrameLoad(nFrame)
      zFrameLoad999(nFrame)
      zGenre()
      zHide(obj)
      zImage(obj, sImage)
      zImg_Error(obj, sImg)
      zLoad1029()
      zLoad1049()
      zLoad1058()
      zLoad1069()
      zLoad9996()
      zMainLoad()
      zMouseMove()
      zRedirect()
      zServerLink(sLoc, sTarget)
      zShow(nPar)
      zSound(obj, sFile)
      zSound0(sURL)
      zSound9()
      zStartPage(sPath)
      zStatus(vEvent)
      zTab(oFirst, oSecond, nWidth, bLeft)
      zTitle()
      zTr1037(sPar)
      zTrVisible(bPar)
      zWriteFrameset(nFile, sLoc)
      /* ---------------------------------------------------------------------- */
      function zRedirect()
      {
        var sPath = document.location.href;
        var nIndex = sPath.lastIndexOf("/");
        sPath = sPath.substring(0, nIndex);
        var nIndex = sPath.lastIndexOf("/");
        sPath = sPath.substring(nIndex+1, sPath.length);
        var nIndex = sPath.indexOf(".");
        if (nIndex > 0) sPath = sPath.substring(0, nIndex);
        sPath = "../" + sPath + ".htm";
        document.location.replace(sPath);
        //return(sPath);
      } //zRedirect
      /* ---------------------------------------------------------------------- */
      function zMainLoad()
      {
        try
        {
          if (top.document.title == "Flags") return;
        }
        catch(e)
        {
          return;
        }

        zCopyright();
        zFolder();
        if (bFrameSet)
          var sSearch = top.nGlobal;
        else
        {
          var sSearch = document.location.search;
          sSearch = sSearch.substring(1, sSearch.length);
        }
        var sHash = document.location.hash;

        nPage = strToInt(sSearch);
        var nCur = zCurPage(window, nPage);
        var oFrames = document.getElementsByTagName("iframe");
        var sLoc = window.sFolder[1] + window.aFrame1[nCur] + ".htm" + sHash;
        if (oFrames["iframe1"].src != sLoc) oFrames["iframe1"].src = sLoc;
        var sPath2 = window.sFolder[2];
        if (nCur == 0) sPath2 = "0000/";
        sLoc = sPath2 + window.aFrame2[nCur] + ".htm";
        if (oFrames["iframe2"].src != sLoc) oFrames["iframe2"].src = sLoc;
        if (document.location.href.toLowerCase().indexOf(sCHMsign) > 0)
        {
          oFrames["iframe1"].contentWindow.document.location.replace(window.sFolder[1] + window.aFrame1[nCur] + ".htm");
          oFrames["iframe2"].contentWindow.document.location.replace(sPath2 + window.aFrame2[nCur] + ".htm");
        }
        if (document.getElementById("tdCur")) document.getElementById("tdCur").innerHTML = nCur;
        var oImage = document.getElementById("divImage");
        if (oImage)
        {
          oImage.style.visibility = "hidden";
          oImage.style.left = 0;
          oImage.style.top  = 0;
        }
      } //zMainLoad
      /* ---------------------------------------------------------------------- */
      function zFolder()
      {
        if (window.aFrame1.length > 0) return;
        window.aFrame1[0] = "000";
        window.aFrame2[0] = document.location.href;
        window.aFrame2[0] = window.aFrame2[0].substring(window.aFrame2[0].lastIndexOf("/") + 1, window.aFrame2[0].length);
        window.aFrame2[0] = window.aFrame2[0].substring(0, window.aFrame2[0].lastIndexOf("."));
        window.aFrame2[0] = "000-" + window.aFrame2[0];

        var aLinks = document.getElementById("divLinks").getElementsByTagName("a");
        for (var i=0; i<aLinks.length; i++)
        {
          window.aFrame1[i+1] = aLinks[i].href;
          window.aFrame1[i+1] = window.aFrame1[i+1].substring(window.aFrame1[i+1].lastIndexOf("/") + 1, window.aFrame1[i+1].length);
          window.aFrame1[i+1] = window.aFrame1[i+1].substring(0, window.aFrame1[i+1].lastIndexOf("."));
          window.aFrame2[i+1] = aLinks[i].innerHTML;
        }
      } //zFolder
      /* ---------------------------------------------------------------------- */
      function zShow(nPar)
      {
        var nCur = 0;
        if (bFrameSet)
          var sSearch = top.nGlobal;
        else
        {
          var sSearch = document.location.search;
          sSearch = sSearch.substring(1, sSearch.length);
        }

        if (nPar != 0)
        {
          nPage = strToInt(sSearch);
          var nCur = zCurPage(window, nPage);
          nCur += nPar;
          if (nCur < 0 || nCur >= window.aFrame1.length) nCur = 0;
        }

        var nNew = strToInt(window.aFrame1[nCur]);
        if (nNew == nPage) return(false);

        var sLoc = document.location.href;
        var nIndex = sLoc.indexOf("?");
        if (nIndex > 0) sLoc = sLoc.substring(0, nIndex);

        if (bFrameSet)
          top.nGlobal = nNew;
        else
        {
          sLoc += ("?" + nNew);
          if (nPar == 0) sLoc += ("&a=" + sSearch);
        }
        document.location.replace(sLoc);
        return(false);
      } //zShow
      /* ---------------------------------------------------------------------- */
      function zCurPage(oWin, nPar)
      {
        var sPage = (1000 + nPar).toString();
        sPage = sPage.substring(1, sPage.length);
        var nCur = 0;
        for (var i=0; i<window.aFrame1.length; i++)
          if (oWin.aFrame1[i] == sPage)
          {
            nCur = i;
            break;
          }
        return(nCur);
      } //zCurPage
      /* ---------------------------------------------------------------------- */
      function zContent(nPar)
      {
        var obj = null;
        if (nPar && nPar.target)
          obj = nPar.target;
        else if (!nPar)
          obj = event.srcElement;

        if (obj)
        {
          while (obj && obj.tagName != "A")
            obj = obj.parentElement;
          if (!obj) return(false);
          nPar = obj.name;
        }

        var oDoc = document;
        if (window.frameElement) oDoc = window.frameElement.ownerDocument;

        var sLoc = oDoc.location.href;
        var nIndex = sLoc.indexOf("?");
        if (nIndex > 0) sLoc = sLoc.substring(0, nIndex);

        if (bFrameSet)
          top.nGlobal = strToInt(nPar);
        else
          sLoc += ("?" + strToInt(nPar));
        oDoc.location.replace(sLoc);
        return(false);
      } //zContent
      /* ---------------------------------------------------------------------- */
      function zStatus(vEvent)
      {
        var obj = null;
        if (vEvent && vEvent.target)
          obj = vEvent.target;
        else if (!vEvent)
          obj = event.srcElement;

        while (obj && obj.tagName != "A")
          obj = obj.parentElement;
        if (!obj) return;

        window.status = obj.name;
      } //zStatus
      /* ---------------------------------------------------------------------- */
      function zTitle()
      {
        var vTitle = document.getElementById("spanTitle");
        if (!vTitle) return;

        var bLink = true;
        var sLoc = document.location.href.toLowerCase();
        if (sLoc.indexOf(sSources) > 0)
          bLink = false;
        else if (sLoc.indexOf(sCHMsign) > 0)
          sLoc = sSiteURL + sLoc.substring(sLoc.indexOf(sCHMsign) + sCHMsign.length, sLoc.length);
        else if (sLoc.indexOf("file:") == 0 || document.location.protocol == "file:")
          sLoc = sSiteURL + sLoc.substring(sLoc.indexOf(sLocSign) + sLocSign.length, sLoc.length);
        else if (document.location.search == "?search")
          sLoc = sLoc.substring(0, sLoc.indexOf("?"));
        else
          bLink = false;

        var sTitle = document.title;
        if (bLink) sTitle = "<a href='" + sLoc + "' target='_blank' class='title-local' hidefocus onMouseOver='zMouseMove()' onMouseOut='zMouseMove()'>" + sTitle + "</a>";
        vTitle.innerHTML = sTitle;
      } //zTitle
      /* ---------------------------------------------------------------------- */
      function zMouseMove()
      {
        if (!bFrameSet) return;
        var oPanel = window.parent.parent.document.frames["frameStatus"].frameElement.contentWindow.document.getElementById("spanPanel1");
        if (event.type != "mouseover")
        {
          oPanel.innerHTML = "";
          return;
        }

        var obj = event.srcElement;
        while (obj && obj.tagName != "A")
          obj = obj.parentElement;
        if (!obj) return;

        if (obj.href.indexOf("http:") == 0)
        {
          oPanel.innerHTML = obj.href;
          return;
        }

        var sText = obj.outerHTML;
        sText = sText.substring(1, sText.indexOf(">")).toLowerCase();
        var sChar = "onclick=";
        sText = sText.substring(sText.indexOf(sChar) + sChar.length, sText.length);
        sChar = sText.charAt(0);
        if (sChar == '"' || sChar == "'")
          sText = sText.substring(1, sText.indexOf(sChar, 1));
        else
          sText = sText.substring(0, sText.indexOf(" "));
        sChar = "return(";
        sText = sText.substring(sText.indexOf(sChar) + sChar.length, sText.length - 1);

        sChar = "zserverlink(";
        if (sText.indexOf(sChar) == 0)
        {
          sText = sText.substring(sText.indexOf(sChar) + sChar.length, sText.length - 1);
          sChar = sText.charAt(0);
          sText = sText.substring(1, sText.length);
          sText = sSiteURL + "/" + sText.substring(0, sText.indexOf(sChar));
          oPanel.innerHTML = sText;
          return;
        }
        sChar = "zsound0(";
        if (sText.indexOf(sChar) == 0)
        {
          sText = sText.substring(sText.indexOf(sChar) + sChar.length, sText.length - 1);
          sText = sText.substring(1, sText.length - 1);
          oPanel.innerHTML = sText;
          return;
        }
        sChar = "zsound(this)";
        if (sText.indexOf(sChar) == 0)
        {
          sText = document.location.href.toLowerCase();
          sText = sText.substring(0, sText.lastIndexOf(".") + 1) + "ra";
          if (sText.indexOf(sCHMsign) > 0) sText = sSiteURL + sText.substring(sText.indexOf(sCHMsign) + sCHMsign.length, sText.length);
          oPanel.innerHTML = sText;
          return;
        }
        if (sText == "zcontent(this.name)")
        {
          sText = formatByMask(obj.name, "000") + ".htm";
          oPanel.innerHTML = sText;
          return;
        }
        sChar = "zcontent(";
        if (sText.indexOf(sChar) == 0)
        {
          sText = parseInt(sText.substring(sChar.length, sText.length), 10);
          sText = formatByMask(sText, "000") + ".htm";
          oPanel.innerHTML = sText;
          return;
        }
        oPanel.innerHTML = "";
      } //zMouseMove
      /* ---------------------------------------------------------------------- */
      function zFrameLoad999(nFrame)
      {
        zFrameLoad(nFrame);

        if (!window.frameElement)
          return;
        else if (nFrame == 1)
          window.frameElement.width = "100%";
        else
          window.frameElement.width = 0;

        zTitle();

        window.frameElement.height = document.getElementsByTagName("table")[0].offsetHeight;
      } //zFrameLoad999
      /* ---------------------------------------------------------------------- */
      function zFrameLoad(nFrame)
      {
        if (document.location.search == "?none") return;

        var bFrameElement = false;
        var bTopLocation = false;
        try
        {
          if (window.frameElement && window.frameElement.tagName) bFrameElement = true;
          if (top.location.href) bTopLocation = true;
        }
        catch(e){}

        var nLeftFrame = 1;
        if (bFrameElement && window.frameElement.ownerDocument.body.dir == "rtl") nLeftFrame = 2;

        var sLoc = document.location.href;
        //if (!bFrameSet || sLoc.indexOf(sSources) < 0)
        zTitle();

        /*
        if (document.charset == "windows-1255" || document.characterSet == "windows-1255" ||
            document.charset == "windows-1256" || document.characterSet == "windows-1256")
          document.dir = "rtl";
        */
        if (msieVersion() == 0)
        {
          for (var nIndex=0; nIndex<document.getElementsByTagName("span").length; nIndex++)
          {
            var vObj = document.getElementsByTagName("span")[nIndex];
            if (vObj.className.indexOf("indent") == 0)
            {
              var nIndent = parseInt(vObj.className.substring("indent".length, "indent".length+1), 10);
              vObj.innerHTML = "<img width=" + 30 * nIndent + " height=0>";
            }
          }
        }
        if (document.location.search == "?search") return;

        sLoc = sLoc.substring(sLoc.lastIndexOf("/") + 1, sLoc.lastIndexOf("."));
        if (document.location.href.indexOf(sSources) > 0 && sLoc > 0 && sLoc < 999)
        {
          var vLink = document.createElement("A");
          vLink.setAttribute("href", sSiteURL + "/0002/000.asp?n=" + sLoc);
          vLink.setAttribute("target", "_0002");
          vLink.setAttribute("className", "link");
          vLink.innerHTML = "<P/><font face=Arial size=2>Find all translations of this song</font>";
          var vObj = document.getElementsByTagName("table")[0].rows;
          vObj = vObj[vObj.length - 1].cells[0];
          vObj.appendChild(vLink);
          if (!document.getElementById("divImage"))
          {
            var oDiv = document.createElement("DIV");
            oDiv.setAttribute("id", "divImage");
            oDiv.style.position = "absolute";
            oDiv.style.backgroundColor = "white";
            document.body.appendChild(oDiv);
          }
        }

        var sText = "&nbsp;";
        for (var nIndex=0; nIndex<document.getElementsByName("artist").length; nIndex++)
        {
          var vObj = document.getElementsByName("artist")[nIndex];
          var sFile = vObj.getAttribute("file");
          sText += " &nbsp;<a href='' class='link";
          if (sFile.indexOf("vv/") == 0)
            sText += "' onClick='return(zSound0(\"" + sRAPath + sFile.substring("vv/".length, sFile.length) + "\"))'";
          else if (sFile.indexOf("fv/") == 0)
            sText += "' onClick='return(zSound0(\"" + sFemPath + sFile.substring("fv/".length, sFile.length) + "\"))'";
          else if (document.location.href.indexOf(sSources) < 0)
            sText += "' onClick='return(zSound(this, \"" + sLoc + sFile + ".ra\"))'";
          else if (sLoc > 0 && sLoc < 999)
            //sText += "2' onClick='return(zSound9())'";
            sText += "' onClick='return(zSound(this, \"Audio/" + sLoc + sFile + ".ra\"))'";

          sText += " title='" + vObj.innerHTML + "'>" + vObj.title + "</a>";
        }

        var vObj = document.getElementById("author");
        if (vObj && nFrame == nLeftFrame)
        {
          var oSpan = vObj.offsetParent.getElementsByTagName("span")[0];
          if (oSpan) vObj.title = oSpan.innerHTML;
        }

        var vTitle = document.getElementById("spanTitle");
        if (vTitle)
        {
          var vAudio = document.createElement("SPAN");
          vAudio.innerHTML = sText;
          //vTitle.insertAdjacentElement("afterEnd", vAudio);
          vTitle.parentNode.insertBefore(vAudio, vTitle.nextSibling);
        }

        if (bFrameElement)
        {
          var sContentLoad = window.frameElement.getAttribute("onContentLoad", 2);
          if (sContentLoad)
          {
            eval("window.frameElement.contentWindow.parent." + sContentLoad);
            return;
          }
        }

        for (var nIndex=0; nIndex<document.getElementsByTagName("a").length; nIndex++)
        {
          var vObj = document.getElementsByTagName("a")[nIndex];
          if (vObj.className == "link0")
          {
            //vObj.href = "";
            vObj.onmousemove = zStatus;
            vObj.onclick = zContent;
          }
          if (bFrameSet)
          {
              vObj.onmouseover = zMouseMove;
              vObj.onmouseout  = zMouseMove;
          }
        }

        var sAnchor = "";
        try {sAnchor = top.location.search;}
        catch(e){}
        var nIndex = sAnchor.toLowerCase().indexOf("&a=");
        if (nIndex < 0)
          sAnchor = "";
        else
        {
          sAnchor = sAnchor.substring(nIndex + "&a=".length, sAnchor.length);
          sAnchor = parseInt(sAnchor);
          if (isNaN(sAnchor))
            sAnchor = "";
          else
            sAnchor = formatByMask(sAnchor, "000");
        }

        //*** NOTE: iframe padding, if any, must be specified in pixels!
        if (bFrameElement && window.frameElement.tagName.toLowerCase() == "iframe" && document.location.search != "?noresize")
        {
          window.frameElement.width =
            document.getElementsByTagName("table")[0].offsetWidth + window.frameElement.marginWidth * 2 +
            strToInt(window.frameElement.style.paddingLeft) + strToInt(window.frameElement.style.paddingRight);
          if (!top.bNotFull)
            //window.frameElement.height = document.getElementsByTagName("table")[0].offsetHeight + window.frameElement.marginHeight * 2;
            window.frameElement.height = document.body.scrollHeight;
          if (nFrame == nLeftFrame && sAnchor.length > 0) document.location.href += ("#" + sAnchor);
        }
        else if (document.location.href.indexOf("0000") > 0)
        {
          var sLoc = document.location.href;
          sLoc = sLoc.substring(0, sLoc.lastIndexOf("0000")) + sLoc.substring(sLoc.lastIndexOf("-") + 1, sLoc.length);
          if (bFrameSet)
            ; //do nothing
          else if (document.location.href.toLowerCase().indexOf(sCHMsign) < 0)
            document.location.replace(sLoc);
          else
            zWriteFrameset(0, sLoc);
        }
        else if (bTopLocation && top.location.search == "?test")
          ; //do nothing
        else if (document.location.href.indexOf(sSources) < 0)
        {
          var sLoc = document.location.href;
          sLoc = sLoc.substring(0, sLoc.lastIndexOf("."));
          var nIndex = sLoc.lastIndexOf("/");
          var sFile = sLoc.substring(nIndex + 1, sLoc.length);
          sLoc = sLoc.substring(0, nIndex);
          sLoc = sLoc.substring(0, sLoc.lastIndexOf(".")) + ".htm";

          if (bFrameSet)
          {
            top.nGlobal = strToInt(sFile);
            document.location.replace(sLoc);
          }
          else if (document.location.href.toLowerCase().indexOf(sCHMsign) < 0)
          {
            sLoc += ("?" + strToInt(sFile));
            document.location.replace(sLoc);
          }
          else
            zWriteFrameset(strToInt(sFile), sLoc);
        }
      } //zFrameLoad
      /* ---------------------------------------------------------------------- */
      function zWriteFrameset(nFile, sLoc)
      {
        document.clear();
        document.writeln(
          '<HEAD><TITLE>FRAMESET</TITLE>\r\n' +
          '<SCRIPT>var nGlobal=' + nFile + ';</SCRIPT></HEAD>\r\n' +
          '<FRAMESET ROWS="*,24" BORDER=0 FRAMESPACING=0 FRAMEBORDER=0>\r\n' +
          '  <FRAME ID="frameIndex"  SRC="' + sLoc + '"  NORESIZE MARGINHEIGHT=0 MARGINWIDTH=0 FRAMEBORDER="no" SCROLLING="auto">\r\n' +
          '  <FRAME ID="frameStatus" SRC="../Status.htm" NORESIZE MARGINHEIGHT=0 MARGINWIDTH=0 FRAMEBORDER="no" SCROLLING="no">\r\n' +
          '</FRAMESET>');
        document.close();
      } //zWriteFrameset
      /* ---------------------------------------------------------------------- *
      function zTr1037(sPar)
      {
        var oDoc2 = window.frameElement.ownerDocument.getElementById("iframe2").contentWindow.document;
        oDoc2.location.hash = "#" + sPar;
      } //zTr1037
      /* ---------------------------------------------------------------------- */
      function zServerLink(sLoc, sTarget)
      {
        var sLink = document.location.href.toLowerCase();
        if (sLoc.indexOf("http:") == 0)
          window.open(sLoc, sTarget);
        else if (sLink.indexOf(sCHMsign) > 0)
          window.open(sSiteURL + "/" + sLoc);
        else if (sLink.indexOf("file:") == 0 || document.location.protocol == "file:")
          window.open("http://localhost/" + sLoc);
        else if (sTarget)
          window.open(sLoc, sTarget);
        else
          document.location = sLoc;
        return(false);
      } //zServerLink
      /* ---------------------------------------------------------------------- */
      function zSound(obj, sFile)
      {
        var sURL = obj.ownerDocument.location.href;
        if (!sFile)
          sURL = sURL.substring(0, sURL.lastIndexOf(".") + 1) + "ra";
        else
          sURL = sURL.substring(0, sURL.lastIndexOf("/") + 1) + sFile;
        return(zSound0(sURL));
      } //zSound
      /* ---------------------------------------------------------------------- */
      function zSound9()
      {
        var sURL = document.location.href;
        sURL = sURL.substring(sURL.lastIndexOf("/") + 1, sURL.lastIndexOf(".") + 1);
        sURL = sAudioDir + sURL + "ra";
        return(zSound0(sURL));
      } //zSound9
      /* ---------------------------------------------------------------------- */
      function zSound0(sURL)
      {
        var nOffset = sURL.toLowerCase().indexOf(sCHMsign);
        if (nOffset > 0) sURL = sSiteURL + sURL.substring(nOffset + sCHMsign.length, sURL.length);
/*
        if ((event.ctrlKey || event.shiftKey) && document.location.href.indexOf(sSources) > 0)
        {
          sURL = document.location.href;
          sURL = "Audio" + sURL.substring(sURL.lastIndexOf("/"), sURL.lastIndexOf(".")) + ".ra";
          if (document.location.href.toLowerCase().indexOf(sCHMsign) > 0) sURL = sSiteURL + sSources + sURL;
        }
*/
        var oDoc = document;
        if (window.frameElement) oDoc = window.frameElement.ownerDocument;
        var oImage = oDoc.getElementById("divImage");
        if (!oImage)
        {
          document.location = sURL;
          return(false);
        }

        var sImg = "Images/realAlt.gif";
        oImage.innerHTML  =
          '<div class="box" style="width:240;height:75;" onClick="parent.zHide(this)"><embed src="' + sURL + '" width=240 height=50 type="audio/x-pn-realaudio-plugin">' +
          '<a href="http://www.free-codecs.com/download/Real_Alternative.htm" hidefocus TARGET="external" onMouseOver="zMouseMove()" onMouseOut="zMouseMove()">' +
          '<img src="' + sImg + '" WIDTH=30 HEIGHT=20 TITLE="realAlt" ALT="realAlt" BORDER=0 ALIGN="right" onError="this.src=' + "'../" + sImg + '\';"></a></div>';
        oImage.style.left = 32;
        oImage.style.top  = 32;
        oImage.style.visibility = "visible";
        return(false);
      } //zSound0
      /* ---------------------------------------------------------------------- */
      function zImage(obj, sImage)
      {
        if (!window.frameElement) return(false);
        if (!sImage) sImage = obj.id;
        var sExt = sImage.substring(sImage.lastIndexOf(".")+1, sImage.length).toLowerCase();

        var oWin = window.frameElement.contentWindow.parent;
        var oImage = window.frameElement.ownerDocument.getElementById("divImage");
        if ("avi mpg wmv asf flv mov".indexOf(sExt) >= 0)
        {
          oImage.style.backgroundColor = "";
          oImage.innerHTML  = '<embed src="' + oWin.sFolder[1] + 'Images/' + sImage +
                              '" align=top><a href="" onClick="return(zHideStop(this))" class="close" title="Close">&#x24E7;</a>';
        }
        else
        {
          oImage.style.backgroundColor = "White";
          oImage.innerHTML  = '<img src="' + oWin.sFolder[1] + 'Images/' + sImage + '" class="box" onClick="zHide(this)">';
        }
        oImage.style.left = Math.max(10, obj.offsetLeft + obj.offsetWidth - oImage.firstChild.width);
        oImage.style.top  = Math.max(10, window.frameElement.offsetParent.offsetTop + obj.offsetTop - oImage.firstChild.height);
        oImage.style.visibility = "visible";
        return(false);
      } //zImage
      /* ---------------------------------------------------------------------- */
      function zHideStop(obj)
      {
        obj.offsetParent.style.visibility = "hidden";
        obj.offsetParent.innerHTML = "";
        return (false);
      } //zHideStop
      /* ---------------------------------------------------------------------- */
      function zHide(obj)
      {
        obj.offsetParent.style.visibility = "hidden";
      } //zHide
      /* ---------------------------------------------------------------------- */
      function zTab(oFirst, oSecond, nWidth, bLeft)
      {
        oFirst.style.paddingTop = 3;
        oFirst.style.color = "black";
        oFirst.style.backgroundColor = "silver";
        oFirst.style.width = nWidth;
        oFirst.parentNode.style.borderBottomWidth = 0;

        oSecond.style.paddingTop = 0;
        oSecond.style.color = "silver";
        oSecond.style.backgroundColor = "gray";
        oSecond.style.width = nWidth - 3;
        oSecond.parentNode.style.borderBottomWidth = 1;

        if (bLeft)
        {
          oSecond.style.marginRight = 3;
          oSecond.style.borderLeftWidth = 0;
          oFirst.style.borderRightColor = "black";
        }
        else
        {
          oFirst.style.marginRight = 0;
          oFirst.style.borderLeftWidth = 1;
          oSecond.style.borderRightColor = "gray";
        }
      } //zTab
      /* ---------------------------------------------------------------------- */
      function zLoad1029()
      {
        var nVer = msieVersion();
        for (var nIndex=0; nIndex<document.getElementsByTagName("div").length; nIndex++)
        {
          var oDiv = document.getElementsByTagName("div")[nIndex];
          if (oDiv.className != "flag")
            ;
          else if (nVer == 6)
          {
            oDiv.style.left = -9;
            oDiv.style.top  = -5;
            oDiv.style.fontSize = "36pt";
          }
          else if (nVer >= 7)
          {
            oDiv.style.left = -2;
            oDiv.style.top = -20;
            oDiv.style.fontSize = "54pt";
          }
          else if (nVer == 0 && window.navigator.userAgent.indexOf("Safari") > 0)
          {
            oDiv.style.left = -8;
            oDiv.style.top = -6;
            oDiv.style.fontSize = "32pt";
          }
          else if (nVer == 0 && window.navigator.userAgent.indexOf("Firefox") > 0)
          {
            oDiv.style.left = -2;
            oDiv.style.top = -24;
            oDiv.style.fontSize = "54pt";
          }
          else if (nVer == 0 && window.navigator.appName == "Netscape")
          {
            oDiv.style.left = -6;
            oDiv.style.top = -23;
            oDiv.style.fontSize = "42pt";
          }
          else if (nVer == 0 && window.navigator.appName == "Opera")
          {
            oDiv.style.left = -6;
            oDiv.style.top = -21;
            oDiv.style.fontSize = "42pt";
          }
        }
      } //zLoad1029
      /* ---------------------------------------------------------------------- */
      function zLoad1049()
      {
        if (window.frameElement)
        {
          var sContentLoad = window.frameElement.getAttribute("onContentLoad", 2);
          if (sContentLoad)
          {
            eval("window.frameElement.contentWindow.parent." + sContentLoad);
            return;
          }
        }

        var aObj = document.getElementById("divList");
        if (!aObj) return;
        aObj = aObj.getElementsByTagName("A");

        var aSign = new Array("");
        for (var i=0; i<aLegend.length; i+=aLegend[aLegend.length-1])
          if (aLegend[i+3]) 
          {
            var power = Math.log(aLegend[i+3]) / Math.LN2;
            aSign[power] = String.fromCharCode(aLegend[i]);
          }

        var oTable = document.createElement("TABLE");
        oTable.cellPadding = 1
        oTable.cellSpacing = 0
        oTable.border = 0
        oTable.style.fontFamily = "Arial Unicode MS";
        oTable.style.fontSize = "10pt";
        var oTBody = document.createElement("TBODY"); oTable.appendChild(oTBody);

        for (var nIndex=0; nIndex<aObj.length; nIndex++)
        {
          var oTR = document.createElement("TR"); oTBody.appendChild(oTR);
          
          var nMark   = strToInt(aObj[nIndex].getAttribute("m"));
          var nUpdate = strToInt(aObj[nIndex].getAttribute("d"));
          for (var i=7; i>=3; i--)
          {
            var oTD = document.createElement("TD"); oTR.appendChild(oTD);
            oTD.innerHTML = (nMark & 1<<i) ? aSign[i]: "&nbsp;";
          }
          var oTD = document.createElement("TD"); oTR.appendChild(oTD);
          for (var i=0; i<=2; i++)
            if (nMark & 1<<i) 
            {
              oTD.innerHTML = aSign[i];
              break;
            }
          if (!oTD.innerHTML.length) oTD.innerHTML = "&nbsp;";

          var oTD = document.createElement("TD"); oTR.appendChild(oTD);
          oTD.innerHTML = nUpdate ? "&#x24D8;" : "&nbsp;";

          var oTD = document.createElement("TD"); oTR.appendChild(oTD);
          oTD.innerHTML = "<a class='link' href='" + aObj[nIndex].href + "'>" + aObj[nIndex].innerHTML + "</a>";
        } //nIndex

        document.getElementById("divTable").appendChild(oTable);
      } //zLoad1049
      /* ---------------------------------------------------------------------- */
      function zLoad1058()
      {
        var sPar = document.location.search;
        //var nSrc = document.getElementById("iframe1").contentWindow.document.location.href;
        var nSrc = document.getElementById("iframe1").src;
        nSrc = nSrc.substring(nSrc.lastIndexOf("/") + 1, nSrc.lastIndexOf("."));
        nSrc = strToInt(nSrc);
        var nDiv = 1;
        if (sPar.indexOf("?a") >= 0);
        else if (nSrc == 0 || nSrc > MYKOLA_LAST && nSrc <= 900 || sPar.indexOf("?b") >= 0)
        {
          nDiv = 2;
          document.title = TITLE_1058;
        }
        document.getElementById("divBanner" + nDiv).style.visibility = "visible";
        document.getElementById("divBanner" + (3 - nDiv)).style.visibility = "hidden";
      } //zLoad1058
      /* ---------------------------------------------------------------------- */
      function zLoad1069()
      {
        document.getElementById("imgFlag").width = document.getElementById("tableFlag").offsetWidth;
      } //zLoad1069
      /* ---------------------------------------------------------------------- */
      function zLoad9996()
      {
        document.getElementById("iframeFlag1").contentWindow.document.write(
          '<table BORDER=0 CELLPADDING=0 CELLSPACING=0 HEIGHT=60><tr><td WIDTH=10 BGCOLOR="Red"></td><td WIDTH=10 BGCOLOR="Green"></td></tr></table>' +
          '<div style="position:absolute;left:0;top:10;font-family:Arial;font-size:30pt;font-weight:bold;color:blue;">&#9711;</div>');
        document.getElementById("iframeFlag2").contentWindow.document.write(
          '<table BORDER=0 CELLPADDING=0 CELLSPACING=0 HEIGHT=60><tr><td WIDTH=10 BGCOLOR="Yellow"></td><td WIDTH=10 BGCOLOR="Blue"></td></tr></table>' +
          '<div style="position:absolute;left:-20;top:10;font-family:Arial;font-size:30pt;font-weight:bold;color:red;">&#9711;</div>');
      } //zLoad9996
      /* ---------------------------------------------------------------------- */
      function zCopyright()
      {
        var vTD = document.getElementById("tdCopyright");
        if (!vTD) return;
        var vAdd = vTD.getAttribute("add");
        var sText = '<a href="http://www.veryltd.com/" class="developer" hidefocus TARGET="external" onMouseOver="zMouseMove()" onMouseOut="zMouseMove()" ' +
                    vAdd + '>Developed by VERY Ltd. in 2006-' + sVersion.substring(0, 4) + '</a>';
        if (!document.getElementById("imgFlagCounter"))
          sText += ' <a href="http://s03.flagcounter.com/more/WOQ" hidefocus target="external" onMouseOver="zMouseMove()" onMouseOut="zMouseMove()">' +
                   '<img width=4 height=4 id="imgFlagCounter" border=0 ' +
                   'src="http://s03.flagcounter.com/count/WOQ/bg=808080/txt=FFFFFF/border=C0C0C0/columns=2/maxflags=14/viewers=3/labels=1/pageviews=0/"></a>';
        vTD.innerHTML = sText;
      } //zLoad9996
      /* ---------------------------------------------------------------------- */
      function zImg_Error(obj, sImg)
      {
        if (obj.src.toLowerCase().indexOf(sImg.toLowerCase()) < 0) obj.src = sImg;
        return(false);
      } //zImg_Error
      /* ---------------------------------------------------------------------- */
      function zTrVisible(bPar)
      {
        var vStyle = document.getElementById('divTranslators').style;
        if (bPar)
          vStyle.visibility = 'visible';
        else
          vStyle.visibility = 'hidden';
        return(false);
      } //zTrVisible
      /* ---------------------------------------------------------------------- */
      function zStartPage(sPath)
      {
        if (!sPath) sPath = "";
        document.location.href = sPath + "index.htm";
        return(false);
      } //zStartPage
      /* ---------------------------------------------------------------------- */
      function mail2(obj)
      {
        document.location.replace("mailto:" + getInnerText(obj.innerHTML));
        return(false);
      } //mail2
      /* ---------------------------------------------------------------------- */
      function mailTo(user, server)
      {
        if (!user || !server)
          ;
        else if (msieVersion() > 0 && event.type == "click" && event.srcElement.tagName == "A")
        {
          var sName = getInnerText(event.srcElement.innerHTML);
          sName = sName.replace(/ /g, "%20");
          document.location.replace("mailto:" + sName + "%20<" + user + "@" + server + ">");
        }
        else
          document.location.replace("mailto:" + user + "@" + server);
        return(false);
      } //mailTo
      /* ---------------------------------------------------------------------- */
      function strTrim(sText)
      {
        var sRes = sText;
        while (sRes.charAt(0) == " ")
          sRes = sRes.substring(1, sRes.length);
        while (sRes.charAt(sRes.length - 1) == " ")
          sRes = sRes.substring(0, sRes.length - 1);
        return(sRes);
      } //strTrim
      /* ---------------------------------------------------------------------- */
      function strToInt(sVal)
      {
        if (sVal == null) sVal = 0;
        sVal = sVal.toString();
        if (sVal.charAt(0) == '"' && sVal.charAt(sVal.length - 1) == '"') sVal = sVal.substring(1, sVal.length - 2);
        sVal = parseInt(sVal, 10);
        if (isNaN(sVal)) sVal = 0;
        return(sVal);
      } //strToInt
      /* ---------------------------------------------------------------------- */
      function getInnerText(sPar)
      {
        return(sPar.replace(/<[^<>]*>/g, ""));
      } //getInnerText
      /* ---------------------------------------------------------------------- */
      function formatByMask(sPar, sMask)
      {
        var sRes = sMask + sPar;
        return(sRes.substring(sRes.length - sMask.length, sRes.length));
      } //formatByMask
      /* ---------------------------------------------------------------------- */
      function getUrlPars(sLoc)
      {
        if (!sLoc) sLoc = document.location;
        var dPars = {};

        var aPars = sLoc.search;
        if (aPars.length > 0) aPars = aPars.substring(1, aPars.length); // after '?'
        if (aPars.length > 0)
        {
          aPars = aPars.split('&');
          for (var i=0; i<aPars.length; i++)
          {
            var aPar = aPars[i].split('=');
            dPars[aPar[0]] = aPar[1];
          }
        }
        return (dPars);
      } //getUrlPars
      /* ---------------------------------------------------------------------- */
      function getCookie(sName)
      {
        var sValue = null;
        if (document.cookie.length > 0)
        {
          var aCookie = document.cookie.split("; ");
          for (var nIndex=0; nIndex<aCookie.length; nIndex++)
          {
            var aCrumb = aCookie[nIndex].split("=");
            if (aCrumb[0] == sName)
            {
              sValue = unescape(aCrumb[1]);
              break;
            }
          }
        }
        return(sValue);
      } //getCookie
      /* ---------------------------------------------------------------------- */
      function setCookie(sName, sValue)
      {
        if (!navigator.cookieEnabled) return;
        var vToday  = new Date();
        var vExpire = new Date(vToday.getFullYear() + 3, vToday.getMonth(), vToday.getDate());
        var sSuffix = "; expires=" + vExpire.toGMTString();
        document.cookie = sName + "="  + escape(sValue) + sSuffix + "; path=/;";
      } //setCookie
      /* ---------------------------------------------------------------------- */
      function getStyle(selector, attribute)
      {
        var vRes = "";
        for (var mIndex=0; mIndex<document.styleSheets.length; mIndex++)
        {
          var aStyles = document.styleSheets[mIndex].rules;
          for (var nIndex=0; nIndex<aStyles.length; nIndex++)
          {
            if (aStyles[nIndex].selectorText == selector)
            {
              var vAux = aStyles[nIndex].style.getAttribute(attribute, 2);
              if (vAux) vRes = vAux;
              break;
            }
          } //nIndex
        } //mIndex
        return (vRes);
      } //getStyle
      /* ---------------------------------------------------------------------- */
      function occurrencesOf(sText, sChar)
      {
        var nCount = 0;
        var nIndex = sText.indexOf(sChar);
        while (nIndex >= 0)
        {
          nCount++;
          nIndex = sText.indexOf(sChar, nIndex + 1);
        }
        return(nCount);
      } //occurrencesOf
      /* ---------------------------------------------------------------------- */
      function msieVersion()
      {
        var ua = window.navigator.userAgent;
        if (ua.indexOf("Opera") > 0 || ua.indexOf("Gecko") > 0) return 0;

        var msie = ua.indexOf("MSIE ");
        if (msie > 0)
          return parseFloat(ua.substring(msie + 5, ua.length));
        else
          return 0;
      } //msieVersion
      /* ---------------------------------------------------------------------- */
