// ---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: function upcomingTVDisplay(type,data) { Show = (" "+Show+" ") if (type == "FindShow" && Show.indexOf(" "+data+" ") >= 0) { Found = "yes"} if (type == "FindShowListings" && Show.indexOf(" "+data+" ") >= 0 && YearOpen != "") { Found = "yes"} if (type == "CALENDAR" && YearOpen != "") { // 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+" - ")} document.write(Episode+"
") document.write("

")} if (type == "PAGE" && Show.indexOf(" "+data+" ") >= 0 && YearOpen != "") { // 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 == "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 Show = "americandragon" Title = "American Dragon: Jake Long" YearOpen = "" upcomingTVDisplay(style,matching) // Next section is for EPISODE PREMIERES and other EVENTS Show = "americandragon"; Title = "American Dragon: Jake Long" Episode = "on Disney XD" Link = "tv/americandragon/index.htm" Channel = "Disney XD" YearOpen = "2012"; MonthOpen = "2012"; DayOpen = "" upcomingTVDisplay(style,matching) // Show = "governator"; Title = "The Governator" // Episode = "on TBA Channel" // Link = "tv/governator/index.htm" // Channel = "TBA Channel" // YearOpen = "2011"; MonthOpen = "2011"; 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 = "2010"; DayOpen = "" // upcomingTVDisplay(style,matching) } // keep this bracket here to end the function upcomingTV