//
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([['Cowboy Bebop Live','The Queen - Wilmington','Wilmington, DE','Friday','3/7/2025','8:00 PM','6837602','Cowboy-Bebop-Live-3-7-2025'],['Noche de Verano Sin Ti: Bad Bunny Night','The Queen - Wilmington','Wilmington, DE','Saturday','3/8/2025','9:00 PM','6950038','Noche-de-Verano-Sin-Ti--Bad-Bunny-Night-3-8-2025'],['Cavalera','The Queen - Wilmington','Wilmington, DE','Wednesday','3/12/2025','7:00 PM','6884587','Cavalera-3-12-2025'],['The Disco Biscuits','The Queen - Wilmington','Wilmington, DE','Thursday','3/13/2025','8:00 PM','6930099','The-Disco-Biscuits-3-13-2025'],['Tyler Hilton','The Queen - Wilmington','Wilmington, DE','Saturday','3/29/2025','8:00 PM','6949534','Tyler-Hilton-3-29-2025'],['The Wellermen','The Queen - Wilmington','Wilmington, DE','Tuesday','4/1/2025','8:00 PM','6930103','The-Wellermen-4-1-2025'],['Love Seed Mama Jump','The Queen - Wilmington','Wilmington, DE','Saturday','4/5/2025','9:00 PM','6950022','Love-Seed-Mama-Jump-4-5-2025'],['Justin Furstenfeld','The Queen - Wilmington','Wilmington, DE','Sunday','4/6/2025','8:00 PM','6945964','Justin-Furstenfeld-4-6-2025'],['The Jimmies','The Queen - Wilmington','Wilmington, DE','Saturday','4/19/2025','8:00 PM','6996189','The-Jimmies-4-19-2025'],['Silent Planet & Invent Animate','The Queen - Wilmington','Wilmington, DE','Sunday','5/11/2025','7:00 PM','6961183','Silent-Planet---Invent-Animate-5-11-2025'],['Gretchen Emery Band','The Queen - Wilmington','Wilmington, DE','Friday','5/16/2025','8:00 PM','6995677','Gretchen-Emery-Band-5-16-2025'],['The Menzingers','The Queen - Wilmington','Wilmington, DE','Sunday','6/1/2025','7:30 PM','6874633','The-Menzingers-6-1-2025']],'World Cafe Live at The Queen','https://www.ticketnetwork.com/ticket/World-Cafe-Live-at-The-Queen-events.aspx');