/*      //////////////////      slideLAYERs      //////////////      */
  var wx=new Array(),wy=new Array(),count=new Array()
  var ex=new Array(),ey=new Array(),spd=new Array()
  var step=new Array(),stepX=new Array(),stepY=new Array()
  var mvFlag=new Array(),slideID=new Array()
  function slideLAYERs(layName,startX,startY,endX,endY,speed,stpx){

    //--移動初期化
    if(!mvFlag[layName]){
     if(document.layers)clearTimeout(slideID[layName])
      count[layName]=0        //--移動回数カウント
      var ofX=(endX-startX)   //--移動距離x
      var ofY=(endY-startY)   //--移動距離y
      step[layName]=stpx      //--ステップ数
      stepX[layName]=ofX/stpx //--移動量x
      stepY[layName]=ofY/stpx //--移動量y
      wx[layName]=startX      //--移動中のx座標
      wy[layName]=startY      //--移動中のy座標
      ex[layName]=endX        //--到着場所のx座標
      ey[layName]=endY        //--到着場所のy座標
      spd[layName]=speed      //--移動スピ−ド(間隔)
      mvFlag[layName]=true    //--移動中ならtrue
    }
    if(mvFlag[layName]&&(count[layName]<=step[layName]-1)){
      count[layName]++
      wx[layName]+=stepX[layName]
      wy[layName]+=stepY[layName]
      if(document.getElementById){ //--移動
        document.getElementById(layName).style.left=wx[layName]
        document.getElementById(layName).style.top=wy[layName]
      } else if(document.layers) {
        document.layers[layName].moveTo(wx[layName],wy[layName])
      } else if(document.all){
        document.all(layName).style.pixelLeft=wx[layName]
        document.all(layName).style.pixelTop=wy[layName]
      }
      if(document.layers)clearTimeout(slideID[layName])
      slideID[layName]
          =setTimeout('slideLAYERs("'+layName+'")',spd[layName])
    }else{ //--停止
      wx[layName]=ex[layName]
      wy[layName]=ey[layName]
      clearTimeout(slideID[layName]);mvFlag[layName]=false
    }
  }
/*      //////////////////      slideLAYERs      //////////////      */


function slide()
{
   slideLAYERs('l9',17,25,17,325,10,10);
   slideLAYERs('l7',17,25,17,295,10,10);
   slideLAYERs('l8',17,25,17,265,10,10);
   slideLAYERs('l6',17,25,17,235,10,10);
   slideLAYERs('l5',17,25,17,205,10,10);
   slideLAYERs('l4',17,25,17,175,10,10);
   slideLAYERs('l3',17,25,17,145,10,10);
   slideLAYERs('l2',17,25,17,115,10,10);
   slideLAYERs('l1',17,25,17, 85,10,10);
   slideLAYERs('l0',17,25,17, 55,10,10);
  
   slideLAYERs('sub',17,60,17,360,10,10);

} 

function reset(i)
{
   slideLAYERs('l0',17, 55,17,25,10,10);
   slideLAYERs('l1',17, 85,17,25,10,10);
   slideLAYERs('l2',17,115,17,25,10,10);
   slideLAYERs('l3',17,145,17,25,10,10);
   slideLAYERs('l4',17,175,17,25,10,10);
   slideLAYERs('l5',17,205,17,25,10,10);
   slideLAYERs('l6',17,235,17,25,10,10);
   slideLAYERs('l8',17,265,17,25,10,10);
   slideLAYERs('l7',17,295,17,25,10,10);
   slideLAYERs('l9',17,325,17,25,10,10);

   slideLAYERs('sub',17,360,17,60,10,10);

}

var menuflag=0;
function menu_click() {
if (menuflag==0) {
   slide();menuflag=1;
} else {
   reset();menuflag=0;
}
}

