var i_count = 0;
var s_gridName = "";
var i_gridWidth = 6;
var i_bioCount = 0;
var i_prodRoles = 0;
var i_actRoles = 0;
var i_pastProdTableWidth = 0;
var i_seasonShowCount = 0;
var i_showCount = 0;
var i_showRoleCount = 0;
var s_paleColours = new Array();
var s_darkColours = new Array();
var overImages = new Array();
var re = /\s/g;
s_paleColours[0] = "#5AB4EC";
s_paleColours[1] = "#4E9DDC";
s_paleColours[2] = "#4081C7";
s_paleColours[3] = "#204197";
s_paleColours[4] = "#2A53A4";
s_paleColours[5] = "#3366B3";
s_paleColours[6] = "#020170";
s_darkColours[0] = "#BEBED8";
s_darkColours[1] = "#9898C1";
s_darkColours[2] = "#7C7CB1";
s_darkColours[3] = "#C9494BF";
s_darkColours[4] = "#8383DF";
s_darkColours[5] = "#020170";
s_darkColours[6] = "#BEBED8";
var b_IE = (navigator.appName.indexOf("Internet Explorer") > -1);
var v_webMasterURL = "mailto:webmaster@epicentretheatre.org.au?subject=" + escape("Epicentre Web-site Inquiry");
var v_contactURL = "mailto:jenny2@epicentretheatre.org.au?subject=" + escape("Epicentre Inquiry") + "&body=" + escape("Dear Jenny,");

function click()
{
//  if (event.button==2) {
//    alert('Your right mouse button has been disabled.');
//  }
}

function setHeader(f_text,f_colour1,f_colour2)
{
  document.write("<h1>"+((typeof f_colour1 == "undefined") ? f_text : ((typeof f_colour2 == "undefined") ? rainbow(f_text,f_colour1,f_colour1) : rainbow(f_text,f_colour1,f_colour2)))+"</h1>");
}

function setTitle(f_title)
{
  document.title = f_title;
  parent.document.title = f_title;
}

function setSubTitle(f_subtitle)
{
  document.write("<h3>"+f_subtitle+"</h3>");
}

function startGrid(f_title, f_name, f_width)
{
	i_count = 0;
	s_gridName = f_name;
	i_gridWidth = f_width;

	document.write("<a name=\""+s_gridName+"\"></a><center>");
	if (typeof f_title == "string" && f_title.length > 0) {
		document.write("<a href=#top title=\"Back to the 'Quick jump menu'\">"+
		((f_title.substr(f_title.length-4,4) == ".gif")?"<img src=\""+f_title+"\" border=0><br>":"<span class=heading>"+f_title+"</span>")+
		"</a><br>");
	}
	
	document.write("<table border=0 cellspacing=8><tr>");
}

function endGrid()
{
	document.write("</tr></table><br></center>");
}

/******************************************************************
 Start Button functions: used for left-hand menu
 ******************************************************************/
function addButton(f_button, f_url)
{
  if (typeof f_url == "undefined") {
	var f_url = f_button+".html";
  }
  overImages[f_button] = new Image(121,33);
  overImages[f_button].src = "images/button_"+f_button+"_over.gif";
  document.write("<a href="+f_url+" target=content>"+
	               "<img src=\"images/button_"+f_button+".gif\" border=0 "+
	                "onMouseOver='buttonOver(this, \""+f_button+"\");' "+
	                "onMouseOut='this.src=\"images/button_"+f_button+".gif\";'>"+
	             "</a><br>");
}

function buttonOver(f_object, f_button) {
  f_object.src = overImages[f_button].src;
}

function buttonOut(f_button) {
  this.src = overImages[f_button].src;
}
/******************************************************************
 End Button functions
 ******************************************************************/

