// global variables

var play201000 = new Array("PosterFile", "EventBriteLink", "Dates", 
                           "Theatre", "GoogleMapLink",
                           "Play", "Playwright", "Director", 
                           "AdultPricing", "SeniorPricing", "Fees", 
                           "AltTicketAgent", 
                           "AltTicketLink", 
                           "SYNOPSIS");
var play201001 = new Array("", "eleventhhouse", "March 25, 2010, 6-8 p.m.", 
                           "John Paul II Polish-Canadian Cultural Centre", "http://maps.google.ca/maps?f=q&source=s_q&hl=en&geocode=&q=4300+Cawthra+Road,+Mississauga,+ON&sll=43.614166,-79.627061&sspn=0.010999,0.010514&ie=UTF8&hq=&hnear=4300+Cawthra+Rd,+Mississauga,+Peel+Regional+Municipality,+Ontario&ll=43.61593,-79.627061&spn=0.006991,0.013797&z=16&iwloc=A", 
                           "Doors Open at Eleventh House to the Company and 2010 Season Launch", "", "", 
                           "35.00", "", "N", 
                           "Eventbrite", 
                           "", 
                           "The official launch of Eleventh House Performing Arts dawns the beginning of a new dimension to the performing arts culture of Mississauga and the GTA.<br/><br/>Eleventh House Performing Arts will be the first of its kind to represent our rich and diverse cultural society under a single performing arts platform.<br/><br/>We invite you to join us and learn more about us at our launch with a stand up/sit down extended multicultural cocktail hour (including: bar & cocktail snacks):<ul><li>On stage performances by Eleventh House Performing Arts</li><li>Artwork display from The Newcomers Centre of Peel</li><li>Keynote speeches from prominent dignitaries from all three levels of government</li><li>Keynote speeches from Eleventh House Performing Arts</li><li>Summary of Eleventh House Performing Arts 2010 Season and first look at the 2011 Season</li><li>Automatic entry for Door Prizes to be drawn at the end of the evening</li></ul><br/><center><strong>For each ticket purchase to this event, receive one free admission to either THE PROFESSIONAL or A YEAR IN THE DEATH OF EDDIE JESTER</strong></center><br/>We look forward to seeing you there!");
var play201002 = new Array("TheProfessional2.jpg", "", "APRIL 16 - 24, 2010", 
                           "Grace Community Church", "http://maps.google.ca/maps?f=q&source=s_q&hl=en&geocode=&q=6670+Campobello+Road,+Mississauga,+ON&sll=43.606926,-79.73203&sspn=0.011,0.010514&ie=UTF8&hq=&hnear=6670+Campobello+Rd,+Mississauga,+Peel+Regional+Municipality,+Ontario&ll=43.609855,-79.732504&spn=0.005329,0.013797&z=16&iwloc=A", 
                           "THE PROFESSIONAL", "Dusan Kovacevic", "Andrew Terry Pasieka", 
                           "35.00", "25.00", "Y2", 
                           "Eventbrite", 
                           "", 
                           "Somewhere in Eastern Europe, a strange man comes into the office of a publishing company that was once a powerful printing house. But now, like the politics of the post communist era, the company is falling on harder times.<br /><br />The current chief of the publishing house is called Teya, who was once a professor and a political dissident. He carries on openly in a bohemian fashion, which is very much in evidence in the nature of his affair with his secretary. He is reluctant to see the strange man, but invites him into his office. The man, named Luke, takes Teya through a series of flashbacks, where it soon becomes evident that the stranger knows more about the publisher than the publisher knows about himself.<br /><br />The play ends with a surprising twist and the questions: Where does reality end and where does imagery begin?<br /><br />***** Nominated for the Cannes Festival Palme D'Or. *****<br />***** Winner of the Montr�al World Film Festival *****");
