//
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([['Vertical Horizon','Haute Spot','Cedar Park, TX','Saturday','9/21/2024','7:00 PM','6608871','Vertical-Horizon-9-21-2024'],['Vertical Horizon','Des Plaines Theatre','Des Plaines, IL','Friday','10/18/2024','8:00 PM','6589767','Vertical-Horizon-10-18-2024'],['Vertical Horizon','Flagstar Strand Theatre For The Performing Arts','Pontiac, MI','Sunday','10/20/2024','8:00 PM','6586354','Vertical-Horizon-10-20-2024'],['Vertical Horizon','City Winery - Pittsburgh','Pittsburgh, PA','Tuesday','10/22/2024','7:30 PM','6659762','Vertical-Horizon-10-22-2024'],['Vertical Horizon','The Weinberg Center For The Arts','Frederick, MD','Wednesday','10/23/2024','7:00 PM','6556397','Vertical-Horizon-10-23-2024'],['Vertical Horizon','The Ardmore Music Hall','Ardmore, PA','Wednesday','11/6/2024','8:00 PM','6609251','Vertical-Horizon-11-6-2024'],['Vertical Horizon','Racket - NY','New York, NY','Thursday','11/7/2024','8:00 PM','6605159','Vertical-Horizon-11-7-2024'],['Vertical Horizon','Blue Ocean Music Hall','Salisbury, MA','Friday','11/8/2024','8:00 PM','6604552','Vertical-Horizon-11-8-2024'],['Vertical Horizon','Aura - ME','Portland, ME','Saturday','11/9/2024','8:00 PM','6603735','Vertical-Horizon-11-9-2024'],['Vertical Horizon','Empire Live','Albany, NY','Sunday','11/10/2024','8:00 PM','6603734','Vertical-Horizon-11-10-2024'],['Vertical Horizon','City Winery - Atlanta','Atlanta, GA','Wednesday','11/13/2024','8:00 PM','6622779','Vertical-Horizon-11-13-2024'],['Vertical Horizon','The Ramkat','Winston Salem, NC','Thursday','11/14/2024','8:00 PM','6669236','Vertical-Horizon-11-14-2024']],'Vertical Horizon','http://www.ticketnetwork.com/ticket/Vertical-Horizon-events.aspx');