﻿
//画像を配列に格納する
var attr_img = new Array(15);
var tmp_img = new Image();

switch(tenji_flg){

case 0:
attr_img[0] = new Image();
attr_img[0].src = "../hp_img/2011ss/2011ss-1g.jpg";
attr_img[1] = new Image();
attr_img[1].src = "../hp_img/2011ss/2011ss-1.jpg";
attr_img[2] = new Image();
attr_img[2].src=  "../hp_img/2011ss/2011ss-2.jpg";
attr_img[3] = new Image();
attr_img[3].src=  "../hp_img/2011ss/2011ss-3.jpg";
attr_img[4] = new Image();
attr_img[4].src=  "../hp_img/2011ss/2011ss-4.jpg";
attr_img[5] = new Image();
attr_img[5].src=  "../hp_img/2011ss/2011ss-5.jpg";
attr_img[6] = new Image();
attr_img[6].src=  "../hp_img/2011ss/2011ss-6.jpg";
attr_img[7] = new Image();
attr_img[7].src=  "../hp_img/2011ss/2011ss-7.jpg";
attr_img[8] = new Image();
attr_img[8].src=  "../hp_img/2011ss/2011ss-8.jpg";
attr_img[9] = new Image();
attr_img[9].src=  "../hp_img/2011ss/2011ss-9.jpg";
attr_img[10] = new Image();
attr_img[10].src=  "../hp_img/2011ss/2011ss-10.jpg";


break;

case 1:
attr_img[0] = new Image();
attr_img[0].src = "../hp_img/2010aw/2010aw-1g.jpg";
attr_img[1] = new Image();
attr_img[1].src = "../hp_img/2010aw/2010aw-1.jpg";
attr_img[2] = new Image();
attr_img[2].src=  "../hp_img/2010aw/2010aw-2.jpg";
attr_img[3] = new Image();
attr_img[3].src=  "../hp_img/2010aw/2010aw-3.jpg";
attr_img[4] = new Image();
attr_img[4].src=  "../hp_img/2010aw/2010aw-4.jpg";
attr_img[5] = new Image();
attr_img[5].src=  "../hp_img/2010aw/2010aw-5.jpg";
attr_img[6] = new Image();
attr_img[6].src=  "../hp_img/2010aw/2010aw-6.jpg";
attr_img[7] = new Image();
attr_img[7].src=  "../hp_img/2010aw/2010aw-7.jpg";
attr_img[8] = new Image();
attr_img[8].src=  "../hp_img/2010aw/2010aw-8.jpg";
attr_img[9] = new Image();
attr_img[9].src=  "../hp_img/2010aw/2010aw-9.jpg";
attr_img[10] = new Image();
attr_img[10].src=  "../hp_img/2010aw/2010aw-10.jpg";
attr_img[11] = new Image();
attr_img[11].src=  "../hp_img/2010aw/2010aw-11.jpg";
attr_img[12] = new Image();
attr_img[12].src=  "../hp_img/2010aw/2010aw-12.jpg";
attr_img[13] = new Image();
attr_img[13].src=  "../hp_img/2010aw/2010aw-13.jpg";
attr_img[14] = new Image();
attr_img[14].src=  "../hp_img/2010aw/2010aw-14.jpg";
attr_img[15] = new Image();
attr_img[15].src=  "../hp_img/2010aw/2010aw-15.jpg";

break;

case 2:
attr_img[0] = new Image();
attr_img[0].src = "../hp_img/2011aw/2011aw-1g.jpg";
attr_img[1] = new Image();
attr_img[1].src = "../hp_img/2011aw/2011aw-1.jpg";
attr_img[2] = new Image();
attr_img[2].src=  "../hp_img/2011aw/2011aw-2.jpg";
attr_img[3] = new Image();
attr_img[3].src=  "../hp_img/2011aw/2011aw-3.jpg";
attr_img[4] = new Image();
attr_img[4].src=  "../hp_img/2011aw/2011aw-4.jpg";
attr_img[5] = new Image();
attr_img[5].src=  "../hp_img/2011aw/2011aw-5.jpg";
attr_img[6] = new Image();
attr_img[6].src=  "../hp_img/2011aw/2011aw-6.jpg";
attr_img[7] = new Image();
attr_img[7].src=  "../hp_img/2011aw/2011aw-7.jpg";
attr_img[8] = new Image();
attr_img[8].src=  "../hp_img/2011aw/2011aw-8.jpg";
attr_img[9] = new Image();
attr_img[9].src=  "../hp_img/2011aw/2011aw-9.jpg";
attr_img[10] = new Image();
attr_img[10].src=  "../hp_img/2011aw/2011aw-10.jpg";
attr_img[11] = new Image();
attr_img[11].src=  "../hp_img/2011aw/2011aw-11.jpg";
attr_img[12] = new Image();
attr_img[12].src=  "../hp_img/2011aw/2011aw-12.jpg";
attr_img[13] = new Image();
attr_img[13].src=  "../hp_img/2011aw/2011aw-13.jpg";
attr_img[14] = new Image();
attr_img[14].src=  "../hp_img/2010aw/2011aw-14.jpg";
attr_img[15] = new Image();
attr_img[15].src=  "../hp_img/2011aw/2011aw-15.jpg";

break;


	}
//switchのくくり


//画像番号用のグローバル変数
var count=0;


//画像切り替え関数
function tenji_change(){
  
  //画像番号を進める
  if (count == 15)
  { count=0; }
  else
  { count++; }
  
  //画像を切り替える

	  document.getElementById("tenji_img").src=attr_img[count].src;
}


//展示会のマウスアウト

function tenji_mout(){

	switch(tenji_flg){

	case 0:
	tmp_img.src="../hp_img/2011ss/2011ss-1g.jpg";

	break;

	case 1:
	tmp_img.src="../hp_img/2010aw/2010aw-1g.jpg";
	break;

	case 2:
	tmp_img.src="../hp_img/2011aw/2011aw-1g.jpg";
	break;
				}

	  document.getElementById("tenji_img").src=tmp_img.src;
}

//展示会のマウスオーバー
function tenji_mover(){

	switch(tenji_flg){

	case 0:
	tmp_img.src="../hp_img/2011ss/2011ss-1.jpg";

	break;

	case 1:
	tmp_img.src="../hp_img/2010aw/2010aw-1.jpg";
	break;

	case 2:
	tmp_img.src="../hp_img/2011aw/2011aw-1.jpg";
	break;
			}

	  document.getElementById("tenji_img").src=tmp_img.src;
}




