//
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-02A
TN_Widget.CreateTable([['Jordan World Circus','The Arena at the Central Wyoming Fairgrounds ','Casper, WY','Tuesday','4/30/2024','6:30 PM','6367294','Jordan-World-Circus-4-30-2024'],['Casper Allen','Felton Music Hall','Felton, CA','Thursday','5/2/2024','8:00 PM','6332136','Casper-Allen-5-2-2024'],['Southall','The Gaslight Social','Casper, WY','Saturday','5/18/2024','7:00 PM','6298549','Southall-5-18-2024'],['Spearfish Sasquatch vs. Casper Spuds','Black Hills Energy Stadium','Spearfish, SD','Saturday','6/1/2024','7:05 PM','6381609','Spearfish-Sasquatch-vs--Casper-Spuds-6-1-2024'],['Spearfish Sasquatch vs. Casper Spuds','Black Hills Energy Stadium','Spearfish, SD','Sunday','6/2/2024','5:05 PM','6381610','Spearfish-Sasquatch-vs--Casper-Spuds-6-2-2024'],['Spearfish Sasquatch vs. Casper Spuds','Black Hills Energy Stadium','Spearfish, SD','Monday','6/3/2024','7:05 PM','6381611','Spearfish-Sasquatch-vs--Casper-Spuds-6-3-2024'],['College National Finals Rodeo','Ford Wyoming Center','Casper, WY','Sunday','6/9/2024','7:00 AM','5871387','College-National-Finals-Rodeo-6-9-2024'],['College National Finals Rodeo','Ford Wyoming Center','Casper, WY','Tuesday','6/11/2024','1:00 PM','5871389','College-National-Finals-Rodeo-6-11-2024'],['College National Finals Rodeo','Ford Wyoming Center','Casper, WY','Wednesday','6/12/2024','7:00 AM','5871390','College-National-Finals-Rodeo-6-12-2024'],['Oahe Zap vs. Casper Spuds','Hyde Baseball Stadium','Pierre, SD','Wednesday','6/12/2024','6:05 PM','6377556','Oahe-Zap-vs--Casper-Spuds-6-12-2024'],['College National Finals Rodeo','Ford Wyoming Center','Casper, WY','Thursday','6/13/2024','7:00 AM','5871391','College-National-Finals-Rodeo-6-13-2024'],['Oahe Zap vs. Casper Spuds','Hyde Baseball Stadium','Pierre, SD','Thursday','6/13/2024','6:05 PM','6377557','Oahe-Zap-vs--Casper-Spuds-6-13-2024'],['College National Finals Rodeo','Ford Wyoming Center','Casper, WY','Friday','6/14/2024','7:00 PM','5871392','College-National-Finals-Rodeo-6-14-2024'],['College National Finals Rodeo','Ford Wyoming Center','Casper, WY','Saturday','6/15/2024','7:00 PM','5871393','College-National-Finals-Rodeo-6-15-2024'],['Oahe Zap vs. Casper Spuds','Hyde Baseball Stadium','Pierre, SD','Thursday','6/27/2024','6:05 PM','6377563','Oahe-Zap-vs--Casper-Spuds-6-27-2024'],['Giovannie and The Hired Guns','The Gaslight Social','Casper, WY','Thursday','6/27/2024','8:00 PM','6357482','Giovannie-and-The-Hired-Guns-6-27-2024'],['Oahe Zap vs. Casper Spuds','Hyde Baseball Stadium','Pierre, SD','Friday','6/28/2024','6:05 PM','6377564','Oahe-Zap-vs--Casper-Spuds-6-28-2024'],['Monster Truck Nitro Tour','The Arena at the Central Wyoming Fairgrounds ','Casper, WY','Saturday','7/6/2024','1:30 PM','6356887','Monster-Truck-Nitro-Tour-7-6-2024'],['Monster Truck Nitro Tour','The Arena at the Central Wyoming Fairgrounds ','Casper, WY','Saturday','7/6/2024','7:00 PM','6356889','Monster-Truck-Nitro-Tour-7-6-2024'],['Hairball','The Gaslight Social','Casper, WY','Friday','7/19/2024','8:30 PM','6239052','Hairball-7-19-2024'],['Spearfish Sasquatch vs. Casper Spuds','Black Hills Energy Stadium','Spearfish, SD','Monday','7/22/2024','7:05 PM','6381635','Spearfish-Sasquatch-vs--Casper-Spuds-7-22-2024'],['Spearfish Sasquatch vs. Casper Spuds','Black Hills Energy Stadium','Spearfish, SD','Tuesday','7/23/2024','7:05 PM','6381636','Spearfish-Sasquatch-vs--Casper-Spuds-7-23-2024'],['Spearfish Sasquatch vs. Casper Spuds','Black Hills Energy Stadium','Spearfish, SD','Wednesday','7/24/2024','7:05 PM','6381637','Spearfish-Sasquatch-vs--Casper-Spuds-7-24-2024'],['Spearfish Sasquatch vs. Casper Spuds','Black Hills Energy Stadium','Spearfish, SD','Thursday','7/25/2024','7:05 PM','6381638','Spearfish-Sasquatch-vs--Casper-Spuds-7-25-2024'],['Hozier','Ford Wyoming Center','Casper, WY','Wednesday','8/28/2024','8:00 PM','6072068','Hozier-8-28-2024'],['Foreigner','Ford Wyoming Center','Casper, WY','Tuesday','10/1/2024','7:00 PM','6357699','Foreigner-10-1-2024'],['Ian Munsick','Ford Wyoming Center','Casper, WY','Saturday','10/5/2024','6:40 PM','6373068','Ian-Munsick-10-5-2024'],['Nutcracker! Magical Christmas Ballet','Ford Wyoming Center','Casper, WY','Monday','11/25/2024','7:00 PM','6348922','Nutcracker--Magical-Christmas-Ballet-11-25-2024'],['Heather McDonald','Ford Wyoming Center','Casper, WY','Thursday','12/4/2070','5:00 PM','4563844','Heather-McDonald-12-4-2070']],'Casper','http://www.ticketnetwork.com/ticket/Casper-events.aspx');