var swImg; swImg=new Array;
ImgPreload('ID1', '/pic/top01.gif', '/pic/top02.gif');
ImgPreload('ID2', '/pic/beginning01.gif', '/pic/beginning02.gif');
ImgPreload('ID3', '/pic/greeting01.gif', '/pic/greeting02.gif');
ImgPreload('ID4', '/pic/introduction01.gif', '/pic/introduction02.gif');
ImgPreload('ID5', '/pic/philosophy01.gif', '/pic/philosophy02.gif');
ImgPreload('ID6', '/pic/access01.gif', '/pic/access02.gif');
ImgPreload('ID7', '/pic/sougei01.gif', '/pic/sougei02.gif');

ImgPreload('ID11', '/pic/procedure01.gif', '/pic/procedure02.gif');
ImgPreload('ID12', '/pic/procedure11.gif', '/pic/procedure12.gif');
ImgPreload('ID13', '/pic/foreign01.gif', '/pic/foreign02.gif');
ImgPreload('ID14', '/pic/foreign11.gif', '/pic/foreign12.gif');
ImgPreload('ID15', '/pic/foreign21.gif', '/pic/foreign22.gif');
ImgPreload('ID16', '/pic/foreign31.gif', '/pic/foreign32.gif');
ImgPreload('ID17', '/pic/foreign41.gif', '/pic/foreign42.gif');
ImgPreload('ID18', '/pic/foreign51.gif', '/pic/foreign52.gif');
ImgPreload('ID19', '/pic/foreign61.gif', '/pic/foreign62.gif');
ImgPreload('ID20', '/pic/foreign71.gif', '/pic/foreign72.gif');
ImgPreload('ID21', '/pic/ward01.gif', '/pic/ward02.gif');
ImgPreload('ID22', '/pic/ward11.gif', '/pic/ward12.gif');
ImgPreload('ID23', '/pic/medical01.gif', '/pic/medical02.gif');
ImgPreload('ID24', '/pic/medical11.gif', '/pic/medical12.gif');
ImgPreload('ID25', '/pic/frequent01.gif', '/pic/frequent02.gif');
ImgPreload('ID26', '/pic/visit01.gif', '/pic/visit02.gif');
ImgPreload('ID27', '/pic/visit11.gif', '/pic/visit12.gif');
ImgPreload('ID28', '/pic/institution01.gif', '/pic/institution02.gif');
ImgPreload('ID29', '/pic/institution11.gif', '/pic/institution12.gif');
ImgPreload('ID30', '/pic/institution21.gif', '/pic/institution22.gif');
ImgPreload('ID31', '/pic/others01.gif', '/pic/others02.gif');
ImgPreload('ID32', '/pic/others11.gif', '/pic/others12.gif');
ImgPreload('ID33', '/pic/others21.gif', '/pic/others22.gif');
ImgPreload('ID34', '/pic/others31.gif', '/pic/others32.gif');
ImgPreload('ID35', '/pic/others41.gif', '/pic/others42.gif');
ImgPreload('ID36', '/pic/others51.gif', '/pic/others52.gif');
ImgPreload('ID37', '/pic/others61.gif', '/pic/others62.gif');
ImgPreload('ID38', '/pic/foreign81.gif', '/pic/foreign82.gif');
ImgPreload('ID39', '/pic/others71.gif', '/pic/others72.gif');
ImgPreload('ID40', '/pic/others81.gif', '/pic/others82.gif');
ImgPreload('ID42', '/pic/others91.gif', '/pic/others92.gif');
ImgPreload('ID43', '/pic/others101.gif', '/pic/others102.gif');
ImgPreload('ID44', '/pic/others111.gif', '/pic/others112.gif');
ImgPreload('ID45', '/pic/foreign101.gif', '/pic/foreign102.gif');
ImgPreload('ID46', '/pic/others121.gif', '/pic/others122.gif');
ImgPreload('ID47', '/pic/ward21.gif', '/pic/ward22.gif');
ImgPreload('ID48', '/pic/foreign111.gif', '/pic/foreign112.gif');

function ImgPreload(){
  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 = ImgPreload.arguments[0];
      var cnt;
      swImg[imgName] = new Array;
      for (cnt = 1; cnt < ImgPreload.arguments.length; cnt++)
      {
        swImg[imgName][ImgPreload.arguments[cnt]] = new Image();
        swImg[imgName][ImgPreload.arguments[cnt]].src = ImgPreload.arguments[cnt];
      }
    }
  }
}

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

function ImgSwap(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 = ImgFind(document, imgName);
      if (img) img.src = imgSrc;
    }
  }
}


function openChildWin() {
  var args = arguments;
  var op = (args.length == 4) ? "" : args [4];
  if ((navigator.appVersion.indexOf ("Mac", 0) != -1) && (navigator.appName.indexOf ("Mic", 0) != -1)) {
    args [2] -= 15;
    args [3] -= 15;
  }
  var w = window.open (args [0], args [1], "width=" + args [2] + ",height=" + args [3] + "," + op);
  if (document.images) w.focus ();
}


function closeChildWin() {
	window.self.close ();
}


function strCheck(str) {
  var tmp = str.match(/[0-9]+/g);
  if (str == ""){
    return false;
  } else if (str != tmp) {
    return true;
  } else {
    return false;
  }
}

