// 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 += '
See all events for '+ kywrds + ' on TicketNetwork.com
'; } else { document.write("
See all events for "+ kywrds + " on TicketNetwork.com
"); } } if(eventData.length > 0) { document.getElementById("previewNote").style.display = "none"; } } }; }(); //BPW-TNSERV-01A TN_Widget.CreateTable([['2025 MotoAmerica Superbikes','Barber Motorsports Park','Leeds, AL','Friday','4/4/2025','8:00 AM','6701652','2025-MotoAmerica-Superbikes-4-4-2025'],['2025 MotoAmerica Superbikes','Barber Motorsports Park','Leeds, AL','Saturday','4/5/2025','8:00 AM','6701654','2025-MotoAmerica-Superbikes-4-5-2025'],['2025 MotoAmerica Superbikes','Barber Motorsports Park','Leeds, AL','Sunday','4/6/2025','8:00 AM','6701655','2025-MotoAmerica-Superbikes-4-6-2025'],['IndyCar Series: Indy Grand Prix of Alabama','Barber Motorsports Park','Leeds, AL','Friday','5/2/2025','TBD','6912477','IndyCar-Series--Indy-Grand-Prix-of-Alabama-5-2-2025'],['IndyCar Series: Indy Grand Prix of Alabama','Barber Motorsports Park','Leeds, AL','Saturday','5/3/2025','TBD','6912478','IndyCar-Series--Indy-Grand-Prix-of-Alabama-5-3-2025'],['IndyCar Series: Indy Grand Prix of Alabama','Barber Motorsports Park','Leeds, AL','Sunday','5/4/2025','TBD','6508019','IndyCar-Series--Indy-Grand-Prix-of-Alabama-5-4-2025'],['GT World Challenge America (Time: TBD) - Friday','Barber Motorsports Park','Leeds, AL','Friday','9/5/2025','8:00 AM','6946984','GT-World-Challenge-America--Time--TBD----Friday-9-5-2025'],['GT World Challenge America (Time: TBD) - Saturday','Barber Motorsports Park','Leeds, AL','Saturday','9/6/2025','8:00 AM','6946985','GT-World-Challenge-America--Time--TBD----Saturday-9-6-2025'],['GT World Challenge America (Time: TBD) - Sunday','Barber Motorsports Park','Leeds, AL','Sunday','9/7/2025','8:00 AM','6946987','GT-World-Challenge-America--Time--TBD----Sunday-9-7-2025'],['Trans Am Series','Barber Motorsports Park','Leeds, AL','Friday','10/17/2025','TBD','6714180','Trans-Am-Series-10-17-2025'],['Trans Am Series','Barber Motorsports Park','Leeds, AL','Saturday','10/18/2025','TBD','6714181','Trans-Am-Series-10-18-2025'],['Trans Am Series','Barber Motorsports Park','Leeds, AL','Sunday','10/19/2025','TBD','6714182','Trans-Am-Series-10-19-2025']],'Barber Motorsports Park','https://www.ticketnetwork.com/ticket/Barber-Motorsports-Park-events.aspx');