function addSite(f_name, f_image, f_url, f_height, f_width, f_window)
{
	if ((i_count%i_gridWidth) == 0 && i_count>0) {
  			document.write("</tr><tr>");
  	}
  	
  	var imageDimensions = "";
	if (typeof f_height == "number" && typeof f_width == "number") {
		imageDimensions = " height=" + f_height + " width=" + f_width;
	}

  	document.write("<td height=100%><table border=1 bgcolor=darkorange width=100% height=100% cellpadding=2><tr height=100%><td height=100% align=center valign=center bgcolor=white>");
  	
  	if (f_url != "") {
  		if (f_image != "") {
  			document.write("<a href=\""+f_url+"\" target=\""+((typeof f_window == "undefined") ? "linkwindow" : f_window)+"\"><img border=0 src=\""+f_image+"\""+imageDimensions+" title=\"Go to '"+((f_name == "")?(f_image.substr(f_image.lastIndexOf("/")+1,1).toUpperCase()+f_image.substring(f_image.lastIndexOf("/")+2,f_image.indexOf("."))):f_name)+"'\"></a><br>");
  		}
  		if (f_name != "") {
  			document.write("<a href=\""+f_url+"\" title=\"Go to '"+f_name+"'\" target=\""+((typeof f_window == "undefined") ? "linkwindow" : f_window)+"\" class=contents>"+f_name+"</a>");
  		}
  	}
  	else {
  		if (f_image != "") {
  			document.write("<img border=0 src=\""+f_image+"\""+imageDimensions+"><br>");
  		}
  		document.write("<span class=contents>"+f_name+"</span>");
  	}
	
	document.write("</td></tr></table></td>");
	
  	i_count++;

}

/******************************************************************
 Start News functions: used to add news items to home page
 ******************************************************************/
function startNews(f_title, f_width)
{
	i_count = 0;
	i_gridWidth = f_width;
	document.write("<span class=heading style='color: #FF0000;'>"+f_title+"</span><br>");
	document.write("<table border=0 cellspacing=8><tr>");
}

function endNews()
{
	document.write("</tr></table>For the latest news on Epicentre check out the <a href=latestnews.html>news</a> page.");
}

function addNews(f_text)
{
	if ((i_count%i_gridWidth) == 0 & i_count>0) {
  			document.write("</tr><tr>");
 	}
 	document.write("<td height=100% width="+(100/i_gridWidth)+"%><table border=2 bgcolor=#4E16E4 width=100% height=100%><tr><td align=center valign=top bgcolor=#020166 width=100%>");
	document.write(f_text);
	document.write("</td></tr></table></td>");
  	i_count++;
}
/******************************************************************
 End News functions
 ******************************************************************/

/******************************************************************
 Start Dates functions: used to build table of performance dates
 ******************************************************************/
function startDates()
{
	document.write("<table border=2 cellspacing=3 cellpadding=4 bgcolor=#FFFF99><tr bgcolor=#4E164E height=25%>");
	for (i=0;i<arguments.length;i++) {
		document.write("<td align=center valign=top width=20% class=description><span style='font-size: large; font-weight:bold;'>"+arguments[i]+"</span></td>");
	}
	document.write("</tr>");
}

function endDates()
{
	document.write("</table>");
}

function addDates()
{
	document.write("<tr height=25%>");
	for (i=0;i<arguments.length;i++) {
		if (arguments[i] == "") {
			document.write("<td bgcolor=#020166 align=center valign=center><span style='font-size: large;'>-</span></td>");
		}
		else {
			document.write("<td bgcolor=#BD362A align=center valign=top class=description>"+arguments[i]+"</td>");
		}
	}
	document.write("</tr>");
}
/******************************************************************
 End Dates functions
 ******************************************************************/

function addSubheading(f_name)
{
	if ((i_count%i_gridWidth) == 0 & i_count>0) {
  			document.write("</tr><tr>");
  	}
  	
  			document.write("<td align=center valign=center>"+
  						     "<table border=2 bgcolor=ffcc99>"+
  						       "<tr>"+
  						         "<td align=center valign=center>"+
  						           "<a href=#"+s_gridName+"_home title=\"Back to the beginning of this table\">"+
  						             "<span class=subheading>"+f_name+"</span>"+
  						           "</a>"+
  						         "</td>"+
  						       "</tr>"+
  						     "</table>"+
  						   "</td>");

  	i_count++;
}

function jumpTo()
{
	location.href=document.docform.toc.value;
}

