// var TN_Widget = function() { return { //Options newWindow : true, linkText : "View Tickets", tixUrl : "https://www.ticketliquidator.com/tickets/", trackingParams : "", custLink : true, //depricated kbid : "", //Overwrittable functions CreateCustomUrl : function(row) { var customUrl = row[6] + '/' + row[0].replace(/\//g, '') + '-tickets-' + row[3].substring(0,3) + '-' + row[4] + '-' + row[7].substring(row[7].length - 4) + '-' + row[1] return customUrl.replace(/\s+/g, '-').replace(/&/g, '').replace(/[.,#!$%^&*;:{}=_`~()]/g, '').toLowerCase(); }, CreateEventRow : function(row, isAlt) { return "" + "
" + row[3].substring(0,3) + "" + row[4] + "" + row[5] + "
" + "" + row[0] +"" + "" + "" + row[1] + "" + "" + row[2] + "" + "Tickets"; }, 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) { 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'; else document.write('
' + newTable.join('') + '
'); } }; }(); //BPW-TNSERV-04A TN_Widget.AddCss('https://fonts.googleapis.com/css?family=Open+Sans:400,700'); TN_Widget.AddCss('https://tickettransaction.com/BrokerSites/01504-011/widget2Css/WidgetStyle24.css'); TN_Widget.CreateTable([['Boston Red Sox vs. St. Louis Cardinals','Fenway Park','Boston, MA','Saturday','May 1','TBD','8140106','Boston-Red-Sox-vs--St--Louis-Cardinals-5-1-2027'],['Boston Red Sox vs. St. Louis Cardinals','Fenway Park','Boston, MA','Sunday','May 2','TBD','8140107','Boston-Red-Sox-vs--St--Louis-Cardinals-5-2-2027'],['Boston Red Sox vs. Toronto Blue Jays','Fenway Park','Boston, MA','Monday','May 3','TBD','8140111','Boston-Red-Sox-vs--Toronto-Blue-Jays-5-3-2027'],['Boston Red Sox vs. Toronto Blue Jays','Fenway Park','Boston, MA','Tuesday','May 4','TBD','8140112','Boston-Red-Sox-vs--Toronto-Blue-Jays-5-4-2027'],['Boston Red Sox vs. Toronto Blue Jays','Fenway Park','Boston, MA','Wednesday','May 5','TBD','8140113','Boston-Red-Sox-vs--Toronto-Blue-Jays-5-5-2027'],['Boston Red Sox vs. Los Angeles Dodgers','Fenway Park','Boston, MA','Friday','May 14','TBD','8140117','Boston-Red-Sox-vs--Los-Angeles-Dodgers-5-14-2027'],['Boston Red Sox vs. Los Angeles Dodgers','Fenway Park','Boston, MA','Saturday','May 15','TBD','8140118','Boston-Red-Sox-vs--Los-Angeles-Dodgers-5-15-2027'],['Boston Red Sox vs. Los Angeles Dodgers','Fenway Park','Boston, MA','Sunday','May 16','TBD','8140119','Boston-Red-Sox-vs--Los-Angeles-Dodgers-5-16-2027'],['Boston Red Sox vs. Texas Rangers','Fenway Park','Boston, MA','Friday','May 21','TBD','8140123','Boston-Red-Sox-vs--Texas-Rangers-5-21-2027'],['Boston Red Sox vs. Texas Rangers','Fenway Park','Boston, MA','Saturday','May 22','TBD','8140124','Boston-Red-Sox-vs--Texas-Rangers-5-22-2027'],['Boston Red Sox vs. Texas Rangers','Fenway Park','Boston, MA','Sunday','May 23','TBD','8140125','Boston-Red-Sox-vs--Texas-Rangers-5-23-2027'],['Boston Red Sox vs. Chicago White Sox','Fenway Park','Boston, MA','Monday','May 24','TBD','8140129','Boston-Red-Sox-vs--Chicago-White-Sox-5-24-2027'],['Boston Red Sox vs. Chicago White Sox','Fenway Park','Boston, MA','Tuesday','May 25','TBD','8140130','Boston-Red-Sox-vs--Chicago-White-Sox-5-25-2027'],['Boston Red Sox vs. Chicago White Sox','Fenway Park','Boston, MA','Wednesday','May 26','TBD','8140131','Boston-Red-Sox-vs--Chicago-White-Sox-5-26-2027']]);