Function.prototype.addMethod=function(a,b){if(!this.prototype[a]){this.prototype[a]=b;}return this;};Function.addMethod("as",function(d,f){var c=(d?d.split("."):[]);if(c.length>0){var e=window;for(var a=0;a<c.length-1;++a){var b=c[a];if(b){if(!e[b]){e[b]={};}e=e[b];}}e[c.last()]=(f?new this():this);}return this;
});Function.addMethod("ns",function(a){this.as(a,1);});String.addMethod("trim",function(){return this.replace(/^\s*(\S*(\s+\S+)*)\s*$/,"$1");});String.addMethod("collapse",function(){return this.replace(/\s+/g," ").trim();});String.addMethod("wrap",function(d){var c,b={"(":")","{":"}","[":"]","<":">","«":"»","‹":"›","“":"”","‘":"’"};
if(b[d]){c=b[d];}else{var a=(/^<(\w+)(\s+\w+\s*=\s*"[^"]*")*\s*>$/).exec(d);if(a){c="</"+a[1]+">";}}return d+this+(c?c:d);});String.addMethod("format",function(){var a=this;for(var b=0;b<arguments.length;++b){a=a.replace(new RegExp("\\{"+b+"\\}","g"),arguments[b]);}return a;});String.addMethod("encodeHtml",function(){var a=this.replace(/\>/g,"&gt;").replace(/\</g,"&lt;").replace(/\&/g,"&amp;").replace(/\'/g,"&#039;").replace(/\"/g,"&quot;");
return a;});String.addMethod("decodeHtml",function(){var a=this.replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&amp;/g,"&").replace(/&#039;/g,"'").replace(/&quot;/g,'"');return a;});String.addMethod("encodeURIComponent",function(){return(typeof encodeURIComponent!="undefined"?encodeURIComponent(this):escape(this));
});String.addMethod("decodeURIComponent",function(){return(typeof decodeURIComponent!="undefined"?decodeURIComponent(this):unescape(this));});Array.addMethod("last",function(){return(this.length>0?this[this.length-1]:void (0));});Array.addMethod("remove",function(b){for(var a=this.length-1;a>=0;--a){if(this[a]===b){this.splice(a,1);
}}return this;});Array.addMethod("contains",function(b){for(var a=0;a<this.length;++a){if(this[a]===b){return 1;}}return 0;});Array.addMethod("push",function(a){this[this.length]=a;return this.length;});Array.addMethod("shift",function(){return this.splice(0,1)[0];});Array.addMethod("splice",function(f,b){var e;
var d=arguments.length-2;if(f>this.length){f=this.length;}if(f+b>this.length){b=this.length-f;}var a=[];for(var c=0;c<b;++c){a.push(this[f+c]);}if(d>b){e=d-b;for(c=this.length+e-1;c>=f+e;--c){this[c]=this[c-e];}}else{if(d<b){e=b-d;for(c=f+d;c<this.length-e;++c){this[c]=this[c+e];}for(;c<this.length-1;
++c){delete this[c];}this.length-=e;}}for(c=0;c<d;++c){this[f+c]=arguments[2+c];}return a;});(function(){var b=this;Function.addMethod("hook",function(f,d){if(f){var e=a();if(!e&&f.addEventListener){f.addEventListener(d,this,false);}else{if(!e&&f.attachEvent){f.attachEvent("on"+d,this);}else{var c=f["x"+d];
if(c&&c.constructor==Array){if(c.contains(this)){c=null;}else{c.push(this);}}else{c=f["x"+d]=[this];}if(c){f["on"+d]=function(i){var h=true;i=b.Event(i);for(var g=0;g<c.length;++g){var j=c[g](i);if(typeof j!="undefined"&&!j){h=false;}}return h;};f=null;}}}}return this;});Function.addMethod("unhook",function(f,d){if(f){var e=a();
if(!e&&f.removeEventListener){f.removeEventListener(d,this,false);}else{if(!e&&f.detachEvent){f.detachEvent("on"+d,this);}else{var c=f["x"+d];if(c&&c.constructor==Array){c.remove(this);}else{f["on"+d]=null;}}}}return this;});b.CancelEvent=function(c){c=b.Event(c);if(c){c.cancelBubble=true;if(c.stopPropagation){c.stopPropagation();
}c.returnValue=false;if(c.preventDefault){c.preventDefault();}}return false;};b.Event=function(c){return(c?c:window.event);};b.Target=function(c){c=b.Event(c);var d=(c.target?c.target:c.srcElement);if(d&&d.nodeType!=1){d=b.ParentElem(d);}return d;};b.InnerText=function(d){var e="";for(var c=0;c<d.childNodes.length;
c++){var f=d.childNodes[c];if(f.nodeType==1){e+=b.InnerText(f);}else{if(f.nodeType==3){e+=f.data;}}}return e;};b.NextElem=function(e,d){var c=e.nextSibling;while(c&&(c.nodeType!=1||(d&&c.nodeName!=d))){c=c.nextSibling;}return c;};b.PrevElem=function(e,d){var c=e.previousSibling;while(c&&(c.nodeType!=1||(d&&c.nodeName!=d))){c=c.previousSibling;
}return c;};b.ParentElem=function(e,d){var c=e.parentNode;while(c&&(c.nodeType!=1||(d&&c.nodeName!=d))){c=c.parentNode;}return c;};b.ChildElem=function(c,h,e){var g=null,f;for(var d=0;!g&&d<c.childNodes.length;++d){f=c.childNodes[d];if(f.nodeType==1){if(!h||f.nodeName==h){g=f;}}}if(!e){for(d=0;!g&&d<c.childNodes.length;
++d){f=c.childNodes[d];if(f.nodeType==1){g=b.ChildElem(f,h);}}}return g;};b.ForEach=function(f,e,d){for(var c=0;c<e.childNodes.length;++c){var g=e.childNodes[c];if(g.nodeType==1&&(!d||g.nodeName==d)){if(f(g)){break;}}}};b.ChildCount=function(d,g){var e=0;var c,f;for(c=0;c<d.childNodes.length;++c){f=d.childNodes[c];
e+=(f.nodeType==1&&(!g||f.nodeName==g)?1:0);}return e;};b.AddClass=function(f,g){var d=f.className;if(d){var c=d.collapse().split(" ");var i=g.collapse().split(" ");for(var e=0;e<i.length;++e){var h=i[e];if(!c.contains(h)){f.className+=" "+h;}}}else{f.className=g;}return f.className;};b.DelClass=function(g,h){var c=g.className;
if(c){var f=c.collapse().split(" ");var e=h.collapse().split(" ");for(var d=0;d<e.length;++d){f.remove(e[d]);}var i=f.join(" ");if(i!=c){g.className=i;}}return g.className;};b.HasClass=function(c,d){return c.className.collapse().split(" ").contains(d);};b.Updated=function(){if(b.Access&&typeof b.Access.Updated=="function"){b.Access.Updated();
}};function a(){return(navigator.userAgent.indexOf("Safari")>=0);}}).ns("Msn.DOM");(function(){var c=this;var b=[];Function.addMethod("bindMSN",function(h,e){var g;switch(typeof h){case"object":g=(h.nodeType==1||h.nodeType==9)?[h]:(h.length?h:null);break;case"string":g=c.Select(h);break;}if(g){for(var d=0;
d<g.length;++d){var f=g[d];var i=new this(f,e);if(f.bindings){f.bindings.push(i);}else{f.bindings=[i];}b.push(i);}}return this;});c.Unbind=function(e,f){var d;if(e.bindings&&e.bindings.length){for(d=0;d<e.bindings.length;++d){var g=e.bindings[d];if(g&&typeof g.dispose=="function"){g.dispose();}b.remove(g);
}e.bindings=null;}if(f){for(d=0;d<e.childNodes.length;++d){var h=e.childNodes[d];if(h.nodeType==1){c.Unbind(h,f);}}}};c.Select=function(f){function e(){var q=null;if(f){if(f.charAt(o)=="*"){q="*";}else{while(o<f.length){var r=f.charAt(o);if(("a"<=r&&r<="z")||("A"<=r&&r<="Z")||("0"<=r&&r<="9")||r=="-"){q=(q?q+r:r);
++o;}else{break;}}}}return q;}function l(){while(o<f.length&&f.charAt(o)==" "){++o;}}function n(){var q=null;l();switch(f.charAt(o)){case"+":case">":q=f.charAt(o);++o;l();break;}return q;}function m(){++o;return e();}function g(){var q=null;var r=e();if(r!==null){q=new h(r);}while(f&&o<f.length){var s=f.charAt(o);
if(s=="#"){if(!q){q=new h();}q.setID(m());}else{if(s=="."){if(!q){q=new h();}q.addClass(m());}else{break;}}}return q;}function j(){var q=[];var s=g();if(s){q.push(s);while(o<f.length){var r=n();s=g();if(s){if(r){s.setComb(r);}q.push(s);}else{break;}}}return q;}function h(u){var q=this;var w="";var v=null;
var t=null;q.setID=function(x){w=x;};q.setComb=function(x){v=x;};q.addClass=function(x){if(t){t.push(x);}else{t=[x];}};q.getNodes=function(A){var x,B,z,y=[];if(w){switch(v){case">":for(x=0;x<A.childNodes.length;++x){if(A.childNodes[x].nodeType==1&&A.childNodes[x].id==w){B=A.childNodes[x];break;}}break;
case"+":z=a(A);if(z&&z.id==w){B=z;}break;default:B=A.getElementById(w);break;}if(B&&(!u||u=="*"||u.toLowerCase()==B.nodeName.toLowerCase())&&r(B)){y.push(B);}}else{if(u&&u!="*"){switch(v){case">":for(x=0;x<A.childNodes.length;++x){B=A.childNodes[x];if(B.nodeType==1&&B.nodeName.toLowerCase()==u&&r(B)){y.push(B);
}}break;case"+":z=a(A);if(z&&z.nodeName.toLowerCase()==u&&r(z)){y.push(z);}break;default:var C=A.getElementsByTagName(u);for(x=0;x<C.length;++x){if(r(C[x])){y.push(C[x]);}}break;}}else{switch(v){case">":for(x=0;x<A.childNodes.length;++x){B=A.childNodes[x];if(B.nodeType==1&&r(B)){y.push(B);}}break;case"+":z=a(A);
if(z&&r(z)){y.push(z);}break;default:s(A,y);break;}}}return y;};function s(z,y){for(var x=0;x<z.childNodes.length;++x){var A=z.childNodes[x];if(A.nodeType==1){if(r(A)){y.push(A);}s(A,y);}}}function r(z){var y=1;if(t){var A=z.className;if(A){var B=A.collapse().split(" ");for(var x=0;x<t.length;++x){if(!B.contains(t[x])){y=0;
break;}}}else{y=0;}}return y;}}function k(r,t){var s=[];for(var q=0;q<r.length;++q){s=s.concat(t.getNodes(r[q]));}return s;}var o=0;var i=j();var d=[document];for(var p=0;p<i.length&&d.length>0;++p){d=k(d,i[p]);}return d;};function a(e){var d=e.nextSibling;while(d&&d.nodeType!=1){d=d.nextSibling;}return d;
}(function(){c.Unbind(document,1);b=[];}).hook(window,"unload");}).ns("Msn.Bind");(function(b,h){if(!h){h={};}var c=Msn.DOM;var g=document;var j=window;var e=g.getElementById("more");e.style.display="none";var i=g.getElementById("xnav");var l=g.createElement("li");var a=g.createElement("a");a.href="#";
a.className="expand";a.innerHTML=k(h.more,"more");l.appendChild(a);i.appendChild(l);f.hook(a,"click");function f(m){var n=e.style.display;var d;if(n=="block"){n="none";d="expand";l.className="";}else{n="block";d="collapse";l.className="last";}e.style.display=n;a.className=d;m=c.Event(m);return c.CancelEvent(m);
}this.dispose=function(){b=null;e=null;i=null;l=null;a=null;};function k(d,m){return(typeof d!="undefined"?d:m);}}).as("Msn.Header");(function(Q,L){if(!L){L={};}var b=Msn.DOM;var S=document;var J=window;var E=Q;var g=G(L.siteSearchOn,"false");var q=G(L.searchUrl,"");var l=G(L.searchParam,"");var n=G(L.searchParams,"");
var D=G(L.drpButtonImgURL,"/fantasy/football/public/fe/img/msn/decoration/dropdownButton_FOX.gif");var O=G(L.drpButtonOverImgURL,"/fantasy/football/public/fe/img/msn/decoration/dropdownButton_over_FOX.gif");var P=G(L.sitetext,"Search this site");var T=S.getElementById("ntwscopes");var H=g=="true"?"site":"web";
if(H=="site"){i();}var s=G(L.onepxgif,"http://blstc.msn.com/br/gbl/css/8/decoration/t.gif");var p=navigator.userAgent,A=p.indexOf("MSIE");if(A>=0){if(parseFloat(p.substring(A+4))<7&&parseFloat(p.substring(A+4))>5){C(S.getElementById("leftcorner"),"bgimage","image");C(S.getElementById("searchform"),"bgimage","scale");
C(S.getElementById("ntwlogo"),"bgimage","scale");C(S.getElementById("logoimg"),"img","image");C(S.getElementById("rightcorner"),"bgimage","image");}}var f;var U;var a;var k;var r=S.getElementById("spyglass");if(H=="site"){r.alt="Site";}var K=S.getElementById("q");var z;var y;var j=false;var N="";var F=(H=="web")?G(L.helpertext,""):P;
K.className="";K.value=F;t.hook(r,"click");x.hook(K,"focus");e.hook(K,"blur");var R=E.onsubmit;E.onsubmit=function(){if(K.value==F){K.value="";}return R(E);};h.hook(K,"keypress");function i(){z=S.createElement("input");z.type="image";z.id="drpbutton";z.src=D;if(navigator.appVersion.indexOf("MSIE 6")!=-1){S.getElementById("searchform").style.width="302px";
}else{S.getElementById("searchform").style.width="300px";}S.getElementById("searchform").appendChild(z);var d=G(L.webtext,"Search web");y=S.createElement("div");y.className="scopescontainer";y.style.display="none";f=S.createElement("div");f.className="selected";U=S.createElement("a");U.innerHTML=P;U.href=q;
f.appendChild(U);k=S.createElement("div");a=S.createElement("a");a.innerHTML=d;a.href=E.action;k.appendChild(a);T.appendChild(y);y.appendChild(f);y.appendChild(k);m.hook(z,"mouseover");B.hook(z,"mouseout");u.hook(z,"blur");I.hook(z,"click");c.hook(U,"click");o.hook(a,"click");}function C(w,W,X){if(!w){return;
}var d;if(W=="bgimage"){d=w.currentStyle.backgroundImage;}else{if(W=="img"){d=w.src;}}if(d==""){return;}var V=d.search(new RegExp("(http://.+\\.png)","i"))===-1?"":RegExp.$1;if(V.length>0){if(W=="bgimage"){w.style.backgroundImage="none";}else{if(W=="img"){w.src=s;}}w.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled='true', sizingMethod='"+X+"', src='"+V+"')";
}}function m(d){z.src=O;}function B(d){z.src=D;}function u(d){setTimeout(function(){if(!j){y.style.display="none";}},500);}function I(d){if(y.style.display=="none"){y.style.display="block";}else{y.style.display="none";}if(b.Target(d)==z){d=b.Event(d);return b.CancelEvent(d);}}function h(d){if(d.keyCode==13){switch(H){case"site":c(null);
d=b.Event(d);return b.CancelEvent(d);break;}}}function c(w){if(w){j=true;}var d=q+"?"+l+"="+v();if(n){d=d+"&"+n.replace(/&amp;/g,"&");}if(w&&b.Target(w).tagName.toLowerCase()=="a"){b.Target(w).href=d;}else{window.top.location.href=d;}}function o(d){if(d!==null){j=true;if(b.Target(d).tagName.toLowerCase()=="a"){b.Target(d).href="#";
}}if(K.value==F){K.value="";}E.submit();}function v(){N=K?K.value:"";N=(N==F)?"":N;return encodeURIComponent(N);}function t(d){switch(H){case"site":E.onsubmit=M;c(null);break;case"web":o(null);break;}}function M(d){d=b.Event(d);return b.CancelEvent(d);}function x(d){K.className="typing";if(K.value==F){K.value="";
}}function e(d){if(K.value.trim()==""){K.className="";K.value=F;}}this.dispose=function(){if(H="site"){c.unhook(U,"click");o.unhook(a,"click");}t.unhook(r,"click");x.unhook(K,"focus");e.unhook(K,"blur");h.unhook(K,"keypress");m.unhook(z,"mouseover");B.unhook(z,"mouseout");u.unhook(z,"blur");I.unhook(z,"click");
E.onsubmit=null;Q=null;};function G(d,w){return(typeof d!="undefined"?d:w);}}).as("Msn.SiteSearch");