//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://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[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ 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([['Extra Innings Festival: The Lumineers, Kacey Musgraves & Kings of Leon - 2 Day Pass','Tempe Beach Park','Tempe, AZ','Friday','2/28/2025','TBD','6675507','Extra-Innings-Festival--The-Lumineers--Kacey-Musgraves---Kings-of-Leon---2-Day-Pass-2-28-2025'],['Extra Innings Festival: Kacey Musgraves, Kings of Leon, Maren Morris & Grace Potter - Saturday','Tempe Beach Park','Tempe, AZ','Saturday','3/1/2025','12:00 PM','6675509','Extra-Innings-Festival--Kacey-Musgraves--Kings-of-Leon--Maren-Morris---Grace-Potter---Saturday-3-1-2025'],['Tecate Pal Norte: Olivia Rodrigo, Kings of Leon & Charli XCX - Sunday','Parque Fundidora','Monterrey, Mexico','Sunday','4/6/2025','2:00 PM','6896213','Tecate-Pal-Norte--Olivia-Rodrigo--Kings-of-Leon---Charli-XCX---Sunday-4-6-2025'],['Come Together Festival: Kings of Leon - Sunday','Town Moor','Newcastle Upon Tyne, United Kingdom','Sunday','6/8/2025','12:00 PM','6896231','Come-Together-Festival--Kings-of-Leon---Sunday-6-8-2025'],['Kings of Leon','Blackweir','Cardiff, United Kingdom','Sunday','6/29/2025','5:00 PM','6896305','Kings-of-Leon-6-29-2025'],['Lytham Festival: Kings of Leon','Lytham Green','Lancashire, United Kingdom','Wednesday','7/2/2025','5:00 PM','6896307','Lytham-Festival--Kings-of-Leon-7-2-2025'],['Zach Bryan & Kings of Leon','MetLife Stadium','East Rutherford, NJ','Friday','7/18/2025','7:00 PM','6830272','Zach-Bryan---Kings-of-Leon-7-18-2025'],['Zach Bryan & Kings of Leon','MetLife Stadium','East Rutherford, NJ','Saturday','7/19/2025','7:00 PM','6828876','Zach-Bryan---Kings-of-Leon-7-19-2025'],['Zach Bryan & Kings of Leon','MetLife Stadium','East Rutherford, NJ','Sunday','7/20/2025','7:00 PM','6825023','Zach-Bryan---Kings-of-Leon-7-20-2025'],['Zach Bryan & Kings of Leon','Golden Gate Park','San Francisco, CA','Friday','8/15/2025','3:00 PM','6864911','Zach-Bryan---Kings-of-Leon-8-15-2025']],'Kings Of Leon','http://www.ticketnetwork.com/ticket/Kings-Of-Leon-events.aspx');