var play201003 = new Array("EddieJester2.jpg", "ehpa201003", "APRIL 30 - MAY 8, 2010", 
                           "Grace Community Church", "http://maps.google.ca/maps?f=q&source=s_q&hl=en&geocode=&q=6670+Campobello+Road,+Mississauga,+ON&sll=43.606926,-79.73203&sspn=0.011,0.010514&ie=UTF8&hq=&hnear=6670+Campobello+Rd,+Mississauga,+Peel+Regional+Municipality,+Ontario&ll=43.609855,-79.732504&spn=0.005329,0.013797&z=16&iwloc=A", 
                           "A YEAR IN THE DEATH OF EDDIE JESTER", "T. Gregory Argall", "Mike McLay", 
                           "35.00", "25.00", "Y2", 
                           "Eventbrite", 
                           "", 
                           "Stand up comic Eddie Jester has been mugged and is comatose. His disembodied spirit offers up jokes and commentary on the events transpiring in his hospital room, including the simultaneous visit to his bedside of his wife and his girlfriend and some non-medical doctor/nurse activities. Eddie's semi-posthumous examination of life, love and human relationships provides funny and very poignant insights while the duplicity of his agent, revelations about his father and the births of two children demonstrate to Eddie that sometimes even your own life carries on without you.<br /><br />***** Winner of the 2002 Samuel French Canadian Playwrights Contest *****");
var play201004 = new Array("Crusoe_96dpi.jpg", "", "AUGUST 18 - 22, 2010",
                           "RBC Theatre, Living Arts Centre", "http://maps.google.ca/maps?f=q&source=s_q&hl=en&geocode=&q=4141+Living+Arts+Drive,+Mississauga+ON+L5B+4B8&sll=43.588491,-79.64571&sspn=0.006574,0.019033&ie=UTF8&hq=&hnear=4141+Living+Arts+Dr,+Mississauga,+Peel+Regional+Municipality,+Ontario+L5B+0A1&ll=43.588629,-79.645922&spn=0.006574,0.019033&z=16",
                           "ROBINSON CRUSOE", "Jack Morley", "Andew Terry Pasieka",
                           "20.00 - 26.00", "15.00", "NS", 
                           "Living Arts Centre", 
                           "http://www.livingartscentre.ca/event_calendar/living_arts/#ROBINSON CRUSOE - Eleventh House Performing Arts", 
                           "A Family Production<br/> Join us this summer for an adventure on the high seas with Robinson Crusoe. This exciting theatre production performed by an all kid cast follows Crusoe's voyage to the West Indies to find hidden treasure.  Along the way he encounters, Man Friday, hungry islanders, grunting gorillas and swaggering pirates. Sure to be fun for the whole family, loaded with lots of audience participation. This classic story shows us that the pathway to our dreams is not always easy.<br/><br/><center>Contact the <b>Living Arts Centre</b> for tickets: 905-306-6000 or 1-888-805-8888<br/>To purchase tickets on-line, click on the Livig Arts Logo<br/><a href='http://www.livingartscentre.ca/event_calendar/living_arts/#ROBINSON CRUSOE - Eleventh House Performing Arts' target='LAC'><img src='LAC_logo_PRO.png' width=75px/></a></center>");
var play201005 = new Array("PC175_poster_1000px_rev2.jpg", "ehpa201005", "NOVEMBER 11 - 13, 2010", 
                           "Clarke Memorial Hall", "http://maps.google.ca/maps?f=q&source=s_q&hl=en&geocode=&q=161+Lakeshore+Rd.+W.,+Mississauga,+ON&sll=49.891235,-97.15369&sspn=40.332981,43.066406&ie=UTF8&hq=&hnear=161+Lakeshore+Rd+W,+Mississauga,+Peel+Regional+Municipality,+Ontario&ll=43.550943,-79.58921&spn=0.005334,0.013797&z=16&iwloc=A", 
                           "WHERE THE CREDIT ENDS... THE PORT BEGAN", "Andrew Terry Pasieka", "Andrew Terry Pasieka", 
                           "25.00", "22.00", "Y2", 
                           "Eventbrite", 
                           "", 
                           "A celebration of Port Credit's 175th anniversary.<br/><br/> A celebration of one hundred and seventy-five years of history at the mouth of the Credit River... the East Bank vs. the West Bank... the Mississauga Indians and the fairies.  Fires... Storms... tragedies... loves lost... and heros.  Commerce in the harbour, and in the lake beyond, and not all of it marine life.  Personalities, businesses &mdash; all a part of the legacy that is Port Credit. In the midst of it all, a lonesome mariner. Who is he? A phantom of the past? A spirit of the present?  Fog is rolling into the harbour; mist is rising on the shoreline. Figures can be barely seen, a story of a town is about to be told. A ghost story &mdash; bring someone with you and hold on tight!<br/><br/><h3>Authorized Ticket Outlets:</h3><h4>The Grange/Heritage Mississauga</h4>, 1921 Dundas Street West (Jane)<br/><h4>Impressionable Gifts</h4>, 74 Lakeshore Road East (Lydia)<br/><h4>Ladybug Harbour</h4>, 189 Lakeshore Road East (Martha)<br/><h4>Turtle Books</h4>, 36 Lakeshore Road East (Denise)<br/><br/>");
