//
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([['Gary Owen','IP Casino Resort And Spa','Biloxi, MS','Saturday','2/15/2025','8:00 PM','6814010','Gary-Owen-2-15-2025'],['Samantha Fish','IP Casino Resort And Spa','Biloxi, MS','Saturday','2/22/2025','8:00 PM','6852882','Samantha-Fish-2-22-2025'],['Voyage - A Journey Tribute','IP Casino Resort And Spa','Biloxi, MS','Friday','2/28/2025','8:00 PM','6802264','Voyage---A-Journey-Tribute-2-28-2025'],['Little River Band','IP Casino Resort And Spa','Biloxi, MS','Saturday','3/8/2025','8:00 PM','6911471','Little-River-Band-3-8-2025'],['Ms. Pat','IP Casino Resort And Spa','Biloxi, MS','Saturday','3/15/2025','8:00 PM','6911153','Ms--Pat-3-15-2025'],['Clint Black','IP Casino Resort And Spa','Biloxi, MS','Friday','3/28/2025','8:00 PM','6911127','Clint-Black-3-28-2025'],['Styx','IP Casino Resort And Spa','Biloxi, MS','Friday','4/11/2025','8:00 PM','6943304','Styx-4-11-2025'],['Styx','IP Casino Resort And Spa','Biloxi, MS','Saturday','4/12/2025','8:00 PM','6943305','Styx-4-12-2025'],['Midland - Band','IP Casino Resort And Spa','Biloxi, MS','Friday','5/2/2025','8:00 PM','6874908','Midland---Band-5-2-2025'],['Happy Together Tour','IP Casino Resort And Spa','Biloxi, MS','Saturday','5/31/2025','8:00 PM','6946990','Happy-Together-Tour-5-31-2025'],['Blues Traveler','IP Casino Resort And Spa','Biloxi, MS','Saturday','11/15/2025','8:00 PM','6782730','Blues-Traveler-11-15-2025']],'IP Casino Resort and Spa','https://www.ticketnetwork.com/ticket/IP-Casino-Resort-and-Spa-events.aspx');