var gsSplit="-";		// 日付データのセパレータ 空の場合  giMonthMode と gbPadZero が 0 に設定され true になる
var giDatePos=2;		// 日付フォーマット  0: 日-月-年 ; 1: 月-日-年; 2: 年-月-日
var gbPadZero=true;		// 10以下の場合0が追加され2桁になる.
var giMonthMode=0;		// 月フォーマット 0: 数字 ; 1: 日本語表示; >2: 省略表示.
var gbShortYear=false;  // 年フォーマット   true: 2桁; false: 4桁
var gbAutoPos=true;		// enable auto-adpative positioning or not
var gbPopDown=true;		// true:カレンダーを下に表示; false: カレンダーを上に表示
var gbAutoClose=true;	// true:日付選択後カレンダを閉じる
var gPosOffset=[0,0];	// カレンダのオフセット [leftOffset, topOffset].
var gbFixedPos=false;	// true: pop the calendar absolutely at gPosOffset; false: pop it relatively.


var gMonths=["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"];
var gWeekDay=["日","月","火","水","木","金","土"];

var gBegin=[2000,1,1];				// カレンダ 期間始まり [Year,Month,Date] 今日からの場合はgTodayを指定する
var gEnd=[2030,12,31];					// カレンダ 期間終わり [Year,Month,Date] 今日までの場合はgTodayを指定する
var gsOutOfRange="選択できません";	// 日付レンジを越えた場合のエラーメッセージ;
var guOutOfRange=null;				// 背景イメージまでのURL 例 "outrange.gif"

//var giFirstDOW=0;					// 週の最初の曜日を設定. 0:日; 1:月 2:火 3:水 4:木 5:金 6:土

var gcCalBG="#EEEEEE";				// カレンダ 外側 背景色
var guCalBG=null;					// カレンダ 内側 背景色
var gcCalFrame="#778899";			// カレンダ内側 背景色
var gsInnerTable="border=0 cellpadding=2 cellspacing=1";	// 内側<table>のプロパティ 
var gsOuterTable=NN4?"border=1 cellpadding=3 cellspacing=0":"border=0 cellpadding=1 cellspacing=2";	// 外側<table>一番外のプロパティ 

//年月選択
var gbHideTop=false;	// true: 年月選択を非表示;
var giDCStyle=0;		// 月セレクトのスタイル 0: デフォルトのドロップダウンメニュー & gsNavPrev/Next; 1: use gsCalTitle & gsNavPrev/Next; 2: use only gsCalTitle;
var gsCalTitle="gMonths[gCurMonth[1]-1]+' '+gCurMonth[0]";	// dynamic statement to be eval()'ed as the title when giDCStyle>0.
var gbDCSeq=false;		// (giDCStyle が 0のときのみ有効) true: 月/年; false: 年/月;
var gsYearInBox="i";	// dynamic statement to be eval()'ed as the text shown in the year box. e.g. "'A.D.'+i" will show "A.D.2001"

//var gsNavPrev="<INPUT id='navPrev' type='button' value='&lt;' class='MonthNav' onmousedown='showPrevMon()' onmouseup='stopShowMon()' onmouseout='stopShowMon();if(this.blur)this.blur()'>";	// the content of the left month navigator
//var gsNavNext="<INPUT id='navNext' type='button' value='&gt;' class='MonthNav' onmousedown='showNextMon()' onmouseup='stopShowMon()' onmouseout='stopShowMon();if(this.blur)this.blur()'>";	// the content of the right month navigator

var gsNavPrev="<A href='javascript:void(0)'><IMG src='./image/btn_left.jpg' border=0 id='navPrev' class='MonthNav' onmousedown='showPrevMon()' onmouseup='stopShowMon()' onmouseout='stopShowMon();if(this.blur)this.blur()' alt='前月'></A>";	// the content of the left month navigator
var gsNavNext="<A href='javascript:void(0)'><IMG src='./image/btn_right.jpg' border=0 id='navNext' class='MonthNav' onmousedown='showNextMon()' onmouseup='stopShowMon()' onmouseout='stopShowMon();if(this.blur)this.blur()' alt='次月'></A>";	// the content of the right month navigator


//今日の日付表示
var gbHideBottom=false;	// true = 今日の日付を非表示
var gsBottom="<A href='javascript:void(0)' class='BottomAnchor' onclick='if(this.blur)this.blur();if(!fSetDate(gToday[0],gToday[1],gToday[2]))alert(\"選択できません\");return false;' onmouseover='return true;' >今日 : "+gToday[0]+"年 "+gMonths[gToday[1]-1]+" "+gToday[2]+"日</A>";

var giCellWidth=18;		// カレンダ cell width; -1: 自動
var giCellHeight=14;	// カレンダ cell height;
var giHeadHeight=14;	// カレンダ head row height;
var giWeekWidth=14;		// カレンダ week-number-column width;
var giHeadTop=1;		// カレンダ head row top offset;
var giWeekTop=0;		// カレンダ week-number-column top offset;

