//
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-04A
TN_Widget.CreateTable([['Judy Collins','The Bardavon 1869 Opera House','Poughkeepsie, NY','Friday','11/13/2026','7:30 PM','8245376','Judy-Collins-11-13-2026'],['The Pirates of Penzance','The Bardavon 1869 Opera House','Poughkeepsie, NY','Saturday','11/21/2026','7:30 PM','8106038','The-Pirates-of-Penzance-11-21-2026'],['Grace Potter','The Bardavon 1869 Opera House','Poughkeepsie, NY','Thursday','12/3/2026','7:30 PM','8350236','Grace-Potter-12-3-2026'],['Candice Guardino's Italian Bred','The Bardavon 1869 Opera House','Poughkeepsie, NY','Sunday','12/6/2026','3:00 PM','8231618','Candice-Guardino-s-Italian-Bred-12-6-2026'],['The New Paltz Ballet Theatre: The Nutcracker','The Bardavon 1869 Opera House','Poughkeepsie, NY','Saturday','12/12/2026','2:00 PM','8285011','The-New-Paltz-Ballet-Theatre--The-Nutcracker-12-12-2026'],['The New Paltz Ballet Theatre: The Nutcracker','The Bardavon 1869 Opera House','Poughkeepsie, NY','Saturday','12/12/2026','7:30 PM','8285012','The-New-Paltz-Ballet-Theatre--The-Nutcracker-12-12-2026'],['The New Paltz Ballet Theatre: The Nutcracker','The Bardavon 1869 Opera House','Poughkeepsie, NY','Sunday','12/13/2026','3:00 PM','8285013','The-New-Paltz-Ballet-Theatre--The-Nutcracker-12-13-2026'],['Paula Poundstone','The Bardavon 1869 Opera House','Poughkeepsie, NY','Saturday','12/19/2026','7:00 PM','8259661','Paula-Poundstone-12-19-2026'],['The Met Live In HD: Samson et Dalila','The Bardavon 1869 Opera House','Poughkeepsie, NY','Sunday','12/20/2026','12:00 PM','8112654','The-Met-Live-In-HD--Samson-et-Dalila-12-20-2026'],['Chanticleer','The Bardavon 1869 Opera House','Poughkeepsie, NY','Saturday','1/23/2027','8:00 PM','8259650','Chanticleer-1-23-2027'],['Puppy Pals Comedic Stunt Dog Show','The Bardavon 1869 Opera House','Poughkeepsie, NY','Sunday','1/24/2027','3:00 PM','8260720','Puppy-Pals-Comedic-Stunt-Dog-Show-1-24-2027'],['The Met Live In HD: La Fanciulla del West','The Bardavon 1869 Opera House','Poughkeepsie, NY','Saturday','1/30/2027','1:00 PM','8112651','The-Met-Live-In-HD--La-Fanciulla-del-West-1-30-2027'],['A Taste of Ireland','The Bardavon 1869 Opera House','Poughkeepsie, NY','Saturday','2/13/2027','7:30 PM','8291627','A-Taste-of-Ireland-2-13-2027'],['The Met Live In HD: Silent Night','The Bardavon 1869 Opera House','Poughkeepsie, NY','Saturday','3/20/2027','1:00 PM','8112655','The-Met-Live-In-HD--Silent-Night-3-20-2027'],['The Met Live In HD: Manon','The Bardavon 1869 Opera House','Poughkeepsie, NY','Saturday','4/3/2027','12:00 PM','8112652','The-Met-Live-In-HD--Manon-4-3-2027'],['The Met Live In HD: Parsifal','The Bardavon 1869 Opera House','Poughkeepsie, NY','Saturday','6/26/2027','12:00 PM','8163776','The-Met-Live-In-HD--Parsifal-6-26-2027']],'Bardavon Opera House','http://www.ticketnetwork.com/ticket/Bardavon-Opera-House-events.aspx');