function addFooter(f_imgPfx)
{
  if (typeof f_imgPfx == "undefined") {
    f_imgPfx = "";
  }
  document.write("<br><br><a href="+f_imgPfx+"home.html><img src=\""+f_imgPfx+"images/epi_gold.gif\" width=125 height=94 border=0></a><br>"+
                 "<span class=\"footer\">Epicentre Theatre Company<br><a href="+v_webMasterURL+">webmaster</a></span>");
}

function addMenuLink(f_label,f_url)
{
  document.write("<a class=\"menu\" target=\"content\" href="+f_url+">&nbsp;"+f_label+"&nbsp;</a><br>&nbsp;<br>");
}

function addBioLinks(f_letter)
{
  var s_alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
  document.write("<h3>");
  for (var i=0;i<26;i++) {
    var a = s_alphabet.substring(i,i+1);
    if (a == "U" || a == "X") {
      document.write("<span style=\"color: #ccbbbb;\">"+((a=="I")?"&nbsp;"+a+"&nbsp;":a)+"</span> ");
    }
    else {
      if (typeof f_letter == "string" && a == f_letter) {
        document.write(((a=="I")?"&nbsp;"+a+"&nbsp;":a)+" ");
      }
      else {
        document.write("<a href=\"bios"+a+".html\">"+((a=="I")?"&nbsp;"+a+"&nbsp;":a)+"</a> ");
      }
    }
    if (i<25) {
      document.write(" | ");
    }
  }
  document.write("</h3>");
}

function addCredit(f_role)
{
  document.write("<tr bgcolor="+((i_showRoleCount % 2 == 1)?"#E5E3FB":"#DDDBF0")+"><td align=left valign=top nowrap>"+f_role+":</td><td align=right valign=bottom nowrap>");
  for (var i=1;i<arguments.length;i++) {
  	var re = /\s/g;
  	if (typeof arguments[i+1] == "string" && arguments[i+1] == "") {
  	  var re = /\s/g;
  	  arguments[i+1] = "../../bios/bios" + arguments[i].substr(arguments[i].lastIndexOf(" ")+1,1)+".html#"+arguments[i].replace(re,"_");
  	}
  	if (typeof arguments[i+1] == "string" && arguments[i+1] != "") {
  	  document.write("<a href=\""+arguments[i+1]+"\">");
  	}
  	document.write(arguments[i]);
  	if (typeof arguments[i+1] == "string" && arguments[i+1] != "") {
  	  document.write("</a>");
  	}
  	i++;
  	if (i<arguments.length-1) {
  	  document.write("<br>");
  	}
  }
  document.write("</td></tr>");
  i_showRoleCount++;
}

function addBioJump(f_name)
{
  var re = /\s/g;
  document.write("<li style=\"list-style-image: url(../images/star.gif)\">&nbsp;<a href=#"+f_name.replace(re,"_")+">"+f_name+"</a></li>");
}

function addBio(f_name, f_actingRoles, f_otherRoles, f_photo)
{
  var re = /\s/g;
  document.write("<br><br><a name=\""+f_name.replace(re,"_")+"\"></a><table border=2 bgcolor=#FF99CC cellpadding=8 width=100%><tr><td align=left valign=top bgcolor="+s_paleColours[(i_bioCount) % 7]+" width=100%><table width=100% cellspacing=8><tr>");
  if (typeof f_photo == "string" && f_photo != "") {
  	document.write("<td valign=top><table border=1 bgcolor=#FF9900><tr><td><img src=\"images/"+f_photo+"\" border=0></td></tr></table></td>");
  }
  document.write("<td valign=top align=left width=100%><a href=#top alt='top of page' title='top of page'><h3>"+f_name+"</h3></a><table><tr>");
  if (typeof f_actingRoles == "string" && f_actingRoles != "") {
    document.write("<td valign=top><span class=subsubheading>Acting roles with Epicentre:</span><table cellpadding=2 cellspacing=0>"+f_actingRoles+"</table></td><td>&nbsp;</td>");
  }
  if (typeof f_otherRoles == "string" && f_otherRoles != "") {
    document.write("<td valign=top><span class=subsubheading>Production roles with Epicentre:</span><table cellpadding=2 cellspacing=0>"+f_otherRoles+"</table></td>");
  }
  document.write("</tr></table></td>");
  document.write("</tr></table></td></tr></table>");
  i_bioCount++;
  i_actRoles = 0;
  i_prodRoles = 0;
}

