//
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([['Trailblazing Women of Country','Alberta Bair Theater','Billings, MT','Friday','2/28/2025','7:30 PM','6565199','Trailblazing-Women-of-Country-2-28-2025'],['The Ultimate Queen Celebration','Alberta Bair Theater','Billings, MT','Saturday','3/8/2025','7:30 PM','6565196','The-Ultimate-Queen-Celebration-3-8-2025'],['R.E.S.P.E.C.T - Aretha Franklin Tribute','Alberta Bair Theater','Billings, MT','Tuesday','3/11/2025','7:30 PM','6565197','R-E-S-P-E-C-T---Aretha-Franklin-Tribute-3-11-2025'],['Billings Symphony Orchestra: Lore and Legends - Dress Rehearsal','Alberta Bair Theater','Billings, MT','Saturday','3/15/2025','10:30 AM','6857516','Billings-Symphony-Orchestra--Lore-and-Legends---Dress-Rehearsal-3-15-2025'],['Billings Symphony Orchestra: Lore and Legends','Alberta Bair Theater','Billings, MT','Saturday','3/15/2025','7:30 PM','6565200','Billings-Symphony-Orchestra--Lore-and-Legends-3-15-2025'],['Step Afrika','Alberta Bair Theater','Billings, MT','Friday','3/21/2025','7:30 PM','6565194','Step-Afrika-3-21-2025'],['Hotel California - A Tribute to The Eagles','Alberta Bair Theater','Billings, MT','Saturday','4/5/2025','7:30 PM','6857511','Hotel-California---A-Tribute-to-The-Eagles-4-5-2025'],['Uptown','Alberta Bair Theater','Billings, MT','Saturday','4/12/2025','7:30 PM','6565198','Uptown-4-12-2025'],['Billings Symphony Orchestra: Tchaikovsky's 5th Symphony - Dress Rehearsal','Alberta Bair Theater','Billings, MT','Friday','4/25/2025','7:00 PM','6857515','Billings-Symphony-Orchestra--Tchaikovsky-s-5th-Symphony---Dress-Rehearsal-4-25-2025'],['Billings Symphony Orchestra: Tchaikovsky's 5th Symphony','Alberta Bair Theater','Billings, MT','Saturday','4/26/2025','7:30 PM','6565182','Billings-Symphony-Orchestra--Tchaikovsky-s-5th-Symphony-4-26-2025'],['Winter Dance Party','Alberta Bair Theater','Billings, MT','Saturday','5/3/2025','7:30 PM','6857514','Winter-Dance-Party-5-3-2025'],['Jason Isbell & The 400 Unit','Alberta Bair Theater','Billings, MT','Wednesday','5/7/2025','7:30 PM','6881472','Jason-Isbell---The-400-Unit-5-7-2025'],['Michael Cavanaugh Plays The Songs of Elton John and More','Alberta Bair Theater','Billings, MT','Saturday','5/10/2025','7:30 PM','6565179','Michael-Cavanaugh-Plays-The-Songs-of-Elton-John-and-More-5-10-2025'],['Champions of Magic','Alberta Bair Theater','Billings, MT','Tuesday','5/13/2025','7:30 PM','6565175','Champions-of-Magic-5-13-2025'],['Brad Williams','Alberta Bair Theater','Billings, MT','Saturday','6/21/2025','7:00 PM','6599793','Brad-Williams-6-21-2025']],'Alberta Bair Theater','https://www.ticketnetwork.com/ticket/Alberta-Bair-Theater-events.aspx');