//
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([['Twisted Xmas: Cage The Elephant, Franz Ferdinand, & almost monday','Byline Bank Aragon Ballroom','Chicago, IL','Tuesday','12/10/2024','7:00 PM','6764029','Twisted-Xmas--Cage-The-Elephant--Franz-Ferdinand----almost-monday-12-10-2024'],['FM 102.1 Big Snow Show: Cage The Elephant & Badflower','Eagles Ballroom','Milwaukee, WI','Wednesday','12/11/2024','8:00 PM','6790522','FM-102-1-Big-Snow-Show--Cage-The-Elephant---Badflower-12-11-2024'],['iHeartRadio ALTer Ego: Incubus, The Lumineers, & Cage The Elephant','The Kia Forum','Inglewood, CA','Saturday','1/11/2025','7:00 PM','6764343','iHeartRadio-ALTer-Ego--Incubus--The-Lumineers----Cage-The-Elephant-1-11-2025'],['Oasis & Cage The Elephant','Rogers Stadium At Downsview Airport','Toronto, Canada','Sunday','8/24/2025','7:30 PM','6736200','Oasis---Cage-The-Elephant-8-24-2025'],['Oasis & Cage The Elephant','Rogers Stadium At Downsview Airport','Toronto, Canada','Monday','8/25/2025','7:30 PM','6742133','Oasis---Cage-The-Elephant-8-25-2025'],['Oasis & Cage The Elephant','Soldier Field','Chicago, IL','Thursday','8/28/2025','7:30 PM','6736183','Oasis---Cage-The-Elephant-8-28-2025'],['Oasis & Cage The Elephant','MetLife Stadium','East Rutherford, NJ','Sunday','8/31/2025','7:30 PM','6736184','Oasis---Cage-The-Elephant-8-31-2025'],['Oasis & Cage The Elephant','MetLife Stadium','East Rutherford, NJ','Monday','9/1/2025','7:30 PM','6742132','Oasis---Cage-The-Elephant-9-1-2025'],['Oasis & Cage The Elephant','Rose Bowl Stadium - Pasadena','Pasadena, CA','Saturday','9/6/2025','7:30 PM','6736186','Oasis---Cage-The-Elephant-9-6-2025'],['Oasis & Cage The Elephant','Rose Bowl Stadium - Pasadena','Pasadena, CA','Sunday','9/7/2025','7:30 PM','6742131','Oasis---Cage-The-Elephant-9-7-2025'],['Oasis & Cage The Elephant','Estadio GNP Seguros - Mexico City','Mexico City, Mexico','Friday','9/12/2025','7:00 PM','6736188','Oasis---Cage-The-Elephant-9-12-2025'],['Oasis & Cage The Elephant','Estadio GNP Seguros - Mexico City','Mexico City, Mexico','Saturday','9/13/2025','7:00 PM','6742142','Oasis---Cage-The-Elephant-9-13-2025']],'Cage The Elephant','https://www.ticketnetwork.com/ticket/Cage-The-Elephant-events.aspx');