//
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([['Jurassic Quest (Multiple Dates and Times)','Sioux Empire Fair At W.H. Lyon Fairgrounds','Sioux Falls, SD','Friday','2/14/2025','TBD','6804619','Jurassic-Quest--Multiple-Dates-and-Times--2-14-2025'],['Jurassic Quest (Multiple Dates and Times)','Sioux Empire Fair At W.H. Lyon Fairgrounds','Sioux Falls, SD','Saturday','2/15/2025','TBD','6804620','Jurassic-Quest--Multiple-Dates-and-Times--2-15-2025'],['Jurassic Quest (Multiple Dates and Times)','Sioux Empire Fair At W.H. Lyon Fairgrounds','Sioux Falls, SD','Sunday','2/16/2025','TBD','6804621','Jurassic-Quest--Multiple-Dates-and-Times--2-16-2025'],['Jurassic Quest (Multiple Dates and Times)','Sioux Empire Fair At W.H. Lyon Fairgrounds','Sioux Falls, SD','Monday','2/17/2025','TBD','6804622','Jurassic-Quest--Multiple-Dates-and-Times--2-17-2025'],['Rock The Country: Kid Rock, Nickelback, Travis Tritt & Tracy Lawrence - 2 Day Pass','Sioux Empire Fair At W.H. Lyon Fairgrounds','Sioux Falls, SD','Friday','7/18/2025','TBD','6820592','Rock-The-Country--Kid-Rock--Nickelback--Travis-Tritt---Tracy-Lawrence---2-Day-Pass-7-18-2025'],['Rock The Country: Kid Rock, Tracy Lawrence, Aaron Lewis and The Stateliners & Shenandoah - Friday (Time: TBD)','Sioux Empire Fair At W.H. Lyon Fairgrounds','Sioux Falls, SD','Friday','7/18/2025','12:00 PM','6820594','Rock-The-Country--Kid-Rock--Tracy-Lawrence--Aaron-Lewis-and-The-Stateliners---Shenandoah---Friday--Time--TBD--7-18-2025'],['Rock The Country: Nickelback, Travis Tritt, Gavin Adcock & Mark Chesnutt - Saturday (Time: TBD)','Sioux Empire Fair At W.H. Lyon Fairgrounds','Sioux Falls, SD','Saturday','7/19/2025','12:00 PM','6820596','Rock-The-Country--Nickelback--Travis-Tritt--Gavin-Adcock---Mark-Chesnutt---Saturday--Time--TBD--7-19-2025']],'Sioux Empire Fair','https://www.ticketnetwork.com/ticket/Sioux-Empire-Fair-events.aspx');