//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://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[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ 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([['The Killers','Merriweather Post Pavilion','Columbia, MD','Sunday','9/8/2024','7:30 PM','6441075','The-Killers-9-8-2024'],['Cigarettes After Sex','Merriweather Post Pavilion','Columbia, MD','Tuesday','9/10/2024','8:00 PM','6295627','Cigarettes-After-Sex-9-10-2024'],['Kygo & Sam Feldt','Merriweather Post Pavilion','Columbia, MD','Thursday','9/12/2024','7:00 PM','6395693','Kygo---Sam-Feldt-9-12-2024'],['Lake Street Dive','Merriweather Post Pavilion','Columbia, MD','Friday','9/13/2024','8:00 PM','6239892','Lake-Street-Dive-9-13-2024'],['Porter Robinson','Merriweather Post Pavilion','Columbia, MD','Saturday','9/14/2024','8:00 PM','6406737','Porter-Robinson-9-14-2024'],['The National & The War On Drugs','Merriweather Post Pavilion','Columbia, MD','Monday','9/16/2024','6:45 PM','6287210','The-National---The-War-On-Drugs-9-16-2024'],['Vance Joy','Merriweather Post Pavilion','Columbia, MD','Saturday','9/21/2024','7:00 PM','6407371','Vance-Joy-9-21-2024'],['My Morning Jacket & Nathaniel Rateliff and The Night Sweats','Merriweather Post Pavilion','Columbia, MD','Friday','9/27/2024','7:30 PM','6340919','My-Morning-Jacket---Nathaniel-Rateliff-and-The-Night-Sweats-9-27-2024'],['All Things Go Music Festival: Laufey, Bleachers, Hozier & Renee Rapp - 2 Day Pass','Merriweather Post Pavilion','Columbia, MD','Saturday','9/28/2024','TBD','6383902','All-Things-Go-Music-Festival--Laufey--Bleachers--Hozier---Renee-Rapp---2-Day-Pass-9-28-2024'],['All Things Go Music Festival: Laufey, Bleachers & Janelle Monae - Saturday','Merriweather Post Pavilion','Columbia, MD','Saturday','9/28/2024','11:30 AM','6383904','All-Things-Go-Music-Festival--Laufey--Bleachers---Janelle-Monae---Saturday-9-28-2024'],['All Things Go Music Festival: Hozier, Renee Rapp & Conan Gray - Sunday','Merriweather Post Pavilion','Columbia, MD','Sunday','9/29/2024','11:30 AM','6383905','All-Things-Go-Music-Festival--Hozier--Renee-Rapp---Conan-Gray---Sunday-9-29-2024'],['Kaytranada','Merriweather Post Pavilion','Columbia, MD','Sunday','10/6/2024','8:00 PM','6569309','Kaytranada-10-6-2024'],['Anderson .Paak and The Free Nationals','Merriweather Post Pavilion','Columbia, MD','Wednesday','10/9/2024','8:00 PM','6533569','Anderson--Paak-and-The-Free-Nationals-10-9-2024']],'Merriweather Post Pavilion','http://www.ticketnetwork.com/ticket/Merriweather-Post-Pavilion-events.aspx');