kazu = 4; // ポップアップメニューの数

function hyouji(pos, event)
{
  hihyouji();
  
  if(document.all)
	  { // InternetExplorer6.0 or Opera7.0
		  document.all("lay" + pos).style.pixelLeft = event.clientX - 85;
			document.all("lay" + pos).style.pixelTop  = document.body.scrollTop + event.clientY - 8;
			document.all("lay" + pos).style.visibility='visible';
		}
  else if(document.getElementById)
    { // Netscape7
		  document.getElementById("lay" + pos).style.left = event.pageX - 85;
			document.getElementById("lay" + pos).style.top = event.pageY - 8;
			document.getElementById("lay" + pos).style.visibility='visible';
    }
}

function ie_hyouji(pos)
{
  if(document.all)
	  document.all("lay"+pos).style.visibility='visible';
  else if(document.getElementById)
	  document.getElementById("lay"+pos).style.visibility='visible';
}

function hihyouji()
{
  if(document.all)
	  for(i = 0; i < kazu; i++)
      document.all("lay"+i).style.visibility="hidden";
  else if(document.getElementById)
    for (i = 0; i < kazu; i++)
		  document.getElementById("lay"+i).style.visibility="hidden";
}

function flash_title()
{
  document.open();
  document.writeln('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="560" height="150">');
  document.writeln('<param name="movie" value="sub/gif/i_title.swf">');
  document.writeln('<param name="loop" value="false">');
  document.writeln('<param name="menu" value="false">');
  document.writeln('<param name="quality" value="high">');
  document.writeln('<param name="wmode" value="transparent">');
  document.writeln('<embed src="sub/gif/i_title.swf" loop="false" menu="false" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="560" height="150">');
  document.writeln('</object>');
  document.close();
}
