//
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([['Spring Vintage Festival','Road America Raceway','Elkhart Lake, WI','Friday','5/16/2025','7:00 AM','6745227','Spring-Vintage-Festival-5-16-2025'],['Spring Vintage Festival','Road America Raceway','Elkhart Lake, WI','Saturday','5/17/2025','7:00 AM','6745228','Spring-Vintage-Festival-5-17-2025'],['Spring Vintage Festival','Road America Raceway','Elkhart Lake, WI','Sunday','5/18/2025','7:00 AM','6745229','Spring-Vintage-Festival-5-18-2025'],['2025 MotoAmerica Superbikes','Road America Raceway','Elkhart Lake, WI','Friday','5/30/2025','8:00 AM','6701665','2025-MotoAmerica-Superbikes-5-30-2025'],['2025 MotoAmerica Superbikes','Road America Raceway','Elkhart Lake, WI','Saturday','5/31/2025','8:00 AM','6701666','2025-MotoAmerica-Superbikes-5-31-2025'],['2025 MotoAmerica Superbikes','Road America Raceway','Elkhart Lake, WI','Sunday','6/1/2025','8:00 AM','6701667','2025-MotoAmerica-Superbikes-6-1-2025'],['WeatherTech Chicago Region SCCA June Sprints','Road America Raceway','Elkhart Lake, WI','Friday','6/6/2025','7:00 AM','6745232','WeatherTech-Chicago-Region-SCCA-June-Sprints-6-6-2025'],['WeatherTech Chicago Region SCCA June Sprints','Road America Raceway','Elkhart Lake, WI','Saturday','6/7/2025','7:00 AM','6745233','WeatherTech-Chicago-Region-SCCA-June-Sprints-6-7-2025'],['WeatherTech Chicago Region SCCA June Sprints','Road America Raceway','Elkhart Lake, WI','Sunday','6/8/2025','7:00 AM','6745234','WeatherTech-Chicago-Region-SCCA-June-Sprints-6-8-2025'],['Indycar Xpel','Road America Raceway','Elkhart Lake, WI','Thursday','6/19/2025','7:00 AM','6745235','Indycar-Xpel-6-19-2025'],['Indycar Xpel','Road America Raceway','Elkhart Lake, WI','Friday','6/20/2025','7:00 AM','6745236','Indycar-Xpel-6-20-2025'],['Indycar Xpel','Road America Raceway','Elkhart Lake, WI','Saturday','6/21/2025','7:00 AM','6745237','Indycar-Xpel-6-21-2025'],['Indycar Xpel','Road America Raceway','Elkhart Lake, WI','Sunday','6/22/2025','7:00 AM','6745238','Indycar-Xpel-6-22-2025'],['Trans Am Series','Road America Raceway','Elkhart Lake, WI','Friday','6/27/2025','TBD','6714164','Trans-Am-Series-6-27-2025'],['Trans Am Series','Road America Raceway','Elkhart Lake, WI','Saturday','6/28/2025','TBD','6714165','Trans-Am-Series-6-28-2025'],['Trans Am Series','Road America Raceway','Elkhart Lake, WI','Sunday','6/29/2025','TBD','6714166','Trans-Am-Series-6-29-2025'],['WeatherTech Vintage Weekend','Road America Raceway','Elkhart Lake, WI','Thursday','7/17/2025','7:00 AM','6745241','WeatherTech-Vintage-Weekend-7-17-2025'],['WeatherTech Vintage Weekend','Road America Raceway','Elkhart Lake, WI','Friday','7/18/2025','7:00 AM','6745242','WeatherTech-Vintage-Weekend-7-18-2025'],['WeatherTech Vintage Weekend','Road America Raceway','Elkhart Lake, WI','Saturday','7/19/2025','7:00 AM','6745243','WeatherTech-Vintage-Weekend-7-19-2025'],['WeatherTech Vintage Weekend','Road America Raceway','Elkhart Lake, WI','Sunday','7/20/2025','7:00 AM','6745244','WeatherTech-Vintage-Weekend-7-20-2025'],['IMSA WeatherTech SportsCar Championship - Thursday','Road America Raceway','Elkhart Lake, WI','Thursday','7/31/2025','8:00 AM','6741950','IMSA-WeatherTech-SportsCar-Championship---Thursday-7-31-2025'],['IMSA WeatherTech SportsCar Championship - Friday','Road America Raceway','Elkhart Lake, WI','Friday','8/1/2025','8:00 AM','6741951','IMSA-WeatherTech-SportsCar-Championship---Friday-8-1-2025'],['IMSA WeatherTech SportsCar Championship - Saturday','Road America Raceway','Elkhart Lake, WI','Saturday','8/2/2025','8:00 AM','6741952','IMSA-WeatherTech-SportsCar-Championship---Saturday-8-2-2025'],['IMSA WeatherTech SportsCar Championship - Sunday','Road America Raceway','Elkhart Lake, WI','Sunday','8/3/2025','8:00 AM','6741953','IMSA-WeatherTech-SportsCar-Championship---Sunday-8-3-2025'],['GT World Challenge America','Road America Raceway','Elkhart Lake, WI','Friday','8/15/2025','7:00 AM','6745254','GT-World-Challenge-America-8-15-2025'],['GT World Challenge America','Road America Raceway','Elkhart Lake, WI','Saturday','8/16/2025','7:00 AM','6745255','GT-World-Challenge-America-8-16-2025'],['GT World Challenge America','Road America Raceway','Elkhart Lake, WI','Sunday','8/17/2025','7:00 AM','6745256','GT-World-Challenge-America-8-17-2025'],['Ariens Art On Wheels','Road America Raceway','Elkhart Lake, WI','Friday','9/12/2025','7:00 AM','6745257','Ariens-Art-On-Wheels-9-12-2025'],['Ariens Art On Wheels','Road America Raceway','Elkhart Lake, WI','Saturday','9/13/2025','7:00 AM','6745258','Ariens-Art-On-Wheels-9-13-2025'],['Ariens Art On Wheels','Road America Raceway','Elkhart Lake, WI','Sunday','9/14/2025','7:00 AM','6745259','Ariens-Art-On-Wheels-9-14-2025']],'Road America','https://www.ticketnetwork.com/ticket/Road-America-events.aspx');