function high(obj) {
   if (document.images) document.images[obj].src = poolh[obj].src;
}

function low(obj) {
   if (document.images) document.images[obj].src = pooll[obj].src;
}

pooll = new Object(); poolh = new Object();

function load(obj, imgl, imgh) {
   if (document.images) {
     (pooll[obj] = new Image()).src = imgl;
     if (imgh != '') (poolh[obj] = new Image()).src = imgh; 
     else poolh[obj] = pooll[obj];
   }
}

// Highligh image ("xxx-l.gif" -> "xxx-h.gif")
function xhigh(s)
{
  if (!document.images) return;
  var n = s.src.lastIndexOf(".");
  if (!n) return;
  var ext = s.src.substring(n+1, s.src.length);
  s.src = s.src.substring(0, s.src.lastIndexOf("-l.")) + "-h."+ext;
}

// Unhighlight image ("xxx-h.gif" -> "xxx-l.gif")
function xlow(s)
{
  if (!document.images) return;
  var n = s.src.lastIndexOf(".");
  if (!n) return;
  var ext = s.src.substring(n+1, s.src.length);
  s.src = s.src.substring(0, s.src.lastIndexOf("-h.")) + "-l."+ext;
}

// Open a mail window with my address
function mail()
{
  self.location.href = "mailto:val@vk.kiev.ua";
  return "val@vk.kiev.ua";
}
