//
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([['Joshua Tree Music Festival - 4 Day Pass','Joshua Tree Lake Campgrounds','Joshua Tree, CA','Thursday','10/10/2024','TBD','6677465','Joshua-Tree-Music-Festival---4-Day-Pass-10-10-2024'],['Joshua Tree Music Festival - Thursday','Joshua Tree Lake Campgrounds','Joshua Tree, CA','Thursday','10/10/2024','12:00 PM','6677464','Joshua-Tree-Music-Festival---Thursday-10-10-2024'],['Joshua Tree Music Festival - Friday','Joshua Tree Lake Campgrounds','Joshua Tree, CA','Friday','10/11/2024','12:00 PM','6674705','Joshua-Tree-Music-Festival---Friday-10-11-2024'],['Joshua Tree Music Festival - Saturday','Joshua Tree Lake Campgrounds','Joshua Tree, CA','Saturday','10/12/2024','12:00 PM','6674706','Joshua-Tree-Music-Festival---Saturday-10-12-2024'],['Joshua Tree Music Festival - Sunday','Joshua Tree Lake Campgrounds','Joshua Tree, CA','Sunday','10/13/2024','12:00 PM','6674707','Joshua-Tree-Music-Festival---Sunday-10-13-2024'],['Classic Albums Live Tribute Show: U2 - The Joshua Tree','Ordway Concert Hall at Ordway Center For Performing Arts','Saint Paul, MN','Friday','4/4/2025','7:30 PM','6540176','Classic-Albums-Live-Tribute-Show--U2---The-Joshua-Tree-4-4-2025'],['Classic Albums Live Tribute Show: U2 - The Joshua Tree','The Grand Theatre - Wausau','Wausau, WI','Saturday','4/5/2025','7:30 PM','6491754','Classic-Albums-Live-Tribute-Show--U2---The-Joshua-Tree-4-5-2025'],['Classic Albums Live Tribute Show: U2 - The Joshua Tree','Diamonstein Concert Hall - CNU Ferguson Center for the Arts','Newport News, VA','Friday','5/2/2025','8:00 PM','6543402','Classic-Albums-Live-Tribute-Show--U2---The-Joshua-Tree-5-2-2025'],['Classic Albums Live Tribute Show: U2 - The Joshua Tree','Kirby Center for the Performing Arts','Wilkes Barre, PA','Sunday','5/4/2025','6:30 PM','6488472','Classic-Albums-Live-Tribute-Show--U2---The-Joshua-Tree-5-4-2025']],'The Joshua Tree','http://www.ticketnetwork.com/ticket/The-Joshua-Tree-events.aspx');