// ---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 == "SAMPLE" && Show.indexOf(" "+data+" ") >= 0) { document.write("") document.write("") document.write(" "+Theatre+"") document.write(" ("+City+", "+State+")") document.write(""+MonthOpen+" "+YearOpen) 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("

    ")} // DIRECTINGHISTORY similar to PRODUCTIONHISTORY, but lists Title and Author rather than theatre company if (type == "DIRECTINGHISTORY" && Show.indexOf(" "+data+" ") >= 0) { document.write("

    ") document.write(" "+Title+"") 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 || (data == "INTERNATIONAL" && State.length > 2))) { document.write(""+MonthOpen+" "+DayOpen) if(MonthClose) {document.write(" - ")} else {document.write(" ")} document.write(MonthClose+" "+DayClose+" - ") document.write(City) if (data == "INTERNATIONAL") {document.write(", "+State)} document.write("
    ") document.write("

    ") document.write("

    ")} if (type == "MAPSTATE" && (data == State || (data == "INTERNATIONAL" && State.length > 2))) { 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 = "prod dir rewind2 onmyway thankyou"; Title = "Plane Talk" Featuring = "(10 new plays by SkyPilot Playwrights Wing)" Link = "plays/pnmisc12_losangeles.htm#LosAngeles" Theatre = "SkyPilot Theatre Company" City = "Los Angeles"; State = "CA" YearOpen = "2012"; MonthOpen = "Jan"; DayOpen = "21"; MonthClose = "Feb"; DayClose = "26" upcomingPlaysDisplay(style,matching) Show = "aud"; Title = "A.C.T.F. Region IV" Featuring = "(Irene Ryan competition)" Link = "plays/pnactf12.htm#DaytonaBeach" Theatre = "American College Theatre Festival / Daytona State College" City = "Daytona Beach"; State = "FL" YearOpen = "2012"; MonthOpen = "Jan"; DayOpen = "31"; MonthClose = "Feb"; DayClose = 4 upcomingPlaysDisplay(style,matching) Show = "alabaster"; Title = "The Emancipation of Alabaster McGill" Featuring = "" Link = "pnalabaster12.htm#Roanoke" Theatre = "Studio Roanoke" City = "Roanoke"; State = "VA" YearOpen = "2012"; MonthOpen = "Feb"; DayOpen = "1"; MonthClose = "Feb"; DayClose = "12" upcomingPlaysDisplay(style,matching) Show = "apj"; Title = "Georgia Thespian Conference" Featuring = "(featuring The Apostle John)" Link = "plays/pnthespians12.htm#Columbus" Theatre = "Georgia Thespians" City = "Columbus"; State = "GA" YearOpen = "2012"; MonthOpen = "Feb"; DayOpen = "9"; MonthClose = "Feb"; DayClose = "11" upcomingPlaysDisplay(style,matching) Show = "swash lew harlot"; Title = "Your Swash is Unbuckled" Featuring = "(featuring Lewd Loves of a Lusty Laundress and The Harlot & the Highwayman)" Link = "plays/pnswash12.htm#Rutherfordton" Theatre = "Rutherford Community Theatre" City = "Rutherfordton"; State = "NC" YearOpen = "2012"; MonthOpen = "Feb"; DayOpen = "10"; MonthClose = "Feb"; DayClose = "11" upcomingPlaysDisplay(style,matching) Show = "dphd dp_10min"; Title = "Torch Songs" Featuring = "(featuring Murder by Midnight)" Link = "pndphd12.htm#Columbus" Theatre = "Shadowbox Live" City = "Columbus"; State = "OH" YearOpen = "2012"; MonthOpen = "Feb"; DayOpen = "29"; MonthClose = "May"; DayClose = "23" upcomingPlaysDisplay(style,matching) // Show = "poo"; Title = "Poona the Fuckdog and other plays for children" // Featuring = "" // Link = "pnpoo12.htm#Kingsville" // Theatre = "Alpha Psi Omega / Texas A&M University-Kingsville" // City = "Kingsville"; State = "TX" // YearOpen = "2012"; MonthOpen = ""; DayOpen = ""; MonthClose = ""; DayClose = "" // upcomingPlaysDisplay(style,matching) Show = "dphd dp_10min"; Title = "Murder By Midnight" Featuring = "" Link = "pndphd12.htm#Springfield" Theatre = "Missouri State University" City = "Springfield"; State = "MO" YearOpen = "2012"; MonthOpen = "Apr"; DayOpen = "20"; MonthClose = "Apr"; DayClose = "21" upcomingPlaysDisplay(style,matching) Show = "fursona"; Title = "Fursona Non Grata" Featuring = "" Link = "plays/pnfursona12.htm#Wilburton" Theatre = "Wild Nights" City = "Wilburton"; State = "OK" YearOpen = "2012"; MonthOpen = "Apr"; DayOpen = "26"; MonthClose = "Apr"; DayClose = "30" upcomingPlaysDisplay(style,matching) Show = "aesopproject aesopproject_2crabs"; Title = "The Aesop Project" Featuring = "" Link = "plays/pnaesopproject12.htm#NorthHollywood" Theatre = "SkyPilot Theatre Company" City = "North Hollywood"; State = "CA" YearOpen = "2012"; MonthOpen = "May"; DayOpen = ""; MonthClose = ""; DayClose = "" upcomingPlaysDisplay(style,matching) Show = "turfpirates"; Title = "Turf Pirates" Featuring = "" Link = "plays/pnturfpirates12.htm#NorthLiberty" Theatre = "Pass Four Productions" City = "Middle Amana"; State = "IA" YearOpen = "2012"; MonthOpen = "May"; DayOpen = ""; MonthClose = ""; DayClose = "" upcomingPlaysDisplay(style,matching) // Show = "aesopera aesopera_wishes"; Title = "Æsopera" // Featuring = "" // Link = "plays/pnaesopera12.htm#Pasadena" // Theatre = "Social Arts / Opera Posse" // City = "Pasadena"; State = "CA" // YearOpen = "2012"; MonthOpen = "Jun"; DayOpen = "15"; MonthClose = "Jul"; DayClose = "1" // upcomingPlaysDisplay(style,matching) // Show = "jeff fursona"; Title = "Fursona Non Grata" // Featuring = "" // Link = "appearances/jeff_watonga12.htm" // Theatre = "Oklacon X" // City = "Watonga"; State = "OK" // YearOpen = "2012"; MonthOpen = "Oct"; DayOpen = "17"; MonthClose = "Oct"; DayClose = "22" // upcomingPlaysDisplay(style,matching) Show = "8rm"; Title = "THE EIGHT: Reindeer Monologues" Featuring = "" Link = "pn8rm12.htm#AnaheimHills" Theatre = "Chance Theater" City = "Anaheim Hills"; State = "CA" YearOpen = "2012"; MonthOpen = "Nov"; DayOpen = "26"; MonthClose = "Dec"; DayClose = "22" upcomingPlaysDisplay(style,matching) Show = "8rm"; Title = "THE EIGHT: Reindeer Monologues" Featuring = "" Link = "pn8rm12.htm#Redding" Theatre = "WE Multimedia Theatre Group" City = "Redding"; State = "CA" YearOpen = "2012"; MonthOpen = "Nov"; DayOpen = "29"; MonthClose = "Dec"; DayClose = "8" upcomingPlaysDisplay(style,matching) // Show = "dir salome"; Title = "Salome Gone Wilde" // Featuring = "(directed by Jeff Goode & Robert William Rusch)" // Link = "plays/pnsalome12.htm#LosAngeles" // Theatre = "SkyPilot Theatre Company" // City = "Los Angeles"; State = "CA" // YearOpen = "2012"; MonthOpen = ""; DayOpen = ""; MonthClose = ""; DayClose = "" // upcomingPlaysDisplay(style,matching) Show = "xmasogre"; Title = "The Christmas Ogre" Featuring = "" Link = "plays/pnxmasogre12.htm#SierraMadre" Theatre = "Sierra Madre Playhouse" City = "Sierra Madre"; State = "CA" YearOpen = "2012"; MonthOpen = "Dec"; DayOpen = ""; MonthClose = ""; DayClose = "" upcomingPlaysDisplay(style,matching) // Show = "12playsofxmas"; Title = "12 Plays of Christmas" // Featuring = "" // Link = "plays/pnmisc12_losangeles.htm#LosAngeles" // Theatre = "SkyPilot Theatre Company" // City = "Los Angeles"; State = "CA" // YearOpen = "2012"; MonthOpen = "Dec"; DayOpen = ""; 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