var play201006 = new Array("MeganTerry.jpeg", "", "", 
                           "Clarke Memorial Hall", "http://maps.google.ca/maps?f=q&source=s_q&hl=en&geocode=&q=161+Lakeshore+Rd.+W.,+Mississauga,+ON&sll=49.891235,-97.15369&sspn=40.332981,43.066406&ie=UTF8&hq=&hnear=161+Lakeshore+Rd+W,+Mississauga,+Peel+Regional+Municipality,+Ontario&ll=43.550943,-79.58921&spn=0.005334,0.013797&z=16&iwloc=A", 
                           "HOT HOUSE", "Megan Terry", "Andrew Terry Pasieka", 
                           "25.00", "22.00", "Y2", 
                           "", 
                           "", 
                           "Set against the backdrop of the Pacific Northwest in the mid-1950s, this is a poignant yet somewhat crude character study of three generations of eclectic women from one family and the friend of the middle woman.  Despite seeming to be out of control themselves, the women demonstrate an innate ability to dominate and control the men in their lives.<br /><br />On the one hand, the women are at constant odds with one another and with themselves, but that flaw is unable to be exploited by the men.<br /><br />During the course of the play we discover that all the characters are the product of the wars which have touched them earlier in their lives.  Their involvement in the ultimate conflict has been to the detriment of the men and to the benefit of the women.  The result are weak and introverted men but strong and extroverted women.<br /><br />***** Winner of the Guggenheim (American) Literary Award *****");
var play201007 = new Array("SilverDagger2.jpeg", "", "OCTOBER 8 - 16, 2010", 
                           "Clarke Memorial Hall", "http://maps.google.ca/maps?f=q&source=s_q&hl=en&geocode=&q=161+Lakeshore+Rd.+W.,+Mississauga,+ON&sll=49.891235,-97.15369&sspn=40.332981,43.066406&ie=UTF8&hq=&hnear=161+Lakeshore+Rd+W,+Mississauga,+Peel+Regional+Municipality,+Ontario&ll=43.550943,-79.58921&spn=0.005334,0.013797&z=16&iwloc=A", 
                           "SILVER DAGGER", "David French", "", 
                           "25.00", "22.00", "Y2", 
                           "Eventbrite", 
                           "", 
                           "Steve Marsh is a married mystery writer and the protagonist of the play.  The script reads as a gripping thriller but is actually played out mostly in daylight and in the relatively open confines of the Marsh mid-Toronto Rosedale district home.<br /><br />Soon after his third novel is published, Marsh's wife receives a series of phone calls and letters that threaten to destroy their marriage.<br /><br /><ul><li>adultery, blackmail, murder, and a figure lurking in the rain;<li>people either seeming to be two different characters or one and the same person;<li>characters alternating between killers or victims; and<li>constantly changing alliances between different groups of characters</ul><br />All of these classic elements of Marsh's fiction soon become part of his life.<br /><br />Originally produced by CanStage in 1993, it was nominated for the Arthur Ellis<br />***** Awarded as the Best Mystery Play of the Year in Canada *****");

