// The folowing variables match or override the values that are set in the "layercalendar.js script

// Typical Hex color codes = #ffffff=white, #999999=black, #0000ff=blue, #ff0000=red, #008000=green
//                           #008080=teal, #00FFFF=aqua,
// Basic colors such as red, blue, green, etc. can be spelled out
// ColorPicker Web Page Address http://www.vrtisworks.com/kiki/fun/color.htm for hex codes for all colors


SpecialDay=1;      // 0=none, 1=Sunday, 2=Monday, . . . 7=Saturday
//ColorBackground="#ffffff";  // code of "#ffefd5" results in a "papayawhip" color
ColorBackground="#f4f1e5";  // code of "#c7cbc5" results in a "light green" color
//ColorBackground="#FCEBAA";  // code of "#fcebaa" results in a "light gold" color
ColorSpecialDay = "#5e8cc7";  // special day can be any day of week as set by SpecialDay value above
ColorToday = "green";    // current date color
ColorEvent = "black";    // color of event dates
showAltDate = false;      // add display of alternate date using results from user supplied "getAltMonth(dy, mo, yr, last)" and "getAltDate(dy, mo, yr)" functions
showHolidays = true;           // add display of holidays using result from user supplied "holidays(dy, mo, yr)" function
showAltHoly = false;     // add display of alternate holidays using result from user supplied "getAltHoly(dy, mo, yr)" function
showMsgBox = true;     // span empty cells (before 1st day and after last) for messageBox use
showMini = true;     // add minimonth display of prior and next months if first and/or last boxes are available
showNav = true;     // enable month navigation (might disable for print version)
showImages = true;     // enable event images (might disable for print version)
showLinks = true;     // enable event hyperlinks (might disable for print version)
msgBoxColor = "#c8b49a";  // background color of Message Box (code of "#f5deb3" results in a "wheat" color)
msgBoxText = "#5e8cc7";    // font color of messages
navColor = "#c8b49a";           // top and bottom portions of calendar plus any empty columns used by message boxes
imageAlign = "left";    // default event image alignment
imageScale = 100;    // percent scale factor for images
altAlign = false;     // alternate left/right alignment of event images on same date for readability
DefaultFormat = "layer";   // for compatibility; set to "layer" to simplify formatting
ExportPage = "";     // name of html page for displaying event text for export
PrintPage = "";     // name of html page for printer-friendly format
defaultMsgBox ="<b></b>";       // msgBox message (it will only be shown IF it finds enough space)
frames = "yes";      // determines how to handle calendar links. a "yes" opens a new window.
DateFontSize=3;      // size of the date fonts
DateFontColor="black";    // calendar dates default font color
FirstMonth = 200411;     // start calendar in month where sample data starts for "jump to" target in samples
holidaycolor="#999999";    // color of Holiday Text (#999999 = gray)


// Note: all format codes must have "|" to separate before and after tags

AltDateFormat = "<font color=#999999 size=2>|</font>";
MonthFormat = "<font size=" + DateFontSize + "><b>|</b></font>";
AltMonthFormat = "<br><font color=#999999 size=" + DateFontSize/2 + ">|</font>";
HolidayFormat = "<font color=" +holidaycolor+" size=2><b><center>|</center></b></font>";
AltHolyFormat = "<font  size=2><b><center>|</center></b></font>";
DefaultLayerFormat = "<font size=2>|</font>";



// map alternate date and holiday functions to user supplied functions here

altDateStyle = 2;
altMonthStyle = 1;

function getAltMonth(first, month, year, last) {
  var tmp = my_date(first, month, year, altMonthStyle) + " - " + my_date(last, month, year, altMonthStyle);
  return tmp;
}
function getAltDate(day, month, year) { return my_date(day, month, year, altDateStyle); }
function holidays(day, month, year) { return my_holiday(day, month, year); }
function getAltHoly(day, month, year) { return my_alt_holiday(day, month, year); }