var img  = new Image(); var img_2 = new Image();
var img0 = new Image(); var img0_2 = new Image();
var img1 = new Image(); var img1_2 = new Image();
var img2 = new Image(); var img2_2 = new Image();
var img3 = new Image(); var img3_2 = new Image();
var img4 = new Image(); var img4_2 = new Image();
var img5 = new Image(); var img5_2 = new Image();
var img6 = new Image(); var img6_2 = new Image();
var img7 = new Image(); var img7_2 = new Image();
var img8 = new Image(); var img8_2 = new Image();
var img9 = new Image(); var img9_2 = new Image();

img.src  = "images/menubar.gif";  img_2.src  = "images/menubar_2.gif"; 
img0.src = "images/menubar0.gif"; img0_2.src = "images/menubar0_2.gif"; 
img1.src = "images/menubar1.gif"; img1_2.src = "images/menubar1_2.gif"; 
img2.src = "images/menubar2.gif"; img2_2.src = "images/menubar2_2.gif"; 
img3.src = "images/menubar3.gif"; img3_2.src = "images/menubar3_2.gif"; 
img4.src = "images/menubar4.gif"; img4_2.src = "images/menubar4_2.gif"; 
img5.src = "images/menubar5.gif"; img5_2.src = "images/menubar5_2.gif"; 
img6.src = "images/menubar6.gif"; img6_2.src = "images/menubar6_2.gif"; 
img7.src = "images/menubar7.gif"; img7_2.src = "images/menubar7_2.gif"; 
img8.src = "images/menubar8.gif"; img8_2.src = "images/menubar8_2.gif"; 
img9.src = "images/menubar9.gif"; img9_2.src = "images/menubar9_2.gif"; 


function cimg() {document.img.src=img.src;}
function cimg0(){document.img0.src=img0.src;}
function cimg1(){document.img1.src=img1.src;}
function cimg2(){document.img2.src=img2.src;}
function cimg3(){document.img3.src=img3.src;}
function cimg4(){document.img4.src=img4.src;}
function cimg5(){document.img5.src=img5.src;}
function cimg6(){document.img6.src=img6.src;}
function cimg7(){document.img7.src=img7.src;}
function cimg8(){document.img8.src=img8.src;}
function cimg9(){document.img9.src=img9.src;}

function cimg_2() {document.img.src=img_2.src;}
function cimg0_2(){document.img0.src=img0_2.src;}
function cimg1_2(){document.img1.src=img1_2.src;}
function cimg2_2(){document.img2.src=img2_2.src;}
function cimg3_2(){document.img3.src=img3_2.src;}
function cimg4_2(){document.img4.src=img4_2.src;}
function cimg5_2(){document.img5.src=img5_2.src;}
function cimg6_2(){document.img6.src=img6_2.src;}
function cimg7_2(){document.img7.src=img7_2.src;}
function cimg8_2(){document.img8.src=img8_2.src;}
function cimg9_2(){document.img9.src=img9_2.src;}

function urlLo00(){
top.location="index.html";
}
function urlLo01(){
top.location="index1.html";
}
function urlLo02(){
top.location="irinfo/index.htm";
}
function urlLo03(){
top.location="index3.html";
}
function urlLo04(){
top.location="index4.html";
}
function urlLo05(){
top.location="index5.html";
}
function urlLo06(){
top.location="index6.html";
}
function urlLo07(){
top.location="index7.html";
}
function urlLo08(){
top.location="index8.html";
}
function urlLo09(){
top.location="index9.html";
}

//別ウィンドウ
	var mapWin;
	var path;

	function WinOpen(path, width, height){
		if ((!mapWin) || (mapWin.closed == true)) {
			mapWin = window.open(path, "mapWin", "height=" + height + ",width=" + width + ",toolbar=0,location=0,menubar=0,resizable=yes,scrollbars=0");
		}
		else {
			mapWin.location.href = path;
		}
		mapWin.focus();
	}

//サイトマップ
function Sitemap() {
pWin=window.open('sitemap.html', 'popWin', 'height=640,width=640,toolbar=0,location=0,top=40,left=180,menubar=0,resizable=no,scrollbars=0');
pWin.focus();}
