// ---lists productions--- var Show var Title var Episode var Link var Channel var todayIs = new Date() var theMonth = todayIs.getMonth()+1 var theDay = todayIs.getDate() var theYear = todayIs.getYear(); if (theYear < 1900) {theYear = theYear+1900} var theWeekday = todayIs.getDay() var Months = "JanFebMarAprMayJunJulAugSepOctNovDec" var MonthWord = Months.substring(theMonth*3-3,theMonth*3) // Function to blank-out all variables after checking each event function BlankAll() { Show = ""; Title = ""; Episode = ""; Featuring = ""; Link = "" Theatre = ""; City =""; State = "" YearOpen = ""; MonthOpen = ""; DayOpen = ""; MonthClose = ""; DayClose = "" } BlankAll() // The upcomingTVDisplay function: This function is launched at the bottom of EACH show listing, and determines HOW that show should be listed based on what TYPE of page requested the listing. CALENDAR functions, for example, are part of PAGE02 function upcomingTVDisplay(type,data) { Show = (" "+Show+" ") // toggles FOUND to YES if the show is found in tvupcoming: if (type == "FindShow" && Show.indexOf(" "+data+" ") >= 0) { Found = "yes"} // toggles FOUND to YES if the show is found AND there is a YEAR - i.e. if there are specific listings to display if (type == "FindShowListings" && Show.indexOf(" "+data+" ") >= 0 && YearOpen != "") { Found = "yes"} // displays listings on the CALENDAR (page02) omitting those with no year - (i.e. from the Now Play & Now Streaming lists) if (type == "CALENDAR" && YearOpen != "" && YearOpen != "NOW") { // blank YearOpen indicates entry is from FIRST section (NOW PLAYING) document.write(""+Title+"
") document.write(""+MonthOpen+" "+DayOpen+"") if (MonthClose) { document.write(" - ") if (MonthOpen != MonthClose) {document.write(MonthClose+" ")} document.write(" "+DayClose+"")} if (Episode) { document.write(" - "+Episode)} document.write("

") } if (type == "CALENDAR" && Show == "


") { // insert a HR bar (currently used as a separator between specific episodes & always streaming shows) document.write("
")} if (type == "NowStreaming" && YearOpen == "NOW") { // YearOpen = NOW indicates entry is from NOW PLAYING NOW STREAMING section, i.e. ALWAYS PLAYING document.write(""+Title+"
") document.write(""+Episode+" - on "+Channel+"

") } if (type == "PAGE" && Show.indexOf(" "+data+" ") >= 0 && YearOpen != "" && YearOpen != "NOW") { // blank YearOpen indicates entry is from FIRST section (NOW PLAYING) document.write(""+MonthOpen+" "+DayOpen+" - ") if (MonthClose) { document.write("") if (MonthOpen != MonthClose) {document.write(MonthClose+" ")} document.write(DayClose+" - ")} document.write(""+Episode+"
") document.write("

")} if (type == "PAGE" && Show.indexOf(" "+data+" ") >= 0 && YearOpen == "NOW") { // YearOpen = NOW indicates entry is from NOW STREAMING section document.write(""+Episode+" - on ") document.write(Channel+"
") document.write("

")} if (type == "PAGEOPENING" && Show.indexOf(" "+data+" ") >= 0 && MonthWord == MonthOpen) { document.write("") document.write("

