// JavaScript Document

var linkPhrase = "Buy Tickets NOW";

var perf0 = "For Tickets, <strong>Call 416 204-1082</strong><br />Or email us <a href='mailto:info@danceworks.ca'>info@danceworks.ca</a><br />";				// Text for Co-Works performances

// When changing these links -- be sure to remember to change the corresponding links in JS/permanentBar.js

var perf1 = "http://www.harbourfrontcentre.com/whatson/today.cfm?id=3252"; // Performance 1 link
var perf2 = "http://www.harbourfrontcentre.com/whatson/today.cfm?id=3255"; // Performance 2 link
var perf3 = "http://www.harbourfrontcentre.com/whatson/today.cfm?id=3256"; // Performance 3 link
var perf4 = "http://www.harbourfrontcentre.com/whatson/today.cfm?id=3290"; // Performance 4 link
var perf5 = "http://www.harbourfrontcentre.com/whatson/today.cfm?id=3343"; // Performance 5 link
var perf6 = "http://www.harbourfrontcentre.com/whatson/today.cfm?id=3347"; // Performance 6 link

var perf7 = "For Tickets, <strong>Call Harbourfront Box Office 416 973 4000</strong><br />Or email us <a href='mailto:info@danceworks.ca'>info@danceworks.ca</a><br />";		// Idiosyncratic phone number for some co-works



function getParameter( name )
{
  name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
  var regexS = "[\\?&]"+name+"=([^&#]*)";
  var regex = new RegExp( regexS );
  var results = regex.exec( window.location.href );
  if( results == null )
    return "";
  else
    return results[1];
}

function getOutputText( name )
{
		if (name == "0"){
			return "" + perf0;
		} else if (name == "1"){
			return "<strong><a href='"+perf1+"' target='_blank'> "+linkPhrase+"</a></strong><br />";		
		} else if (name=="2") {
			return "<a href='"+perf2+"' target='_blank'> <strong>"+linkPhrase+"</strong></a><br />";
		} else if (name=="3") {
			return "<a href='"+perf3+"' target='_blank'> <strong>"+linkPhrase+"</strong></a><br />";
		} else if (name=="4") {
			return "<a href='"+perf4+"' target='_blank'> <strong>"+linkPhrase+"</strong></a><br />";
		} else if (name=="5") {
			return "<a href='"+perf5+"' target='_blank'> <strong>"+linkPhrase+"</strong></a><br />";
		} else if (name=="6") {
			return "<a href='"+perf6+"' target='_blank'> <strong>"+linkPhrase+"</strong></a><br />";
		} else if (name=="7") {
			return "" + perf7;
		} else {
			return "";
		}




}
