//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "Tickets",
tixUrl : "https://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[3] +" "+"" +
row[4] + " "+"" +
row[5] + " | "+"" +
row[0] +" | " +
row[1] +" " +
row[2] +" | "+""+ 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-02A
TN_Widget.CreateTable([['Taking Back Sunday','Starland Ballroom','Sayreville, NJ','Friday','12/11/2026','7:30 PM','8297142','Taking-Back-Sunday-12-11-2026'],['Taking Back Sunday','Starland Ballroom','Sayreville, NJ','Saturday','12/12/2026','7:30 PM','8297143','Taking-Back-Sunday-12-12-2026'],['The Warped Tour Band','Starland Ballroom','Sayreville, NJ','Saturday','1/16/2027','7:00 PM','8391931','The-Warped-Tour-Band-1-16-2027'],['Thursday','Starland Ballroom','Sayreville, NJ','Friday','1/22/2027','7:00 PM','8391924','Thursday-1-22-2027'],['Badfish & Kash'd Out','Starland Ballroom','Sayreville, NJ','Friday','1/29/2027','8:00 PM','8331499','Badfish---Kash-d-Out-1-29-2027'],['As I Lay Dying','Starland Ballroom','Sayreville, NJ','Friday','2/19/2027','7:30 PM','8266972','As-I-Lay-Dying-2-19-2027'],['Emo Night Karaoke','Starland Ballroom','Sayreville, NJ','Saturday','2/20/2027','7:30 PM','8391928','Emo-Night-Karaoke-2-20-2027'],['Sullivan King','Starland Ballroom','Sayreville, NJ','Thursday','3/4/2027','8:00 PM','8370624','Sullivan-King-3-4-2027'],['Interpol','Starland Ballroom','Sayreville, NJ','Saturday','3/27/2027','8:00 PM','8338177','Interpol-3-27-2027'],['Nile & Coroner','Starland Ballroom','Sayreville, NJ','Friday','4/2/2027','6:30 PM','8269101','Nile---Coroner-4-2-2027'],['The Interrupters & Rat Boy','Starland Ballroom','Sayreville, NJ','Saturday','4/3/2027','7:00 PM','8284354','The-Interrupters---Rat-Boy-4-3-2027'],['Shadow of Intent','Starland Ballroom','Sayreville, NJ','Friday','5/21/2027','7:00 PM','8400352','Shadow-of-Intent-5-21-2027'],['Our Last Night','Starland Ballroom','Sayreville, NJ','Friday','6/4/2027','7:30 PM','8330020','Our-Last-Night-6-4-2027']],'Starland Ballroom','https://www.ticketnetwork.com/ticket/Starland-Ballroom-events.aspx');