") document.write("") document.write("") document.write(MonthOpen+" "+DayOpen) if (MonthClose) { document.write(" - ") if (MonthOpen != MonthClose) {document.write(MonthClose+" ")} document.write(DayClose)} document.write(" --- "+Episode+"!!") document.write("") document.write("") document.write("
") document.write("
")} if (type == "FindYear" && data == YearOpen) { Found = "yes"} if (type == "FindEvents" && YearOpen != "") { Found = "yes"} BlankAll() } function upcomingTV(style,matching) { Found = "no" // This first section is shows that are NOW PLAYING but I dont have any specific listing. For example, if reruns of Arthur are available, but I dont have any specific showing to plug CALENDAR (page02) or the TV/Arthur homepage, but i DO want the Arthur billboard to pop up on the Calendar, then it needs to be listed in this section with SHOW & TITLE but nothing else. NOTE: I do not have to include shows that HAVE a listing as they will automatically be FOUND. In other words, this section generates a False Found for shows that I want their billboard to pop up. // Show = "americandragon" // Title = "American Dragon: Jake Long" // YearOpen = "" // upcomingTVDisplay(style,matching) // Show = "lalaloopsy" // Title = "Lalaloopsy" // YearOpen = "" // upcomingTVDisplay(style,matching) Show = "arthur" Title = "Arthur" YearOpen = "" upcomingTVDisplay(style,matching) // Show = "thomasfriends" // Title = "Thomas & Friends: All Engines Go!" // YearOpen = "" // upcomingTVDisplay(style,matching) // SECOND section is for EPISODE PREMIERES and other EVENTS Show = "curiousgeorge"; Title = "Curious George" Episode = "Season 15 debuts on Peacock" Link = "tv/curiousgeorge/index.htm" Channel = "" YearOpen = "2022"; MonthOpen = "Mar"; DayOpen = "18" upcomingTVDisplay(style,matching) Show = "curiousgeorge"; Title = "Curious George" Episode = "Hawai’i - episode premiere!" Link = "tv/curiousgeorge/1508.htm" Channel = "" YearOpen = "2021"; MonthOpen = "Mar"; DayOpen = "18" upcomingTVDisplay(style,matching) Show = "curiousgeorge"; Title = "Curious George" Episode = "Sloth Speed - episode premiere!" Link = "tv/curiousgeorge/1515.htm" Channel = "" YearOpen = "2021"; MonthOpen = "Mar"; DayOpen = "18" upcomingTVDisplay(style,matching) Show = "duckgoose"; Title = "Duck & Goose" Episode = "series premiere" Link = "tv/duckgoose/index.htm" Channel = "Apple TV+" YearOpen = "2022"; MonthOpen = "Jul"; DayOpen = "8" upcomingTVDisplay(style,matching) // Show = "thomasfriends thomasfriends_2516"; Title = "Thomas & Friends: All Engines Go!" // Episode = "Roller Coasting - episode premiere!" // Link = "tv/thomasfriends/index.htm" // Channel = "" // YearOpen = "2021"; MonthOpen = ""; DayOpen = "" // upcomingTVDisplay(style,matching) // Show = "lalaloopsy"; Title = "Lalaloopsy" // Episode = "on Nick Jr." // Link = "tv/lalaloopsy/index.htm" // Channel = "Nick Jr." // YearOpen = "2013"; MonthOpen = "2013"; DayOpen = "" // upcomingTVDisplay(style,matching) // Show = "darrylwinston littlebig goode040528 goode040206 goode030418b goode031219 1mn goode030530"; Title = "The Darryl Winston Show" // Episode = "series premiere" // Link = "tv/darrylwinston/index.htm" // Channel = "DCTV 10" // YearOpen = "2008"; MonthOpen = "Fall"; DayOpen = "" // upcomingTVDisplay(style,matching) // Show = "planetsheen"; Title = "Planet Sheen" // Episode = "on Nickelodeon" // Link = "tv/planetsheen/index.htm" // Channel = "Nickelodeon" // YearOpen = "2010"; MonthOpen = "Oct"; DayOpen = "2" // upcomingTVDisplay(style,matching) // OBSOLETE posts a HR between individual episodes and permanent streaming shows: // Show = "
"; Title = "" // Episode = "" // Link = "" // Channel = "" // YearOpen = "2020"; MonthOpen = ""; DayOpen = ""; // upcomingTVDisplay(style,matching) // THIRD SECTIONS are for shows that are Now Streaming or Coming Soon where I *want* there to be a specific listing on the NOW STREAMING section of Calendar, and on the show homepage, even though there is no exact show date. These can be identified by the LACK of a year, but the PRESENCE of an episode // since Feb 26, 2021 // announced Nov 19, 2019 Show = "americandragon"; Title = "American Dragon: Jake Long" Episode = "Now Streaming" Link = "tv/americandragon/index.htm" Channel = "Disney Plus" YearOpen = "NOW"; MonthOpen = ""; DayOpen = "" upcomingTVDisplay(style,matching) // Since Jul 15, 2020: Show = "curiousgeorge"; Title = "Curious George" Episode = "Now Streaming" Link = "tv/curiousgeorge/index.htm" Channel = "Peacock" YearOpen = "NOW"; MonthOpen = ""; DayOpen = "" upcomingTVDisplay(style,matching) // since Dec 3, 2020 Show = "kinderwood"; Title = "Kinderwood" Episode = "Now Streaming" Link = "tv/kinderwood/index.htm" Channel = "Noggin " YearOpen = "NOW"; MonthOpen = ""; DayOpen = "" upcomingTVDisplay(style,matching) // Since Feb 2, 2018: Show = "lunapetunia"; Title = "Luna Petunia" Episode = "Now Streaming" Link = "tv/lunapetunia/index.htm" Channel = "Netflix" YearOpen = "NOW"; MonthOpen = ""; DayOpen = "" upcomingTVDisplay(style,matching) // Since Nov 23, 2017: Show = "stinkydirty"; Title = "The Stinky & Dirty Show" Episode = "Now Streaming" Link = "tv/stinkydirty/index.htm" Channel = "Amazon Prime" YearOpen = "NOW"; MonthOpen = ""; DayOpen = "" upcomingTVDisplay(style,matching) // since Oct 29, 2021 **this entry COMBINED with Cartoon Network below... // Show = "thomasfriends"; Title = "Thomas & Friends: All Engines Go" // Episode = "Now Streaming" // Link = "tv/thomasfriends/index.htm" // Channel = "Netflix" // YearOpen = "NOW"; MonthOpen = ""; DayOpen = "" // upcomingTVDisplay(style,matching) // since Sep 13, 2021 // Show = "thomasfriends"; Title = "Thomas & Friends: All Engines Go" // Episode = "Now Streaming" // Link = "tv/thomasfriends/index.htm" // Channel = "Cartoon Network" // YearOpen = "NOW"; MonthOpen = ""; DayOpen = "" // upcomingTVDisplay(style,matching) // *** COMBINED ENTRY for THOMAS *** Show = "thomasfriends"; Title = "Thomas & Friends: All Engines Go" Episode = "Now Streaming" Link = "tv/thomasfriends/index.htm" Channel = "Netflix   &   Cartoon Network" YearOpen = "NOW"; MonthOpen = ""; DayOpen = "" upcomingTVDisplay(style,matching) // Since Jun 8, 2018: Show = "treehousedetectives"; Title = "Treehouse Detectives" Episode = "Now Streaming" Link = "tv/treehousedetectives/index.htm" Channel = "Netflix" YearOpen = "NOW"; MonthOpen = ""; DayOpen = "" upcomingTVDisplay(style,matching) // Since Dec 10, 2015: Show = "tumbleleaf"; Title = "Tumble Leaf" Episode = "Now Streaming" Link = "tv/tumbleleaf/index.htm" Channel = "Amazon Prime" YearOpen = "NOW"; MonthOpen = ""; DayOpen = "" upcomingTVDisplay(style,matching) // Since Jan 10, 2017: Show = "lalaloopsy_netflix"; Title = "We’re Lalaloopsy" Episode = "Now Streaming" Link = "tv/lalaloopsy_netflix/index.htm" Channel = "Netflix" YearOpen = "NOW"; MonthOpen = ""; DayOpen = "" upcomingTVDisplay(style,matching) // Show = "curiousgeorge"; Title = "Curious George" // Episode = "Season 10 debuts on Hulu!" // Link = "tv/curiousgeorge/index.htm" // Channel = "Hulu" // YearOpen = "2020"; MonthOpen = "UNKNOWN"; DayOpen = "" // upcomingTVDisplay(style,matching) // Show = "thomasfriends"; Title = "Thomas & Friends" // Episode = "Season 25 debuts on Netflix!" // Link = "tv/thomasfriends/index.htm" // Channel = "Netflix" // YearOpen = "2021"; MonthOpen = "UNKNOWN"; DayOpen = "" // upcomingTVDisplay(style,matching) // missing data: IF there was a Lalaloopsy episode on Jan 10, 2016, I missed it } // keep this bracket here to end the function upcomingTV