//
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([['Fly By Midnight','Holocene','Portland, OR','Wednesday','5/8/2024','8:00 PM','6251604','Fly-By-Midnight-5-8-2024'],['Simple Town ','Holocene','Portland, OR','Friday','5/10/2024','6:30 PM','6358529','Simple-Town--5-10-2024'],['Sadie Jean','Holocene','Portland, OR','Saturday','5/11/2024','5:30 PM','6320030','Sadie-Jean-5-11-2024'],['Todd Edwards & Conducta','Holocene','Portland, OR','Saturday','5/11/2024','9:00 PM','6358545','Todd-Edwards---Conducta-5-11-2024'],['Ash','Holocene','Portland, OR','Tuesday','5/14/2024','8:00 PM','6084216','Ash-5-14-2024'],['Michael Marcagi','Holocene','Portland, OR','Saturday','5/18/2024','5:00 PM','6265145','Michael-Marcagi-5-18-2024'],['Myriam Gendron','Holocene','Portland, OR','Monday','5/20/2024','9:00 PM','6374333','Myriam-Gendron-5-20-2024'],['Durante','Holocene','Portland, OR','Friday','5/24/2024','9:00 PM','6231834','Durante-5-24-2024'],['Tep No','Holocene','Portland, OR','Thursday','5/30/2024','9:00 PM','6264257','Tep-No-5-30-2024'],['Xana','Holocene','Portland, OR','Saturday','6/1/2024','6:00 PM','6278210','Xana-6-1-2024'],['Kojaque','Holocene','Portland, OR','Monday','6/3/2024','9:00 PM','6382435','Kojaque-6-3-2024'],['Peach Tree Rascals','Holocene','Portland, OR','Tuesday','6/4/2024','8:00 PM','6382442','Peach-Tree-Rascals-6-4-2024'],['Guardin','Holocene','Portland, OR','Friday','6/7/2024','6:00 PM','6382443','Guardin-6-7-2024'],['Catching Flies','Holocene','Portland, OR','Thursday','6/13/2024','9:00 PM','6382445','Catching-Flies-6-13-2024'],['Kacy Hill','Holocene','Portland, OR','Saturday','6/15/2024','6:00 PM','6394822','Kacy-Hill-6-15-2024'],['Drew McDowall','Holocene','Portland, OR','Sunday','6/16/2024','8:00 PM','6382449','Drew-McDowall-6-16-2024'],['Bill Orcutt','Holocene','Portland, OR','Monday','6/17/2024','8:00 PM','6382448','Bill-Orcutt-6-17-2024'],['Renaissance - Celebrating Beyonce ','Holocene','Portland, OR','Saturday','6/22/2024','9:00 PM','6382451','Renaissance---Celebrating-Beyonce--6-22-2024'],['Ben Beal','Holocene','Portland, OR','Monday','6/24/2024','8:00 PM','6382458','Ben-Beal-6-24-2024'],['From Indian Lakes','Holocene','Portland, OR','Tuesday','6/25/2024','7:00 PM','6321333','From-Indian-Lakes-6-25-2024'],['MachineDrum','Holocene','Portland, OR','Wednesday','7/10/2024','9:00 PM','6303674','MachineDrum-7-10-2024'],['Amtrac','Holocene','Portland, OR','Thursday','7/11/2024','9:00 PM','6382456','Amtrac-7-11-2024'],['sombr','Holocene','Portland, OR','Tuesday','7/23/2024','7:00 PM','6418479','sombr-7-23-2024'],['Brad Stank','Holocene','Portland, OR','Thursday','9/12/2024','9:00 PM','6238259','Brad-Stank-9-12-2024'],['Dana and Alden','Holocene','Portland, OR','Saturday','9/28/2024','6:00 PM','6358690','Dana-and-Alden-9-28-2024'],['Zolita','Holocene','Portland, OR','Saturday','10/12/2024','6:00 PM','6355565','Zolita-10-12-2024'],['Midwxst','Holocene','Portland, OR','Sunday','11/12/2073','8:00 PM','5869775','Midwxst-11-12-2073']],'Holocene','http://www.ticketnetwork.com/ticket/Holocene-events.aspx');