//
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-04A
TN_Widget.CreateTable([['Timmy Trumpet','Hakkasan - MGM Casino','Las Vegas, NV','Friday','2/28/2025','10:30 PM','6961924','Timmy-Trumpet-2-28-2025'],['Steve Aoki','Hakkasan - MGM Casino','Las Vegas, NV','Saturday','3/1/2025','10:30 PM','6901191','Steve-Aoki-3-1-2025'],['Steve Aoki','Hakkasan - MGM Casino','Las Vegas, NV','Thursday','3/6/2025','10:30 PM','6901192','Steve-Aoki-3-6-2025'],['Loud Luxury','Hakkasan - MGM Casino','Las Vegas, NV','Saturday','3/8/2025','10:30 PM','6883492','Loud-Luxury-3-8-2025'],['Twinsick','Hakkasan - MGM Casino','Las Vegas, NV','Thursday','3/13/2025','10:30 PM','6961955','Twinsick-3-13-2025'],['DJ Pauly D','Hakkasan - MGM Casino','Las Vegas, NV','Friday','3/28/2025','6:30 PM','6961832','DJ-Pauly-D-3-28-2025'],['Lil Jon','Hakkasan - MGM Casino','Las Vegas, NV','Thursday','4/3/2025','10:30 PM','6961988','Lil-Jon-4-3-2025'],['Deorro','Hakkasan - MGM Casino','Las Vegas, NV','Saturday','4/5/2025','10:30 PM','6961799','Deorro-4-5-2025'],['Studio 54 - Greatest Dance Songs by the Greatest Dance Bands of the 70s','HopMonk Tavern - Novato','Novato, CA','Friday','4/11/2025','9:00 PM','7005574','Studio-54---Greatest-Dance-Songs-by-the-Greatest-Dance-Bands-of-the-70s-4-11-2025'],['Twinsick','Hakkasan - MGM Casino','Las Vegas, NV','Thursday','4/17/2025','10:30 PM','6961956','Twinsick-4-17-2025'],['DJ Pauly D','Hakkasan - MGM Casino','Las Vegas, NV','Saturday','4/26/2025','6:30 PM','6961833','DJ-Pauly-D-4-26-2025'],['Twinsick','Hakkasan - MGM Casino','Las Vegas, NV','Saturday','5/17/2025','10:30 PM','6961957','Twinsick-5-17-2025'],['DJ Pauly D','Hakkasan - MGM Casino','Las Vegas, NV','Saturday','5/31/2025','6:30 PM','6961834','DJ-Pauly-D-5-31-2025']],'Studio 54','https://www.ticketnetwork.com/ticket/Studio-54-events.aspx');