function setSeason(f_year,f_count)
{
  i_seasonShowCount = f_count - 1;
  i_pastProdTableWidth = 100 / f_count;
  document.write("</tr></table><br><a name=\""+f_year+"_home\"></a><a href=#top title=\"Back to the top of the page\"><span class=heading>"+f_year+" Season</span></a><br><table border=0 cellspacing=24><tr>");
  i_showCount = 0;
}

function addGalleryImage(f_showAbbrev,f_imageNum,f_pathPrefix,f_note)
{
  document.write("<td align=center valign=top>"+
                   "<table border=1 bgcolor=#FF9900>"+
                     "<tr>"+
                       "<td>"+
                         "<a href=\""+((typeof f_pathPrefix != "string" || f_pathPrefix == "")?"../../":"")+"showImage.html?show="+f_showAbbrev+"&imageNum="+f_imageNum+"\">"+
		           "<img src=\""+((typeof f_pathPrefix == "string")?f_pathPrefix:"")+f_showAbbrev+((typeof f_imageNum == "undefined")?"":f_imageNum)+"_sml.jpg\" border=0>"+
		         "</a>"+
		       "</td>"+
		     "</tr>"+
		   "</table>"+
		   ((typeof f_note == "string" && f_note != "")?"<span class=description>"+f_note+"</span>":"")+
		 "</td>");
}

function addPosterToShow(f_showAbbrev, f_link)
{
  if (typeof f_link == "undefined") {
  	var f_link = true;
  }
  document.write("<TABLE border=1 bgcolor=#FF9900>"+
                   "<TR>"+
	                 "<TD valign=top>"+
	                   ((f_link)?"<a href=\"../../showImage.html?show="+f_showAbbrev+"&imageNum=\" title=\"Click to view a larger poster\">":"")+
	                     "<IMG SRC=\""+getShowPrefix(f_showAbbrev)+".jpg\" border=0>"+
	                   ((f_link)?"</a>":"")+
	                 "</TD>"+
                   "</tr>"+
                 "</table>");
}

function addPoster(f_showAbbrev)
{
  document.write("<td align=center valign=bottom><table border=1 bgcolor=#FF9900><tr><td>"+
                   "<a href=\"showImage.html?show="+f_showAbbrev+"&imageNum=\">"+
		     "<img src=\"shows/"+f_showAbbrev+"/"+f_showAbbrev+"_sml.jpg\" border=0 title=\""+getShowName(f_showAbbrev)+"\">"+
		   "</a>"+
		 "</td></tr></table></td>");
}

function posterPage(f_showAbbrev,f_imageNum)
{
  document.write("<center><table border=1 bgcolor=#ff9900><tr><td><a href='Javascript:history.go(-1);' title=Back><img src=shows/"+getShowPrefix(f_showAbbrev)+"/"+f_showAbbrev+((typeof f_imageNum == "string" && f_imageNum != "")?f_imageNum:"_lrg")+".jpg border=0></a></td></tr></table>");
  addFooter("");
  document.write("</center>");
}


function addShow(f_showAbbrev, f_dates, f_author, f_director, f_venue, f_link, f_program)
{
  if (typeof f_venue == "undefined" || f_venue == "") {
    var f_venue = "Zenith Theatre, Chatswood";
  }
  if (typeof f_link == "undefined") {
    var f_link = true;
  }
  if (typeof f_program == "undefined") {
    var f_program = true;
  }
  var f_showPrefix = getShowPrefix(f_showAbbrev);
  document.write("<td align=center valign=top width="+i_pastProdTableWidth+"%>"+
                  "<table border=1 bgcolor=#FF9900>"+
                    "<tr>"+
                      "<td>"+((f_link)?"<a href=\"shows/"+f_showPrefix+"/"+f_showPrefix+".html\">":"")+
	                "<img src=\"shows/"+f_showPrefix+"/"+f_showPrefix+"_sml.jpg\" border=0>"+
	              ((f_link)?"</a>":"")+"</td></tr></table>"+
                   ((f_link)?"<a href=\"shows/"+f_showPrefix+"/"+f_showPrefix+".html\">":"")+
                     "\"" + getShowName(f_showAbbrev) +"\""+
                   ((f_link)?"</a>":"")+
                 ((typeof f_author == "string" && f_author != "") ? "<br>by "+f_author : "")+
                 ((typeof f_director == "string" && f_director != "") ? ("<br>directed by "+((f_link)?("<a href=bios/bios" + f_director.substr(f_director.lastIndexOf(" ")+1,1)+".html#"+f_director.replace(re,"_")+">"):"")+f_director + ((f_link)?"</a>":"")) : "")+
                 ((typeof f_dates == "string" && f_dates != "") ? "<br>"+f_dates : "")+
                 ((typeof f_venue == "string" && f_venue != "") ? "<br>"+f_venue : "")+
                 ((f_program)?"":"<br><span class=description><font color=red><b>(No show programme available)</b></font></span>")+
                 "</td>");
}

