//
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-04A
TN_Widget.CreateTable([['Trans Am Series','Michelin Raceway Road Atlanta','Braselton, GA','Thursday','3/20/2025','TBD','6714144','Trans-Am-Series-3-20-2025'],['Trans Am Series','Michelin Raceway Road Atlanta','Braselton, GA','Friday','3/21/2025','TBD','6714145','Trans-Am-Series-3-21-2025'],['Trans Am Series','Michelin Raceway Road Atlanta','Braselton, GA','Saturday','3/22/2025','TBD','6714146','Trans-Am-Series-3-22-2025'],['Trans Am Series','Michelin Raceway Road Atlanta','Braselton, GA','Sunday','3/23/2025','TBD','6714147','Trans-Am-Series-3-23-2025'],['2025 MotoAmerica Superbikes','Michelin Raceway Road Atlanta','Braselton, GA','Friday','5/2/2025','8:00 AM','6701661','2025-MotoAmerica-Superbikes-5-2-2025'],['2025 MotoAmerica Superbikes','Michelin Raceway Road Atlanta','Braselton, GA','Saturday','5/3/2025','8:00 AM','6701662','2025-MotoAmerica-Superbikes-5-3-2025'],['2025 MotoAmerica Superbikes','Michelin Raceway Road Atlanta','Braselton, GA','Sunday','5/4/2025','8:00 AM','6701663','2025-MotoAmerica-Superbikes-5-4-2025'],['Formula Drift','Michelin Raceway Road Atlanta','Braselton, GA','Thursday','5/8/2025','TBD','6804402','Formula-Drift-5-8-2025'],['Formula Drift','Michelin Raceway Road Atlanta','Braselton, GA','Friday','5/9/2025','TBD','6804403','Formula-Drift-5-9-2025'],['Formula Drift','Michelin Raceway Road Atlanta','Braselton, GA','Saturday','5/10/2025','TBD','6804404','Formula-Drift-5-10-2025'],['Motul Petit Le Mans','Michelin Raceway Road Atlanta','Braselton, GA','Wednesday','10/8/2025','TBD','6960318','Motul-Petit-Le-Mans-10-8-2025'],['Motul Petit Le Mans','Michelin Raceway Road Atlanta','Braselton, GA','Thursday','10/9/2025','TBD','6960319','Motul-Petit-Le-Mans-10-9-2025'],['Motul Petit Le Mans','Michelin Raceway Road Atlanta','Braselton, GA','Friday','10/10/2025','TBD','6960320','Motul-Petit-Le-Mans-10-10-2025'],['Motul Petit Le Mans','Michelin Raceway Road Atlanta','Braselton, GA','Saturday','10/11/2025','TBD','6960321','Motul-Petit-Le-Mans-10-11-2025']],'Road Atlanta','https://www.ticketnetwork.com/ticket/Road-Atlanta-events.aspx');