//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://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[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ 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([['Buffalo Red Zone Tailgate: Buffalo Bills vs. Miami Dolphins','Gameday Hospitality - Orchard Park','Orchard Park, NY','Sunday','11/3/2024','10:00 AM','6470997','Buffalo-Red-Zone-Tailgate--Buffalo-Bills-vs--Miami-Dolphins-11-3-2024'],['Buffalo Bills vs. Miami Dolphins','Highmark Stadium','Orchard Park, NY','Sunday','11/3/2024','1:00 PM','6349937','Buffalo-Bills-vs--Miami-Dolphins-11-3-2024'],['PARKING: Buffalo Bills vs. Miami Dolphins','Highmark Stadium Parking Lots','Orchard Park, NY','Sunday','11/3/2024','1:00 PM','6448675','PARKING--Buffalo-Bills-vs--Miami-Dolphins-11-3-2024'],['Indianapolis Colts vs. Buffalo Bills','Lucas Oil Stadium','Indianapolis, IN','Sunday','11/10/2024','1:00 PM','6350064','Indianapolis-Colts-vs--Buffalo-Bills-11-10-2024'],['PARKING: Indianapolis Colts vs. Buffalo Bills','Lucas Oil Stadium Parking Lots','Indianapolis, IN','Sunday','11/10/2024','1:00 PM','6449605','PARKING--Indianapolis-Colts-vs--Buffalo-Bills-11-10-2024'],['Buffalo Red Zone Tailgate: Buffalo Bills vs. Kansas City Chiefs','Gameday Hospitality - Orchard Park','Orchard Park, NY','Sunday','11/17/2024','1:00 PM','6470998','Buffalo-Red-Zone-Tailgate--Buffalo-Bills-vs--Kansas-City-Chiefs-11-17-2024'],['Buffalo Bills vs. Kansas City Chiefs','Highmark Stadium','Orchard Park, NY','Sunday','11/17/2024','4:25 PM','6349944','Buffalo-Bills-vs--Kansas-City-Chiefs-11-17-2024'],['Buffalo Red Zone Tailgate: Buffalo Bills vs. San Francisco 49ers','Gameday Hospitality - Orchard Park','Orchard Park, NY','Sunday','12/1/2024','4:30 PM','6470999','Buffalo-Red-Zone-Tailgate--Buffalo-Bills-vs--San-Francisco-49ers-12-1-2024'],['Buffalo Bills vs. San Francisco 49ers','Highmark Stadium','Orchard Park, NY','Sunday','12/1/2024','8:20 PM','6349942','Buffalo-Bills-vs--San-Francisco-49ers-12-1-2024'],['PARKING: Los Angeles Rams vs. Buffalo Bills','SoFi Stadium Parking Lots','Inglewood, CA','Sunday','12/8/2024','1:25 PM','6449492','PARKING--Los-Angeles-Rams-vs--Buffalo-Bills-12-8-2024'],['Los Angeles Rams vs. Buffalo Bills','SoFi Stadium','Inglewood, CA','Sunday','12/8/2024','1:25 PM','6349890','Los-Angeles-Rams-vs--Buffalo-Bills-12-8-2024'],['Premium Tailgate Party: Detroit Lions vs. Buffalo Bills','Premium Tailgate Lot - Detroit','Detroit, MI','Sunday','12/15/2024','TBD','6467871','Premium-Tailgate-Party--Detroit-Lions-vs--Buffalo-Bills-12-15-2024'],['PARKING: Detroit Lions vs. Buffalo Bills','Ford Field Parking Lots','Detroit, MI','Sunday','12/15/2024','4:25 PM','6449624','PARKING--Detroit-Lions-vs--Buffalo-Bills-12-15-2024'],['Detroit Lions vs. Buffalo Bills','Ford Field','Detroit, MI','Sunday','12/15/2024','4:25 PM','6350142','Detroit-Lions-vs--Buffalo-Bills-12-15-2024'],['Buffalo Red Zone Tailgate: Buffalo Bills vs. New England Patriots','Gameday Hospitality - Orchard Park','Orchard Park, NY','Sunday','12/22/2024','10:00 AM','6471000','Buffalo-Red-Zone-Tailgate--Buffalo-Bills-vs--New-England-Patriots-12-22-2024'],['Buffalo Bills vs. New England Patriots','Highmark Stadium','Orchard Park, NY','Sunday','12/22/2024','1:00 PM','6349938','Buffalo-Bills-vs--New-England-Patriots-12-22-2024'],['Buffalo Red Zone Tailgate: Buffalo Bills vs. New York Jets','Gameday Hospitality - Orchard Park','Orchard Park, NY','Sunday','12/29/2024','10:00 AM','6471001','Buffalo-Red-Zone-Tailgate--Buffalo-Bills-vs--New-York-Jets-12-29-2024'],['Buffalo Bills vs. New York Jets','Highmark Stadium','Orchard Park, NY','Sunday','12/29/2024','1:00 PM','6349939','Buffalo-Bills-vs--New-York-Jets-12-29-2024'],['PARKING: New England Patriots vs. Buffalo Bills (Date: TBD)','Gillette Stadium Parking Lots','Foxborough, MA','Sunday','1/5/2025','TBD','6448348','PARKING--New-England-Patriots-vs--Buffalo-Bills--Date--TBD--1-5-2025'],['New England Patriots vs. Buffalo Bills (Date: TBD)','Gillette Stadium','Foxborough, MA','Sunday','1/5/2025','TBD','6349963','New-England-Patriots-vs--Buffalo-Bills--Date--TBD--1-5-2025']],'Buffalo Bills','http://www.ticketnetwork.com/ticket/Buffalo-Bills-events.aspx');