var gcCellBG="white";	// デフォルト 背景色. 透明は "" を使用
var gsCellHTML="";		// デフォルト HTML contents for days without any agenda, usually an image tag.
var guCellBGImg="";		// url of default background image for each calendar cell.
var gsAction=" ";		// default action to be eval()'ed on everyday except the days with agendas, which have their own actions defined in agendas.
var gsDays="dayNo";		// the dynamic statement to be eval()'ed into each day cell.

var giWeekCol=0;		// -1: ウィークナンバー非表示;  0~7: show week numbers at the designated column.
var giWeekCol_pop=-1;	// ポップアップ用 -1: ウィークナンバー非表示;  0~7: show week numbers at the designated column.
var gsWeekHead="週";	// ウィークナンバーの上に表示するテキスト.
var gsWeeks="weekNo";	// the dynamic statement to be eval()'ed into the week-number-column. e.g. "'week '+weekNo" will show "week 1", "week 2" ...

var gcWorkday="black";	// 平日 フォントカラー
var gcSat="black";		// 土曜日 フォントカラー
var gcSatBG="#FFFFFF";	// 土曜日 背景色 (#66CCFF)
var gcSun="black";		// 日曜日 フォントカラー
var gcSunBG="#FFCCFF";	// 日曜日 背景色

var gcOtherDay="silver";		// 前後の月の日付 フォントカラー; giShowOther が hide の場合無効.
var gcOtherDayBG="#EEEEEEE";	// 前後の月の日付 背景色. when giShowOther set to hiding, it'll substitute the gcOtherDay.
var giShowOther=2;				// 前後の月の日付表示設定. (複数指定可能)1: 日付表示 & 休日・祝日表示; 2: show selected & today effects; 4: 前月の日付を非表示; 8: 次月の日付を非表示; 16: when set with 4 and/or 8, the days will be visible but not selectable.

var gbFocus=true;			// true: フォーカスされたせるの背景色をハイライト.
var gcToggle="yellow";		// フォーカスされたセルの背景色

var gcFGToday="white";		// 今日のフォントカラー
var gcBGToday="red";		// 今日の背景色 
var guTodayBGImg="";		// url of image as today's background
var giMarkToday=1+2+8; 		// 今日のエフェクト (複数指定可能 例: 1+2)- 0: なし; 1: 背景色を gcBGTodayにする; 2: draw a box with gcBGToday; 4: フォントをボールドにする; 8: フォントカラーを gcFGTodayにする; 16: 背景色を guTodayBGImgにする;
var gsTodayTip="今日";		// ステータスに表示する文字

var gcFGSelected="white";	// 選択された日付 フォントカラー
var gcBGSelected="#DB5141";	// 選択された日付 背景色
var guSelectedBGImg="";		// url of image as background of the selected date
var giMarkSelected=2;		// 選択された日付のエフェクト (複数指定可能 例:1+2)- 0: 何もしない; 1: 背景色を gcBGSelected にする; 2: ボーダーを gcBGSelected にする; 4: フォントをボールドにする; 8: フォントカラーを gcFGSelected; 16: 背景色を guSelectedBGImg にする;
var gsSelectedTip="";		// 選択された日付 画面したのメッセージ

var gbBoldAgenda=true;		// whether to boldface the dates with agendas.
var gbInvertBold=false;		// true: invert the boldface effect set by gbBoldAgenda; false: no inverts.
var gbShrink2fit=true;		// whether to hide the week line if none of its day belongs to the current month.
var gdSelect=[0,0,0];		// default selected date in format of [year, month, day]; [0,0,0] means no default date selected.
var giFreeDiv=0;			// The number of absolutely positioned layers you want to customize, they will be named as "freeDiv0", "freeDiv1"...
var gAgendaMask=[-1,-1,-1,null,null,-1,null];	// [message, action, bgcolor, fgcolor, bgimg, boxit, html] - Set the relevant bit to -1 to keep the original agenda/event value of that bit intact. Any other value will be used to override the original one defined in agenda.js. Check the tutorial for details.

var giResizeDelay=KO3?150:50;	// delay in milliseconds before resizing the calendar panel. Calendar may have incorrect initial size if this value is too small.
var gbFlatBorder=false;			// flat the .CalCell css border of any agenda date by setting it to solid style. NOTE: it should always be set to false if .CalCell has no explicit border size.
var gbInvertBorder=false;		// true: invert the effect caused by gbFlatBorder; false: no change.
var gbShareAgenda=false;		// if set to true, a global agenda store will be created and used to share across calendars. Check tutorials for details.
var gsAgShared="gContainer._cxp_agenda";	// shared agenda store name used when gbShareAgenda is true.
var gbCacheAgenda=false;		// false: will prevent the agenda url from being cached; true: cached as normal js file.
var giShowInterval=250;			// interval time in milliseconds that controls the auto-traverse speed.

