<!--
//// 時間と曜日によってサポートメッセージ変更

var h,wday,day;
var now;

//// index.html用画像リンク
var img1 = new ImgList("<img src='image/common/customer_tel01.jpg' border='0'>",
	"<img src='image/common/customer_tel02.jpg' border='0'>");

//// その他用画像リンク
var img2 = new ImgList("<img src='../image/common/customer_tel01.jpg' border='0'>",
	"<img src='../image/common/customer_tel02.jpg' border='0'>");

function time1(){
	now = new Date();
	day = now.getDate();	//日付取得
	h = now.getHours(); //時間取得
	wday = now.getDay();	//曜日取得
}

function ImgList(a,b){
	this.a = a;
	this.b = b;
}

function DispImg1(list){
	time1();	//現在の時間と曜日を取得
	var img;
	if(6 == wday || 0 == wday){	//土日の場合
		img = img1.b;
	}else{	//平日の場合 10時〜18時までは在席中
		if(10 <= h && h <= 17){
			img = img1.a;
		}else{
			img = img1.b;
		}
	}
	document.write(img);
}

function DispImg2(list){
	time1();	//現在の時間と曜日を取得
	var img;
	if(6 == wday || 0 == wday){	//土日の場合
		img = img2.b;
	}else{	//平日の場合 10時〜18時までは在席中
		if(10 <= h && h <= 17){
			img = img2.a;
		}else{
			img = img2.b;
		}
	}
	document.write(img);
}
// -->
