/* get a hold of the head document */ var head = document.getElementsByTagName('head').item(0); // get the header tag var FSDomain = "http://msn.foxsports.com"; /* Unica specific items */ var NTPT_PGEXTRA = "qc=1&m.acct='DM520329A1SZ95EN3'&hbx.acct='DM520329A1SZ95EN3'"; /* place the styles in the head document */ var navStyles = document.createElement('link'); // create a script tag navStyles.href = FSDomain +"/fe/css/site_wide.css"; // set the script source navStyles.rel = "stylesheet"; // set the type head.appendChild(navStyles); // place the script on the page var adCode728x90 ="&PG=SPTRF1&AP=1390"; var adCode300x250 ="&PG=SPTRF4&AP=1089"; var adCode160x600 ="&PG=SPTRF3&AP=1090"; var adCode120x30 ="&PG=&AP=1060"; var isFanAvail = "false"; function checkCookie(cookieName, length) { var allcookies = document.cookie; var cookiePos = allcookies.indexOf(cookieName + "="); if(cookiePos != -1) { var start = cookiePos + length; var end = allcookies.indexOf(";", start); if(end == -1) end = allcookies.length; var value = allcookies.substring(start, end); value = unescape(value); return value; } return ""; } var uid = ""; var euid = checkCookie("pUID", 5); var fuid = checkCookie("pFUID", 6); var fanid = checkCookie("pFANID", 6); var lmd = checkCookie("pLMD", 5); var flmd = checkCookie("pFLMD", 6); var rme = checkCookie("pRME", 5); var curDate = new Date(); if (flmd == null || flmd == "") { flmd = curDate.getMilliseconds(); document.cookie = "pFLMD=" + curDate + "; path=/; domain=.foxsports.com;"; } if (lmd != null && lmd != "") { uid = euid; } else{ uid = checkCookie("pRME", 5); if (uid != null && uid != "") { curDate = curDate.getMilliseconds(); document.cookie = "pLMD=" + curDate + "; path=/; domain=.foxsports.com;"; } } document.write(''); var fantasyUserJsPath = 'http://msn.foxsports.com/fantasy/football/commissioner/fantasyUser.js?epuid=' + escape(euid) + '&flmd=' + escape(flmd); document.write('