﻿// --back--

function modoru(){history.back()}

// --header--end--

// --netscape--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// --netscape--end--

// --close window--
function CloseWin(){
    window.close();
}
// --close--end--

// --popup window--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
// --popup--end--

// --DL禁止--
var meg="不正ダウンロード防止のために右クリックを禁止しています。";
//megの部分が右クリックされたときのコメントになります。
//著作 素材共同組合「かげ」
function Mclick(migi) {
if (document.layers || (document.getElementById && !document.all)) {
if(migi.which==2 || migi.which==3) {
alert(meg);
return false;
}
}
}

function Husei() {
if (document.all) {
alert(meg);
return false;
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=Mclick;
}else{
document.onmouseup=Mclick;
document.oncontextmenu=Husei;
}
// --DL禁止--end--

// -- siteMap --
menu_list = new Array('s001','s002','s003','s004','s005','s006','s007','s008')

function dd(obj){
  if(fc_chk_layer(obj)){
    fc_view_layer(obj,false);

  }else{
    for(i= 0; typeof(menu_list[i]) != "undefined"; i++){
      fc_view_layer(menu_list[i],false);

    }
    fc_view_layer(obj,true);

  }
}

function fc_chk_layer(obj){
  flag = true;
  if(document.getElementById){
    document.getElementById(obj).style.display=='none' ? flag = false : flag = true;
  }else{
    if(document.all){
      document.all(obj).style.display == 'none' ? flag = false : flag = true;
    }else{
      if(document.layers){
        document.layers[obj].display == 'none' ? flag = false : flag = true;
      }
    }
  }
  return flag;
}
function fc_view_layer(obj,flag){
  param = 'none';
  if(flag == true){
    param = '';
  }
  if(document.getElementById){
    document.getElementById(obj).style.display = param;
  }else{
    if(document.all){
      document.all(obj).style.display = param;
    }else{
      if(document.layers){
        document.layers[obj].display = param;
      }
    }
  }
}
// -- siteMap--end-- //

// -- NewBTN-- //
function newMark(y,m,d)
{
	oldDay = new Date(y+"/"+m+"/"+d);
	newDay = new Date();
	n = (newDay - oldDay)/(1000*60*60*24);
	if (n <= 31) document.write("<font color='red'>[NEW]</font>");
}
// -- NewBTN--end-- //


