//
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-02B
TN_Widget.CreateTable([['Pvris','The Observatory - Santa Ana','Santa Ana, CA','Saturday','6/1/2024','7:00 PM','6205069','Pvris-6-1-2024'],['Pvris','Ace of Spades','Sacramento, CA','Sunday','6/2/2024','6:00 PM','6205075','Pvris-6-2-2024'],['Pvris','Showbox SoDo','Seattle, WA','Tuesday','6/4/2024','7:00 PM','6205222','Pvris-6-4-2024'],['Pvris','McMenamins Crystal Ballroom','Portland, OR','Wednesday','6/5/2024','7:00 PM','6205068','Pvris-6-5-2024'],['Pvris','The Depot - Salt Lake City','Salt Lake City, UT','Friday','6/7/2024','6:00 PM','6205072','Pvris-6-7-2024'],['Pvris','The Summit Music Hall','Denver, CO','Saturday','6/8/2024','7:00 PM','6205225','Pvris-6-8-2024'],['Pvris','The Sylvee - WI','Madison, WI','Tuesday','6/11/2024','7:00 PM','6205077','Pvris-6-11-2024'],['Pvris','Egyptian Room At Old National Centre','Indianapolis, IN','Wednesday','6/12/2024','7:00 PM','6205143','Pvris-6-12-2024'],['Pvris','Uptown Theatre Minneapolis','Minneapolis, MN','Friday','6/14/2024','6:00 PM','6205058','Pvris-6-14-2024'],['Pvris','House Of Blues - Chicago','Chicago, IL','Saturday','6/15/2024','6:00 PM','6205224','Pvris-6-15-2024'],['Pvris','Saint Andrews Hall - Detroit','Detroit, MI','Sunday','6/16/2024','6:00 PM','6205142','Pvris-6-16-2024'],['Pvris','Danforth Music Hall Theatre','Toronto, Canada','Wednesday','6/19/2024','6:00 PM','6205073','Pvris-6-19-2024'],['Pvris','Citizens House Of Blues - Boston','Boston, MA','Friday','6/21/2024','7:00 PM','6204344','Pvris-6-21-2024'],['Pvris','Theatre Of The Living Arts','Philadelphia, PA','Saturday','6/22/2024','7:00 PM','6205065','Pvris-6-22-2024'],['Pvris','Irving Plaza','New York, NY','Monday','6/24/2024','6:00 PM','6205063','Pvris-6-24-2024'],['Pvris','9:30 Club','Washington, DC','Wednesday','6/26/2024','6:00 PM','6205067','Pvris-6-26-2024'],['Pvris','Brooklyn Bowl - Nashville','Nashville, TN','Friday','6/28/2024','7:00 PM','6205057','Pvris-6-28-2024'],['Pvris','Heaven Stage at Masquerade - GA','Atlanta, GA','Saturday','6/29/2024','6:00 PM','6205226','Pvris-6-29-2024'],['Pvris','Jannus Live','St. Petersburg, FL','Monday','7/1/2024','6:00 PM','6205070','Pvris-7-1-2024'],['Pvris','House Of Blues - Orlando','Orlando, FL','Tuesday','7/2/2024','7:00 PM','6205066','Pvris-7-2-2024'],['Pvris','House Of Blues - Houston','Houston, TX','Friday','7/5/2024','6:00 PM','6205090','Pvris-7-5-2024'],['Pvris','Emo's East','Austin, TX','Saturday','7/6/2024','6:00 PM','6205071','Pvris-7-6-2024'],['Pvris','House Of Blues - Dallas','Dallas, TX','Sunday','7/7/2024','6:00 PM','6205044','Pvris-7-7-2024'],['Pvris','The Van Buren','Phoenix, AZ','Tuesday','7/9/2024','7:00 PM','6205076','Pvris-7-9-2024'],['Pvris','The Observatory - North Park','San Diego, CA','Wednesday','7/10/2024','7:00 PM','6205074','Pvris-7-10-2024'],['Pvris','The Wiltern','Los Angeles, CA','Friday','7/12/2024','7:00 PM','6205064','Pvris-7-12-2024']],'PVRIS','http://www.ticketnetwork.com/ticket/PVRIS-events.aspx');