//
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-02A
TN_Widget.CreateTable([['Sturgill Simpson','The Wharf Amphitheatre','Orange Beach, AL','Tuesday','4/8/2025','7:30 PM','6989746','Sturgill-Simpson-4-8-2025'],['Alison Krauss and Union Station, Jerry Douglas & Willie Watson','The Wharf Amphitheatre','Orange Beach, AL','Friday','5/2/2025','7:30 PM','6861454','Alison-Krauss-and-Union-Station--Jerry-Douglas---Willie-Watson-5-2-2025'],['Breaking Benjamin & Staind','The Wharf Amphitheatre','Orange Beach, AL','Saturday','5/10/2025','5:45 PM','6860830','Breaking-Benjamin---Staind-5-10-2025'],['Teddy Swims','The Wharf Amphitheatre','Orange Beach, AL','Monday','5/12/2025','8:00 PM','6738251','Teddy-Swims-5-12-2025'],['Keith Urban, Chase Matthew & Alana Springsteen','The Wharf Amphitheatre','Orange Beach, AL','Thursday','5/22/2025','7:00 PM','6871539','Keith-Urban--Chase-Matthew---Alana-Springsteen-5-22-2025'],['Dwight Yoakam & The Mavericks','The Wharf Amphitheatre','Orange Beach, AL','Thursday','5/29/2025','7:30 PM','6826712','Dwight-Yoakam---The-Mavericks-5-29-2025'],['Tyler Childers','The Wharf Amphitheatre','Orange Beach, AL','Sunday','6/1/2025','8:00 PM','6826120','Tyler-Childers-6-1-2025'],['Nate Bargatze','The Wharf Amphitheatre','Orange Beach, AL','Thursday','6/12/2025','7:00 PM','6858775','Nate-Bargatze-6-12-2025'],['Kansas, .38 Special & The Outlaws','The Wharf Amphitheatre','Orange Beach, AL','Friday','6/20/2025','7:00 PM','6955763','Kansas---38-Special---The-Outlaws-6-20-2025'],['Thomas Rhett, Tucker Wetmore & The Castellows','The Wharf Amphitheatre','Orange Beach, AL','Saturday','6/28/2025','7:30 PM','6710378','Thomas-Rhett--Tucker-Wetmore---The-Castellows-6-28-2025'],['The Red Clay Strays','The Wharf Amphitheatre','Orange Beach, AL','Thursday','7/3/2025','7:00 PM','6819860','The-Red-Clay-Strays-7-3-2025'],['The Red Clay Strays','The Wharf Amphitheatre','Orange Beach, AL','Friday','7/4/2025','7:00 PM','6824304','The-Red-Clay-Strays-7-4-2025'],['The Red Clay Strays','The Wharf Amphitheatre','Orange Beach, AL','Saturday','7/5/2025','6:30 PM','6913425','The-Red-Clay-Strays-7-5-2025'],['Parker McCollum','The Wharf Amphitheatre','Orange Beach, AL','Saturday','7/26/2025','7:30 PM','6881868','Parker-McCollum-7-26-2025']],'The Amphitheater at the Wharf','https://www.ticketnetwork.com/ticket/The-Amphitheater-at-the-Wharf-events.aspx');