//
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-01A
TN_Widget.CreateTable([['AC Milan vs. FC Inter Milan','Stadio San Siro','Milan, Italy','Sunday','2/2/2025','TBD','6551141','AC-Milan-vs--FC-Inter-Milan-2-2-2025'],['AC Milan vs. Hellas Verona FC','Stadio San Siro','Milan, Italy','Sunday','2/16/2025','TBD','6551142','AC-Milan-vs--Hellas-Verona-FC-2-16-2025'],['AC Milan vs. SS Lazio','Stadio San Siro','Milan, Italy','Sunday','3/2/2025','TBD','6551143','AC-Milan-vs--SS-Lazio-3-2-2025'],['FC Inter Milan vs. AC Monza','Stadio San Siro','Milan, Italy','Sunday','3/9/2025','TBD','6551882','FC-Inter-Milan-vs--AC-Monza-3-9-2025'],['AC Milan vs. Como 1907','Stadio San Siro','Milan, Italy','Sunday','3/16/2025','TBD','6551144','AC-Milan-vs--Como-1907-3-16-2025'],['SSC Napoli vs. AC Milan','Stadio Diego Armando Maradona','Agnano, Italy','Sunday','3/30/2025','TBD','6552217','SSC-Napoli-vs--AC-Milan-3-30-2025'],['AC Milan vs. ACF Fiorentina','Stadio San Siro','Milan, Italy','Sunday','4/6/2025','TBD','6551146','AC-Milan-vs--ACF-Fiorentina-4-6-2025'],['AC Milan vs. Atalanta BC','Stadio San Siro','Milan, Italy','Sunday','4/20/2025','TBD','6551147','AC-Milan-vs--Atalanta-BC-4-20-2025'],['AC Milan vs. Bologna FC','Stadio San Siro','Milan, Italy','Sunday','5/11/2025','TBD','6551148','AC-Milan-vs--Bologna-FC-5-11-2025'],['AS Roma vs. AC Milan','Stadio Olimpico - Rome','Borgata Ottavia, Italy','Sunday','5/18/2025','TBD','6552153','AS-Roma-vs--AC-Milan-5-18-2025'],['AC Milan vs. AC Monza','Stadio San Siro','Milan, Italy','Sunday','5/25/2025','TBD','6551149','AC-Milan-vs--AC-Monza-5-25-2025']],'AC Milan','https://www.ticketnetwork.com/ticket/AC-Milan-events.aspx');