//
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-03A
TN_Widget.CreateTable([['Sahlen's Six Hours Of The Glen','Watkins Glen International Speedway','Watkins Glen, NY','Sunday','6/22/2025','12:00 PM','6890148','Sahlen-s-Six-Hours-Of-The-Glen-6-22-2025'],['IMSA WeatherTech SportsCar Championship - Thursday','Watkins Glen International Speedway','Watkins Glen, NY','Thursday','6/26/2025','8:00 AM','6741933','IMSA-WeatherTech-SportsCar-Championship---Thursday-6-26-2025'],['IMSA WeatherTech SportsCar Championship - Friday','Watkins Glen International Speedway','Watkins Glen, NY','Friday','6/27/2025','8:00 AM','6741934','IMSA-WeatherTech-SportsCar-Championship---Friday-6-27-2025'],['IMSA WeatherTech SportsCar Championship - Saturday','Watkins Glen International Speedway','Watkins Glen, NY','Saturday','6/28/2025','8:00 AM','6741935','IMSA-WeatherTech-SportsCar-Championship---Saturday-6-28-2025'],['IMSA WeatherTech SportsCar Championship - Sunday','Watkins Glen International Speedway','Watkins Glen, NY','Sunday','6/29/2025','8:00 AM','6741936','IMSA-WeatherTech-SportsCar-Championship---Sunday-6-29-2025'],['Trans Am Series','Watkins Glen International Speedway','Watkins Glen, NY','Friday','7/11/2025','TBD','6714168','Trans-Am-Series-7-11-2025'],['Trans Am Series','Watkins Glen International Speedway','Watkins Glen, NY','Saturday','7/12/2025','TBD','6714169','Trans-Am-Series-7-12-2025'],['Trans Am Series','Watkins Glen International Speedway','Watkins Glen, NY','Sunday','7/13/2025','TBD','6714170','Trans-Am-Series-7-13-2025'],['The Ferrari Challenge','Watkins Glen International Speedway','Watkins Glen, NY','Sunday','7/27/2025','TBD','6569131','The-Ferrari-Challenge-7-27-2025'],['ARCA Menards Series Race','Watkins Glen International Speedway','Watkins Glen, NY','Friday','8/8/2025','2:00 PM','6736626','ARCA-Menards-Series-Race-8-8-2025'],['NASCAR Cup Series','Watkins Glen International Speedway','Watkins Glen, NY','Sunday','8/10/2025','2:00 PM','6676971','NASCAR-Cup-Series-8-10-2025'],['SpeedTour','Watkins Glen International Speedway','Watkins Glen, NY','Friday','9/5/2025','TBD','6959777','SpeedTour-9-5-2025'],['SpeedTour','Watkins Glen International Speedway','Watkins Glen, NY','Saturday','9/6/2025','TBD','6959778','SpeedTour-9-6-2025'],['SpeedTour','Watkins Glen International Speedway','Watkins Glen, NY','Sunday','9/7/2025','TBD','6959779','SpeedTour-9-7-2025'],['Hilliard U.S. Vintage Grand Prix','Watkins Glen International Speedway','Watkins Glen, NY','Sunday','9/7/2025','8:00 AM','6890206','Hilliard-U-S--Vintage-Grand-Prix-9-7-2025']],'Watkins Glen International','https://www.ticketnetwork.com/ticket/Watkins-Glen-International-events.aspx');