//
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([['Sugar's Big Top!','Mount Baker Theatre','Bellingham, WA','Friday','3/7/2025','7:30 PM','6898117','Sugar-s-Big-Top--3-7-2025'],['Colin James','Mount Baker Theatre','Bellingham, WA','Saturday','3/8/2025','7:30 PM','6512974','Colin-James-3-8-2025'],['Dragons and Mythical Beasts','Mount Baker Theatre','Bellingham, WA','Sunday','3/16/2025','3:00 PM','6512975','Dragons-and-Mythical-Beasts-3-16-2025'],['Bellingham Symphony Orchestra: Making Waves','Mount Baker Theatre','Bellingham, WA','Sunday','3/23/2025','3:00 PM','6864484','Bellingham-Symphony-Orchestra--Making-Waves-3-23-2025'],['The Wood Brothers','Mount Baker Theatre','Bellingham, WA','Saturday','3/29/2025','7:30 PM','6782751','The-Wood-Brothers-3-29-2025'],['Charlie Chaplin's The Circus','Mount Baker Theatre','Bellingham, WA','Saturday','4/12/2025','2:00 PM','6512979','Charlie-Chaplin-s-The-Circus-4-12-2025'],['Seattle Men's Chorus Salutes Dolly','Mount Baker Theatre','Bellingham, WA','Sunday','4/13/2025','3:00 PM','6893099','Seattle-Men-s-Chorus-Salutes-Dolly-4-13-2025'],['State Ballet Theatre of Ukraine: Swan Lake','Mount Baker Theatre','Bellingham, WA','Thursday','4/24/2025','7:00 PM','6879944','State-Ballet-Theatre-of-Ukraine--Swan-Lake-4-24-2025'],['Bellingham Symphony Orchestra: Singing Out','Mount Baker Theatre','Bellingham, WA','Sunday','4/27/2025','3:00 PM','6879981','Bellingham-Symphony-Orchestra--Singing-Out-4-27-2025'],['Direct From Sweden - The Music of ABBA','Mount Baker Theatre','Bellingham, WA','Saturday','5/3/2025','7:30 PM','6864537','Direct-From-Sweden---The-Music-of-ABBA-5-3-2025'],['Take It To The Limit - Eagles Tribute','Mount Baker Theatre','Bellingham, WA','Saturday','5/17/2025','7:30 PM','6879898','Take-It-To-The-Limit---Eagles-Tribute-5-17-2025'],['The Addams Family','Mount Baker Theatre','Bellingham, WA','Wednesday','6/4/2025','7:00 PM','6606760','The-Addams-Family-6-4-2025'],['Bellingham Symphony Orchestra: Titans','Mount Baker Theatre','Bellingham, WA','Sunday','6/8/2025','3:00 PM','6879453','Bellingham-Symphony-Orchestra--Titans-6-8-2025'],['Booker T. Jones','Mount Baker Theatre','Bellingham, WA','Thursday','10/2/2025','7:30 PM','6879429','Booker-T--Jones-10-2-2025']],'Mount Baker Theatre','https://www.ticketnetwork.com/ticket/Mount-Baker-Theatre-events.aspx');