//
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([['Mustafa The Poet','Arts At The Armory','Somerville, MA','Wednesday','2/26/2025','8:00 PM','6876540','Mustafa-The-Poet-2-26-2025'],['Post Sex Nachos','Arts At The Armory','Somerville, MA','Tuesday','3/4/2025','8:00 PM','6823182','Post-Sex-Nachos-3-4-2025'],['Emile Mosseri','Arts At The Armory','Somerville, MA','Tuesday','3/11/2025','8:00 PM','6961058','Emile-Mosseri-3-11-2025'],['Sarah Keyworth','Arts At The Armory','Somerville, MA','Saturday','3/15/2025','7:00 PM','6799717','Sarah-Keyworth-3-15-2025'],['Weatherday','Arts At The Armory','Somerville, MA','Wednesday','3/19/2025','8:00 PM','6791778','Weatherday-3-19-2025'],['Troy Hawke','Arts At The Armory','Somerville, MA','Friday','4/4/2025','7:00 PM','6688349','Troy-Hawke-4-4-2025'],['Well There's Your Problem Podcast','Arts At The Armory','Somerville, MA','Wednesday','4/30/2025','7:30 PM','6800250','Well-There-s-Your-Problem-Podcast-4-30-2025'],['Evolution of a Snake','Arts At The Armory','Somerville, MA','Thursday','5/29/2025','7:30 PM','6878857','Evolution-of-a-Snake-5-29-2025'],['The Ocean Blue','Arts At The Armory','Somerville, MA','Friday','6/6/2025','8:00 PM','6813803','The-Ocean-Blue-6-6-2025'],['Horse the Band','Arts At The Armory','Somerville, MA','Wednesday','6/18/2025','7:30 PM','6962741','Horse-the-Band-6-18-2025'],['Janeane Garofalo','Arts At The Armory','Somerville, MA','Thursday','11/13/2025','7:00 PM','6976386','Janeane-Garofalo-11-13-2025']],'Arts at the Armory','https://www.ticketnetwork.com/ticket/Arts-at-the-Armory-events.aspx');