//
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([['Florida International Panthers vs. Middle Tennessee State Blue Raiders','Pitbull Stadium','Miami, FL','Saturday','11/30/2024','2:00 PM','6246432','Florida-International-Panthers-vs--Middle-Tennessee-State-Blue-Raiders-11-30-2024'],['Besame Mucho: Enrique Iglesias, Shakira, Pitbull & Los Tigres Del Norte','Dodger Stadium','Los Angeles, CA','Saturday','12/21/2024','TBD','6461594','Besame-Mucho--Enrique-Iglesias--Shakira--Pitbull---Los-Tigres-Del-Norte-12-21-2024'],['Pitbull','Hard Rock Live At Etess Arena','Atlantic City, NJ','Friday','12/27/2024','8:00 PM','6724824','Pitbull-12-27-2024'],['Pitbull','Hard Rock Live At Etess Arena','Atlantic City, NJ','Saturday','12/28/2024','8:00 PM','6724825','Pitbull-12-28-2024'],['Bebeshito','Pitbull Stadium','Miami, FL','Saturday','12/28/2024','8:00 PM','6816047','Bebeshito-12-28-2024'],['Pitbull','Mohegan Sun Arena - CT','Uncasville, CT','Sunday','12/29/2024','7:30 PM','6723294','Pitbull-12-29-2024'],['Pitbull','Hard Rock Live At Etess Arena','Atlantic City, NJ','Tuesday','12/31/2024','10:00 PM','6724826','Pitbull-12-31-2024'],['Pitbull','BleauLive Theater At Fontainebleau Las Vegas','Las Vegas, NV','Friday','1/24/2025','8:00 PM','6721152','Pitbull-1-24-2025'],['Pitbull','BleauLive Theater At Fontainebleau Las Vegas','Las Vegas, NV','Saturday','1/25/2025','8:00 PM','6721153','Pitbull-1-25-2025'],['Pitbull','O2 Arena - London','London, United Kingdom','Friday','2/21/2025','6:30 PM','6825316','Pitbull-2-21-2025'],['Pitbull','Lanxess Arena','Köln, Germany','Tuesday','2/25/2025','8:00 PM','6827333','Pitbull-2-25-2025'],['Pitbull','BleauLive Theater At Fontainebleau Las Vegas','Las Vegas, NV','Friday','3/7/2025','8:00 PM','6721154','Pitbull-3-7-2025'],['Pitbull','BleauLive Theater At Fontainebleau Las Vegas','Las Vegas, NV','Saturday','3/8/2025','8:00 PM','6721155','Pitbull-3-8-2025'],['Pitbull','BleauLive Theater At Fontainebleau Las Vegas','Las Vegas, NV','Friday','3/14/2025','8:00 PM','6721156','Pitbull-3-14-2025'],['Pitbull','BleauLive Theater At Fontainebleau Las Vegas','Las Vegas, NV','Saturday','3/15/2025','8:00 PM','6721157','Pitbull-3-15-2025']],'Pitbull','https://www.ticketnetwork.com/ticket/Pitbull-events.aspx');