//
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([['Peach Tree Rascals','Voodoo Room at House of Blues - San Diego','San Diego, CA','Saturday','11/21/2026','7:00 PM','8269216','Peach-Tree-Rascals-11-21-2026'],['Peach Tree Rascals','Constellation Room at The Observatory - Santa Ana','Santa Ana, CA','Sunday','11/22/2026','7:00 PM','8269219','Peach-Tree-Rascals-11-22-2026'],['Rascal Flatts','The Colosseum At Caesars Palace','Las Vegas, NV','Saturday','12/5/2026','8:00 PM','8112214','Rascal-Flatts-12-5-2026'],['The Rascals','Newton Theatre','Newton, NJ','Thursday','12/17/2026','7:00 PM','8294750','The-Rascals-12-17-2026'],['The Rascals','Patchogue Theater For The Performing Arts','Patchogue, NY','Friday','12/18/2026','8:00 PM','8274506','The-Rascals-12-18-2026'],['The Rascals','The Ridgefield Playhouse','Ridgefield, CT','Saturday','2/13/2027','8:00 PM','8309778','The-Rascals-2-13-2027'],['The Rascals','The Vine at Del Lago Resort','Waterloo, NY','Friday','3/5/2027','8:00 PM','8326844','The-Rascals-3-5-2027'],['The Rascals','West Herr Riviera Theatre','North Tonawanda, NY','Saturday','3/6/2027','7:30 PM','8209102','The-Rascals-3-6-2027']],'The Rascals','https://www.ticketnetwork.com/ticket/The-Rascals-events.aspx');