//
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-01A
TN_Widget.CreateTable([['GWAR','Webster Theater','Hartford, CT','Friday','6/7/2024','7:00 PM','6387158','GWAR-6-7-2024'],['GWAR','Reverb - PA','Reading, PA','Saturday','6/8/2024','7:00 PM','6387160','GWAR-6-8-2024'],['GWAR','9:30 Club','Washington, DC','Sunday','6/9/2024','6:00 PM','6387201','GWAR-6-9-2024'],['GWAR','The Senate at Tin Roof','Columbia, SC','Tuesday','6/11/2024','7:00 PM','6387218','GWAR-6-11-2024'],['GWAR','Manchester Music Hall','Lexington, KY','Wednesday','6/12/2024','7:00 PM','6387161','GWAR-6-12-2024'],['Bonnaroo Music & Arts Festival: Pretty Lights, Post Malone, Red Hot Chili Peppers & Fred Again - 4 Day Pass','The Bonnaroo Farm','Manchester, TN','Thursday','6/13/2024','TBD','6053933','Bonnaroo-Music---Arts-Festival--Pretty-Lights--Post-Malone--Red-Hot-Chili-Peppers---Fred-Again---4-Day-Pass-6-13-2024'],['Bonnaroo Music & Arts Festival - Thursday','The Bonnaroo Farm','Manchester, TN','Thursday','6/13/2024','12:00 PM','6054144','Bonnaroo-Music---Arts-Festival---Thursday-6-13-2024'],['GWAR','Iron City - Birmingham','Birmingham, AL','Friday','6/14/2024','7:00 PM','6387219','GWAR-6-14-2024'],['GWAR','Minglewood Hall','Memphis, TN','Saturday','6/15/2024','7:00 PM','6387220','GWAR-6-15-2024'],['GWAR','Club LA - Destin','Destin, FL','Sunday','6/16/2024','7:00 PM','6387221','GWAR-6-16-2024'],['GWAR','The Ritz Ybor','Tampa, FL','Monday','6/17/2024','6:00 PM','6387222','GWAR-6-17-2024'],['GWAR','Town Ballroom','Buffalo, NY','Thursday','9/12/2024','6:00 PM','6387174','GWAR-9-12-2024'],['GWAR','Bogarts','Cincinnati, OH','Friday','9/13/2024','6:00 PM','6387225','GWAR-9-13-2024'],['GWAR','Vogue Theatre - IN','Indianapolis, IN','Saturday','9/14/2024','7:00 PM','6387184','GWAR-9-14-2024'],['GWAR','Mr Small's Theatre','Pittsburgh, PA','Monday','9/16/2024','6:45 PM','6387188','GWAR-9-16-2024'],['GWAR','The Pageant','St. Louis, MO','Tuesday','9/17/2024','7:00 PM','6387226','GWAR-9-17-2024'],['GWAR','Little Rock Hall - AR','Little Rock, AR','Wednesday','9/18/2024','7:00 PM','6387192','GWAR-9-18-2024'],['GWAR','JJ's Live','Fayetteville, AR','Friday','9/20/2024','7:00 PM','6387229','GWAR-9-20-2024']],'GWAR','http://www.ticketnetwork.com/ticket/GWAR-events.aspx');