// ---lists productions---
var Show
var Title
var Link
var Theatre
var City
var State
var YearOpen
var MonthOpen
var DayOpen
var MonthClose
var DayClose
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 upcomingFilmDisplay function:
function upcomingFilmDisplay(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(""+Theatre+"
")
if(City !="") {
document.write(City+", "+State+"
")}
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(MonthOpen+" "+DayOpen)
if (MonthClose) {
document.write(" - ")
if (MonthOpen != MonthClose) {document.write(MonthClose+" ")}
document.write(DayClose)}
document.write(" --- "+Episode+"!!")
document.write("")
document.write("
")
document.write("