var club = "mlb",
section = "news",
ctxPath = "",
page_id = "article",
pageid = "article",
dc_keyVal = "",
dc_lang = "en",
sysdate = "201305230956";
if(!Function.prototype.bind){Function.prototype.bind=function(c){return $.proxy(this,c)}}
(function ($, bam) {
bam.env = bam.env || {};
bam.env.host = bam.env.host || {};
$.extend(bam.env.host, {
getWebCacheServerURL : function () {
return "http://mlb.mlb.com";
},
getSSLServerURL : function () {
return "https://secure.mlb.com";
},
getServerURL : function () {
return "http://www.mlb.com";
}
});
bam.I18N = 'en';
bam.EASTERN_OFFSET = -400;
bam.getEasternDate = function () {
return bam.getDateByOffset(bam.EASTERN_OFFSET);
};
bam.EASTERN_TIME = bam.getEasternDate();
var flips = {
global: '05/23/2013 11:00 AM GMT-400'
};
bam.getFlipDate = function (club) {
return new Date(flips[club || window.club] || flips.global);
};
bam.getFlipDisplayDate = function (club) {
var flip = bam.getFlipDate(club);
if (new Date() < flip) {
flip.setDate(flip.getDate() - 1);
}
return $.floorDate('day', flip);
};
})(jQuery, bam);
var swapFLAforMIA = (function(){
var c_id = bam.url.Location(window.location).getParam("c_id");
if(c_id !== undefined && c_id.toLowerCase() === "fla"){
$.getScript("/shared/span style=visibility:hiddens/external/jquery.ba-bbq.min.js", function(x){
window.location.replace($.param.querystring(window.location.href, "c_id=mia"));
});
}
})();
var _sf_startpt=(new Date()).getTime()
bam.vkey = "news_mlb";
if (typeof urlDecode == "undefined") document.writeln(" ");
if (typeof GetCookie == "undefined") document.writeln(" ");
var omDomain = document.location.hostname.toLowerCase();
var isProd = ( (omDomain.indexOf("betasecure.") == -1) && (omDomain.indexOf("beta.") == -1) && (omDomain.indexOf("dev-") == -1) && (omDomain.indexOf("qa.") == -1) && (omDomain.indexOf("qa2.") == -1) ) ? true : false;
var s_rsid = (isProd) ? "mlbglobal08,mlbcom08" : "devmlbglobal";
if (/alwaysepic|iam42|fancave/.test(document.location.href)){
if (isProd) {
s_rsid += ",mlbhillholliday";
} else {
s_rsid += ",mlbhillhollidaydev"; // custom rsid for Hill Holliday tracking suite
}
}
var s_account = s_rsid; // for legacy g code tracking
var omPageName = (document.location.href.indexOf("/wbc/2009/") > 0) ? "WBC wbc:".toUpperCase() + " Major League Baseball: News: Article" : "Major League Baseball: News: Article";
var omniture_meta_author = "Clark Goble";
var omniture_meta_title = "Upon further review, Venable granted home run";
var omniture_sponsor_name = "";
var author_test;
var res_arr = [];
s.pageName = omPageName;
s.channel = "News";
s.prop1 = "Article";
s.currencyCode= "USD";
if (s.pageName.match(/News/)) {
s.prop2 = s.getQueryParam("content_id");
}
s.prop3 = s.getQueryParam("player_id");
if (window.location.pathname.match(/search/)) {
s.prop4 = s.getQueryParam("query") ? unescape(s.getQueryParam("query").toLowerCase()) : "";
}
//s.prop5 = s.getTimeParting('h','-5','2013'); // Set hour
//s.prop6 = s.getTimeParting('d','-5','2013'); // Set day
//s.prop7 = s.getTimeParting('w','-5','2013'); // Set Weekend / Weekday
//if (document.location.href.indexOf("/wbc/2009/") > 0){ s.prop8 = "WBC"; } // custom attribute for WBC section
if (document.location.href.indexOf("article") > 0){
s.prop61 = omniture_meta_title;
}
if (omniture_meta_author) {
if (omniture_meta_author.indexOf("/") > -1) {
author_test = new RegExp(/^By\s(.*\s.*)\s\//);
res_arr = author_test.exec(omniture_meta_author);
omniture_meta_author = res_arr[1];
}
if (document.location.href.indexOf("article") > 0){
s.prop62 = omniture_meta_author;
}
}
if (document.location.href.indexOf("article") > 0){
s.prop63 = omniture_sponsor_name;
}
s.prop24 = s_rsid;
s.campaign = s.getQueryParam("partnerId");
s.eVar1 = s.getQueryParam("vbID");
s.eVar2 = s.prop4;
s.eVar4 = s.getQueryParam("affiliateId");
s.eVar8 = "";
s.eVar9 = "";
s.eVar14 = s.getQueryParam("tcid");
s.eVar21 = s.getQueryParam("tdl");
s.eVar22 = s.getQueryParam("tfl");
s.eVar25 = s.getQueryParam("mlbkw");
s.eVar34 = s.getQueryParam('app_data','','f');
s.events = "event4";
var _ns=1, _uidn="", _nd = new Date(), _puidn = "", _suc = GetCookie("stUtil_cookie");
if (_suc) {
_ns = _suc.split("|")[0];
_uidn = _suc.split("|")[1];
_puidn = _suc.split("|")[2];
}
if (GetCookie("ipid")) {
var T_uidn = GetCookie("ipid");
if (_uidn == "") {
_uidn = T_uidn;
} else if (_uidn != T_uidn) {
_uidn = T_uidn;
_puidn = Math.floor(Math.random() * 1000000000) + "" + _nd.getTime();
}
}
if (_puidn == "") _puidn = Math.floor(Math.random() * 1000000000) + "" + _nd.getTime();
_suc = _ns + "|" + _uidn + "|" + _puidn;
SetCookie("stUtil_cookie", _suc, 365, "/", ".mlb.com");
//s.prop21 = _puidn, s.eVar10 = _puidn;
s.prop22 = _uidn, s.eVar11 = _uidn;
s.linkInternalFilters="javaspan style=visibility:hidden:,mlb,mlb"
/* functions ported from s_code_remote.js */
function launchFlashLink(linkURL, trackCode) {
if (linkURL.indexOf("javaspan style=visibility:hidden:") != -1) eval(linkURL);
else window.location.href = linkURL;
}
function simOmniturePageView() { }
function sendAnalyticsEvent() {}
function trackFlash(linkname) {}
function trackSProp(s_prop, val) {}
function trackClick(linkname,t_sprop,cat_name) {}
/********* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
var s_code=s.t();if(s_code)document.write(s_code)//-->