//
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([['Ukraine Odesa National Ballet: Don Quixote','Palace Theatre Albany','Albany, NY','Sunday','3/9/2025','7:00 PM','6969804','Ukraine-Odesa-National-Ballet--Don-Quixote-3-9-2025'],['Charles Wesley Godwin','Palace Theatre Albany','Albany, NY','Saturday','3/15/2025','8:00 PM','6869748','Charles-Wesley-Godwin-3-15-2025'],['Vancouver Warriors vs. Albany FireWolves','Rogers Arena','Vancouver, Canada','Friday','4/4/2025','7:00 PM','6717255','Vancouver-Warriors-vs--Albany-FireWolves-4-4-2025'],['Nurse John','Palace Theatre Albany','Albany, NY','Friday','4/18/2025','7:00 PM','6864763','Nurse-John-4-18-2025'],['Melissa Etheridge & Joss Stone','Palace Theatre Albany','Albany, NY','Tuesday','4/29/2025','7:30 PM','6740179','Melissa-Etheridge---Joss-Stone-4-29-2025'],['World Ballet Company: The Great Gatsby','Palace Theatre Albany','Albany, NY','Friday','5/16/2025','7:00 PM','6774952','World-Ballet-Company--The-Great-Gatsby-5-16-2025'],['Pat Benatar & Neil Giraldo','Palace Theatre Albany','Albany, NY','Wednesday','5/21/2025','8:00 PM','6983532','Pat-Benatar---Neil-Giraldo-5-21-2025'],['Tom Segura','Palace Theatre Albany','Albany, NY','Friday','5/23/2025','7:00 PM','6749541','Tom-Segura-5-23-2025'],['Tom Segura','Palace Theatre Albany','Albany, NY','Friday','5/23/2025','9:30 PM','6795032','Tom-Segura-5-23-2025'],['CoComelon Live!','Palace Theatre Albany','Albany, NY','Friday','5/30/2025','6:00 PM','6996124','CoComelon-Live--5-30-2025'],['Brad Williams','Palace Theatre Albany','Albany, NY','Thursday','8/21/2025','7:00 PM','6875008','Brad-Williams-8-21-2025'],['Australian Pink Floyd Show','Palace Theatre Albany','Albany, NY','Sunday','9/14/2025','8:00 PM','6968486','Australian-Pink-Floyd-Show-9-14-2025'],['Stardew Valley: Symphony Of Seasons','Palace Theatre Albany','Albany, NY','Thursday','10/30/2025','8:00 PM','6840887','Stardew-Valley--Symphony-Of-Seasons-10-30-2025'],['Grand Kyiv Ballet: Swan Lake','Palace Theatre Albany','Albany, NY','Saturday','11/1/2025','7:00 PM','6954366','Grand-Kyiv-Ballet--Swan-Lake-11-1-2025']],'Palace Theatre Albany','https://www.ticketnetwork.com/ticket/Palace-Theatre-Albany-events.aspx');