timerID = 0;

function printDate(){

	dt=new Date();
	Y=dt.getYear();
	M=dt.getMonth() + 1;
	D=dt.getDate();
	h=dt.getHours();
	m=dt.getMinutes();
//	s=dt.getSeconds();

	if(h < 10){
		hour="0"+h;
	}else{
		hour=h;
	}
	if(m < 10){
		min="0"+m;
	}else{
		min=m;
	}
//	if(s < 10){
//		sec="0"+s;
//	}else{
//		sec=s;
//	}

//	html1="<span class=\"style7\">"+hour+":"+min+":"+sec+"</span><span class=\"time_r\"> <strong>";
	html1="<span class=\"style7\">"+hour+":"+min+"</span><span class=\"time_r\"> <strong>";

	if(M == 12 && D == 31){
//	if(M == 12 && D == 19){
		op = 2;
	}else if(M == 1 && D < 3){
		op = 2;
	}else{
		if(h > 9 && h < 18){
			op = 1;
		}else if(h == 9 && m >= 00){
			op = 1;
		}else if(h == 18 && m <= 00){
			op = 1;
		}else{
			op = 0;
		}
	}

	if(op==2){
		html2="12/31～1/3・・・冬期休暇中です";
//		html2="12/19・・・冬期休暇中です";
	}else if(op==1){
		html2="ただいま営業中です。お電話ください！";
	}else{
		html2="本日の営業は終了いたしました。明日ご連絡下さい。";
	}

	html3="</strong></span>";

	document.getElementById("clock").innerHTML = html1+html2+html3;

	clearTimeout(timerID);
	timerID = setTimeout("printDate()",1000);
}