function addPreZenithShow(f_title, f_comment, f_plays, f_dates, f_venue)
{
  document.write("<td align=center valign=top width=50% height=100%" + (((i_showCount % 2 == 0) && (i_showCount == i_seasonShowCount))?" colspan=2":"") + ">"+
                   "<table border=2 bgcolor=#FF99CC cellpadding=8" + (((i_showCount % 2 == 0) && (i_showCount == i_seasonShowCount))?" ":" width=100% ") + "height=100%><tr><td align=center valign=top bgcolor="+s_paleColours[(i_bioCount) % 7]+" width=100%><table width=100% cellspacing=8><tr><td align=left valign=top>"+
                     "<img src=\"images/$nothumb.gif\" border=0></td><td align=left valign=top width=100%>"+
                   ((typeof f_title == "string" && f_title != "") ? "<span class=heading>\""+f_title+"\"</span><br>":"")+
                   ((typeof f_comment == "string" && f_comment != "") ? "<span class=tocheading>("+f_comment+")</span><br>":""));
  var plays = f_plays.split("@");
  for (var i=0;i<plays.length;i++) {
    var playDetails = plays[i].split(";");
    document.write(((typeof playDetails[0] == "string" && playDetails[0] != "") ? "<span class=subheading>\""+playDetails[0]+"\"</span><br>" : "")+
                   ((typeof playDetails[1] == "string" && playDetails[1] != "") ? "<span class=tocheading>("+playDetails[1]+")</span><br>" : "")+
                   ((typeof playDetails[2] == "string" && playDetails[2] != "") ? "written by "+playDetails[2]+"<br>" : "")+
                   ((typeof playDetails[3] == "string" && playDetails[3] != "") ? "directed by <a href=bios/bios" + playDetails[3].substr(playDetails[3].lastIndexOf(" ")+1,1)+".html#"+playDetails[3].replace(re,"_")+">"+playDetails[3]+"</a>" : "")+
                   ((typeof playDetails[4] == "string" && playDetails[4] != "") ? " & <a href=bios/bios" + playDetails[4].substr(playDetails[4].lastIndexOf(" ")+1,1)+".html#"+playDetails[4].replace(re,"_")+">"+playDetails[4]+"</a><br>" : "<br>"));
  }
  document.write(((typeof f_dates == "string" && f_dates != "") ? f_dates + "<br>" : "")+
                 ((typeof f_venue == "string" && f_venue != "") ? f_venue + "<br>" : "")+
                 "</td></tr></table></td></tr></table></td>");
  i_bioCount++;
  i_showCount++
  if (i_showCount % 2 == 0) {
    document.write("</tr>"+((i_showCount <= i_seasonShowCount)?"<tr>":""));
  }
}

function showCredits(f_dirPfx)
{
  if (typeof f_dirPfx != "string") { f_dirPfx = "";}
  creditWindow = window.open(f_dirPfx+"credits.html","credits","height=250,width=350");
  creditWindow.focus();
}

function openMessageWindow()
{
  msgWindow = window.open("message.html","message","height=270,width=480");
  msgWindow.focus();
}

function addProdRole(f_role, f_showAbbrev, f_comment)
{
	i_prodRoles++;
	if (i_prodRoles % 2 == 0) {
	  return addBioRole(true, f_role, f_showAbbrev, f_comment, "prod");
	}
	else {
	  return addBioRole(false, f_role, f_showAbbrev, f_comment, "prod");
	}
}

