/*----------------------------------------------------------------------------\
|                               Javascript                                    |
|-----------------------------------------------------------------------------|
|-----------------------------------------------------------------------------|
|                  Copyright (c) 2007 -                                       |
|-----------------------------------------------------------------------------|
|                                                                             |
|-----------------------------------------------------------------------------|
| 2007-01-06 | First working version                                          |
| 2007-01-16 | Cleaned up for 1.0 public version                              |
|-----------------------------------------------------------------------------|
|-----------------------------------------------------------------------------|
| Updated 2007-02-02                                                          |
\----------------------------------------------------------------------------*/

/////////////////////////////////////////////////
/*-----------------------------------------------
|
|    TODAY'S DATE
|
\-----------------------------------------------*/

function TodayData(){
    tYear = getYear();
    tMonth = getMonth();
    tDay = getDay();
    tDate.value =  tYear+"."+tMonth+"."+tDay;
}

/////////////////////////////////////////////////
/*-----------------------------------------------
|
|    ROLL OVER
|
\-----------------------------------------------*/

//
// ImgPreload:
//
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];
      }
    }
  }
}
// ImgFind:
//
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;
}
// ImgSwap:
//
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;
    }
  }
}
var swImg; swImg=new Array;

/////////////////////////////////////////////////
/*-----------------------------------------------
|
|    FONT 
|
\-----------------------------------------------*/

//
<!--
var vNum = navigator.appVersion.charAt(0);
var bName = navigator.appName.charAt(0);
if ( !(bName == "M" && vNum < 4) || !(bName == "N" && vNum < 4))
{
//ブラウザが４未満はスタイルシート無効
document.writeln("<STYLE TYPE='text/css'><!--");

if(navigator.appVersion.indexOf("Mac") > -1){

//MACはOsaka
document.writeln("BODY,TH,TD {font-family: 'Osaka';}");

if( bName == "M"){

// MAC IE
document.writeln(".text1{font-size:10px; line-height:13px}");
document.writeln(".text11{font-size:10px; line-height:11px}");
document.writeln(".text2{font-size:12px; line-height:15px}");
document.writeln(".text2e{font-size:12px; line-height:15px; font-family: 'Arial', Helvetica}");

}else{
if( vNum < 5 ){

// MAC NETSCAPE 4.x
document.writeln(".text1{font-size:10px; line-height:13px}");
document.writeln(".text11{font-size:10px; line-height:11px}");
document.writeln(".text2{font-size:12px; line-height:15px}");
document.writeln(".text2e{font-size:12px; line-height:15px}");

}else{

// MAC NETSCAPE 6.x~
document.writeln(".text1{font-size:10px; line-height:13px}");
document.writeln(".text11{font-size:10px; line-height:11px}");
document.writeln(".text2{font-size:12px; line-height:15px}");
document.writeln(".text2e{font-size:12px; line-height:15px; font-family: 'Arial', Helvetica}");

}
}
}else{

//WINはＭＳ Ｐゴシック
document.writeln("BODY,TH,TD {font-family: 'ＭＳ Ｐゴシック';}");

if( bName == "M"){

// WIN IE
document.writeln(".text1{font-size:10px; line-height:13px}");
document.writeln(".text11{font-size:10px; line-height:11px}");
document.writeln(".text2{font-size:12px; line-height:15px}");
document.writeln(".text2e{font-size:12px; line-height:15px; font-family: 'Arial', Helvetica}");

}else{
if( vNum < 5 ){

// WIN NETSCAPE 4.x
document.writeln(".text1{font-size:11px; line-height:13px}");
document.writeln(".text11{font-size:11px; line-height:11px}");
document.writeln(".text2{font-size:13px; line-height:15px}");
document.writeln(".text2e{font-size:13px; line-height:15px}");

}else{

// WIN NETSCAPE 6.x~
document.writeln(".text1{font-size:10px; line-height:13px}");
document.writeln(".text11{font-size:10px; line-height:11px}");
document.writeln(".text2{font-size:12px; line-height:15px}");
document.writeln(".text2e{font-size:12px; line-height:15px; font-family: 'Arial', Helvetica}");

}
}
}
}

document.writeln(".linkcell{cursor:hand;}");

document.writeln("a{text-decoration:none}");
document.writeln("a:link {color:#3278C8}");
document.writeln("a:visited {color:#3278C8}");
document.writeln("a:hover {color:#FF9700}");

document.writeln("--></STYLE>");
//-->