var play201101 = new Array("", "ehpa201101", "April 28, 2011, 7-10 p.m.", 
                           "John Paul II Polish-Canadian Cultural Centre", "http://maps.google.ca/maps?f=q&source=s_q&hl=en&geocode=&q=4300+Cawthra+Road,+Mississauga,+ON&sll=43.614166,-79.627061&sspn=0.010999,0.010514&ie=UTF8&hq=&hnear=4300+Cawthra+Rd,+Mississauga,+Peel+Regional+Municipality,+Ontario&ll=43.61593,-79.627061&spn=0.006991,0.013797&z=16&iwloc=A", 
                           "The SOUND of the ARTS", "", "", 
                           "", "", "Y2", 
                           "Eventbrite", 
                           "", 
                           "We want to embrace the potential that the arts has to enrich any community where it is allowed to flourish.<br /><br />We want to tap into your emotions and your senses.<br /><br />We call it<br /><center><img src='Posters/TheSoundofTheArts_logo300px.gif'></center><br /><table><tr><td><center>Featuring<br /><br /><strong>LIBERTY SILVER</strong> One of North America's predominant jazz vocalists and Canada's original Diva.<br /><a href='http://www.libertysilvermusic.com'><img src='Posters/LibertySilver3_200px.jpg'></a></center></td><td><center><br />and<br /><strong>NARIA</strong> An emotionally charged brand of contemporary Pop and Opera that will reach your heart and soul.<br /><a href='http://www.nariagroup.com' target='performers'><img src='Posters/Naria_poster6_200px.jpg'></a></center></td></tr></table><br />Also presenting our multicultural dances and fashion show.<br /><br />Don't miss our red carpet affair!<br /><br />Doors open at 6:30pm, cocktail buffet and cash bar.<br /><br />Tickets are now on sale, at $35 for single and $50 per couple. Corporate tables are also available at several levels.<br /><br />We want you to be part of <strong>THE SOUND</strong>.<br />Because you have to be seen in order to be heard.<br /><br/>In Partnership with <br /><table><tr><td><center><a href='http://www.clmiss.ca' target='Partners'><img src='Posters/CommLiving_195px.jpg'></a></center></td><td><center><a href='http://www.rapportyouth.com' target='Partners'><img src='Posters/RapportLogo_300px.jpg'></a></center></td></tr></table><br /><br /><h3>Authorized Ticket Outlets:</h3><h4><a href='http://maps.google.ca/maps?q=impressionable+gifts&ie=UTF8&hl=en&ll=43.552965,-79.584639&spn=0.009906,0.032938&z=16&iwloc=A' target='Map'>Impressionable Gifts</a></h4>, 74 Lakeshore Road East, Port Credit (Lydia)<br/><h4><a href='http://maps.google.ca/maps?ie=UTF8&q=ladybug+harbour+port+credit&fb=1&gl=ca&hq=ladybug+harbour&hnear=Port+Credit,+Mississauga,+ON&cid=0,0,5736328461745127428&ll=43.557599,-79.579446&spn=0.009905,0.032938&z=16&iwloc=A' target='Map'>Ladybug Harbour</a></h4>, 189 Lakeshore Road East, Port Credit (Martha)<br/><h4><a href='http://maps.google.ca/maps/place?ie=UTF8&q=niceys+mississauga&fb=1&gl=ca&hq=niceys&hnear=Mississauga,+ON&cid=13018995700225895886&z=14' target='Map'>Nicey's Food Mart</a></h4>, 325 Central Parkway West, Mississauga<br/>");
var play201102 = new Array("POV2011_Posters_11x17.jpg", "", "Sept. 29 - 30, 2011 &mdash; CANCELLED", 
                           "The Living Arts Centre &mdash; RBC Theatre", "http://maps.google.ca/maps?f=q&source=s_q&hl=en&geocode=&q=4141+Living+Arts+Drive,+Mississauga+ON",
                           "Point of Viewing", "Todd McGinnis", "Todd McGinnis", 
                           "25.00", "22.00", "Y3", 
                           "Living Arts Centre", 
                           "", 
                           "");
