
/* //////////////////////////////////////////////////////////

　　※プリロード画像の配列は2種類あるので注意。

　　①プリロード2（変更・差替えのあるボタン）
　　②プリロード1（共通のボタン）
　　③ロールオーバー

////////////////////////////////////////////////////////// */

// ページによってパスを変化
var SitePath = "http://www.plus-vita.co.jp/demosite/";

// ①プリロード2（変更・差替えのあるボタン）
function VariablePreload(){
	
	IMGdata2 = new Array(
	// ▼トップ右ナビ
	SitePath + "img/button/topnavi_fullorder.gif", //フルオーダー off … 0
	SitePath + "img/button/topnavi_fullorder_on.gif", //on … 1
	SitePath + "img/button/topnavi_semiorder.gif", //セミオーダー off … 2
	SitePath + "img/button/topnavi_semiorder_on.gif", //on … 3
	SitePath + "img/button/topnavi_floorguide.gif", //フロアーガイド off … 4
	SitePath + "img/button/topnavi_floorguide_on.gif", //on … 5
	SitePath + "img/button/topnavi_staff.gif", //スタッフ off … 6
	SitePath + "img/button/topnavi_staff_on.gif", //on … 7
	// ▼ブランド
	SitePath + "img/button/brand_01.jpg", //off … 8
	SitePath + "img/button/brand_01_on.jpg", //on … 9
	SitePath + "img/button/brand_02.jpg", //off … 10
	SitePath + "img/button/brand_02_on.jpg", //on … 11
	SitePath + "img/button/brand_03.jpg", //off … 12
	SitePath + "img/button/brand_03_on.jpg", //on … 13
	SitePath + "img/button/brand_04.jpg", //off … 14
	SitePath + "img/button/brand_04_on.jpg" //on … 15
	);

	ImgButton2 = new Array();
	for(i=0;i<IMGdata2.length;i++){
		ImgButton2[i] = new Image();
		ImgButton2[i].src = IMGdata2[i];
	}
}


// ②プリロード1（共通のボタン）
function CommonPreload(){
	
	IMGdata1 = new Array(
	SitePath + "img/button/logo.gif", //ロゴoff … 0
	SitePath + "img/button/logo_on.gif", //on … 1
	// ▼上部ナビ
	SitePath + "img/button/headnavi_05.gif", //サイトマップoff … 2
	SitePath + "img/button/headnavi_05_on.gif", //on … 3
	SitePath + "img/button/headnavi_04.gif", //FAQ off … 4
	SitePath + "img/button/headnavi_04_on.gif", //on … 5
	SitePath + "img/button/headnavi_03.gif", //アクセスoff … 6
	SitePath + "img/button/headnavi_03_on.gif", //on … 7
	SitePath + "img/button/headnavi_02.gif", //店舗情報off … 8
	SitePath + "img/button/headnavi_02_on.gif", //on … 9
	SitePath + "img/button/headnavi_01.gif", //HOME off … 10
	SitePath + "img/button/headnavi_01_on.gif", //on … 11
	SitePath + "img/button/contact.gif", //お問い合せoff … 12
	SitePath + "img/button/contact_on.gif", //on … 13
	// ▼左ナビ
	SitePath + "img/button/leftnavi_01.gif", //フルオーダーoff … 14
	SitePath + "img/button/leftnavi_01_on.gif", //on … 15
	SitePath + "img/button/leftnavi_02.gif", //セミオーダーoff … 16
	SitePath + "img/button/leftnavi_02_on.gif", //on … 17
	SitePath + "img/button/leftnavi_03.gif", //リビングoff … 18
	SitePath + "img/button/leftnavi_03_on.gif", //on … 19
	SitePath + "img/button/leftnavi_04.gif", //ダイニングoff … 20
	SitePath + "img/button/leftnavi_04_on.gif", //on … 21
	SitePath + "img/button/leftnavi_05.gif", //ベッドルームoff … 22
	SitePath + "img/button/leftnavi_05_on.gif", //on … 23
	SitePath + "img/button/leftnavi_06.gif", //ファブリックoff … 24
	SitePath + "img/button/leftnavi_06_on.gif", //on … 25
	SitePath + "img/button/leftnavi_07.gif", //アイテムoff … 26
	SitePath + "img/button/leftnavi_07_on.gif", //on … 27
	SitePath + "img/button/leftnavi_08.gif", //コンシェルジュoff … 28
	SitePath + "img/button/leftnavi_08_on.gif", //on … 29
	SitePath + "img/button/leftnavi_09.gif", //ブランドoff … 30
	SitePath + "img/button/leftnavi_09_on.gif", //on … 31
	SitePath + "img/button/leftnavi_10.gif", //ニュースoff … 32
	SitePath + "img/button/leftnavi_10_on.gif", //on … 33
	SitePath + "img/button/leftnavi_11.gif", //スタッフブログoff … 34
	SitePath + "img/button/leftnavi_11_on.gif", //on … 35
	SitePath + "img/button/leftnavi_12.gif", //スタッフ紹介off … 36
	SitePath + "img/button/leftnavi_12_on.gif", //on … 37
	SitePath + "img/button/leftnavi_13.gif", //FAQ off … 38
	SitePath + "img/button/leftnavi_13_on.gif", //on … 39
	SitePath + "img/button/leftnavi_14.gif", //お問い合せoff … 40
	SitePath + "img/button/leftnavi_14_on.gif", //on … 41
	// ▼右RSS
	SitePath + "img/button/rightrss_news.gif", //NEWS RSS off … 42
	SitePath + "img/button/rightrss_news_on.gif", //on … 43
	SitePath + "img/button/rightrss_staffblog.gif", //StaffBlig RSS off … 44
	SitePath + "img/button/rightrss_staffblog_on.gif", //on … 45
	SitePath + "img/button/rightsintyaku.gif", //新着情報一覧off … 46
	SitePath + "img/button/rightsintyaku_on.gif", //on … 47
	SitePath + "img/button/rightaboutrss.gif", //RSS配信のご利用案内 off … 48
	SitePath + "img/button/rightaboutrss_on.gif", //on … 49
	// ▼中
	SitePath + "img/button/about_so.gif", //セミオーダー家具って off … 50
	SitePath + "img/button/about_so_on.gif", //on … 51
	SitePath + "img/button/about_ic.gif", //インテリアコーディネーターて off … 52
	SitePath + "img/button/about_ic_on.gif", //on … 53
	// ▼左ナビ(ブログページ)
	SitePath + "img/button/leftnavi_99.gif", //HOMEoff … 54
	SitePath + "img/button/leftnavi_99_on.gif", //on … 55
	// ▼左ナビ(ブログページ／検索ボタン)
	SitePath + "img/button/leftnavi_99.gif", //HOMEoff … 56
	SitePath + "img/button/leftnavi_99_on.gif", //on … 57
	// ▼フルオーダー家具って？ボタン
	SitePath + "img/button/about_fo.gif", //off … 58
	SitePath + "img/button/about_fo_on.gif" //on … 59
	);

	ImgButton1 = new Array();
	for(i=0;i<IMGdata1.length;i++){
		ImgButton1[i] = new Image();
		ImgButton1[i].src = IMGdata1[i];
	}
}



// ③ロールオーバー
function Roll(ID,Num){
	document.images[ID].src= ImgButton1[Num].src;
}
function Roll2(ID,Num){
	document.images[ID].src= ImgButton2[Num].src;
}
