//============================================================
//	著作権	：てらちんワールド通信社
//	MouseControl.js Ver1.0	Makeup:2001/04/20
//
//	※無断で改編、配布する事を禁止します。
//============================================================
//＜マウス制御関数群＞
//function mdown(e)	右クリック禁止
//function show(id) マウスを当てると表示する
//function hide(id)	マウスを外すと隠す
//
//--------------------------------------------------
//＜関数＞	Right Click Non Non!
//＜引数＞	
//-------------------------------------------------
function mdown(e) {
  if (navigator.appName == "Microsoft Internet Explorer") {
    if (event.button == 2) {
      alert("見ちゃ、いや〜ん！");
      return(false);
    }
  } else if (navigator.appName == "Netscape") {
    if (e.which == 3) {
      alert("見ちゃ、いや〜ん！");
      return(false);
    }
  }
}
if (document.all) {
  document.onmousedown = mdown;
}
if (document.layers) {
  window.onmousedown = mdown;
  window.captureEvents(Event.MOUSEDOWN);
}

//--------------------------------------------------
//＜関数＞	setFocus is Show String.
//＜引数＞	id：対象ID
//-------------------------------------------------
function show(id) {
  if (document.all) {
    document.all.item(id).style.visibility = "visible";
  }
  if (document.layers) {
    document.layers[id].visibility = "show";
  }
}

//--------------------------------------------------
//＜関数＞	LostFocus is Hide String.
//＜引数＞	id：対象ID
//-------------------------------------------------
function hide(id) {
  if (document.all) {
    document.all.item(id).style.visibility = "hidden";
  }
  if (document.layers) {
    document.layers[id].visibility = "hide";
  }
}
