//
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-01A
TN_Widget.CreateTable([['SolShine Music Festival - 3 Day Pass','Three Sisters Park','Chillicothe, IL','Friday','5/24/2024','TBD','6194384','SolShine-Music-Festival---3-Day-Pass-5-24-2024'],['STS9 - Sound Tribe Sector 9','Pine Creek Lodge','Livingston, MT','Friday','6/14/2024','7:00 PM','6319489','STS9---Sound-Tribe-Sector-9-6-14-2024'],['STS9 - Sound Tribe Sector 9','Pine Creek Lodge','Livingston, MT','Saturday','6/15/2024','7:00 PM','6319490','STS9---Sound-Tribe-Sector-9-6-15-2024'],['STS9 - Sound Tribe Sector 9 - 2 Day Pass (Events At Ogden Theatre 7/19 & Red Rocks Amphitheatre 7/20)','Ogden Theatre','Denver, CO','Friday','7/19/2024','TBD','6319493','STS9---Sound-Tribe-Sector-9---2-Day-Pass--Events-At-Ogden-Theatre-7-19---Red-Rocks-Amphitheatre-7-20--7-19-2024'],['STS9 - Sound Tribe Sector 9','Red Rocks Amphitheatre','Morrison, CO','Saturday','7/20/2024','6:00 PM','6317276','STS9---Sound-Tribe-Sector-9-7-20-2024'],['STS9 - Sound Tribe Sector 9','Pepsi Amphitheatre at Fort Tuthill','Flagstaff, AZ','Friday','8/16/2024','6:00 PM','6317061','STS9---Sound-Tribe-Sector-9-8-16-2024'],['STS9 - Sound Tribe Sector 9','Pepsi Amphitheatre at Fort Tuthill','Flagstaff, AZ','Saturday','8/17/2024','6:00 PM','6317062','STS9---Sound-Tribe-Sector-9-8-17-2024'],['STS9 - Sound Tribe Sector 9','Brooklyn Bowl - Philadelphia','Philadelphia, PA','Thursday','9/12/2024','8:00 PM','6318660','STS9---Sound-Tribe-Sector-9-9-12-2024'],['STS9 - Sound Tribe Sector 9 - 2 Day Pass','Brooklyn Steel','Brooklyn, NY','Friday','9/13/2024','TBD','6319424','STS9---Sound-Tribe-Sector-9---2-Day-Pass-9-13-2024'],['STS9 - Sound Tribe Sector 9','Brooklyn Steel','Brooklyn, NY','Friday','9/13/2024','8:00 PM','6318657','STS9---Sound-Tribe-Sector-9-9-13-2024'],['STS9 - Sound Tribe Sector 9','Brooklyn Steel','Brooklyn, NY','Saturday','9/14/2024','8:00 PM','6318658','STS9---Sound-Tribe-Sector-9-9-14-2024'],['STS9 - Sound Tribe Sector 9','Big Night Live','Boston, MA','Sunday','9/15/2024','7:30 PM','6318655','STS9---Sound-Tribe-Sector-9-9-15-2024'],['STS9 - Sound Tribe Sector 9 - 2 Day Pass','Fox Theater - Oakland','Oakland, CA','Friday','11/15/2024','TBD','6319495','STS9---Sound-Tribe-Sector-9---2-Day-Pass-11-15-2024'],['STS9 - Sound Tribe Sector 9','Fox Theater - Oakland','Oakland, CA','Friday','11/15/2024','7:30 PM','6318653','STS9---Sound-Tribe-Sector-9-11-15-2024'],['STS9 - Sound Tribe Sector 9','Fox Theater - Oakland','Oakland, CA','Saturday','11/16/2024','7:30 PM','6318654','STS9---Sound-Tribe-Sector-9-11-16-2024']],'STS9','http://www.ticketnetwork.com/ticket/STS9-events.aspx');