function HpbImgPreload()
{
  var appVer=parseInt(navigator.appVersion);
  var isNC=false,isN6=false,isIE=false;
  if (document.all && appVer >= 4) isIE=true; else
    if (document.getElementById && appVer > 4) isN6=true; else
      if (document.layers && appVer >= 4) isNC=true;
  if (isNC||isN6||isIE)
  {
    if (document.images)
    {
      var imgName = HpbImgPreload.arguments[0];
      var cnt;
      swImg[imgName] = new Array;
      for (cnt = 1; cnt < HpbImgPreload.arguments.length; cnt++)
      {
        swImg[imgName][HpbImgPreload.arguments[cnt]] = new Image();
        swImg[imgName][HpbImgPreload.arguments[cnt]].src = HpbImgPreload.arguments[cnt];
      }
    }
  }
}

function HpbImgFind(doc, imgName)
{
  for (var i=0; i < doc.layers.length; i++)
  {
    var img = doc.layers[i].document.images[imgName];
    if (!img) img = HpbImgFind(doc.layers[i], imgName);
    if (img) return img;
  }
  return null;
}

function HpbImgSwap(imgName, imgSrc)
{
  var appVer=parseInt(navigator.appVersion);
  var isNC=false,isN6=false,isIE=false;
  if (document.all && appVer >= 4) isIE=true; else
    if (document.getElementById && appVer > 4) isN6=true; else
      if (document.layers && appVer >= 4) isNC=true;
  if (isNC||isN6||isIE)
  {
    if (document.images)
    {
      var img = document.images[imgName];
      if (!img) img = HpbImgFind(document, imgName);
      if (img) img.src = imgSrc;
    }
  }
}
var swImg; swImg=new Array;

HpbImgPreload('i00', 'index.files/new-btn00.gif', 'index.files/new-btn10.gif');
HpbImgPreload('i01', 'index.files/new-btn01.gif', 'index.files/new-btn11.gif');
HpbImgPreload('i02', 'index.files/new-btn02.gif', 'index.files/new-btn12.gif');
HpbImgPreload('i03', 'index.files/new-btn03.gif', 'index.files/new-btn13.gif');
HpbImgPreload('i04', 'index.files/new-btn04.gif', 'index.files/new-btn14.gif');
HpbImgPreload('i05', 'index.files/new-btn05.gif', 'index.files/new-btn15.gif');
HpbImgPreload('i06', 'index.files/new-btn06.gif', 'index.files/new-btn16.gif');
HpbImgPreload('i07', 'index.files/new-btn07.gif', 'index.files/new-btn17.gif');
HpbImgPreload('i08', 'index.files/new-btn08.gif', 'index.files/new-btn18.gif');

