
//マウスのアウト／オーバーによる画像の切り替え
//[メインメニュー・ブックマーク]に使用中

//イメージデータの格納、初期化
allimg = "img/amenu-01a.gif,img/amenu-x001a.gif,img/amenu-x001b.gif,img/amenu-01b.gif,img/amenu-02a.gif,img/amenu-02b.gif,img/amenu-03a.gif,img/amenu-03b.gif,img/amenu-04a.gif,img/amenu-04b.gif,img/amenu-05a.gif,img/amenu-05b.gif,img/amenu-06a.gif,img/amenu-06b.gif,img/i-bookmark-a.gif,img/i-bookmark-b.gif,img/i-bookmark-c.gif,img/i-bookmark-d.gif,img/image01.jpg,img/image02.jpg,img/image03.jpg,img/image04.jpg,img/image05.jpg,img/image06.jpg";
arrimg = allimg.split(",");
btnimg = new Array();

//配列にイメージオブジェクトの格納とプリダウンロード
for(var cnt=0;cnt<arrimg.length;cnt++){
	if(arrimg[cnt]!=""){
		btnimg[arrimg[cnt]] = new Image();
		btnimg[arrimg[cnt]].src = arrimg[cnt];
	}
}

//画像変換サブルーチン
function Change(id,imgName){
	document.images[id].src=btnimg[imgName].src;
	}

//--------------------------------------------------

//お知らせの別ウィンドウ表示(information)

//協会事務局移転のご案内（アクセスマップ）
function Information090105(){
	window.open("information/iten_guide.html","win090105","scrollbars=no, menubar=no, width=465px, height=365px");
}

//中部電力 『ソリューション・セミナー』開催のご案内
function Information060928(){
	window.open("support-members/info-060928.html","win060928",",scrollbars=yes,width=750,height=450");
	}
//中部電力梶@長野支店営業部法人営業グループ主催　『建築環境・省エネルギーセミナー』開催のご案内
function Information060302a(){
	window.open("support-members/info-060302.html","win060302",",scrollbars=yes,width=750,height=450");
	}
//『相談窓口開設』〜構造計算書偽造問題の対応について〜
function Information051201(){
	window.open("information/soudan-051201.html","win051501","scrollbars=yes,menubar=yes,width=750,height=450");
	}
//『2005 平成17年 建築士事務所キャンペーン』開催のご案内（2005 まつもと広域工業まつり）
function Information05102930(){
	window.open("information/info-05102930.html","win002",",scrollbars=yes,width=750,height=450");
	}
//バックナンバーで使用中『建築設備電力講演会開催のご案内』
function Information0500915a(){
	window.open("support-members/info-050915a.html","win001",",scrollbars=yes,width=750,height=450");
	}
//バックナンバーで使用中『創立30周年記念式典開催のご案内』
function Information050521a(){
	window.open("schedule/event-info/050521-a.html","win005","resixable=no,scrollbars=yes,width=730,height=500");
	}
//バックナンバーで使用中『創立30周年記念 記念講演開催のご案内』
function Information050521b(){
	window.open("schedule/event-info/050521-b.html","win005","resixable=no,scrollbars=yes,width=730,height=500");
	}

//--------------------------------------------------

//お気に入りに追加（BookMark）
function Bookmark(){
	window.external.AddFavorite('http://www.nsjk.com/', '(社)長野県建築士事務所協会');
	}

//--------------------------------------------------

//当月のスケジュールを表示する（20年度仕様）
function Tomonth(){
	var today;
	var tsuki;

	//Javaのチェック
	if(navigator.javaEnabled() == false)
		this.window.location = "index-21-04.html";
	else
		today = new Date();

		switch(today.getMonth()){
		case 0:
			this.window.location = "schedule/index-21-01.html";
			break;
		case 1:
			this.window.location = "schedule/index-21-02.html";
			break;
		case 2:
			this.window.location = "schedule/index-21-03.html";
			break;
		case 3:
			this.window.location = "schedule/index-21-04.html";
			break;
		case 4:
			this.window.location = "schedule/index-21-05.html";
			break;
		case 5:
			this.window.location = "schedule/index-21-06.html";
			break;
		case 6:
			this.window.location = "schedule/index-21-07.html";
			break;
		case 7:
			this.window.location = "schedule/index-21-08.html";
			break;
		case 8:
			this.window.location = "schedule/index-21-09.html";
			break;
		case 9:
			this.window.location = "schedule/index-21-10.html";
			break;
		case 10:
			this.window.location = "schedule/index-21-11.html";
			break;
		case 11:
			this.window.location = "schedule/index-21-12.html";
			break;
		default:
			void(0);
		}
	}

//--------------------------------------------------

//HomeImage画像切り替え
	image1=new Image();image1.src="img/image01.jpg";
	image2=new Image();image2.src="img/image02.jpg";
	image3=new Image();image3.src="img/image03.jpg";
	image4=new Image();image4.src="img/image04.jpg";
	image5=new Image();image5.src="img/image05.jpg";
	image6=new Image();image6.src="img/image06.jpg";
	timerID=0;
	time=6000;

function HomeImage(){
	position.filters["revealTrans"].Apply();
	position.filters["revealTrans"].Transition=23;
	position.filters["revealTrans"].duration=2;

	if(homebn.src==image1.src){ homebn.src=image2.src; }
	else if(homebn.src==image2.src){ homebn.src=image3.src; }
	else if(homebn.src==image3.src){ homebn.src=image4.src; }
	else if(homebn.src==image4.src){ homebn.src=image5.src; }
	else if(homebn.src==image5.src){ homebn.src=image6.src; }
	else { homebn.src=image1.src; }

	position.filters["revealTrans"].Play();

	clearTimeout(timerID);
	timerID=setTimeout("HomeImage()",time);
	}
