//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
| " +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-03A
TN_Widget.CreateTable([['Operation Mincemeat','Forrest Theatre','Philadelphia, PA','Tuesday','12/15/2026','7:30 PM','8232452','Operation-Mincemeat-12-15-2026'],['Operation Mincemeat','Forrest Theatre','Philadelphia, PA','Wednesday','12/16/2026','7:30 PM','8232453','Operation-Mincemeat-12-16-2026'],['Operation Mincemeat','Forrest Theatre','Philadelphia, PA','Thursday','12/17/2026','7:30 PM','8232454','Operation-Mincemeat-12-17-2026'],['Operation Mincemeat','Forrest Theatre','Philadelphia, PA','Friday','12/18/2026','7:30 PM','8232455','Operation-Mincemeat-12-18-2026'],['Operation Mincemeat','Forrest Theatre','Philadelphia, PA','Saturday','12/19/2026','1:30 PM','8232457','Operation-Mincemeat-12-19-2026'],['Operation Mincemeat','Forrest Theatre','Philadelphia, PA','Saturday','12/19/2026','7:30 PM','8232456','Operation-Mincemeat-12-19-2026'],['Operation Mincemeat','Forrest Theatre','Philadelphia, PA','Sunday','12/20/2026','1:00 PM','8232458','Operation-Mincemeat-12-20-2026'],['Operation Mincemeat','Forrest Theatre','Philadelphia, PA','Sunday','12/20/2026','6:30 PM','8232459','Operation-Mincemeat-12-20-2026'],['The Book Of Mormon','Forrest Theatre','Philadelphia, PA','Tuesday','1/26/2027','7:30 PM','8232448','The-Book-Of-Mormon-1-26-2027'],['The Book Of Mormon','Forrest Theatre','Philadelphia, PA','Wednesday','1/27/2027','7:30 PM','8232449','The-Book-Of-Mormon-1-27-2027'],['The Book Of Mormon','Forrest Theatre','Philadelphia, PA','Thursday','1/28/2027','7:30 PM','8232450','The-Book-Of-Mormon-1-28-2027'],['The Book Of Mormon','Forrest Theatre','Philadelphia, PA','Friday','1/29/2027','7:30 PM','7975448','The-Book-Of-Mormon-1-29-2027'],['The Book Of Mormon','Forrest Theatre','Philadelphia, PA','Saturday','1/30/2027','1:30 PM','8011704','The-Book-Of-Mormon-1-30-2027'],['The Book Of Mormon','Forrest Theatre','Philadelphia, PA','Saturday','1/30/2027','7:30 PM','8232451','The-Book-Of-Mormon-1-30-2027'],['The Book Of Mormon','Forrest Theatre','Philadelphia, PA','Sunday','1/31/2027','1:00 PM','7975449','The-Book-Of-Mormon-1-31-2027'],['The Book Of Mormon','Forrest Theatre','Philadelphia, PA','Sunday','1/31/2027','6:30 PM','7975450','The-Book-Of-Mormon-1-31-2027'],['The Who's Tommy','Forrest Theatre','Philadelphia, PA','Tuesday','4/13/2027','7:30 PM','7860980','The-Who-s-Tommy-4-13-2027'],['The Who's Tommy','Forrest Theatre','Philadelphia, PA','Wednesday','4/14/2027','7:30 PM','7860981','The-Who-s-Tommy-4-14-2027'],['The Who's Tommy','Forrest Theatre','Philadelphia, PA','Thursday','4/15/2027','7:30 PM','7860982','The-Who-s-Tommy-4-15-2027'],['The Who's Tommy','Forrest Theatre','Philadelphia, PA','Friday','4/16/2027','7:30 PM','7860983','The-Who-s-Tommy-4-16-2027'],['The Who's Tommy','Forrest Theatre','Philadelphia, PA','Saturday','4/17/2027','1:30 PM','7860984','The-Who-s-Tommy-4-17-2027'],['The Who's Tommy','Forrest Theatre','Philadelphia, PA','Saturday','4/17/2027','7:30 PM','7860985','The-Who-s-Tommy-4-17-2027'],['The Who's Tommy','Forrest Theatre','Philadelphia, PA','Sunday','4/18/2027','1:00 PM','7860986','The-Who-s-Tommy-4-18-2027'],['The Who's Tommy','Forrest Theatre','Philadelphia, PA','Sunday','4/18/2027','6:00 PM','7860987','The-Who-s-Tommy-4-18-2027'],['Forrest Gump - Film','American Theatre - Hampton','Hampton, VA','Thursday','5/27/2027','7:00 PM','8315731','Forrest-Gump---Film-5-27-2027']],'Forrest Theatre','http://www.ticketnetwork.com/ticket/Forrest-Theatre-events.aspx');