//
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([['Shadows of Doubt, Whispers of Innocence','Jo Long Theatre','San Antonio, TX','Sunday','9/15/2024','5:00 PM','6484117','Shadows-of-Doubt--Whispers-of-Innocence-9-15-2024'],['One More Time: The O'Jays, The Whispers, The Dramatics & J. Anthony Brown','Arie Crown Theater','Chicago, IL','Friday','10/11/2024','8:00 PM','6599850','One-More-Time--The-O-Jays--The-Whispers--The-Dramatics---J--Anthony-Brown-10-11-2024'],['One More Time: The O'Jays, The Whispers, Alexander O'Neal, Cherelle & J. Anthony Brown','Fox Theatre - Detroit','Detroit, MI','Saturday','10/12/2024','8:00 PM','6599853','One-More-Time--The-O-Jays--The-Whispers--Alexander-O-Neal--Cherelle---J--Anthony-Brown-10-12-2024'],['The Whispers','Birchmere Music Hall','Alexandria, VA','Friday','10/18/2024','7:30 PM','6415087','The-Whispers-10-18-2024'],['The Whispers','Birchmere Music Hall','Alexandria, VA','Saturday','10/19/2024','7:30 PM','6415088','The-Whispers-10-19-2024'],['The Whispers','Cannery Hotel & Casino','Las Vegas, NV','Saturday','10/26/2024','8:00 PM','6488848','The-Whispers-10-26-2024'],['The Whispers','Isleta Casino & Resort - Showroom','Albuquerque, NM','Saturday','11/9/2024','8:00 PM','6571696','The-Whispers-11-9-2024']],'The Whispers','http://www.ticketnetwork.com/ticket/The-Whispers-events.aspx');