//
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-04A
TN_Widget.CreateTable([['Tacoma Stars vs. San Diego Sockers','Showare Center','Kent, WA','Saturday','3/1/2025','6:05 PM','6971431','Tacoma-Stars-vs--San-Diego-Sockers-3-1-2025'],['Seattle Thunderbirds vs. Tri-City Americans','Showare Center','Kent, WA','Sunday','3/2/2025','5:05 PM','6535015','Seattle-Thunderbirds-vs--Tri-City-Americans-3-2-2025'],['Seattle Thunderbirds vs. Kamloops Blazers','Showare Center','Kent, WA','Tuesday','3/4/2025','7:05 PM','6535017','Seattle-Thunderbirds-vs--Kamloops-Blazers-3-4-2025'],['Tacoma Stars vs. Empire Strykers','Showare Center','Kent, WA','Friday','3/7/2025','7:05 PM','6971440','Tacoma-Stars-vs--Empire-Strykers-3-7-2025'],['Seattle Thunderbirds vs. Portland Winterhawks','Showare Center','Kent, WA','Saturday','3/8/2025','6:05 PM','6535018','Seattle-Thunderbirds-vs--Portland-Winterhawks-3-8-2025'],['Seattle Thunderbirds vs. Tri-City Americans','Showare Center','Kent, WA','Friday','3/14/2025','7:05 PM','6535021','Seattle-Thunderbirds-vs--Tri-City-Americans-3-14-2025'],['Tacoma Stars vs. Kansas City Comets','Showare Center','Kent, WA','Friday','3/21/2025','7:05 PM','6971433','Tacoma-Stars-vs--Kansas-City-Comets-3-21-2025'],['Seattle Thunderbirds vs. Portland Winterhawks','Showare Center','Kent, WA','Saturday','3/22/2025','6:05 PM','6535023','Seattle-Thunderbirds-vs--Portland-Winterhawks-3-22-2025'],['Sunidhi Chauhan','Showare Center','Kent, WA','Saturday','5/10/2025','8:00 PM','6993339','Sunidhi-Chauhan-5-10-2025'],['Cody Jinks','Showare Center','Kent, WA','Thursday','7/17/2025','7:00 PM','6858928','Cody-Jinks-7-17-2025'],['Los Tigres del Norte','Showare Center','Kent, WA','Sunday','8/24/2025','8:00 PM','6521355','Los-Tigres-del-Norte-8-24-2025'],['One Voice Worship Night','Showare Center','Kent, WA','Friday','9/26/2025','7:00 PM','6806340','One-Voice-Worship-Night-9-26-2025']],'ShoWare Center','https://www.ticketnetwork.com/ticket/ShoWare-Center-events.aspx');