//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://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[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ 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-03A
TN_Widget.CreateTable([['Mammoth WVH','Aura - ME','Portland, ME','Sunday','5/5/2024','8:00 PM','6129074','Mammoth-WVH-5-5-2024'],['Too Many Zooz','Aura - ME','Portland, ME','Saturday','5/25/2024','8:00 PM','6408339','Too-Many-Zooz-5-25-2024'],['Satisfaction - Rolling Stones Tribute','Aura - ME','Portland, ME','Saturday','6/1/2024','9:00 PM','6247164','Satisfaction---Rolling-Stones-Tribute-6-1-2024'],['Portland Pride','Aura - ME','Portland, ME','Saturday','6/15/2024','8:00 PM','6385107','Portland-Pride-6-15-2024'],['Bruce In The U.S.A. - Bruce Springsteen Tribute','Aura - ME','Portland, ME','Friday','6/21/2024','9:00 PM','6326125','Bruce-In-The-U-S-A----Bruce-Springsteen-Tribute-6-21-2024'],['Rodney Atkins','Aura - ME','Portland, ME','Saturday','6/22/2024','9:00 PM','6348217','Rodney-Atkins-6-22-2024'],['Felly','Aura - ME','Portland, ME','Wednesday','6/26/2024','7:00 PM','6346844','Felly-6-26-2024'],['Priscilla Block','Aura - ME','Portland, ME','Saturday','7/6/2024','9:00 PM','6381840','Priscilla-Block-7-6-2024'],['Dopapod','Aura - ME','Portland, ME','Friday','7/12/2024','9:00 PM','6351617','Dopapod-7-12-2024'],['The Record Company','Aura - ME','Portland, ME','Wednesday','7/31/2024','7:30 PM','6387704','The-Record-Company-7-31-2024'],['Bowling for Soup','Aura - ME','Portland, ME','Wednesday','9/18/2024','7:30 PM','6343474','Bowling-for-Soup-9-18-2024'],['Robin Trower','Aura - ME','Portland, ME','Sunday','10/6/2024','8:00 PM','6381383','Robin-Trower-10-6-2024'],['Foreigners Journey - Tribute to Journey & Foreigner','Aura - ME','Portland, ME','Friday','11/15/2024','9:00 PM','6256196','Foreigners-Journey---Tribute-to-Journey---Foreigner-11-15-2024'],['Tusk - Tribute To Fleetwood Mac','Aura - ME','Portland, ME','Friday','11/22/2024','9:00 PM','6258347','Tusk---Tribute-To-Fleetwood-Mac-11-22-2024'],['Ally Brooke','Aura - Tempe','Tempe, AZ','Monday','3/31/2070','TBD','4358680','Ally-Brooke-3-31-2070'],['Soul Asylum','Aura - ME','Portland, ME','Friday','4/29/2072','9:00 PM','4981912','Soul-Asylum-4-29-2072']],'AURA','http://www.ticketnetwork.com/ticket/AURA-events.aspx');