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];
      }
    }
  }
}
// HpbImgFind:
//
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;
}
// HpbImgSwap:
//
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('_HPB_ROLLOVER1', 'images/menu01.gif', 'images/menu01g.gif');
HpbImgPreload('_HPB_ROLLOVER2', 'images/menu04.gif', 'images/menu04g.gif');
HpbImgPreload('_HPB_ROLLOVER3', 'images/menu02.gif', 'images/menu02g.gif');
HpbImgPreload('_HPB_ROLLOVER4', 'images/menu03.gif', 'images/menu03g.gif');


function modeALL(){
renew = window.open("html/all.html","new","scrollbars=yes,toolbar=no,width=580,height=700,location=1");
renew.focus();
}

function modeTrial(){
renew = window.open("html/trial.html","new","scrollbars=yes,toolbar=no,width=550,height=700,location=1");
renew.focus();
}


function modeS01(){
renew = window.open("html/s01.html","new","scrollbars=auto,toolbar=no,width=550,height=560,location=1");
renew.focus();
}

function modeS02(){
renew = window.open("html/s02.html","new","scrollbars=auto,toolbar=no,width=550,height=560,location=1");
renew.focus();
}

function modeS03(){
renew = window.open("html/s03.html","new","scrollbars=auto,toolbar=no,width=550,height=560,location=1");
renew.focus();
}

function modeS04(){
renew = window.open("html/s04.html","new","scrollbars=auto,toolbar=no,width=550,height=560,location=1");
renew.focus();
}

function modeS05(){
renew = window.open("html/s05.html","new","scrollbars=auto,toolbar=no,width=550,height=560,location=1");
renew.focus();
}

function modeS06(){
renew = window.open("html/s06.html","new","scrollbars=auto,toolbar=no,width=550,height=560,location=1");
renew.focus();
}

function modeS07(){
renew = window.open("html/s07.html","new","scrollbars=auto,toolbar=no,width=550,height=560,location=1");
renew.focus();
}

function modeS08(){
renew = window.open("html/s08.html","new","scrollbars=auto,toolbar=no,width=550,height=560,location=1");
renew.focus();
}

function modeS09(){
renew = window.open("html/s09.html","new","scrollbars=auto,toolbar=no,width=550,height=560,location=1");
renew.focus();
}



function modeH01(){
renew = window.open("html/h01.html","new","scrollbars=yes,toolbar=no,width=550,height=700,location=1");
renew.focus();
}

function modeH02(){
renew = window.open("html/h02.html","new","scrollbars=yes,toolbar=no,width=550,height=700,location=1");
renew.focus();
}

function modeH03(){
renew = window.open("html/h03.html","new","scrollbars=yes,toolbar=no,width=550,height=700,location=1");
renew.focus();
}

function modeH04(){
renew = window.open("html/h04.html","new","scrollbars=yes,toolbar=no,width=550,height=700,location=1");
renew.focus();
}

function modeH05(){
renew = window.open("html/h05.html","new","scrollbars=yes,toolbar=no,width=550,height=700,location=1");
renew.focus();
}

function modeH06(){
renew = window.open("html/h06.html","new","scrollbars=yes,toolbar=no,width=550,height=700,location=1");
renew.focus();
}

function modeH07(){
renew = window.open("html/h07.html","new","scrollbars=yes,toolbar=no,width=550,height=700,location=1");
renew.focus();
}

function modeH08(){
renew = window.open("html/h08.html","new","scrollbars=yes,toolbar=no,width=550,height=700,location=1");
renew.focus();
}

function modeH09(){
renew = window.open("html/h09.html","new","scrollbars=yes,toolbar=no,width=550,height=700,location=1");
renew.focus();
}