
function TmMouseOver(btn)
{
  switch(btn)
  {
  case 0:
    document.images['img_ok'].src = 'images/ok_1.gif';
    break;
  case 1:
    document.images['img_fg'].src = 'images/fg_1.gif';
    break;
  case 2:
    document.images['img_st'].src = 'images/st_1.gif';
    break;
  case 3:
    document.images['img_kn'].src = 'images/kn_1.gif';
    break;
  }
}

function TmMouseOut(btn)
{
  switch(btn)
  {
  case 0:
    document.images['img_ok'].src = 'images/ok.gif';
    break;
  case 1:
    document.images['img_fg'].src = 'images/fg.gif';
    break;
  case 2:
    document.images['img_st'].src = 'images/st.gif';
    break;
  case 3:
    document.images['img_kn'].src = 'images/kn.gif';
    break;
  }
}

function GalleryMouseOver(chapter, path)
{
  full_path = "gallery/images/";
  full_path += chapter;
  full_path += "/";
  full_path += path;
  document.images['big_img'].src = full_path;
}

function popImage(imageURL, imageTitle, width, height)
{
  opt = "scrollbars=no,width="+width+",height="+height+",left=0,top=0";
  win = window.open(imageURL, "liliaceae", opt);
  with (win.document)
  {
    writeln('<html><head><title>'+imageTitle+'</title></head>');
    writeln('<body style="margin:0px;background-color:#000000" scroll="no" onload="self.focus()" onblur="self.close()">');
    writeln('<img alt="'+imageTitle+'" src="'+imageURL+'" style="display:block"></body></html>');
    close();
  }
}

function popPage(pageURL, width, height)
{
  opt = "scrollbars=no,width="+width+",height="+height+",left=0,top=0";
  win = window.open(pageURL, "lanscapewin", opt);
  return false;
}
