//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "Tickets",
tixUrl : "https://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[3] +" "+"" +
row[4] + " "+"" +
row[5] + " | "+"" +
row[0] +" | " +
row[1] +" " +
row[2] +" | "+""+ 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-03A
TN_Widget.CreateTable([['Vermont Sci-Fi, Fantasy & Horror Expo - 2 Day Pass','Champlain Valley Expo','Essex Junction, VT','Saturday','4/25/2026','TBD','7584043','Vermont-Sci-Fi--Fantasy---Horror-Expo---2-Day-Pass-4-25-2026'],['Vermont Sci-Fi, Fantasy & Horror Expo','Champlain Valley Expo','Essex Junction, VT','Saturday','4/25/2026','10:00 AM','7584041','Vermont-Sci-Fi--Fantasy---Horror-Expo-4-25-2026'],['Vermont Sci-Fi, Fantasy & Horror Expo','Champlain Valley Expo','Essex Junction, VT','Sunday','4/26/2026','10:00 AM','7584042','Vermont-Sci-Fi--Fantasy---Horror-Expo-4-26-2026'],['Cake - Band','Midway Lawn at Champlain Valley Expo','Essex Junction, VT','Tuesday','6/2/2026','8:00 PM','7527713','Cake---Band-6-2-2026'],['Mt. Joy','Midway Lawn at Champlain Valley Expo','Essex Junction, VT','Thursday','6/4/2026','8:00 PM','7597381','Mt--Joy-6-4-2026'],['Vermont Powersports Expo - 2 Day Pass','Champlain Valley Expo','Essex Junction, VT','Saturday','6/20/2026','TBD','7586133','Vermont-Powersports-Expo---2-Day-Pass-6-20-2026'],['Vermont Powersports Expo','Champlain Valley Expo','Essex Junction, VT','Saturday','6/20/2026','10:00 AM','7586134','Vermont-Powersports-Expo-6-20-2026'],['Vermont Powersports Expo','Champlain Valley Expo','Essex Junction, VT','Sunday','6/21/2026','10:00 AM','7586135','Vermont-Powersports-Expo-6-21-2026'],['Weird Al Yankovic','Midway Lawn at Champlain Valley Expo','Essex Junction, VT','Friday','7/24/2026','7:30 PM','7567523','Weird-Al-Yankovic-7-24-2026'],['Vermont Psychic Expo - 2 Day Pass','Champlain Valley Expo','Essex Junction, VT','Saturday','8/1/2026','TBD','7586136','Vermont-Psychic-Expo---2-Day-Pass-8-1-2026'],['Vermont Psychic Expo','Champlain Valley Expo','Essex Junction, VT','Saturday','8/1/2026','10:00 AM','7586137','Vermont-Psychic-Expo-8-1-2026'],['Vermont Psychic Expo','Champlain Valley Expo','Essex Junction, VT','Sunday','8/2/2026','10:00 AM','7586138','Vermont-Psychic-Expo-8-2-2026'],['Warren Zeiders','Champlain Valley Expo','Essex Junction, VT','Friday','8/28/2026','7:00 PM','7522342','Warren-Zeiders-8-28-2026'],['Jordan Davis','Champlain Valley Expo','Essex Junction, VT','Saturday','8/29/2026','7:00 PM','7566145','Jordan-Davis-8-29-2026'],['Rainbow Kitten Surprise ','Midway Lawn at Champlain Valley Expo','Essex Junction, VT','Saturday','9/12/2026','8:00 PM','7512112','Rainbow-Kitten-Surprise--9-12-2026']],'Champlain Valley Expo','https://www.ticketnetwork.com/ticket/Champlain-Valley-Expo-events.aspx');