// This script is called by the home page to display the next show and by Schedule.html to build the schedule
var nextShow = ""
var showRange = ""
// ARRAY OF SHOW DATES //
// Each line must show "StartMonth StartDay/StartYear/EndMonth EndDay/EndYear/Venue/City", //
// Each line except the last one MUST end with a comma //
var dates = new Array(
//"March 12/2004/March 14/2004/Spring Art & Craft/Arlington Heights, Ill.",
//"May 8/2004/May 9/2004/Beaux Art & Craft/Davenport, Iowa",
//"June 5/2004/June 6/2004/Left Bank Fine Arts Fair/Moline, Ill.",
//"June 26/2004/June 27/2004/ArtFest Midwest/DesMoines, Iowa",
//"July 14/2004/July 17/2004/Kings Chosen/Ann Arbor, Mich.",
//"September 4/2004/September 6/2004/Septemberfest/Schaumburg, Ill.",
//"September 11/2004/September 12/2004/Beaux Art/Davenport, Iowa",
//"November 11/2004/November 14/2004/Holiday Art & Craft/Arlington Heights, Ill.",
//"December 2/2004/December 5/2004/Lambs Farm Holiday Art & Craft
(Stephens Convention Center, #201)/Rosemont, Ill.",
//"March 11/2005/March 13/2005/Spring Art & Craft/Arlington Heights, IL",
//"April 23/2005/April 24/2005/Spring Bloom Art Festival/Bloomington, IL",
//"May 7/2005/May 8/2005/Beaux Art/Davenport, IA",
//"June 11/2005/June 12/2005/Left Bank Art Show/Rock Island, IL",
//"July 20/2005/July 23/2005/Kings Chosen /Ann Arbor, MI",
//"September 3/2005/September 5/2005/Schaumburgfest/Schaumburg, IL",
//"September 17/2005/September 18/2005/Chautauqua of the Arts/Greensburg, IN",
//"November 10/2005/November 13/2005/Holiday Art & Craft/Arlington Heights, IL",
//"December 1/2005/December 4/2005/Lambs Farm Holiday Art & Craft
(Stephens Convention Center, #201)/Rosemont, IL"
//"March 10/2006/March 12/2006/Arlington Racecourse/Arlington, IL",
//"April 7/2006/April 9/2006/Canterbury Park/Shakopee, MN",
//"April 21/2006/April 23/2006/Qwest Center/Omaha, NE",
//"May 13/2006/May 14/2006/Beaux Art & Craft Fair/Davenport, IA",
//"June 10/2006/June 11/2006/Left Bank Art Fair/Rock Island, IL",
//"July 7/2006/July 9/2006/Art in the Park/Plymouth, MI",
//"July 12/2006/July 15/2006/Wyandotte Street Art Fair/Wyandotte, MI",
//"July 19/2006/July 22/2006/Michigan Art Guild Fair
(Space #164 on Main)/Ann Arbor, MI",
//"September 2/2006/September 4/2006/Schaumburgfest/Schaumburg, IL",
//"September 9/2006/September 10/2006/Beaux Art/Davenport, IA",
//"November 24/2006/November 26/2006/Christmas Art & Craft fair/Rock Island, IL",
//"December 4/2006/December 7/2006/Lambs Farm Holiday Art & Craft
(Stephens Convention Center, Space #201)/Rosemont, IL",
//"May 12/2007/May 13/2007/Beaux Arts Fair/Davenport, Iowa",
//"June 9/2007/June 10/2007/Left Bank Art Fair/Rock Island, Ill.",
//"July 13/2007/July 15/2007/Art in the Park/Plymouth, Mich.",
//"July 18/2007/July 21/2007/Michigan Art Guild Art Fair
Booth #307, Main Street between Liberty & Washington/Ann Arbor, Mich.",
//"September 1/2007/September 3/2007/Schaumburgfest/Schaumburg, Ill.",
//"September 8/2007/September 9/2007/Beaux Arts Fair/Davenport, Iowa",
//"January 1/2008/December 31/2008/None scheduled at this time/",
//"May 10/2008/May 11/2008/Beaux Art & Craft Fair/Davenport, IA",
//"July 16/2008/July 19/2008/(Michigan Art Guild Fair)/",
//"August 30/2008/September 1/2008/Schaumburgfest/Schaumburg, IL
PLEASE NOTE: We have CANCELED our previously scheduled July 16-19
appearance at the Michigan Art Guild Fair in Ann Arbor. Sorry.",
//"August 30/2008/September 1/2008/Schaumburgfest/Schaumburg, IL",
//"September 6/2008/September 7/2008/Beaux Art & Craft Fair/Davenport, IA",
"May 9/2009/May 10/2009/Beaux Art & Craft Spring Fair/Davenport, IA",
"July 15/2009/July 18/2009/Michigan Art Guild Art Fair
(Booth #330 on Main between Washington & Huron)/Ann Arbor, MI",
"September 5/2009/September 7/2009/Schaumburgfest/Schaumburg, IL",
"September 12/2009/September 13/2009/Beaux Art & Craft Fall Fair/Davenport, IA"
)
// ARRAY OF MONTHS, formatted per style //
months = new Array("Jan.", "Feb.", "March", "April", "May", "June", "July", "Aug.", "Sept.", "Oct.", "Nov.", "Dec.")
// BELOW THIS POINT USED ONLY BY THE HOME PAGE //
// A modified version of the code below this point is included in Schedule.html //
// GET CURRENT DATE //
var now = new Date()
// DETERMINE STARTING AND ENDING DATES FOR ELEMENTS IN DATES ARRAY //
for (i = 0; i < dates.length; i ++) {
thisShow = dates[i].split("/")
// the following stupidity is required for Netscape to interpret a date //
tmp = thisShow[0] + ", " + thisShow[1]
showStart = new Date(tmp)
// more Netscape stupidity //
tmp = thisShow[2] + "," + thisShow[3] + " 23:59:59"
showEnd = new Date(tmp)
// starting day, month and year //
startDay = showStart.getDate();
startMonth = showStart.getMonth();
startMonth = months[startMonth];
startYear = showStart.getYear();
// still more Netscape stupidity to interpet 21st century dates //
if (startYear < 1000) {startYear += 1900}
// ending day, month and year //
endDay = showEnd.getDate();
endMonth = showEnd.getMonth();
endMonth = months[endMonth];
endYear = showEnd.getYear();
if (endYear < 1000) {endYear += 1900}
// IF THE SHOW HAS NOT YET STARTED //
if (showStart > now) {
// Build a neatly formatted date range for the show (e.g. "April 27-29, 2002")
showRange = startMonth + " " + startDay
// If the start month and end month are the same, don't repeat the month //
if (startMonth == endMonth) {
showRange += "-" + endDay + ", " + startYear;
}
// If the start month and end month are different, include the end month (e.g. "July 31-Aug. 2, 2002")
else {
// If the start year and end year are the same, don't repeat the year //
if (startYear == endYear) {
showRange += "-" + endMonth + " " + endDay + ", " + startYear;
}
// If the start year and end year are different, include the end year (e.g. "Dec. 31, 2002-Jan. 2, 2003") //
else {
showRange += ", " + startYear + "-" + endMonth + " " + endDay + ", " + endYear;
}
}
// SET STRING FOR HOME PAGE //
nextShow = "Our next show: " + showRange + " " + thisShow[4] + ", " + thisShow[5];
break;
}
// IF THE SHOW IS GOING ON NOW, SET A DIFFERENT STRING FOR THE HOME PAGE //
if (showStart <= now && showEnd >= now) {
nextShow = "Come see us now through " + endMonth + " " + endDay + " " + thisShow[4] + ", " + thisShow[5];
break;
}
}