//
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-02A
TN_Widget.CreateTable([['Tommy Castro And The Painkillers','HopMonk Tavern - Novato','Novato, CA','Sunday','9/22/2024','6:00 PM','6478211','Tommy-Castro-And-The-Painkillers-9-22-2024'],['Tommy Castro And The Painkillers','Knuckleheads Saloon Indoor Stage','Kansas City, MO','Tuesday','10/1/2024','7:30 PM','6629934','Tommy-Castro-And-The-Painkillers-10-1-2024'],['Tommy Castro And The Painkillers','Medina Entertainment Center','Hamel, MN','Saturday','10/5/2024','8:00 PM','6605903','Tommy-Castro-And-The-Painkillers-10-5-2024'],['Tommy Castro And The Painkillers','The District','Sioux Falls, SD','Sunday','10/6/2024','7:00 PM','6619132','Tommy-Castro-And-The-Painkillers-10-6-2024'],['Tommy Castro And The Painkillers','Shank Hall','Milwaukee, WI','Wednesday','10/9/2024','8:00 PM','6619923','Tommy-Castro-And-The-Painkillers-10-9-2024'],['Tommy Castro And The Painkillers','The Winchester Music Tavern','Lakewood, OH','Tuesday','10/15/2024','8:00 PM','6676169','Tommy-Castro-And-The-Painkillers-10-15-2024'],['Tommy Castro And The Painkillers','The Castle Theatre','Bloomington, IL','Thursday','10/17/2024','7:30 PM','6661596','Tommy-Castro-And-The-Painkillers-10-17-2024'],['Tommy Castro And The Painkillers','James Lumber Center','Grayslake, IL','Friday','10/18/2024','7:30 PM','6677986','Tommy-Castro-And-The-Painkillers-10-18-2024'],['Tommy Castro And The Painkillers','Rams Head On Stage','Annapolis, MD','Wednesday','11/6/2024','7:30 PM','6643757','Tommy-Castro-And-The-Painkillers-11-6-2024'],['Tommy Castro And The Painkillers','Jergel's Rhythm Grille','Warrendale, PA','Monday','11/11/2024','8:00 PM','6686953','Tommy-Castro-And-The-Painkillers-11-11-2024'],['Tommy Castro And The Painkillers','Daryl's House','Pawling, NY','Tuesday','11/12/2024','7:00 PM','6676115','Tommy-Castro-And-The-Painkillers-11-12-2024'],['Tommy Castro','Coach House - Capistrano','San Juan Capistrano, CA','Friday','1/10/2025','8:00 PM','6533847','Tommy-Castro-1-10-2025']],'Tommy Castro','http://www.ticketnetwork.com/ticket/Tommy-Castro-events.aspx');