<!--
  //
  // Author: Vladimir Kubarski
  // Version: v05 - 29.04.05 + VK_expand
  //          v04 - 12.03.02 * VK_open_win (height =)
  //          v03 - 18.02.02 + VK_img - global
  //          v02 - 31.01.01
  // Description: standard functions
  //
  VK_img = new Array ();  // image array

  function VK_select_onchange (objSelect, strUrl)
  {
     if (objSelect[objSelect.selectedIndex].value != "VK_null")
       window.location.href = strUrl + objSelect[objSelect.selectedIndex].value;
  }

  function VK_open_win (strUrl, nWidth, nHeight, nOpt)
  {
     if (nHeight > 500)
        nHeight = 400;

     if (nOpt == 1)
       strOpt = 'menubar=no,statusbar=no,scrollbars=yes,resizable=yes';
     else if (nOpt == 2)
       strOpt = 'menubar=no,statusbar=no,scrollbars=no,resizable=no';
     else if (nOpt == 3)
       strOpt = 'location=yes,menubar=yes,resizable=yes,scrollbars=yes,toolbar=yes,status=yes,titlebar=yes';
     window.open (strUrl, '', strOpt + ',width=' + nWidth + ',height=' + nHeight);
  }

  function VK_preload_images ()
  {
    if (document.images)
    {
      var VK_arg = VK_preload_images.arguments;
      for (arg = 0; arg < VK_arg.length; arg += 2)
      {
        VK_img [VK_arg[arg]] = new Image ();
        VK_img [VK_arg[arg]].src = VK_arg[arg+1];
      }
    }
  }

  function VK_swap_images (objSrc, objDest)
  {
    if (document.images)
    {
      eval(objSrc).src = VK_img[objDest].src;
    }
  }
  
  function VK_expand(img_path, what)
  {
      if (document.getElementById(what).style.display == "none") 
        document.getElementById(what).style.display = "block";
      else 
        document.getElementById(what).style.display = "none";
        
      if (document.getElementById(what).style.display == "block")
        eval("document.images." + what + "_img").src = img_path + 'i/open.gif';
      else
        eval("document.images." + what + "_img").src = img_path + 'i/close.gif';
  }
//-->