/* 2009年営業カレンダー */
/* $Id: jscript_calendar.js,v 2.0 2006/12/06 14:19 therese Exp $ */

var monthDays = new Array(31,28,31,30,31,30,31,31,30,31,30,31);
today_tmp = new Date();
today = new Date();
var year = today_tmp.getFullYear();
if(((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0)){ monthDays[1] = 29; }
var nowDays = monthDays[today_tmp.getMonth()];
var thisDay = today_tmp.getDate();
var nowMonth = today_tmp.getMonth() + 1;

function checkholidayName()
{
	//祝日の設定 開始
	//holidayとholidayNameは必ず対応させる事
	var holiday = new Array();
	var holidayName = new Array();

	holiday[holiday.length++] = '1/1';
	holidayName[holidayName.length++] = '元旦';

	holiday[holiday.length++] = '1/11';
	holidayName[holidayName.length++] = '成人の日';

	holiday[holiday.length++] = '2/11';
	holidayName[holidayName.length++] = '建国記念の日';

	holiday[holiday.length++] = '3/20';
	holidayName[holidayName.length++] = '春分の日';
	
	holiday[holiday.length++] = '3/22';
	holidayName[holidayName.length++] = '振り替え休日';

	holiday[holiday.length++] = '4/29';
	holidayName[holidayName.length++] = '昭和の日';

	holiday[holiday.length++] = '5/3';
	holidayName[holidayName.length++] = '憲法記念日';

	holiday[holiday.length++] = '5/4';
	holidayName[holidayName.length++] = 'みどりの日';

	holiday[holiday.length++] = '5/5';
	holidayName[holidayName.length++] = 'こどもの日';

	holiday[holiday.length++] = '5/6';
	holidayName[holidayName.length++] = '振替休日';

	holiday[holiday.length++] = '7/20';
	holidayName[holidayName.length++] = '海の日';

	holiday[holiday.length++] = '9/20';
	holidayName[holidayName.length++] = '敬老の日';

	holiday[holiday.length++] = '9/23';
	holidayName[holidayName.length++] = '国民の休日';

	holiday[holiday.length++] = '10/12';
	holidayName[holidayName.length++] = '体育の日';

	holiday[holiday.length++] = '11/3';
	holidayName[holidayName.length++] = '文化の日';

	holiday[holiday.length++] = '11/23';
	holidayName[holidayName.length++] = '勤労感謝の日';

	holiday[holiday.length++] = '12/23';
	holidayName[holidayName.length++] = '天皇誕生日';

	//祝日の設定　終了

	var flag = false;
	var check = today_tmp.getMonth() + 1 + '/' + today_tmp.getDate();
	for (var i = 0; i < holiday.length; i++)
	{
		if (check == holiday[i])
		{
			flag = holidayName[i];
		}
	}
	return flag
}

function checktemporarycloseddayName()
{
	var temporaryclosedday = new Array();
	var temporarycloseddayName = new Array();

	//臨時休業日の設定　開始
	//temporarycloseddayとtemporarycloseddayName は必ず対応させる事
	
	
	temporaryclosedday[temporaryclosedday.length++] = '1/1';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
	
	temporaryclosedday[temporaryclosedday.length++] = '1/2';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
	
	temporaryclosedday[temporaryclosedday.length++] = '1/3';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
	
	temporaryclosedday[temporaryclosedday.length++] = '1/4';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
	
	temporaryclosedday[temporaryclosedday.length++] = '1/10';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
	
	temporaryclosedday[temporaryclosedday.length++] = '1/11';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
	
	temporaryclosedday[temporaryclosedday.length++] = '1/17';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
	
	temporaryclosedday[temporaryclosedday.length++] = '1/23';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
	
	temporaryclosedday[temporaryclosedday.length++] = '1/24';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
	
	temporaryclosedday[temporaryclosedday.length++] = '1/31';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';

	temporaryclosedday[temporaryclosedday.length++] = '2/6';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';

	temporaryclosedday[temporaryclosedday.length++] = '2/7';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';

	temporaryclosedday[temporaryclosedday.length++] = '2/11';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';

	temporaryclosedday[temporaryclosedday.length++] = '2/14';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';

	temporaryclosedday[temporaryclosedday.length++] = '2/21';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';

	temporaryclosedday[temporaryclosedday.length++] = '2/27';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
	
	temporaryclosedday[temporaryclosedday.length++] = '2/28';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';


	temporaryclosedday[temporaryclosedday.length++] = '3/7';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';

	temporaryclosedday[temporaryclosedday.length++] = '3/13';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';

	temporaryclosedday[temporaryclosedday.length++] = '3/14';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';

	temporaryclosedday[temporaryclosedday.length++] = '3/21';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';

	temporaryclosedday[temporaryclosedday.length++] = '3/22';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
    
    temporaryclosedday[temporaryclosedday.length++] = '3/28';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';

	temporaryclosedday[temporaryclosedday.length++] = '4/4';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';

	temporaryclosedday[temporaryclosedday.length++] = '4/10';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';

	temporaryclosedday[temporaryclosedday.length++] = '4/11';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';

	temporaryclosedday[temporaryclosedday.length++] = '4/18';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';

	temporaryclosedday[temporaryclosedday.length++] = '4/25';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';

	temporaryclosedday[temporaryclosedday.length++] = '4/29';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';

	temporaryclosedday[temporaryclosedday.length++] = '5/1';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
	
	temporaryclosedday[temporaryclosedday.length++] = '5/2';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';

	temporaryclosedday[temporaryclosedday.length++] = '5/3';
	temporarycloseddayName[temporarycloseddayName.length++] = '全店休業日';

	temporaryclosedday[temporaryclosedday.length++] = '5/4';
	temporarycloseddayName[temporarycloseddayName.length++] = '全店休業日';

	temporaryclosedday[temporaryclosedday.length++] = '5/5';
	temporarycloseddayName[temporarycloseddayName.length++] = '全店休業日';

	temporaryclosedday[temporaryclosedday.length++] = '5/9';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';

	temporaryclosedday[temporaryclosedday.length++] = '5/15';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
	
	temporaryclosedday[temporaryclosedday.length++] = '5/16';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';

	temporaryclosedday[temporaryclosedday.length++] = '5/23';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
	
	temporaryclosedday[temporaryclosedday.length++] = '5/29';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';

	temporaryclosedday[temporaryclosedday.length++] = '5/30';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';

	// 2009年6月の休日
	temporaryclosedday[temporaryclosedday.length++] = '6/6';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';

	temporaryclosedday[temporaryclosedday.length++] = '6/12';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
	
	temporaryclosedday[temporaryclosedday.length++] = '6/13';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';

	temporaryclosedday[temporaryclosedday.length++] = '6/20';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
	
	temporaryclosedday[temporaryclosedday.length++] = '6/26';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日'
		
	temporaryclosedday[temporaryclosedday.length++] = '6/27';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日'
	
	temporaryclosedday[temporaryclosedday.length++] = '7/4';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
	
	temporaryclosedday[temporaryclosedday.length++] = '7/10';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
	
	temporaryclosedday[temporaryclosedday.length++] = '7/11';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
		
	temporaryclosedday[temporaryclosedday.length++] = '7/18';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
		
	temporaryclosedday[temporaryclosedday.length++] = '7/19';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
	
	temporaryclosedday[temporaryclosedday.length++] = '7/25';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';

	temporaryclosedday[temporaryclosedday.length++] = '7/31';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';

	temporaryclosedday[temporaryclosedday.length++] = '8/1';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';


	temporaryclosedday[temporaryclosedday.length++] = '8/8';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
	
	temporaryclosedday[temporaryclosedday.length++] = '8/12';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
	
	temporaryclosedday[temporaryclosedday.length++] = '8/13';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
	
	temporaryclosedday[temporaryclosedday.length++] = '8/14';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
			
	temporaryclosedday[temporaryclosedday.length++] = '8/15';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
	
	temporaryclosedday[temporaryclosedday.length++] = '8/16';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
	
	temporaryclosedday[temporaryclosedday.length++] = '8/22';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
	
	temporaryclosedday[temporaryclosedday.length++] = '8/28';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
	
	temporaryclosedday[temporaryclosedday.length++] = '8/29';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
	
	
	temporaryclosedday[temporaryclosedday.length++] = '9/5';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
	
	temporaryclosedday[temporaryclosedday.length++] = '9/11';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
	
	temporaryclosedday[temporaryclosedday.length++] = '9/12';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
	
	temporaryclosedday[temporaryclosedday.length++] = '9/19';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
	
	temporaryclosedday[temporaryclosedday.length++] = '9/20';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
	
	temporaryclosedday[temporaryclosedday.length++] = '9/23';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
	
	temporaryclosedday[temporaryclosedday.length++] = '9/23';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
	
	temporaryclosedday[temporaryclosedday.length++] = '9/26';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
	
	temporaryclosedday[temporaryclosedday.length++] = '10/3';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
	
	temporaryclosedday[temporaryclosedday.length++] = '10/4';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
	
	temporaryclosedday[temporaryclosedday.length++] = '10/10';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
	
	temporaryclosedday[temporaryclosedday.length++] = '10/11';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
	
	temporaryclosedday[temporaryclosedday.length++] = '10/12';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
	
	temporaryclosedday[temporaryclosedday.length++] = '10/18';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
	
	temporaryclosedday[temporaryclosedday.length++] = '10/24';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
	
	temporaryclosedday[temporaryclosedday.length++] = '10/25';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
	
	temporaryclosedday[temporaryclosedday.length++] = '11/1';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
	
	temporaryclosedday[temporaryclosedday.length++] = '11/3';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
	
	temporaryclosedday[temporaryclosedday.length++] = '11/8';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
	
	temporaryclosedday[temporaryclosedday.length++] = '11/15';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
	
	temporaryclosedday[temporaryclosedday.length++] = '11/22';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
	
	temporaryclosedday[temporaryclosedday.length++] = '11/23';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
	
	temporaryclosedday[temporaryclosedday.length++] = '11/28';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
	
	temporaryclosedday[temporaryclosedday.length++] = '11/29';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
	
	temporaryclosedday[temporaryclosedday.length++] = '12/6';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
	
	temporaryclosedday[temporaryclosedday.length++] = '12/13';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
	
	temporaryclosedday[temporaryclosedday.length++] = '12/20';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
	
	temporaryclosedday[temporaryclosedday.length++] = '12/27';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
	
	temporaryclosedday[temporaryclosedday.length++] = '12/30';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
	
	temporaryclosedday[temporaryclosedday.length++] = '12/31';
	temporarycloseddayName[temporarycloseddayName.length++] = '本店休業日';
	

	
	//臨時休業日の設定　終了
	var flag = false;
	var check = today_tmp.getMonth() + 1 + "/" + today_tmp.getDate();
	for(var i = 0; i < temporaryclosedday.length; i++)
	{
		if (check == temporaryclosedday[i])
		{
			flag = temporarycloseddayName[i];
		}
	}
	return flag;
}

function makeCalendar()
{
	var day_date = new Array;
	var day_day = new Array;
	var day_holiday = new Array;
	var day_temporaryclosedday = new Array;

	for (var i = 1; i <= nowDays; i++)
	{
		today_tmp.setDate(i);
		day_date[i] = today_tmp.getDate();
		day_day[i] = today_tmp.getDay();
		day_holiday[i] = checkholidayName();
		day_temporaryclosedday[i] = checktemporarycloseddayName();
	}

	var content = '<TABLE cellpadding="0" cellspacing="3" class="calendartable"><TR><TD colspan="7" class="year">' + year + '年&#32;' + nowMonth + '月</TD></TR>';
	content += '<TR>';
	content += '<TD class="sunday">日</TD>';
	content += '<TD class="monday">月</TD>';
	content += '<TD class="tuesday" >火</TD>';
	content += '<TD class="wednesday">水</TD>';
	content += '<TD class="thursday">木</TD>';
	content += '<TD class="friday">金</TD>';
	content += '<TD class="saturday">土</TD>';
	content += '</TR>';
	content += '<TR align="right">';
	var column = 0;

	for (var i = 0; i < day_day[1]; i++)
	{
		content += '<TD>&nbsp;</TD>';
		column++;
	}

	for (var i = 1; i <= nowDays; i++)
	{
		if (today.getDate() == i)
		{
			if (day_temporaryclosedday[i] == false)
			{
				if (day_holiday[i] == false)
				{
					if (column == 6)
					{
						content += "<TD class='t_saturday'>" + i + "</TD></TR>";
						column++;
					}
					else if(column == 1)
					{
						content += "<TD class='t_monday'>" + i + "</TD>";
						column++;
					}
					else if(column == 2)
					{
						content += "<TD class='t_tuesday'>" + i + "</TD>";
						column++;
					}
					else if(column == 3)
					{
						content += "<TD class='t_wednesday'>" + i + "</TD>";
						column++;
					}
					else if(column == 4)
					{
						content += "<TD class='t_thursday'>" + i + "</TD>";
						column++;
					}
					else if(column == 5)
					{
						content += "<TD class='t_friday'>" + i + "</TD>";
						column++;
					}
					else
					{
						content += "<TD class='t_sunday'>" + i + "</TD>";
						column++;
					}
				}
				else
				{
					if (column == 6)
					{
						content += '<TD class="t_H_saturday">' + i + '</TD></TR>';
						column++;
					}
					else if (column == 1)
					{
						content += '<TD class="t_H_monday">' + i + '</TD>';
						column++;
					}
					else if (column == 2)
					{
						content += '<TD class="t_H_tuesday">' + i + '</TD>';
						column++;
					}
					else if (column == 3)
					{
						content += '<TD class="t_H_wednesday">' + i + '</TD>';
						column++;
					}
					else if (column == 4)
					{
						content += '<TD class="t_H_thursday">' + i + '</TD>';
						column++;
					}
					else if (column == 5)
					{
						content += '<TD class="t_H_friday">' + i + '</TD>';
						column++;
					}
					else
					{
						content += '<TD class="t_H_sunday">' + i + '</TD>';
						column++;
					}
				}
			}
			else
			{
				if (day_holiday[i] == false)
				{
					if (column == 6)
					{
						content += '<TD class="t_TC_saturday">' + i + '</TD></TR>';
						column++;
					}
					else if (column == 1)
					{
						content += '<TD class="t_TC_monday">' + i + '</TD>';
						column++;
					}
					else if (column == 2)
					{
						content += '<TD class="t_TC_tuesday">' + i + '</TD>';
						column++;
					}
					else if (column == 3)
					{
						content += '<TD class="t_TC_wednesday">' + i + '</TD>';
						column++;
					}
					else if (column == 4)
					{
						content += '<TD class="t_TC_thursday">' + i + '</TD>';
						column++;
					}
					else if (column == 5)
					{
						content += '<TD class="t_TC_friday">' + i + '</TD>';
						column++;
					}
					else
					{
						content += '<TD class="t_TC_sunday">' + i + '</TD>';
						column++;
					}
				}
				else
				{
					if (column == 6)
					{
						content += '<TD class="t_TC_H_saturday">' + i + '</TD></TR>';
						column++;
					}
					else if (column == 1)
					{
						content += '<TD class="t_TC_H_monday">' + i + '</TD>';
						column++;
					}
					else if (column == 2)
					{
						content += '<TD class="t_TC_H_tuesday">' + i + '</TD>';
						column++;
					}
					else if (column == 3)
					{
						content += '<TD class="t_TC_H_wednesday">' + i + '</TD>';
						column++;
					}
					else if (column == 4)
					{
						content += '<TD class="t_TC_H_thursday">' + i + '</TD>';
						column++;
					}
					else if (column == 5)
					{
						content += '<TD class="t_TC_H_friday">' + i + '</TD>';
						column++;
					}
					else
					{
						content += '<TD class="t_TC_H_sunday">' + i + '</TD>';
						column++;
					}
				}
			}
		}
		else
		{
			if (day_temporaryclosedday[i] == false)
			{
				if(day_holiday[i]==false)
				{
					if (column == 6)
					{
						content += '<TD class="saturday">' + i + '</TD></TR>';
						column++;
					}
					else if (column == 1)
					{
						content += '<TD class="monday">' + i + '</TD>';
						column++;
					}
					else if (column == 2)
					{
						content += '<TD class="tuesday">' + i + '</TD>';
						column++;
					}
					else if (column == 3)
					{
						content += '<TD class="wednesday">' + i + '</TD>';
						column++;
					}
					else if (column == 4)
					{
						content += '<TD class="thursday">' + i + '</TD>';
						column++;
					}
					else if (column == 5)
					{
						content += '<TD class="friday">' + i + '</TD>';
						column++;
					}
					else
					{
						content += '<TD class="sunday">' + i + '</TD>';
						column++;
					}
				}
				else
				{
					if (column == 6)
					{
						content += '<TD class="H_saturday">' + i + '</TD></TR>';
						column++;
					}
					else if (column == 1)
					{
						content += '<TD class="H_monday">' + i + '</TD>';
						column++;
					}
					else if (column == 2)
					{
						content += '<TD class="H_tuesday">' + i + '</TD>';
						column++;
					}
					else if (column == 3)
					{
						content += '<TD class="H_wednesday">' + i + '</TD>';
						column++;
					}
					else if (column == 4)
					{
						content += '<TD class="H_thursday">' + i + '</TD>';
						column++;
					}
					else if (column == 5)
					{
						content += '<TD class="H_friday">' + i + '</TD>';
						column++;
					}
					else
					{
						content += '<TD class="H_sunday">' + i + '</TD>';
						column++;
					}
				}
			}
			else
			{
				if (day_holiday[i] == false)
				{
					if (column == 6)
					{
						content += '<TD class="TC_saturday">' + i + '</TD></TR>';
						column++;
					}
					else if (column == 1)
					{
						content += '<TD class="TC_monday">' + i + '</TD>';
						column++;
					}
					else if (column == 2)
					{
						content += '<TD class="TC_tuesday">' + i + '</TD>';
						column++;
					}
					else if (column == 3)
					{
						content += '<TD class="TC_wednesday">' + i + '</TD>';
						column++;
					}
					else if (column == 4)
					{
						content += '<TD class="TC_thursday">' + i + '</TD>';
						column++;
					}
					else if (column == 5)
					{
						content += '<TD class="TC_friday">' + i + '</TD>';
						column++;
					}
					else
					{
						content += '<TD class="TC_sunday">' + i + '</TD>';
						column++;
					}
				}
				else
				{
					if (column == 6)
					{
						content += '<TD class="TC_H_saturday">' + i + '</TD></TR>';
						column++;
					}
					else if (column == 1)
					{
						content += '<TD class="TC_H_monday">' + i + '</TD>';
						column++;
					}
					else if (column == 2)
					{
						content += '<TD class="TC_H_tuesday">' + i + '</TD>';
						column++;
					}
					else if (column == 3)
					{
						content += '<TD class="TC_H_wednesday">' + i + '</TD>';
						column++;
					}
					else if (column == 4)
					{
						content += '<TD class="TC_H_thursday">' + i + '</TD>';
						column++;
					}
					else if (column == 5)
					{
						content += '<TD class="TC_H_friday">' + i + '</TD>';
						column++;
					}
					else
					{
						content += '<TD class="TC_H_sunday">' + i + '</TD>';
						column++;
					}
				}
			}
		}
		if (column == 7)
		{
			content += '</TR><TR align="right">';
			column = 0;
		}
	}
	content += '</TR></TABLE>';

	document.write(content);
}