function addActRole(f_role, f_showAbbrev, f_comment)
{
	i_actRoles++;
	if (i_actRoles % 2 == 0) {
	  return addBioRole(true, f_role, f_showAbbrev, f_comment);
	}
	else {
	  return addBioRole(false, f_role, f_showAbbrev, f_comment);
	}
}

function addBioRole(f_lightColour, f_role, f_showAbbrev, f_comment, f_hash)
{
  return ("<tr bgcolor="+((f_lightColour)?(s_paleColours[(i_bioCount) % 7]):(s_darkColours[(i_bioCount) % 7]))+" >"+
           "<td valign=top>"+
             "<li>"+getShowYear(f_showAbbrev)+":</li>"+
           "</td>"+
           "<td valign=top>"+f_role+": </td>"+
           "<td valign=bottom>"+
             "<a href=\"../shows/"+getShowPrefix(f_showAbbrev)+"/"+getShowPrefix(f_showAbbrev)+".html"+((typeof f_hash == "string" && f_hash != "")?"#"+f_hash:"")+"\">"+
               "\""+getShowName(f_showAbbrev)+"\""+
             "</a>"+((typeof f_comment == "string" && f_comment != '')?"<br>("+f_comment+")":"")+
           "</td>"+
         "</tr>");
}

function getShowName(f_showAbbrev)
{
  switch (f_showAbbrev.toLowerCase()) {
    case "laramie":
  	  return "The Laramie Project";
  	  break
	case "mockingbird":
  	  return "To Kill a Mockingbird";
  	  break
	case "galileo":
  	  return "The Life of Galileo";
  	  break
	case "quixote":
  	  return "Don Quixote?";
  	  break
	case "harbour":
  	  return "Harbour";
  	  break
	case "town":
  	  return "Our Town";
  	  break
	case "dream":
  	  return "A Midsummer Night's Dream";
  	  break
  	case "carol":
  	  return "A Christmas Carol";
  	  break
	case "dlight":
  	  return "Daylight Saving";
  	  break
	case "expect":
  	  return "Great Expectations";
  	  break
	case "crucible":
  	  return "The Crucible";
  	  break
  	case "holyd":
  	  return "Holy Day";
  	  break
  	case "pboy":
  	  return "Play Boy of the Western World";
  	  break
	case "mona":
  	  return "Meet You at the Mona Lisa";
  	  break
	case "alice":
  	  return "Alice's Adventures Underground";
  	  break
  	case "brothers":
  	  return "Blood Brothers - The Play";
  	  break
	case "blackrock":
  	  return "Blackrock";
  	  break
	case "butterfly":
  	  return "M.Butterfly";
  	  break	  
  	case "cat":
  	  return "Cat On A Hot Tin Roof";
  	  break
  	case "chicago":
  	  return "Chicago - The Play";
  	  break
  	case "scandal":
  	  return "The School for Scandal";
  	  break
  	case "tempest":
  	  return "The Tempest";
  	  break
  	case "club":
  	  return "The Club";
  	  break
  	case "dreamplay":
  	  return "A Dream Play";
  	  break
        case "deathsalesman":
  	  return "Death of a Salesman";
  	  break
  	case "shrew":
  	  return "The Taming of the Shrew";
  	  break
  	case "picasso":
  	  return "Picasso at the Lapin Agile";
  	  break
  	case "george":
  	  return "Life After George";
  	  break
  	case "misanthrope":
  	  return "The Misanthrope";
  	  break
  	case "kidstakes":
  	  return "Kid Stakes";
  	  break
  	case "goldenage":
  	  return "The Golden Age";
  	  break
  	case "liaisons":
  	  return "Les Liaisons Dangereuses";
  	  break
  	case "arturo":
  	  return "The Resistable Rise of Arturo Ui";
  	  break
  	case "venetian":
  	  return "The Venetian Twins";
  	  break
  	case "sorrento":
  	  return "Hotel Sorrento";
  	  break
  	case "hound":
  	  return "The Real Inspector Hound";
  	  break
  	case "houndmagritte":
  	  return "The Real Inspector Hound\" / \"After Magritte";
  	  break
  	case "magritte":
  	  return "After Magritte";
  	  break
  	case "cyrano":
  	  return "Cyrano de Bergerac";
  	  break
  	case "titus":
  	  return "Titus Andronicus";
  	  break
  	case "cuckoo":
  	  return "One Flew Over the Cuckoo's Nest";
  	  break
  	case "wanda":
  	  return "Happy Birthday Wanda June";
  	  break
  	case "kafka":
  	  return "Kafka Dances";
  	  break
  	case "comedyerr":
  	  return "The Comedy of Errors";
  	  break
  	case "othello":
  	  return "Othello";
  	  break
  	case "merchant":
  	  return "The Merchant of Venice";
  	  break
  	case "dracula":
  	  return "Dracula";
  	  break
  	case "muchado":
  	  return "Much Ado About Nothing";
  	  break
  	case "hamlet":
  	  return "Hamlet";
  	  break
  	case "plazasuite":
  	  return "Plaza Suite";
  	  break
  	case "away":
  	  return "Away";
  	  break
  	case "relatively":
  	  return "Relatively Speaking";
  	  break
  	case "whoselife":
  	  return "Whose Life Is It Anyway ?";
  	  break
  	case "billyliar":
  	  return "Billy Liar";
  	  break
  	case "gingerbread":
  	  return "The Gingerbread Lady";
  	  break
  	case "cleaning":
  	  return "The Golden Legion of Cleaning Women";
  	  break
  	case "oneday":
			return "The One Day of the Year";
      break
    case "hijinks":
      return "High Jinks in High Society";
      break
    case "boysown":
      return "Boys Own McBeth";
      break
    case "jan16":
      return "Night of January 16th";
      break
    case "catherine":
      return "Catherine";
      break
    case "marymary":
      return "Mary, Mary";
      break
    default:
      return f_showAbbrev;
  }
}