var play201201 = new Array("", "ehpa201201", "Wednesday, March 7, 2012, 7 p.m.-12 a.m.", 
                           "My Apartment", "http://maps.google.ca/maps?q=My+Apartment,+Mississauga,+ON&hl=en&sll=43.625739,-79.677537&sspn=0.083626,0.10746&vpsrc=0&hq=My+Apartment,&hnear=Mississauga,+Peel+Regional+Municipality,+Ontario&t=m&z=13", 
                           "The SOUND of the ARTS", "", "", 
                           "", "", "Y2", 
                           "Eventbrite", 
                           "", 
                           "Welcome to our second annual fundraising event<br /><br /><center><img src='Posters/TheSoundsOfTheArtsPoster2012_600px.jpg' width='550px'></center>");
var play201202 = new Array("Looking2011_ProductionPoster.jpg", "", "March 22 - 24, 2012", 
                           "Milton Centre for the Arts &mdash; Minmaxx Theatre", "http://maps.google.ca/maps?f=q&source=s_q&hl=en&geocode=&q=1010+Main+Street+East+Milton+Ontario",
                           "Looking", "Norm Foster", "Lisa Lamothe", 
                           "27.00", "22.00", "Y3", 
                           "Milton Centre for the Arts", 
                           "https://secure1.tixhub.com/milton/Procurement/lindexfmk.asp?cboPerformances=98&cboEvent=60&iEvents_id=60", 
                           "Val's an OR nurse, Andy's in the storage business, Nina's a police officer and Matt's a radio morning show host. They're middle-aged, single and looking. <br/><br/>Val agrees to meet Andy after answering his personal ad in the newspaper. Nina and Matt are coaxed into joining their friends for support. High romance and contagious laughter are the result.<br/><br/>Presented in partnership with<br/><center><a href='http://www.rapportyouth.com' target='Partners'><img src='Posters/RapportLogo_300px.jpg'></a></center><br/>");

// ***** List of Productions *****
// List all production variables to display on the production page
// !!!!! Don't forget to update hsmenu01 and hslink01 variables in the 
//       EHPAMenu2.js script file for it to show up in the drop down menu
var playArray = new Array(play201201, play201202);


