//
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([['Thunderstruck - A Tribute To AC/DC','The Machine Shop Concert Lounge','Flint, MI','Friday','2/28/2025','7:00 PM','7002535','Thunderstruck---A-Tribute-To-AC-DC-2-28-2025'],['Psychostick','The Machine Shop Concert Lounge','Flint, MI','Saturday','3/1/2025','7:00 PM','7006644','Psychostick-3-1-2025'],['Josey Scott','The Machine Shop Concert Lounge','Flint, MI','Saturday','3/15/2025','6:00 PM','6803985','Josey-Scott-3-15-2025'],['Tyler Farr','The Machine Shop Concert Lounge','Flint, MI','Saturday','3/22/2025','7:00 PM','6825610','Tyler-Farr-3-22-2025'],['Lily Rose','The Machine Shop Concert Lounge','Flint, MI','Thursday','3/27/2025','8:00 PM','6886041','Lily-Rose-3-27-2025'],['Michael Monroe','The Machine Shop Concert Lounge','Flint, MI','Saturday','4/5/2025','7:00 PM','6966008','Michael-Monroe-4-5-2025'],['Nothing More','The Machine Shop Concert Lounge','Flint, MI','Tuesday','4/8/2025','6:00 PM','6930947','Nothing-More-4-8-2025'],['Kip Moore','The Machine Shop - ON','Sault Ste Marie, Canada','Thursday','4/17/2025','8:00 PM','6965969','Kip-Moore-4-17-2025'],['The Prince Experience - Prince Tribute','The Machine Shop Concert Lounge','Flint, MI','Saturday','4/19/2025','7:00 PM','7002533','The-Prince-Experience---Prince-Tribute-4-19-2025'],['Dorothy','The Machine Shop Concert Lounge','Flint, MI','Tuesday','4/22/2025','7:00 PM','6987184','Dorothy-4-22-2025'],['Giovannie and The Hired Guns','The Machine Shop Concert Lounge','Flint, MI','Friday','5/2/2025','8:00 PM','6934327','Giovannie-and-The-Hired-Guns-5-2-2025'],['Fame On Fire','The Machine Shop Concert Lounge','Flint, MI','Thursday','5/8/2025','8:00 PM','6931384','Fame-On-Fire-5-8-2025'],['Black Stone Cherry','The Machine Shop Concert Lounge','Flint, MI','Thursday','5/29/2025','7:00 PM','6964660','Black-Stone-Cherry-5-29-2025'],['Snot','The Machine Shop Concert Lounge','Flint, MI','Friday','7/18/2025','7:00 PM','6980065','Snot-7-18-2025']],'The Machine Shop','https://www.ticketnetwork.com/ticket/The-Machine-Shop-events.aspx');