//
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([['A Drag Queen Christmas','State Theatre - ME','Portland, ME','Tuesday','11/19/2024','8:00 PM','6487879','A-Drag-Queen-Christmas-11-19-2024'],['Ryan Hamilton','State Theatre - ME','Portland, ME','Friday','11/22/2024','8:00 PM','6319322','Ryan-Hamilton-11-22-2024'],['Dawes','State Theatre - ME','Portland, ME','Saturday','11/23/2024','7:00 PM','6571873','Dawes-11-23-2024'],['Yoke Lore','State Theatre - ME','Portland, ME','Sunday','11/24/2024','8:00 PM','6518818','Yoke-Lore-11-24-2024'],['Maine State Ballet: The Nutcracker','Merrill Auditorium','Portland, ME','Friday','11/29/2024','2:00 PM','6718868','Maine-State-Ballet--The-Nutcracker-11-29-2024'],['Spencer And The Walrus - A Beatles Tribute','State Theatre - ME','Portland, ME','Friday','11/29/2024','8:00 PM','6669574','Spencer-And-The-Walrus---A-Beatles-Tribute-11-29-2024'],['Maine State Ballet: The Nutcracker','Merrill Auditorium','Portland, ME','Saturday','11/30/2024','2:00 PM','6718893','Maine-State-Ballet--The-Nutcracker-11-30-2024'],['Spencer And The Walrus - A Beatles Tribute','State Theatre - ME','Portland, ME','Saturday','11/30/2024','8:00 PM','6670803','Spencer-And-The-Walrus---A-Beatles-Tribute-11-30-2024'],['Maine State Ballet: The Nutcracker','Merrill Auditorium','Portland, ME','Sunday','12/1/2024','2:00 PM','6748766','Maine-State-Ballet--The-Nutcracker-12-1-2024'],['Spencer And The Walrus - A Beatles Tribute','State Theatre - ME','Portland, ME','Sunday','12/1/2024','4:00 PM','6670804','Spencer-And-The-Walrus---A-Beatles-Tribute-12-1-2024'],['Gillian Welch & David Rawlings','State Theatre - ME','Portland, ME','Tuesday','12/3/2024','7:30 PM','6578001','Gillian-Welch---David-Rawlings-12-3-2024'],['Stiff Socks Podcast: Trevor Wallace & Michael Blaustein','State Theatre - ME','Portland, ME','Wednesday','12/4/2024','8:00 PM','6696417','Stiff-Socks-Podcast--Trevor-Wallace---Michael-Blaustein-12-4-2024'],['The Lox','State Theatre - ME','Portland, ME','Friday','12/6/2024','8:30 PM','6357147','The-Lox-12-6-2024'],['Maine State Ballet: The Nutcracker','Merrill Auditorium','Portland, ME','Saturday','12/7/2024','2:00 PM','6718531','Maine-State-Ballet--The-Nutcracker-12-7-2024'],['Maine State Ballet: The Nutcracker','Merrill Auditorium','Portland, ME','Saturday','12/7/2024','7:00 PM','6748767','Maine-State-Ballet--The-Nutcracker-12-7-2024'],['The Mallett Brothers Band','State Theatre - ME','Portland, ME','Saturday','12/7/2024','8:00 PM','6741031','The-Mallett-Brothers-Band-12-7-2024'],['Maine State Ballet: The Nutcracker','Merrill Auditorium','Portland, ME','Sunday','12/8/2024','2:00 PM','6748768','Maine-State-Ballet--The-Nutcracker-12-8-2024'],['Juvenile','State Theatre - ME','Portland, ME','Monday','12/9/2024','8:00 PM','6502366','Juvenile-12-9-2024'],['Fairytale of New York - The Ultimate Irish-Inspired Christmas Concert','State Theatre - ME','Portland, ME','Tuesday','12/10/2024','7:00 PM','6653690','Fairytale-of-New-York---The-Ultimate-Irish-Inspired-Christmas-Concert-12-10-2024'],['Daughtry','State Theatre - ME','Portland, ME','Wednesday','12/11/2024','7:00 PM','6612801','Daughtry-12-11-2024'],['Rubblebucket & Hannah Mohan','State Theatre - ME','Portland, ME','Thursday','12/12/2024','8:00 PM','6725956','Rubblebucket---Hannah-Mohan-12-12-2024'],['12/OC','State Theatre - ME','Portland, ME','Friday','12/13/2024','8:00 PM','6700084','12-OC-12-13-2024'],['Santa Rave','State Theatre - ME','Portland, ME','Friday','12/20/2024','9:00 PM','6752233','Santa-Rave-12-20-2024'],['Pink Talking Fish - A Tribute to Pink Floyd, The Talking Heads & Phish','State Theatre - ME','Portland, ME','Saturday','12/21/2024','8:00 PM','6572663','Pink-Talking-Fish---A-Tribute-to-Pink-Floyd--The-Talking-Heads---Phish-12-21-2024'],['Start Making Sense - Talking Heads Tribute','State Theatre - ME','Portland, ME','Saturday','12/28/2024','8:00 PM','6663635','Start-Making-Sense---Talking-Heads-Tribute-12-28-2024'],['Zakk Sabbath - Zakk Wylde's Black Sabbath Cover Band','State Theatre - ME','Portland, ME','Thursday','1/2/2025','7:00 PM','6713295','Zakk-Sabbath---Zakk-Wylde-s-Black-Sabbath-Cover-Band-1-2-2025'],['Joy Oladokun','State Theatre - ME','Portland, ME','Tuesday','1/28/2025','8:00 PM','6737416','Joy-Oladokun-1-28-2025'],['Get The Led Out - Tribute Band','State Theatre - ME','Portland, ME','Thursday','1/30/2025','8:00 PM','6630965','Get-The-Led-Out---Tribute-Band-1-30-2025'],['Drive By Truckers','State Theatre - ME','Portland, ME','Friday','1/31/2025','8:00 PM','6752648','Drive-By-Truckers-1-31-2025'],['Blackberry Smoke','State Theatre - ME','Portland, ME','Wednesday','2/5/2025','8:00 PM','6788444','Blackberry-Smoke-2-5-2025'],['Atmosphere','State Theatre - ME','Portland, ME','Thursday','2/6/2025','7:30 PM','6788171','Atmosphere-2-6-2025'],['Big Head Todd and The Monsters','State Theatre - ME','Portland, ME','Saturday','2/15/2025','8:00 PM','6698869','Big-Head-Todd-and-The-Monsters-2-15-2025'],['Greensky Bluegrass','State Theatre - ME','Portland, ME','Sunday','2/16/2025','8:00 PM','6788255','Greensky-Bluegrass-2-16-2025'],['Michael Carbonaro','State Theatre - ME','Portland, ME','Friday','2/21/2025','7:30 PM','6777641','Michael-Carbonaro-2-21-2025'],['Faye Webster','State Theatre - ME','Portland, ME','Friday','2/28/2025','8:00 PM','6752988','Faye-Webster-2-28-2025'],['Sam Morril','State Theatre - ME','Portland, ME','Saturday','3/8/2025','7:00 PM','6764064','Sam-Morril-3-8-2025'],['Bright Eyes','State Theatre - ME','Portland, ME','Sunday','4/13/2025','7:30 PM','6612767','Bright-Eyes-4-13-2025'],['MJ Lenderman and The Wind','State Theatre - ME','Portland, ME','Sunday','5/4/2025','8:00 PM','6767142','MJ-Lenderman-and-The-Wind-5-4-2025'],['Dusty Slay','State Theatre - ME','Portland, ME','Friday','5/16/2025','7:00 PM','6752707','Dusty-Slay-5-16-2025']],'State Theatre Portland Maine','https://www.ticketnetwork.com/ticket/State-Theatre-Portland-Maine-events.aspx');