//
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([['The Harlem Globetrotters','Rio Rancho Events Center','Rio Rancho, NM','Friday','2/28/2025','7:00 PM','6710910','The-Harlem-Globetrotters-2-28-2025'],['Jeff Dunham','Rio Rancho Events Center','Rio Rancho, NM','Thursday','3/6/2025','7:00 PM','6736830','Jeff-Dunham-3-6-2025'],['New Mexico Runners vs. Oklahoma City Lions','Rio Rancho Events Center','Rio Rancho, NM','Sunday','3/9/2025','3:05 PM','6903151','New-Mexico-Runners-vs--Oklahoma-City-Lions-3-9-2025'],['Los Tigres del Norte','Rio Rancho Events Center','Rio Rancho, NM','Friday','3/14/2025','8:00 PM','6526401','Los-Tigres-del-Norte-3-14-2025'],['Jo Koy','Rio Rancho Events Center','Rio Rancho, NM','Friday','3/21/2025','8:00 PM','6750180','Jo-Koy-3-21-2025'],['New Mexico Runners vs. Empire Jets','Rio Rancho Events Center','Rio Rancho, NM','Sunday','3/23/2025','3:05 PM','6903120','New-Mexico-Runners-vs--Empire-Jets-3-23-2025'],['Kings of the West: E-40, Bone Thugs N Harmony & Too Short','Rio Rancho Events Center','Rio Rancho, NM','Saturday','3/29/2025','7:00 PM','6928469','Kings-of-the-West--E-40--Bone-Thugs-N-Harmony---Too-Short-3-29-2025'],['Blippi Live','Rio Rancho Events Center','Rio Rancho, NM','Sunday','3/30/2025','2:00 PM','6759028','Blippi-Live-3-30-2025'],['Tito Double P','Rio Rancho Events Center','Rio Rancho, NM','Sunday','4/27/2025','8:00 PM','6932169','Tito-Double-P-4-27-2025'],['Weird Al Yankovic & Puddles Pity Party','Rio Rancho Events Center','Rio Rancho, NM','Friday','9/5/2025','8:00 PM','6723768','Weird-Al-Yankovic---Puddles-Pity-Party-9-5-2025']],'Santa Ana Star Center','https://www.ticketnetwork.com/ticket/Santa-Ana-Star-Center-events.aspx');