//トップ画面の上部アイコンバー
ImgHome_of          = new Image(); ImgHome_of.src          = "images/btnHome_of.jpg";
ImgHome_on          = new Image(); ImgHome_on.src          = "images/btnHome_on.jpg";
ImgDataInfo_of      = new Image(); ImgDataInfo_of.src      = "images/btnDataInfo_of.jpg";
ImgDataInfo_on      = new Image(); ImgDataInfo_on.src      = "images/btnDataInfo_on.jpg";
ImgDataList_of      = new Image(); ImgDataList_of.src      = "images/btnDataList_of.jpg";
ImgDataList_on      = new Image(); ImgDataList_on.src      = "images/btnDataList_on.jpg";
ImgOrder_of         = new Image(); ImgOrder_of.src         = "images/btnOrder_of.jpg";
ImgOrder_on         = new Image(); ImgOrder_on.src         = "images/btnOrder_on.jpg";
ImgPublish_of       = new Image(); ImgPublish_of.src       = "images/btnPublish_of.jpg";
ImgPublish_on       = new Image(); ImgPublish_on.src       = "images/btnPublish_on.jpg";
ImgDataProcess_of   = new Image(); ImgDataProcess_of.src   = "images/btnDataProcess_of.jpg";
ImgDataProcess_on   = new Image(); ImgDataProcess_on.src   = "images/btnDataProcess_on.jpg";
ImgDataView_of      = new Image(); ImgDataView_of.src      = "images/btnDataView_of.jpg";
ImgDataView_on      = new Image(); ImgDataView_on.src      = "images/btnDataView_on.jpg";
ImgFaq_of           = new Image(); ImgFaq_of.src           = "images/btnFaq_of.jpg";
ImgFaq_on           = new Image(); ImgFaq_on.src           = "images/btnFaq_on.jpg";
ImgFreesoft_of      = new Image(); ImgFreesoft_of.src      = "images/btnFreesoft_of.jpg";
ImgFreesoft_on      = new Image(); ImgFreesoft_on.src      = "images/btnFreesoft_on.jpg";
ImgSinfonicaInfo_of = new Image(); ImgSinfonicaInfo_of.src = "images/btnSinfonicaInfo_of.jpg";
ImgSinfonicaInfo_on = new Image(); ImgSinfonicaInfo_on.src = "images/btnSinfonicaInfo_on.jpg";

// トップ画面の上部アイコンのクリック処理
function img_onof(a,b)
{
  if (document.images)
  {
    imgsrc = eval("Img" + a + "_" + b + ".src");
    imgname = "Img" + a;
    document.images[imgname].src=imgsrc;
  }
}

// 別ウィンドウで表示
function window_show(url, title, w, h)
{
  wd = window.open(url, title, "width=" + w + ",height=" + h + ",status=no,scrollbars=yes,resizable=yes,menubar=no,toolbar=no,titlebar=no");
  wd.focus();
}

// 検索処理
function search(w, h)
{
  wr = window.open("", "SearchResult", "width=" + w + ",height=" + h + ",status=no,scrollbars=yes,resizable=yes,menubar=no,toolbar=no,titlebar=no");
  document.form1.action = "cgi-bin/search.cgi";
  document.form1.submit();
  wr.focus();
}


function window_blank(url)
{
  wd_blank = window.open(url);
  wd_blank.focus();
}

// PDFファイルの表示警告
function pdf_show(url)
{
  if (window.confirm("PDFファイルで作成しております。\nPDFファイルを開きますか？"))
  {
    winpdf = window_show(url, "PDF", 600, 500);
  }
}

// テーブルセルの色変化
function cell_move(obj,MODE)
{
  if (MODE=="over") {obj.style.backgroundColor='#FFCCCC';}
  else              {obj.style.backgroundColor='#FFFFFF';}
}

//- テーブルセルの色変化　移転用 
function cell_move2(obj,MODE)
{
  if (MODE=="over") {obj.style.backgroundColor='#FFFFFF';}
  else              {obj.style.backgroundColor='#FFCCCC';}
}

// ジャンプ
function jump(obj)
{
  if (obj.options[obj.selectedIndex].value) 
  {
    parent.frame_content.location.href = obj.options[obj.selectedIndex].value;
  }
}

// ＋ − オン／オフ
function OpenClose(StrSn, StrStat)
{
  if (document.all)
  {
    if (StrStat == "open")
    {
      document.all["open" +  StrSn].style.display = "";
      document.all["close" + StrSn].style.display = "none";
    }
    else
    {
      document.all["open" +  StrSn].style.display = "none";
      document.all["close" + StrSn].style.display = "";
    }
  }
  else if (document.layers)
  {
    if (StrStat == "open")
    {
      document.layers["open" +  StrSn].visibility = 'show';
      document.layers["close" + StrSn].visibility = 'hide';
    }
    else
    {
      document.layers["open" +  StrSn].visibility = 'hide';
      document.layers["close" + StrSn].visibility = 'show';
    }
  }
  else if (document.getElementById)
  {
    if (StrStat == "open")
    {
      document.getElementById("open" +  StrSn).style.display = "";
      document.getElementById("close" + StrSn).style.display = "none";
    }
    else
    {
      document.getElementById("open" +  StrSn).style.display = "none";
      document.getElementById("close" + StrSn).style.display = "";
    }
  }
}

function sitemap_load()
{
  top.frameset_body.cols = "0,*";
  top.document.title     = "Sinfonica - サイトマップ";
}

function sitemap_jump(StrTitle, StrUrlMenu, StrUrlContent)
{
  top.document.title              = StrTitle;
  top.frameset_body.cols          = "200,*"; 
  top.frame_menu.location.href    = StrUrlMenu; 
  top.frame_content.location.href = StrUrlContent;
}