// ***** FUNCTIONS -- don't touch unless you really know what you're doing!
function getProductions(season) { //***** display current year's Productions in Progress
	var prodPoster          = 0;
	var prodEventBrite      = 1;
	var prodDates           = 2;
	var prodLocation        = 3;
	var prodMap             = 4;
	var prodTitle           = 5;
	var prodPlaywright      = 6;
	var prodDirector        = 7;
	var prodPricingReg      = 8;
	var prodPricingS        = 9;
	var prodFees            = 10;
    var prodAltTicketAgent  = 11;
    var prodAltTicketLink   = 12;
	var prodSynopsis        = 13;
	var playInfo = new Array();
	string="";
	string+="              <table width=100%>";
	for (var i=0; i < playArray.length; i++) {

	  playInfo = playArray[i];

  	  string+="                <tr>";
	  string+="                  <td colspan='4'><hr />";
	  string+="                    <a name='" + hslink01[i] + "'></a>";
      if (playInfo[prodDates] != "") {
	  	string += "                    <h4>" + playInfo[prodDates] + "</h4>&nbsp&ndash;";
	  }
      string += " ELEVENTH HOUSE PRESENTS at <a href='" + playInfo[prodMap] + "' target='locationMap' title='Click to view map'>" + playInfo[prodLocation] + "</a><br />";
      if (playInfo[prodPoster]!="") { // if the Poster file exists
        string+="                    <a href='Posters/" + playInfo[prodPoster] + "' target='poster'><img class=bioPicLeft src='Posters/" + playInfo[prodPoster] + "'></a>";
      }
	  string+="                    <p class='playTitle'>" + playInfo[prodTitle].toUpperCase() + "</p>";

	  if (playInfo[prodPlaywright]!="") { // if Playwright info exists
	    string+="                    <h4>" + play201000[prodPlaywright] + ": </h4> " + playInfo[prodPlaywright] + "<br />";
	  }
	  if (playInfo[prodDirector]!="") { // if Director info exists
	    string+="                    <h4>" + play201000[prodDirector] + ": </h4> " + playInfo[prodDirector] + "<br />";
          }
	  if (playInfo[prodSynopsis]!="") { // if a Synopsis exists
	    string+="                    <h4>" + play201000[prodSynopsis] + ": </h4> " + playInfo[prodSynopsis];
	  }
          string+="                  </td>";
          string+="                </tr>";
          string+="                <tr class='middleAlign' height='75px'>";
          string+="                  <td width='300px'>";
	      string+="                  </td>";
          if (playInfo[prodSynopsis] != "") { // if a Synopsis exists
            string += "                  <td class='rightAlign' style='vertical-align:middle; white-space:nowrap;'>";
            if (playInfo[prodPricingReg]!= "" || playInfo[prodPricingS]!= ""){
                string += "                    <strong>Pricing: </strong>&nbsp;&nbsp;";
            }
            if (playInfo[prodTitle] == "ROBINSON CRUSOE") {
                if (playInfo[prodPricingS] != "") {
                    string += "Children aged 3 to 12 $ " + playInfo[prodPricingS]
                    if (playInfo[prodFees] == "Y") {
                        string += "<a href='#sup2'><sup>2</sup></a>"
                    }
                    string += "&nbsp;<br/>";
                }
                if (playInfo[prodPricingS] != "") {
                    string += "Regular ";
                }
                string += "$ " + playInfo[prodPricingReg]

                string += "&nbsp;";
                string += "                  </td>";
                string += "                  <td class='rightAlign'>";
            } else {
                if (playInfo[prodPricingS] != "") {
                    string += "Senior/Student<a href='#sup1'><sup>1</sup></a> $ " + playInfo[prodPricingS]
                    string += "&nbsp;<br/>";
                }
                if (playInfo[prodPricingS] != "") {
                    string += "Regular $ ";
                }
                string += playInfo[prodPricingReg]
                string += "&nbsp;";
                string += "                  </td>";
                string += "                  <td class='rightAlign'>";
                if (playInfo[prodEventBrite] != "") {
                    string += "                    <a class='tickets' href='http://" + playInfo[prodEventBrite] + ".eventbrite.ca' target='tickets'><img src='Blank.gif' width='191px' height='75px' border=0></a>";
                } else if (playInfo[prodAltTicketLink] != "") {
                    string += "                    <a class='tickets' href='" + playInfo[prodAltTicketLink] + "' target='tickets'><img src='Blank.gif' width='191px' height='75px' border=0></a>";
                } else if (playInfo[prodEventBrite] == "" && playInfo[prodAltTicketLink] == "") {
                    string += "<h4>Tickets available soon</h4>";
                }
                string += "<tr>";
                string += "<td>";
                string += "                    <a href='#topOfPage' style='white-space:nowrap;'>Back To Top</a>";
                string += "</td>";
                string += "<td class='rightAlign' colspan='2' nowrap>";
                string += "                    Ticket purchase via <strong>" + playInfo[prodAltTicketAgent] + "</strong>";
                if (playInfo[prodFees] == "Y2") {
                    string += "<a href='#sup2'><sup>2</sup></a>"
                } else if (playInfo[prodFees] == "Y3") {
                    string += "<a href='#sup3'><sup>3</sup></a>"
                }
                string += "</td></tr>";
            }
        string+="                  </td>";
        }
    string+="                </tr>";
	}
	string+="              </table><hr />";
	string+="              <a name=sup1></a><sup>1</sup> Proof of status may be required at the time of event<br/>";
	string+="              <a name=sup2></a><sup>2</sup> A processing fee of 2.5% + $1.15 will be added when using Eventbrite or credit card for payment.  HST is included in stated price<br/>";
	string+="              <a name=sup3></a><sup>3</sup> A processing fee will be applied by the venue at time of purchase as stated in accordance to the venue sales policy.  HST is included in stated price";

  	objDiv = document.getElementById("productions");
	if(objDiv){
	  objDiv.innerHTML=string;
	}else{
	  objDiv.innerHTML="No header could not be created";
	}
} //+++++ getProductions
