// ---lists productions--- var Show var Title var Featuring 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 upcomingPlaysDisplay function: function upcomingPlaysDisplay(type,data) { Show = (" "+Show+" ") if (type == "FindShow" && Show.indexOf(" "+data+" ") >= 0) { Found = "yes"} if (type == "FindMonth" && data == MonthOpen) { Found = "yes"} if (type == "LISTOFCITIES" && Show.indexOf(" "+data+" ") >= 0) { document.write(""+City+", "+State+" ... ")} if (type == "THEATREHISTORY" && Theatre.indexOf(data) != -1 && (!Extra || Extra == City)) { document.write("
  • ") document.write(MonthOpen+" "+YearOpen+" - "+Title+" "+Featuring+"
    ") document.write("")} if (type == "PRODUCTIONHISTORY" && Show.indexOf(" "+data+" ") >= 0) { document.write("") document.write(" "+Theatre+"") document.write(" ("+City+", "+State+")") document.write("")} if (type == "PNTEST") { document.write("") document.write(""+Title+"
    ") document.write(" "+Theatre+"") document.write("["+Show+"] "+Featuring+"
    ") document.write(" ("+City+", "+State+")") document.write("")} if (type == "CALENDARMONTH" && data == MonthOpen) { document.write(""+Title+" "+Featuring+"
    ") document.write(""+MonthOpen+" "+DayOpen) if(MonthClose) {document.write(" - ")} else {document.write(" ")} document.write(MonthClose+" "+DayClose+"
    ") document.write(City+", "+State+"
    ") document.write("

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

  • "+Theatre+"
    ") document.write(""+MonthOpen+" "+DayOpen) if(MonthClose) {document.write(" - ")} else {document.write(" ")} document.write(MonthClose+" "+DayClose+"
    ") document.write(City+", "+State+"
    ") document.write("

    ")} if (type == "PLAYOPENING" && Show.indexOf(" "+data+" ") >= 0 && MonthWord == MonthOpen && theDay == DayOpen) { document.write("
    ") document.write(""+Title+" ") document.write("opens tonight in ") document.write(City+", "+State+".
    ") document.write("("+Theatre+")") document.write("

    ")} if (type == "STATE" && data == State) { document.write(""+MonthOpen+" "+DayOpen) if(MonthClose) {document.write(" - ")} else {document.write(" ")} document.write(MonthClose+" "+DayClose+" - ") document.write(City+"
    ") document.write("

    ") document.write("

    ")} if (type == "MAPSTATE" && data == State) { document.write("
    "+Title+"
    ") document.write("   ") document.write(" ("+City+")")} if (type == "PLUG" && data == "Today" && MonthWord == MonthOpen && theDay == DayOpen) { document.write(""+Title+" opens tonight in "+City+", "+State+"!!") document.write("   ")} if (type == "PLUG" && data == "Today" && MonthWord == MonthClose && theDay == DayClose) { document.write(""+Title+" closes tonight in "+City+", "+State+"!!") document.write("   ")} if (type == "PLUG" && data == "Tomorrow" && MonthWord == MonthOpen && theDay+1 == DayOpen) { document.write("."+Title+" opens tomorrow in "+City+", "+State+"!!") document.write("   ")} if (type == "PLUG" && data == "Tomorrow" && MonthWord == MonthClose && theDay+1 == DayClose) { document.write(""+Title+" closes tomorrow in "+City+", "+State+"!!") document.write("   ")} BlankAll() } function upcomingPlays(style,matching,optional) { Found = "no" Extra = optional Show = "dphd pra cos"; Title = "The Messy Adventures of Dick Piston, Hotel Detective" Featuring = "(Prague-nosis! and Cosmetic Perjury)" Link = "pndphd08.htm#GrandePrairie" Theatre = "Grande Prairie Live Theatre" City = "Grande Prairie"; State = "Alberta, Canada" YearOpen = "2008"; MonthOpen = "May"; DayOpen = "8"; MonthClose = "May"; DayClose = "24" upcomingPlaysDisplay(style,matching) // Show = "misc"; Title = "Radio Play 2008" // Featuring = "" // Link = "" // Theatre = "Rocket City FurMeet" // City = "Huntsville"; State = "AL" // YearOpen = "2008"; MonthOpen = "May"; DayOpen = "23"; MonthClose = "May"; DayClose = "25" // upcomingPlaysDisplay(style,matching) Show = "jeff"; Title = "Jeff Goode & Toby Huss at Hollins University" Featuring = "" Link = "appearances/jeff_roanoke08.htm" Theatre = "Hollins University" City = "Roanoke"; State = "VA" YearOpen = "2008"; MonthOpen = "Jun"; DayOpen = "20"; MonthClose = ""; DayClose = "" upcomingPlaysDisplay(style,matching) Show = "noshame"; Title = "No Shame Roanoke" Featuring = "(featuring Jeff Goode)" Link = "http://www.noshame.org/roanoke/index.htm" Theatre = "No Shame Theatre" City = "Roanoke"; State = "VA" YearOpen = "2008"; MonthOpen = "Jun"; DayOpen = "20"; MonthClose = ""; DayClose = "" upcomingPlaysDisplay(style,matching) Show = "por"; Title = "Love Loves a Pornographer" Featuring = "[reading]" Link = "pnpor08.htm#Roanoke" Theatre = "Mill Mountain Theatre" City = "Roanoke"; State = "VA" YearOpen = "2008"; MonthOpen = "Jun"; DayOpen = "21"; MonthClose = ""; DayClose = "" upcomingPlaysDisplay(style,matching) //Show = "trc"; Title = "Ring Cycle: The Musical!" //Featuring = "" //Link = "pntrc08.htm#Washington" //Theatre = "Washington National Wagner Society" //City = "Washington"; State = "DC" //YearOpen = "2008"; MonthOpen = "Jul"; DayOpen = "15"; MonthClose = "Jul"; DayClose = "31" // upcomingPlaysDisplay(style,matching) // Show = "por"; Title = "Love Loves a Pornographer" // Featuring = "" // Link = "pnpor08.htm#NewYork" // Theatre = "Reality Aside Theatre" // City = "New York"; State = "NY" // YearOpen = "2008"; MonthOpen = "2008"; DayOpen = ""; MonthClose = ""; DayClose = "" // upcomingPlaysDisplay(style,matching) Show = "poo"; Title = "Poona the Fuckdog and other plays for children" Featuring = "" Link = "pnpoo08.htm#Boston" Theatre = "Boston University" City = "Boston"; State = "MA" YearOpen = "2008"; MonthOpen = "Fall"; DayOpen = ""; MonthClose = ""; DayClose = "" upcomingPlaysDisplay(style,matching) Show = "8rm"; Title = "THE EIGHT: Reindeer Monologues" Featuring = "" Link = "pn8rm08.htm#HermosaBeach" Theatre = "Hermosa Beach Playhouse" City = "Hermosa Beach"; State = "CA" YearOpen = "2008"; MonthOpen = "Nov"; DayOpen = "4"; MonthClose = "Nov"; DayClose = "16" upcomingPlaysDisplay(style,matching) Show = "8rm"; Title = "THE EIGHT: Reindeer Monologues" Featuring = "" Link = "pn8rm08.htm#SanDiego" Theatre = "6th @ Penn Theatre" City = "San Diego"; State = "CA" YearOpen = "2008"; MonthOpen = "Nov"; DayOpen = "20"; MonthClose = "Dec"; DayClose = "23" upcomingPlaysDisplay(style,matching) Show = "8rm"; Title = "THE EIGHT: Reindeer Monologues" Featuring = "" Link = "pn8rm08.htm#AnaheimHills" Theatre = "Chance Theater" City = "Anaheim Hills"; State = "CA" YearOpen = "2008"; MonthOpen = "Nov"; DayOpen = "21"; MonthClose = "Dec"; DayClose = "13" upcomingPlaysDisplay(style,matching) Show = "8rm"; Title = "THE EIGHT: Reindeer Monologues" Featuring = "" Link = "pn8rm08.htm#ChagrinFalls" Theatre = "Chagrin Valley Little Theatre" City = "Chagrin Falls"; State = "OH" YearOpen = "2008"; MonthOpen = "Nov"; DayOpen = "28"; MonthClose = "Dec"; DayClose = "13" upcomingPlaysDisplay(style,matching) Show = "8rm"; Title = "THE EIGHT: Reindeer Monologues" Featuring = "" Link = "pn8rm08.htm#Alexandria" Theatre = "Little Theatre of Alexandria" City = "Alexandria"; State = "VA" YearOpen = "2008"; MonthOpen = "Nov"; DayOpen = ""; MonthClose = ""; DayClose = "" upcomingPlaysDisplay(style,matching) Show = "8rm"; Title = "THE EIGHT: Reindeer Monologues" Featuring = "" Link = "pn8rm08.htm#Fontana" Theatre = "Fontana Community Players" City = "Fontana"; State = "CA" YearOpen = "2008"; MonthOpen = "Dec"; DayOpen = ""; MonthClose = ""; DayClose = "" upcomingPlaysDisplay(style,matching) // Show = "noshame eas"; Title = "The True Meaning of Easter" // Featuring = "" // Link = "http://www.noshame.org/losangeles/index.htm" // Theatre = "No Shame Theatre" // City = "Los Angeles"; State = "CA" // YearOpen = "2009"; MonthOpen = "Apr"; DayOpen = "10"; MonthClose = ""; DayClose = "" // upcomingPlaysDisplay(style,matching) Show = ""; Title = "" Featuring = "" Link = "" Theatre = "" City = ""; State = "" YearOpen = ""; MonthOpen = ""; DayOpen = ""; MonthClose = ""; DayClose = "" upcomingPlaysDisplay(style,matching) } // keep this bracket here to end the function upcomingPlays