//
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-04A
TN_Widget.CreateTable([['Riot Ten','Cargo Concert Hall At Whitney Peak Hotel','Reno, NV','Saturday','10/5/2024','9:00 PM','6532626','Riot-Ten-10-5-2024'],['Halloween Bass Ball','Cargo Concert Hall At Whitney Peak Hotel','Reno, NV','Saturday','10/26/2024','8:00 PM','6647302','Halloween-Bass-Ball-10-26-2024'],['The Drums','Cargo Concert Hall At Whitney Peak Hotel','Reno, NV','Wednesday','11/13/2024','8:00 PM','6488476','The-Drums-11-13-2024'],['Tape B','Cargo Concert Hall At Whitney Peak Hotel','Reno, NV','Thursday','11/14/2024','9:00 PM','6687385','Tape-B-11-14-2024'],['Jessica Audiffred','Cargo Concert Hall At Whitney Peak Hotel','Reno, NV','Thursday','12/12/2024','9:00 PM','6572882','Jessica-Audiffred-12-12-2024']],'Cargo Reno','http://www.ticketnetwork.com/ticket/Cargo-Reno-events.aspx');