<!--// Copyright(C)2003 MetalRats Market Research Inc. All Right Reserved
var nX;
var nX1;
var nX2;
var nY;
var nY1;
var nY2;
var vSpeed
var hSpeed
var nTimer;
var hLayID;
var vLayID;
//トップページの動作
function CHAPTERhead(){
	vscrollLAYER('Layer1',800,-60,160,30);
	nTimer=setTimeout("vscrollLAYER('Layer1',-60,320,160,30);",2000);
	nTimer=setTimeout("showLAYER('Layer2'),hscrollLAYER('Layer2',600,220,320,30);",3000);
	nTimer=setTimeout("showLAYER('Layer3'),ChgBg('Layer3','#FF0000');",4000);
	nTimer=setTimeout("ChgBg('Layer3','#FF3333');",4200);
	nTimer=setTimeout("ChgBg('Layer3','#FF6666');",4400);
	nTimer=setTimeout("ChgBg('Layer3','#FFCCCC');",4600);
	nTimer=setTimeout("ChgBg('Layer3','#FFFFFF');",4800);
	nTimer=setTimeout("ChgBg('Layer3','transparent');",5000);
	
}
function SECTIONhead(){
	vscrollLAYER('Layer1',-50,24,0,10);
	hscrollLAYER('Layer2',560,100,120,50);
}
//レイヤーの背景色変更------------------------------------------------
function ChgBg(layerName,colorName)
{
	if (document.layers) document[layerName].bgColor = colorName;
	if (document.all) window[layerName].style.backgroundColor = colorName;
}
//レイヤーを表示------------------------------------------------
function showLAYER(layName){
  if(document.layers)document.layers[layName].visibility='show'
  if(document.all)document.all(layName).style.visibility='visible'
}
//レイヤーを非表示-----------------------------------------------
function hideLAYER(layName){
  if(document.layers)document.layers[layName].visibility='hide'
  if(document.all)document.all(layName).style.visibility='hidden'
}
// レイヤーを移動-----------------------------------------------
function moveLAYER(layName,x,y){
  if(document.layers)document.layers[layName].moveTo(x,y)
  if(document.all)document.all(layName).style.posLeft=x
  if(document.all)document.all(layName).style.posTop=y
}
//レイヤーを横スクロール-----------------------------------------------
function hscrollLAYER(layName,x1,x2,y,mySpeed){
  hLayID = layName;
  nX1 = x1;
  nX2 = x2;
  nY = y;
  hSpeed = mySpeed
  if (x1 > x2){	 hscrollLAYERtoleft();	//右から左
  } else { hscrollLAYERtoright();	//左から右
  }
}
function hscrollLAYERtoleft(){
	nX1 = nX1 - hSpeed;
	if (nX1 < nX2){	nX1 = nX2; }
	moveLAYER(hLayID,nX1,nY);
	if (nX1 == nX2){ return; }
	nTimer=setTimeout("hscrollLAYERtoleft()",1);
}
function hscrollLAYERtoright(){
	nX1 = nX1 + hSpeed;
	if (nX1 > nX2){ nX1 = nX2; }
	moveLAYER(hLayID,nX1,nY);
	if (nX1 == nX2){ return; }
	nTimer=setTimeout("hscrollLAYERtoright()",1);
}
//レイヤーを縦スクロール-----------------------------------------------
function vscrollLAYER(layName,y1,y2,x,mySpeed){
  vLayID = layName;
  nY1 = y1;
  nY2 = y2;
  nX = x;
  vSpeed = mySpeed
  if (y1 > y2){ vscrollLAYERtoleft();	//右から左
  } else { vscrollLAYERtoright();	//左から右
  }
}
function vscrollLAYERtoleft(){
	nY1 = nY1 - vSpeed;
	if (nY1 < nY2){	nY1 = nY2; }
	moveLAYER(vLayID,nX,nY1);
	if (nY1 == nY2){ return; }
	nTimer=setTimeout("vscrollLAYERtoleft()",1);
}
function vscrollLAYERtoright(){
	nY1 = nY1 + vSpeed;
	if (nY1 > nY2){ nY1 = nY2; }
	moveLAYER(vLayID,nX,nY1);
	if (nY1 == nY2){ return; }
	nTimer=setTimeout("vscrollLAYERtoright()",1);
}
//リンクの実行（すべて）-----------------------------------------------
function OpenAll(Fhead,Fside,Fmain){
    win=window.open(Fhead,"head");
    win=window.open(Fside,"side");
    win=window.open(Fmain,"main");
}
//リンクの実行（1つのターゲット）---------------------------------------
function OpenWin(htFile,htPos){
    win=window.open(htFile,htPos);
}
//Tsmanのみ
function hideSubLAYER(){
hideLAYER('mnu11');
hideLAYER('mnu12');
hideLAYER('mnu13');
hideLAYER('mnu14');
hideLAYER('mnu21');
hideLAYER('mnu211');
hideLAYER('mnu212');
hideLAYER('mnu213');
hideLAYER('mnu22');
hideLAYER('mnu221');
hideLAYER('mnu222');
hideLAYER('mnu223');
hideLAYER('mnu23');
hideLAYER('mnu231');
hideLAYER('mnu232');
hideLAYER('mnu233');
hideLAYER('mnu31');
hideLAYER('mnu32');
hideLAYER('mnu33');
hideLAYER('mnu34');
}
function showMnu1(){
moveLAYER('mnu1',0,70);
moveLAYER('mnu2',0,170);
moveLAYER('mnu3',0,190);
showLAYER('mnu11');
showLAYER('mnu12');
showLAYER('mnu13');
showLAYER('mnu14');
}

function showMnu2(){
moveLAYER('mnu1',0,70);
moveLAYER('mnu2',0,90);
moveLAYER('mnu3',0,350);
showLAYER('mnu21');
showLAYER('mnu211');
showLAYER('mnu212');
showLAYER('mnu213');
showLAYER('mnu22');
showLAYER('mnu221');
showLAYER('mnu222');
showLAYER('mnu223');
showLAYER('mnu23');
showLAYER('mnu231');
showLAYER('mnu232');
showLAYER('mnu233');
}

function showMnu3(){
moveLAYER('mnu1',0,70);
moveLAYER('mnu2',0,90);
moveLAYER('mnu3',0,110);
showLAYER('mnu31');
showLAYER('mnu32');
showLAYER('mnu33');
showLAYER('mnu34');
}

function showMnu0(){
moveLAYER('mnu1',0,70);
moveLAYER('mnu2',0,90);
moveLAYER('mnu3',0,110);
}
// -->
