/* http://l.yimg.com/img.sports.yahoo.com/static/versioned_asset/v3/js/editorial/js/yui/yahoo_2.2.2.r1.3.js;editorial/js/yui/dom_2.2.2.r1.3.js;editorial/js/yui/event_2.2.2.r1.3.js;editorial/js/yui/animation_2.2.2.r1.3.js;editorial/js/yui/connection_2.2.2.r1.3.js;editorial/js/constants.r1.7.js;editorial/js/globalsearch.r1.3.js;editorial/js/sports.r1.6.js;editorial/js/tabs.r1.3.js;editorial/js/cookie.r1.3.js;editorial/js/home_modules.r1.3.js;editorial/js/ticker.r1.3.js;editorial/js/window.r1.9.js;editorial/js/scorethin.r1.3.js;editorial/js/manager.r1.3.js;editorial/js/carousel.r1.3.js;editorial/js/nav_redesign.r1.3.js;editorial/js/ult.r1.3.js;editorial/js/flyout.r1.3.js */ /* Copyright (c) 2007, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://developer.yahoo.net/yui/license.txt version: 2.3.0 */ if(typeof YAHOO=="undefined"){var YAHOO={};} YAHOO.namespace=function(){var a=arguments,o=null,i,j,d;for(i=0;i-1){return true;}else{return YAHOO.lang.isObject(obj)&&obj.constructor==Array;}},isBoolean:function(obj){return typeof obj=='boolean';},isFunction:function(obj){return typeof obj=='function';},isNull:function(obj){return obj===null;},isNumber:function(obj){return typeof obj=='number'&&isFinite(obj);},isObject:function(obj){return obj&&(typeof obj=='object'||YAHOO.lang.isFunction(obj));},isString:function(obj){return typeof obj=='string';},isUndefined:function(obj){return typeof obj=='undefined';},hasOwnProperty:function(obj,prop){if(Object.prototype.hasOwnProperty){return obj.hasOwnProperty(prop);} return!YAHOO.lang.isUndefined(obj[prop])&&obj.constructor.prototype[prop]!==obj[prop];},extend:function(subc,superc,overrides){if(!superc||!subc){throw new Error("YAHOO.lang.extend failed, please check that "+"all dependencies are included.");} var F=function(){};F.prototype=superc.prototype;subc.prototype=new F();subc.prototype.constructor=subc;subc.superclass=superc.prototype;if(superc.prototype.constructor==Object.prototype.constructor){superc.prototype.constructor=superc;} if(overrides){for(var i in overrides){subc.prototype[i]=overrides[i];}}},augment:function(r,s){if(!s||!r){throw new Error("YAHOO.lang.augment failed, please check that "+"all dependencies are included.");} var rp=r.prototype,sp=s.prototype,a=arguments,i,p;if(a[2]){for(i=2;i-1),isSafari=(ua.indexOf('safari')>-1),isGecko=(!isOpera&&!isSafari&&ua.indexOf('gecko')>-1),isIE=(!isOpera&&ua.indexOf('msie')>-1);var patterns={HYPHEN:/(-[a-z])/i,ROOT_TAG:/body|html/i};var toCamel=function(property){if(!patterns.HYPHEN.test(property)){return property;} if(propertyCache[property]){return propertyCache[property];} var converted=property;while(patterns.HYPHEN.exec(converted)){converted=converted.replace(RegExp.$1,RegExp.$1.substr(1).toUpperCase());} propertyCache[property]=converted;return converted;};if(document.defaultView&&document.defaultView.getComputedStyle){getStyle=function(el,property){var value=null;if(property=='float'){property='cssFloat';} var computed=document.defaultView.getComputedStyle(el,'');if(computed){value=computed[toCamel(property)];} return el.style[property]||value;};}else if(document.documentElement.currentStyle&&isIE){getStyle=function(el,property){switch(toCamel(property)){case'opacity':var val=100;try{val=el.filters['DXImageTransform.Microsoft.Alpha'].opacity;}catch(e){try{val=el.filters('alpha').opacity;}catch(e){}} return val/100;break;case'float':property='styleFloat';default:var value=el.currentStyle?el.currentStyle[property]:null;return(el.style[property]||value);}};}else{getStyle=function(el,property){return el.style[property];};} if(isIE){setStyle=function(el,property,val){switch(property){case'opacity':if(YAHOO.lang.isString(el.style.filter)){el.style.filter='alpha(opacity='+val*100+')';if(!el.currentStyle||!el.currentStyle.hasLayout){el.style.zoom=1;}} break;case'float':property='styleFloat';default:el.style[property]=val;}};}else{setStyle=function(el,property,val){if(property=='float'){property='cssFloat';} el.style[property]=val;};} YAHOO.util.Dom={get:function(el){if(YAHOO.lang.isString(el)){return document.getElementById(el);} if(YAHOO.lang.isArray(el)){var c=[];for(var i=0,len=el.length;i=this.left&®ion.right<=this.right&®ion.top>=this.top&®ion.bottom<=this.bottom);};YAHOO.util.Region.prototype.getArea=function(){return((this.bottom-this.top)*(this.right-this.left));};YAHOO.util.Region.prototype.intersect=function(region){var t=Math.max(this.top,region.top);var r=Math.min(this.right,region.right);var b=Math.min(this.bottom,region.bottom);var l=Math.max(this.left,region.left);if(b>=t&&r>=l){return new YAHOO.util.Region(t,r,b,l);}else{return null;}};YAHOO.util.Region.prototype.union=function(region){var t=Math.min(this.top,region.top);var r=Math.max(this.right,region.right);var b=Math.max(this.bottom,region.bottom);var l=Math.min(this.left,region.left);return new YAHOO.util.Region(t,r,b,l);};YAHOO.util.Region.prototype.toString=function(){return("Region {"+"top: "+this.top+", right: "+this.right+", bottom: "+this.bottom+", left: "+this.left+"}");};YAHOO.util.Region.getRegion=function(el){var p=YAHOO.util.Dom.getXY(el);var t=p[1];var r=p[0]+el.offsetWidth;var b=p[1]+el.offsetHeight;var l=p[0];return new YAHOO.util.Region(t,r,b,l);};YAHOO.util.Point=function(x,y){if(x instanceof Array){y=x[1];x=x[0];} this.x=this.right=this.left=this[0]=x;this.y=this.top=this.bottom=this[1]=y;};YAHOO.util.Point.prototype=new YAHOO.util.Region();YAHOO.register("dom",YAHOO.util.Dom,{version:"2.2.2",build:"204"}); YAHOO.util.CustomEvent=function(type,oScope,silent,signature){this.type=type;this.scope=oScope||window;this.silent=silent;this.signature=signature||YAHOO.util.CustomEvent.LIST;this.subscribers=[];if(!this.silent){} var onsubscribeType="_YUICEOnSubscribe";if(type!==onsubscribeType){this.subscribeEvent=new YAHOO.util.CustomEvent(onsubscribeType,this,true);}};YAHOO.util.CustomEvent.LIST=0;YAHOO.util.CustomEvent.FLAT=1;YAHOO.util.CustomEvent.prototype={subscribe:function(fn,obj,override){if(!fn){throw new Error("Invalid callback for subscriber to '"+this.type+"'");} if(this.subscribeEvent){this.subscribeEvent.fire(fn,obj,override);} this.subscribers.push(new YAHOO.util.Subscriber(fn,obj,override));},unsubscribe:function(fn,obj){if(!fn){return this.unsubscribeAll();} var found=false;for(var i=0,len=this.subscribers.length;i0){param=args[0];} ret=s.fn.call(scope,param,s.obj);}else{ret=s.fn.call(scope,this.type,args,s.obj);} if(false===ret){if(!this.silent){} return false;}}} return true;},unsubscribeAll:function(){for(var i=0,len=this.subscribers.length;i=0){cacheItem=listeners[index];} if(!el||!cacheItem){return false;} if(this.useLegacyEvent(el,sType)){var legacyIndex=this.getLegacyIndex(el,sType);var llist=legacyHandlers[legacyIndex];if(llist){for(i=0,len=llist.length;i0);} var notAvail=[];var executeItem=function(el,item){var scope=el;if(item.override){if(item.override===true){scope=item.obj;}else{scope=item.override;}} item.fn.call(scope,item.obj);};var i,len,item,el;for(i=0,len=onAvailStack.length;i0){for(var i=0,len=searchList.length;i0){j=listeners.length;while(j){index=j-1;l=listeners[index];if(l){EU.removeListener(l[EU.EL],l[EU.TYPE],l[EU.FN],index);} j=j-1;} l=null;EU.clearCache();} for(i=0,len=legacyEvents.length;i');var el=document.getElementById("_yui_eu_dr");el.onreadystatechange=function(){if("complete"==this.readyState){this.parentNode.removeChild(this);YAHOO.util.Event._ready();}};el=null;YAHOO.util.Event.onDOMReady(YAHOO.util.Event._tryPreloadAttach,YAHOO.util.Event,true);}else if(EU.webkit){EU._drwatch=setInterval(function(){var rs=document.readyState;if("loaded"==rs||"complete"==rs){clearInterval(EU._drwatch);EU._drwatch=null;EU._ready();}},EU.POLL_INTERVAL);}else{EU._simpleAdd(document,"DOMContentLoaded",EU._ready);} EU._simpleAdd(window,"load",EU._load);EU._simpleAdd(window,"unload",EU._unload);EU._tryPreloadAttach();})();} YAHOO.util.EventProvider=function(){};YAHOO.util.EventProvider.prototype={__yui_events:null,__yui_subscribers:null,subscribe:function(p_type,p_fn,p_obj,p_override){this.__yui_events=this.__yui_events||{};var ce=this.__yui_events[p_type];if(ce){ce.subscribe(p_fn,p_obj,p_override);}else{this.__yui_subscribers=this.__yui_subscribers||{};var subs=this.__yui_subscribers;if(!subs[p_type]){subs[p_type]=[];} subs[p_type].push({fn:p_fn,obj:p_obj,override:p_override});}},unsubscribe:function(p_type,p_fn,p_obj){this.__yui_events=this.__yui_events||{};var ce=this.__yui_events[p_type];if(ce){return ce.unsubscribe(p_fn,p_obj);}else{return false;}},unsubscribeAll:function(p_type){return this.unsubscribe(p_type);},createEvent:function(p_type,p_config){this.__yui_events=this.__yui_events||{};var opts=p_config||{};var events=this.__yui_events;if(events[p_type]){}else{var scope=opts.scope||this;var silent=opts.silent||null;var ce=new YAHOO.util.CustomEvent(p_type,scope,silent,YAHOO.util.CustomEvent.FLAT);events[p_type]=ce;if(opts.onSubscribeCallback){ce.subscribeEvent.subscribe(opts.onSubscribeCallback);} this.__yui_subscribers=this.__yui_subscribers||{};var qs=this.__yui_subscribers[p_type];if(qs){for(var i=0;i0)?val:0;} YAHOO.util.Dom.setStyle(this.getEl(),attr,val+unit);},getAttribute:function(attr){var el=this.getEl();var val=YAHOO.util.Dom.getStyle(el,attr);if(val!=='auto'&&!this.patterns.offsetUnit.test(val)){return parseFloat(val);} var a=this.patterns.offsetAttribute.exec(attr)||[];var pos=!!(a[3]);var box=!!(a[2]);if(box||(YAHOO.util.Dom.getStyle(el,'position')=='absolute'&&pos)){val=el['offset'+a[0].charAt(0).toUpperCase()+a[0].substr(1)];}else{val=0;} return val;},getDefaultUnit:function(attr){if(this.patterns.defaultUnit.test(attr)){return'px';} return'';},setRuntimeAttribute:function(attr){var start;var end;var attributes=this.attributes;this.runtimeAttributes[attr]={};var isset=function(prop){return(typeof prop!=='undefined');};if(!isset(attributes[attr]['to'])&&!isset(attributes[attr]['by'])){return false;} start=(isset(attributes[attr]['from']))?attributes[attr]['from']:this.getAttribute(attr);if(isset(attributes[attr]['to'])){end=attributes[attr]['to'];}else if(isset(attributes[attr]['by'])){if(start.constructor==Array){end=[];for(var i=0,len=start.length;i0&&isFinite(tweak)){if(tween.currentFrame+tweak>=frames){tweak=frames-(frame+1);} tween.currentFrame+=tweak;}};};YAHOO.util.Bezier=new function(){this.getPosition=function(points,t){var n=points.length;var tmp=[];for(var i=0;i0&&!(control[0]instanceof Array)){control=[control];}else{var tmp=[];for(i=0,len=control.length;i0){this.runtimeAttributes[attr]=this.runtimeAttributes[attr].concat(control);} this.runtimeAttributes[attr][this.runtimeAttributes[attr].length]=end;} else{superclass.setRuntimeAttribute.call(this,attr);}};var translateValues=function(val,start){var pageXY=Y.Dom.getXY(this.getEl());val=[val[0]-pageXY[0]+start[0],val[1]-pageXY[1]+start[1]];return val;};var isset=function(prop){return(typeof prop!=='undefined');};})();(function(){YAHOO.util.Scroll=function(el,attributes,duration,method){if(el){YAHOO.util.Scroll.superclass.constructor.call(this,el,attributes,duration,method);}};YAHOO.extend(YAHOO.util.Scroll,YAHOO.util.ColorAnim);var Y=YAHOO.util;var superclass=Y.Scroll.superclass;var proto=Y.Scroll.prototype;proto.toString=function(){var el=this.getEl();var id=el.id||el.tagName;return("Scroll "+id);};proto.doMethod=function(attr,start,end){var val=null;if(attr=='scroll'){val=[this.method(this.currentFrame,start[0],end[0]-start[0],this.totalFrames),this.method(this.currentFrame,start[1],end[1]-start[1],this.totalFrames)];}else{val=superclass.doMethod.call(this,attr,start,end);} return val;};proto.getAttribute=function(attr){var val=null;var el=this.getEl();if(attr=='scroll'){val=[el.scrollLeft,el.scrollTop];}else{val=superclass.getAttribute.call(this,attr);} return val;};proto.setAttribute=function(attr,val,unit){var el=this.getEl();if(attr=='scroll'){el.scrollLeft=val[0];el.scrollTop=val[1];}else{superclass.setAttribute.call(this,attr,val,unit);}};})();YAHOO.register("animation",YAHOO.util.Anim,{version:"2.2.2",build:"204"}); YAHOO.namespace("YFG"); YAHOO.YFG.constants={'windows':{'defaults':{newWindowForEachLink:0,title:'YahooYFG',width:100,height:100,left:0,top:0,scrollbars:'no',toolbar:'no',directories:'no',status:'no',menubar:'no',location:'no',resizable:'no'}},'flyout':{show:125,hide:250},'spinner_img':function(){var img=document.createElement('img');img.src="http://us.js2.yimg.com/us.yimg.com/i/us/fi/yfc/images/indicator_medium_1.1.gif";img.id="spinner";return img;}(),'spinner_delay':165};var console=window.console||{};console.log=console.log||function(){};Array.prototype.lastIndexOf=Array.prototype.lastIndexOf||function(v){var i=this.length-1;do{if(this[i]==v)return i;}while(i--);} YAHOO.YFG.getHeight=function(elm){var h=YAHOO.util.Dom.getStyle(elm,'height');if(h=='auto'){YAHOO.util.Dom.setStyle(elm,"zoom",1);h=elm.clientHeight+'px';} return h;} YAHOO.YFG.gotoUrl=function(e,url){document.location.href=url;YAHOO.util.Event.stopPropagation(e);} YAHOO.YFG.updateLastSearchCookie=function(e){YAHOO.YFG.SessionCookie.set("last_search",document.sf1.p.value);} YAHOO.YFG.updateSearchCookie=function(i){YAHOO.YFG.SessionCookie.set("search_tab",i);} YAHOO.YFG.sportstreamInit=function(url){var windowName="playerWindow";var windowParams="width=793,height=666,scrollbars=no,toolbar=no,directories=no,status=no,menubar=no";var notice=function(){var blockerDiv=document.getElementById('sportstream-blocker');var blockerLaunch=document.getElementById('sportstream-blocker-launch');var openLaunch=function(){var w=window.open(url,windowName,windowParams);blockerDiv.style.display='none';return false;} blockerDiv.style.display='block';} var result;result=window.open(url,windowName,windowParams);if(result==undefined){YAHOO.util.Event.addListener(window,"load",notice);}} YAHOO.YFG.Window=function(){function openWindow(e,obj,windowDefintion){var a=YAHOO.util.Event.getTarget(e);if(!a.href||a.tagName.match(/img/i)){if(a.parentNode.href){a=a.parentNode;}} YAHOO.util.Event.preventDefault(e);var f=YAHOO.YFG.constants.windows[windowDefintion];var df=YAHOO.YFG.constants.windows.defaults;var ti=readAttribute(f.title,df.title);var w=readAttribute(f.width,df.width);var h=readAttribute(f.height,df.height);var t=readAttribute(f.top,df.top);var l=readAttribute(f.left,df.left);var sb=readAttribute(f.scrollbars,df.scrollbars);var tb=readAttribute(f.toolbar,df.toolbar);var d=readAttribute(f.directories,df.directories);var st=readAttribute(f.status,df.status);var mb=readAttribute(f.menubar,df.menubar);var loc=readAttribute(f.location,df.location);var rs=readAttribute(f.resizable,df.resizable);var newWindowForEachLink=readAttribute(f.newWindowForEachLink,df.newWindowForEachLink);if(newWindowForEachLink){ti=a.href;ti=ti.replace(/ylt=[A-Za-z.0-9]+/,'');ti=ti.replace(/\W/g,'');} newWindow=window.open(a.href,ti,'width='+w+',height='+h+',top='+t+',left='+l+',scrollbars='+sb+',toolbar='+tb+',directories='+d+',status='+st+',menubar='+mb+',location='+loc+',resizable ='+rs);if(window.focus){newWindow.focus();}} function readAttribute(attrA,attrB){if(typeof attrA!=='undefined'){return attrA;} return attrB;} var set=function(root,classname,windowDefintion){if(typeof windowDefintion==='undefined'){windowDefintion=classname;} var nodes=YAHOO.util.Dom.getElementsByClassName(classname,"a",root);if(!nodes)return;var openWindowFunc=function(e,obj){openWindow(e,obj,windowDefintion);} return YAHOO.util.Event.addListener(nodes,"click",openWindowFunc,this,true);} return{'set':set}}();YAHOO.YFG.navInit=function(){if(!document.getElementById||!document.getElementsByTagName||!YAHOO.YFG.nav_flyouts)return;var switchThrottle=function(){if(throttle&&throttle_to){throttle_to=window.clearTimeout(throttle_to);throttle=false;}} var timer=false;var current_fo=false;var open_msec=YAHOO.YFG.constants.flyout.show;var close_msec=YAHOO.YFG.constants.flyout.hide;var sep_width=9;var throttle=false;var throttle_time=100;var throttle_to=window.setTimeout(switchThrottle,throttle_time);var hit=null;var outside_check=null;var fe=false;var bread=document.getElementById('yse-bread');var ft=document.createElement('div');ft.className="ft";var fo=document.createElement('div');fo.className="yse-flyout";ft.appendChild(fo);var fo_hd=document.createElement('div');fo_hd.className="hd";fo.appendChild(fo_hd);fo_hd.appendChild(document.createElement('span'));var fo_bd=document.createElement('div');fo_bd.className="bd";fo.appendChild(fo_bd);var fo_ft=document.createElement('div');fo_ft.className="ft";fo.appendChild(fo_ft);bread.appendChild(ft);var bread_crumbs=YAHOO.util.Dom.getElementsBy(function(){return true;},'em',bread);if(bread_crumbs.length>1){bread_crumbs.pop();} var getHijackedLink=function(e,obj){YAHOO.util.Event.preventDefault(e);var hit=YAHOO.util.Event.getTarget(e);if(outsideHitArea(e,hit)){hit=getNextBread(hit);} closeFlyout(e);window.location=hit.parentNode.href;} var outsideHitArea=function(e,hit){var r=YAHOO.util.Dom.getRegion(hit);var a={x:(r.right-sep_width),y:r.top};var b={x:r.right,y:(r.top+(hit.clientHeight/2))};var c={x:(r.right-sep_width),y:r.bottom};var d={x:YAHOO.util.Event.getPageX(e),y:YAHOO.util.Event.getPageY(e)};var next=Math.max(((d.x-a.x)*(b.y-a.y)-(d.y-a.y)*(b.x-a.x)),((d.x-b.x)*(c.y-b.y)-(d.y-b.y)*(c.x-b.x)));return(Math.abs(next)==next)?true:false;} var getNextBread=function(hit){hit.parentNode.style.textDecoration='none';if(null!=hit.parentNode.nextSibling) return hit.parentNode.nextSibling.nextSibling.firstChild;else return null;} var checkWhileInsideCrumb=function(e,hit){if(throttle){return;}else{throttle_to=window.setTimeout(switchThrottle,throttle_time);throttle=true;};if(outsideHitArea(e,hit)){if(YAHOO.util.Event.getTarget(e).parentNode.className=='last-previous-sibling'){closeFlyout(e);return false;} hit=getNextBread(hit);} paintFlyout(hit);} var getFlyout=function(e){var h=YAHOO.util.Event.getTarget(e,1);checkWhileInsideCrumb(e,h);outside_check=YAHOO.util.Event.addListener(h,"mousemove",checkWhileInsideCrumb,h);} var paintFlyout=function(hit){if(timer)window.clearTimeout(timer);timer=false;if(hit.nodeName!='EM'){return;} if((fo.style.display&&fo.style.display=='block')&&(current_fo==hit.parentNode))return;fo.style.display='none';var i=bread_crumbs.length-1;do{bread.getElementsByTagName('em')[i].parentNode.style.textDecoration='none';if(bread.getElementsByTagName('em')[i].parentNode==hit.parentNode){hit.parentNode.style.textDecoration='underline';hit.parentNode.style.color='#FFF';while(fo_bd.hasChildNodes()){fo_bd.removeChild(fo_bd.lastChild);} if(YAHOO.util.Event.isIE)removeIeTransparentPNG();var data=YAHOO.YFG.nav_flyouts.aNav[i];var h5=document.createElement('h5');h5.innerHTML=(!i)?'Yahoo! for Good':''+data[0].txt+'';fo_bd.appendChild(h5);fo_bd.className=(!i)?'bd sports-home':'bd';var menu=document.createElement('ul');var j=data.length-1;var last=true;do{var li=document.createElement('li');li.innerHTML=''+data[j].txt+'';if(!i)li.className=(j%2)?'even':'odd';if(!i||j)menu.insertBefore(li,menu.firstChild);if(!i&&last)li.className=li.className+' last';if(last)last=false;}while(j--);fo_bd.style.width='';fo_bd.appendChild(menu);var offset=(!i)?0:14;timer=setTimeout(function(){openFlyout(hit,offset);timer=false;},open_msec);}}while(i--);};var openFlyout=function(hit,offset){current_fo=hit.parentNode;if(!fo.style.display||fo.style.display=='none')fo.style.display='block';var pos=YAHOO.util.Dom.getRegion(hit);switch(current_fo){case fan_hit:fo_bd.style.width='';YAHOO.util.Dom.setXY(ft,[pos.right-fo.offsetWidth,pos.bottom]);break;default:if(YAHOO.util.Event.isIE)offset=offset-4;if(YAHOO.util.Event.isSafari)offset=offset+9;YAHOO.util.Dom.setXY(ft,[pos.left-offset,pos.bottom]);if((ft.clientWidth-35)<(hit.offsetWidth-9)){fo_bd.style.width=(YAHOO.util.Event.isIE)?(hit.offsetWidth+1)+'px':(hit.clientWidth-30)+'px';} break;} if(YAHOO.util.Event.isIE)addIeTransparentPNG();};var closeFlyout=function(e){if(timer)clearTimeout(timer);var h=YAHOO.util.Event.getTarget(e,1);outside_check=YAHOO.util.Event.removeListener(h,"mousemove",checkWhileInsideCrumb,h);YAHOO.util.Event.getTarget(e).parentNode.style.textDecoration='none';if(fo.style.display=='block'){timer=setTimeout(function(){fo.style.display='none';removeIeTransparentPNG();timer=false;current_fo=false;},close_msec);}};var fantasyFlyout=function(e){var h=YAHOO.util.Event.getTarget(e);if(timer)window.clearTimeout(timer);timer=false;if(!YAHOO.YFG.nav_flyouts.fNav)return;if(h.nodeName!='A'){return;} if((fo.style.display&&fo.style.display=='block')&&(current_fo==h.parentNode))return;fo.style.display='none';try{var data=YAHOO.YFG.nav_flyouts.fNav;while(fo_bd.hasChildNodes()){fo_bd.removeChild(fo_bd.lastChild);} if(YAHOO.util.Event.isIE)removeIeTransparentPNG();fo_bd.className='bd fantasy';if(YAHOO.YFG.nav_flyouts.fNav.my_teams.ul.length){var mt_h5=document.createElement('h5');mt_h5.innerHTML=data.my_teams.h5;fo_bd.appendChild(mt_h5);var mt=document.createElement('ul');mt.className='my-teams';var i=data.my_teams.ul.length-1;do{var g=data.my_teams.ul[i];var li=document.createElement('li');li.innerHTML='
'+g.game+'
';var tl=document.createElement('ul');var j=g.teams.length-1;do{var t_li=document.createElement('li');t_li.className='team';t_li.innerHTML=''+g.teams[j].team+'';t_li.innerHTML+=(g.teams[j].league&&g.teams[j].l_url)?' - '+g.teams[j].league+'':'';tl.insertBefore(t_li,tl.firstChild);}while(j--);li.appendChild(tl);mt.appendChild(li);if(!i&&YAHOO.YFG.nav_flyouts.fNav.more_link){var li=document.createElement('li');li.innerHTML='
See All of My Teams »
';mt.appendChild(li);} if(!i)li.className='last';}while(i--);fo_bd.appendChild(mt);}}catch(e){}finally{var og_h5=document.createElement('h5');og_h5.innerHTML=data.other_games.h5;fo_bd.appendChild(og_h5);var og=document.createElement('div');og.innerHTML=data.other_games.text;fo_bd.appendChild(og);timer=setTimeout(function(){openFlyout(h,0);timer=false;},open_msec);}} YAHOO.util.Event.addListener(bread_crumbs,"mouseover",getFlyout,this);YAHOO.util.Event.addListener(bread_crumbs,"mouseout",closeFlyout,this);YAHOO.util.Event.addListener(fo,"mouseover",paintFlyout,this);YAHOO.util.Event.addListener(fo,"mouseout",closeFlyout,this);YAHOO.util.Event.addListener(bread.getElementsByTagName('em'),"click",getHijackedLink,this);var fan_hit=YAHOO.util.Dom.getElementsByClassName('last','li',document.getElementById('yse-sub-nav'))[0];YAHOO.util.Event.addListener(fan_hit,"mouseover",fantasyFlyout,this);YAHOO.util.Event.addListener(fan_hit,"mouseout",closeFlyout,this);var addIeTransparentPNG=function(){if(document.getElementById('yse-flyout-ie-rt'))removeIeTransparentPNG();var fly=YAHOO.util.Dom.getElementsByClassName('yse-flyout')[0];var hd=YAHOO.util.Dom.getElementsByClassName('hd','div',fly)[0];var ie_lt=document.createElement('div');ie_lt.id="yse-flyout-ie-lt";ft.appendChild(ie_lt);var ie_lt_crnr=document.createElement('div');ie_lt_crnr.id="yse-flyout-ie-lt-crnr";hd.appendChild(ie_lt_crnr);var ie_rt=document.createElement('div');ie_rt.id="yse-flyout-ie-rt";ft.appendChild(ie_rt);var h=fly.parentNode.clientHeight;h=(h%2)?h-1:h;document.getElementById('yse-flyout-ie-rt').style.height=h;document.getElementById('yse-flyout-ie-lt').style.height=h;var w=fly.parentNode.clientWidth;w=(w%2)?w-27:w-26;w=(navigator.userAgent.search('MSIE 7')!=-1)?w:w+5;fly.getElementsByTagName('span')[0].style.width=w;if(!bread.getElementsByTagName('iframe')[0]){var ifr=document.createElement('iframe');ifr.style.width=fly.parentNode.clientWidth-12;ifr.style.height=fly.parentNode.clientHeight;bread.appendChild(ifr);var loc=YAHOO.util.Dom.getXY(fo);YAHOO.util.Dom.setXY(ifr,[loc[0]+4,loc[1]]);}} var removeIeTransparentPNG=function(){if(bread.getElementsByTagName('iframe')[0]){bread.removeChild(bread.getElementsByTagName('iframe')[0]);} if(!document.getElementById('yse-flyout-ie-rt')&&!document.getElementById('yse-flyout-ie-lt')&&!document.getElementById('yse-flyout-ie-lt-crnr'))return;if(document.getElementById('yse-flyout-ie-rt')){var fly=document.getElementById('yse-flyout-ie-rt').parentNode;fly.removeChild(document.getElementById('yse-flyout-ie-rt'));if(document.getElementById('yse-flyout-ie-lt'))fly.removeChild(document.getElementById('yse-flyout-ie-lt'));} if(document.getElementById('yse-flyout-ie-lt-crnr')){var fly_hd=document.getElementById('yse-flyout-ie-lt-crnr').parentNode;fly_hd.removeChild(document.getElementById('yse-flyout-ie-lt-crnr'));}}};YAHOO.YFG.flyout={openms:125,closems:250,flyouts:Array(),opentimer:false,closetimer:false,openpanel:null,init:function(elname,data){if(!elname||!data)return;var el=document.getElementById(elname);this.data=data;var lis=el.getElementsByTagName('li');YAHOO.util.Event.addListener(lis,"mouseover",this.startOpenTimer,{fn:this.showFlyout,ms:this.openms});YAHOO.util.Event.addListener(lis,"mouseout",this.startCloseTimer,this,true);},getTarget:function(e){var h=YAHOO.util.Event.getTarget(e);if(h.nodeName=='A')h=h.parentNode;return h;},getLeague:function(h){return h.className.replace(/first /,'');},showFlyout:function(e){var f=YAHOO.YFG.flyout;var h=f.getTarget(e);var league=f.getLeague(h);if(league=='allsports'||league=='rah'){return;} var ul=h.getElementsByTagName('ul')[0];if(f.data[league]&&!ul){var p=f.createFlyout(league);h.appendChild(p);ul=h.getElementsByTagName('ul')[0];f.flyouts.push(ul);} if(league)f.openpanel=league;YAHOO.util.Dom.setStyle(ul,"display","");f.opentimer=f.stopTimer(f.opentimer);},hideAllFlyouts:function(e){var f=YAHOO.YFG.flyout;var j=f.flyouts.length-1;if(j<0)return;do{YAHOO.util.Dom.setStyle(f.flyouts[j],"display","none");}while(j--);f.closetimer=f.stopTimer(f.closetimer);f.openpanel=null;},createFlyout:function(league){var p=document.createElement('ul');var data=this.data[league].ul;data.reverse();var i=data.length-1;do{var li=this.getLi(this.getA(data[i].txt,data[i].href));p.appendChild(li);}while(i--);return p;},getLi:function(child){var li=document.createElement('li');if(child)li.appendChild(child);return li;},getA:function(text,href){if(!text||!href)return;var a=document.createElement('a');a.innerHTML=text;a.href=href;return a;},startOpenTimer:function(e,args){var f=YAHOO.YFG.flyout;var h=f.getTarget(e);var league=f.getLeague(h);if(f.closetimer){f.closetimer=f.stopTimer(f.closetimer);} if(league!=''&&f.openpanel!=league){f.hideAllFlyouts();f.opentimer=f.stopTimer(f.opentimer);} if(!f.opentimer){f.opentimer=window.setTimeout(function(){args.fn.call(this,e)},args.ms);}},startCloseTimer:function(e){this.closetimer=window.setTimeout(this.hideAllFlyouts,this.closems);},stopTimer:function(t){window.clearTimeout(t);return false;}};