//
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-02A
TN_Widget.CreateTable([['CoComelon Live!','Artpark Mainstage','Lewiston, NY','Sunday','5/18/2025','2:00 PM','6996118','CoComelon-Live--5-18-2025'],['The Driver Era','Artpark Mainstage','Lewiston, NY','Friday','6/6/2025','8:00 PM','6736781','The-Driver-Era-6-6-2025'],['The String Cheese Incident','Artpark Amphitheatre','Lewiston, NY','Wednesday','6/18/2025','6:00 PM','6997672','The-String-Cheese-Incident-6-18-2025'],['Gary Clark Jr.','Artpark Amphitheatre','Lewiston, NY','Tuesday','6/24/2025','7:00 PM','6996225','Gary-Clark-Jr--6-24-2025'],['I Want My 80s Tour: Rick Springfield, John Waite, Wang Chung & Paul Young','Artpark Amphitheatre','Lewiston, NY','Saturday','7/5/2025','7:00 PM','6983282','I-Want-My-80s-Tour--Rick-Springfield--John-Waite--Wang-Chung---Paul-Young-7-5-2025'],['Trombone Shorty And Orleans Avenue','Artpark Amphitheatre','Lewiston, NY','Thursday','7/17/2025','6:00 PM','6873446','Trombone-Shorty-And-Orleans-Avenue-7-17-2025'],['Rainbow Kitten Surprise ','Artpark Amphitheatre','Lewiston, NY','Tuesday','7/29/2025','7:30 PM','6938154','Rainbow-Kitten-Surprise--7-29-2025'],['Slightly Stoopid, Iration & Little Stranger','Artpark Amphitheatre','Lewiston, NY','Friday','8/1/2025','6:30 PM','6972046','Slightly-Stoopid--Iration---Little-Stranger-8-1-2025'],['Chicago - The Band','Artpark Mainstage','Lewiston, NY','Friday','8/8/2025','8:00 PM','6927765','Chicago---The-Band-8-8-2025'],['Yacht Rock Revue','Artpark Amphitheatre','Lewiston, NY','Wednesday','8/13/2025','7:30 PM','6959587','Yacht-Rock-Revue-8-13-2025'],['Gregory Alan Isakov','Artpark Mainstage','Lewiston, NY','Sunday','8/24/2025','7:00 PM','6986045','Gregory-Alan-Isakov-8-24-2025'],['Australian Pink Floyd Show','Artpark Amphitheatre','Lewiston, NY','Wednesday','8/27/2025','7:00 PM','6968479','Australian-Pink-Floyd-Show-8-27-2025'],['Alison Krauss and Union Station, Jerry Douglas & Willie Watson','Artpark Mainstage','Lewiston, NY','Sunday','9/21/2025','7:30 PM','6861535','Alison-Krauss-and-Union-Station--Jerry-Douglas---Willie-Watson-9-21-2025']],'Artpark','https://www.ticketnetwork.com/ticket/Artpark-events.aspx');