//
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([['Toronto International Film Festival: The Fox King','Scotiabank Theatre - Cinema 10','Toronto, Canada','Tuesday','9/9/2025','6:15 PM','7346957','Toronto-International-Film-Festival--The-Fox-King-9-9-2025'],['Toronto International Film Festival: The Fox King','Scotiabank Theatre - Cinema 8','Toronto, Canada','Wednesday','9/10/2025','9:40 PM','7346959','Toronto-International-Film-Festival--The-Fox-King-9-10-2025'],['I Am King - The Michael Jackson Experience','The Railhead - Boulder Station Hotel Casino','Las Vegas, NV','Friday','11/14/2025','8:00 PM','7363384','I-Am-King---The-Michael-Jackson-Experience-11-14-2025'],['Compete 4 Cause: Louisiana Tech vs. LSU (Women) & LSU vs. SMU (Men)','Smoothie King Center','New Orleans, LA','Saturday','12/13/2025','TBD','7364638','Compete-4-Cause--Louisiana-Tech-vs--LSU--Women----LSU-vs--SMU--Men--12-13-2025'],['Coretta Scott King Classic: TCU vs. Ohio State AND Vanderbilt vs. Michigan','Prudential Center','Newark, NJ','Monday','1/19/2026','12:00 PM','7293538','Coretta-Scott-King-Classic--TCU-vs--Ohio-State-AND-Vanderbilt-vs--Michigan-1-19-2026']],'The King And I','https://www.ticketnetwork.com/ticket/The-King-And-I-events.aspx');