//
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([['The Wedding Singer','Crighton Theatre','Conroe, TX','Friday','7/11/2025','7:30 PM','6637386','The-Wedding-Singer-7-11-2025'],['The Wedding Singer','Crighton Theatre','Conroe, TX','Saturday','7/12/2025','7:30 PM','6637387','The-Wedding-Singer-7-12-2025'],['The Wedding Singer','Crighton Theatre','Conroe, TX','Sunday','7/13/2025','2:00 PM','6637388','The-Wedding-Singer-7-13-2025'],['The Wedding Singer','Crighton Theatre','Conroe, TX','Friday','7/18/2025','7:30 PM','6637389','The-Wedding-Singer-7-18-2025'],['The Wedding Singer','Crighton Theatre','Conroe, TX','Saturday','7/19/2025','7:30 PM','6637390','The-Wedding-Singer-7-19-2025'],['The Wedding Singer','Crighton Theatre','Conroe, TX','Sunday','7/20/2025','2:00 PM','6637391','The-Wedding-Singer-7-20-2025'],['Hadestown - Teen Edition','Crighton Theatre','Conroe, TX','Thursday','7/31/2025','7:00 PM','7209132','Hadestown---Teen-Edition-7-31-2025'],['Hadestown - Teen Edition','Crighton Theatre','Conroe, TX','Friday','8/1/2025','7:00 PM','7209134','Hadestown---Teen-Edition-8-1-2025'],['Hadestown - Teen Edition','Crighton Theatre','Conroe, TX','Saturday','8/2/2025','2:00 PM','7209136','Hadestown---Teen-Edition-8-2-2025'],['Hadestown - Teen Edition','Crighton Theatre','Conroe, TX','Saturday','8/2/2025','7:00 PM','7209137','Hadestown---Teen-Edition-8-2-2025'],['Hadestown - Teen Edition','Crighton Theatre','Conroe, TX','Sunday','8/3/2025','2:00 PM','7209140','Hadestown---Teen-Edition-8-3-2025'],['Reverend Horton Heat','Crighton Theatre','Conroe, TX','Saturday','5/30/2026','7:00 PM','6917279','Reverend-Horton-Heat-5-30-2026']],'Crighton Theatre','https://www.ticketnetwork.com/ticket/Crighton-Theatre-events.aspx');