function getShowPrefix(f_showAbbrev)
{
  switch (f_showAbbrev.toLowerCase()) {
  	case "houndmagritte":
  	case "magritte":
  	  return "hound";
  	  break
    default:
      return f_showAbbrev.toLowerCase();
  }
}

function getShowYear(f_showAbbrev)
{
  switch (f_showAbbrev.toLowerCase()) {
	
	case "laramie":
	case "mockingbird":
	case "galileo":
	case "quixote":
	  return "2009";
	  break
	
	case "harbour":
	case "town":
	case "dream":
	case "carol":
	  return "2008";
	  break
	  
	case "dlight":
	case "crucible":
	case "expect":
	  return "2007";
	  break

	case "holyd":
	case "pboy":
	case "mona":
	  return "2006";
	  break
	case "deathsalesman":
	case "brothers":
	case "butterfly":
	  return "2005";
	  break
	case "tempest":
	case "scandal":
	case "chicago":
	  return "2004";
	  break
	case "george":
	case "misanthrope":
	case "kidstakes":
	  return "2003";
	  break
	case "cat":
	case "club":
	case "dreamplay":
	  return "2002";
	  break
	case "blackrock":
	case "hound":
	case "houndmagritte":
	case "magritte":
	case "liaisons":
	  return "2001";
	  break
	case "alice":
	case "shrew":
	case "picasso":
	  return "2000";
	  break
	case "goldenage":
	case "arturo":
	case "venetian":
	  return "1999";
	  break
	case "sorrento":
	case "cyrano":
	case "titus":
	  return "1998";
	  break
	case "cuckoo":
	case "wanda":
	case "kafka":
	  return "1997";
	  break
	case "comedyerr":
	case "othello":
	  return "1996";
	  break
	case "merchant":
	case "dracula":
	  return "1995";
	  break
	case "muchado":
	  return "1994";
	  break
	case "hamlet":
	case "plazasuite":
	  return "1993";
	  break
	case "away":
	case "relatively":
	  return "1992";
	  break
	case "whoselife":
	case "billyliar":
	case "gingerbread":
	  return "1991";
	  break
	case "cleaning":
	case "oneday":
	case "hijinks":
	  return "1990";
	  break
	case "boysown":
	case "jan16":
	  return "1989";
	  break
	case "catherine":
	case "marymary":
	  return "1988";
	  break
	default:
	  return "xxxx";
  }
}