//
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([['Spring Training: Baltimore Orioles vs. Toronto Blue Jays','Ed Smith Stadium','Sarasota, FL','Thursday','2/27/2025','1:05 PM','6633299','Spring-Training--Baltimore-Orioles-vs--Toronto-Blue-Jays-2-27-2025'],['Spring Training: Baltimore Orioles vs. Pittsburgh Pirates','Ed Smith Stadium','Sarasota, FL','Saturday','3/1/2025','1:05 PM','6633302','Spring-Training--Baltimore-Orioles-vs--Pittsburgh-Pirates-3-1-2025'],['Spring Training: Baltimore Orioles vs. Boston Red Sox','Ed Smith Stadium','Sarasota, FL','Monday','3/3/2025','1:05 PM','6633306','Spring-Training--Baltimore-Orioles-vs--Boston-Red-Sox-3-3-2025'],['Spring Training: Baltimore Orioles vs. Pittsburgh Pirates','Ed Smith Stadium','Sarasota, FL','Thursday','3/6/2025','6:05 PM','6633303','Spring-Training--Baltimore-Orioles-vs--Pittsburgh-Pirates-3-6-2025'],['Spring Training: Baltimore Orioles vs. Tampa Bay Rays','Ed Smith Stadium','Sarasota, FL','Saturday','3/8/2025','1:05 PM','6633309','Spring-Training--Baltimore-Orioles-vs--Tampa-Bay-Rays-3-8-2025'],['Spring Training: Baltimore Orioles vs. Minnesota Twins (SS)','Ed Smith Stadium','Sarasota, FL','Sunday','3/9/2025','1:05 PM','6633313','Spring-Training--Baltimore-Orioles-vs--Minnesota-Twins--SS--3-9-2025'],['Spring Training: Baltimore Orioles vs. Atlanta Braves','Ed Smith Stadium','Sarasota, FL','Wednesday','3/12/2025','1:05 PM','6633314','Spring-Training--Baltimore-Orioles-vs--Atlanta-Braves-3-12-2025'],['Spring Training: Baltimore Orioles vs. Minnesota Twins (SS)','Ed Smith Stadium','Sarasota, FL','Friday','3/14/2025','6:05 PM','6633319','Spring-Training--Baltimore-Orioles-vs--Minnesota-Twins--SS--3-14-2025'],['Spring Breakout: Baltimore Orioles vs. New York Yankees','Ed Smith Stadium','Sarasota, FL','Saturday','3/15/2025','6:05 PM','6645644','Spring-Breakout--Baltimore-Orioles-vs--New-York-Yankees-3-15-2025'],['Spring Training: Baltimore Orioles vs. Philadelphia Phillies (SS)','Ed Smith Stadium','Sarasota, FL','Sunday','3/16/2025','1:05 PM','6633324','Spring-Training--Baltimore-Orioles-vs--Philadelphia-Phillies--SS--3-16-2025'],['Spring Training: Baltimore Orioles vs. Toronto Blue Jays','Ed Smith Stadium','Sarasota, FL','Tuesday','3/18/2025','6:05 PM','6633326','Spring-Training--Baltimore-Orioles-vs--Toronto-Blue-Jays-3-18-2025'],['Spring Training: Baltimore Orioles vs. New York Yankees','Ed Smith Stadium','Sarasota, FL','Thursday','3/20/2025','6:05 PM','6633327','Spring-Training--Baltimore-Orioles-vs--New-York-Yankees-3-20-2025'],['Spring Training: Baltimore Orioles vs. Detroit Tigers (SS)','Ed Smith Stadium','Sarasota, FL','Friday','3/21/2025','6:05 PM','6633331','Spring-Training--Baltimore-Orioles-vs--Detroit-Tigers--SS--3-21-2025']],'Ed Smith Stadium','https://www.ticketnetwork.com/ticket/Ed-Smith-Stadium-events.aspx');