var special = new Array(); today = new Date(); day = today.getDay(); special[0] = "Grass-fed beef from Wolfe’s Neck Farm Freeport, Maine"; special[1] = "Free-range, vegetarian-fed chicken and turkey from Murray’s All Natural South Fallsburg, New York "; special[2] = "Ricotta, cheeses, and lamb from Beaver Brook Farm Old Lyme, Connecticut"; special[3] = "Apples and pears from High Hill Orchard Meriden, Connecticut"; special[4] = "SMesclun and greens from Starlight Gardens Durham, Connecticut "; special[5] = "Heirloom tomatoes, basil, eggplant, zucchini, winter squash, and other produce from Old Maids Farm South Glastonbury, Connecticut"; special[6] = "Grass-fed beef from Wolfe’s Neck Farm Freeport, Maine"; function writeSpecial() { document.write(special[day]); } function writeDate(){ // Array list of days. var days = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'); // Get today's current date. var now = new Date(); // Array list of months. var months = new Array('January','February','March','April','May','June','July','August','September','October','November','December'); // Calculate the number of the current day in the week. var date = ((now.getDate()<10) ? "0" : "")+ now.getDate(); // Calculate four digit year. function fourdigits(number) { return (number < 1000) ? number + 1900 : number; } // Join it all together todayDate = days[now.getDay()] + ", " + months[now.getMonth()] + " " + date + ", " + (fourdigits(now.getYear())) ; document.write(todayDate); }