window.lfsportsHomepage=function(){};function lfsportsHomepageT1Init()
{t1PodObj=new lfsportsHomepage.t1PodNav("lfsportsmain1PodNav","lfsportsmain1PC");t1PodObj.setT1Timer(4000);t1PodObj.startRotation();}
lfsportsHomepage.t1PodNav=function(t1ThumbContainer,t1ContPrefix)
{var lfsportsmain1PodNav=$(t1ThumbContainer);var lfsportsmain1ContPrefix=t1ContPrefix;var lfsportsmain1Timeout=7000;var navArry=[];var lastPosition=0;var t1PodTimer=null;var isErr=false;this.startRotation=_startRotation;this.doRotate=_doRotate;this.stopRotate=_stopRotate;this.doThumbOver=_doThumbOver;this.showHideT1=_showHideT1;this.setT1Timer=_setT1Timer;function _startRotation()
{try{navArry=lfsportsmain1PodNav.getElementsBySelector('li');_getOverlayDiv(navArry[lastPosition]).addClassName("lfsportsSpanOverlay");_setMouseOverEvents();_doRotate();}catch(eRR){}}
function _setT1Timer(timeVal){lfsportsmain1Timeout=timeVal}
function _setMouseOverEvents()
{for(var i=0;i<navArry.length;i++)
{try{var iElement=lfsportsmain1ContPrefix+i;navArry[i].observe('mouseover',_thumbHandler.bindAsEventListener(Event,true,i));navArry[i].observe('mouseout',_thumbHandler.bindAsEventListener(Event,false,i));$(iElement).observe('mouseover',function(e){_stopRotate();});$(iElement).observe('mouseout',function(e){_doRotate();});}catch(_eRR){isErr=true;alert("setMouseOverEvents(): Content element with ID [ "+iElement+"] was not found in the DOM");break;}}}
function _thumbHandler(e){var argArry=$A(arguments);argArry.shift();if(argArry[0]){_doThumbOver(argArry[1])}else{_doRotate();}}
function _doRotate(){if(!isErr){t1PodTimer=setTimeout(function(){_showHideT1()},lfsportsmain1Timeout);}}
function _stopRotate(){clearTimeout(t1PodTimer);t1PodTimer=null;}
function _doThumbOver(thumbId){_stopRotate();try{$(lfsportsmain1ContPrefix+lastPosition).hide();_getOverlayDiv(navArry[lastPosition]).removeClassName("lfsportsSpanOverlay");$(lfsportsmain1ContPrefix+thumbId).show();_getOverlayDiv(navArry[thumbId]).addClassName("lfsportsSpanOverlay");lastPosition=thumbId;}catch(_eRR){alert("doThumbOver(): Content element with ID [ "+(lfsportsmain1ContPrefix+lastPosition)+"] or [ "+(lfsportsmain1ContPrefix+thumbId)+"] was not found in the DOM");}}
function _showHideT1()
{var nextPosition=((lastPosition+1)>navArry.length-1)?0:(lastPosition+1);var currContent=lfsportsmain1ContPrefix+lastPosition;var nextContent=lfsportsmain1ContPrefix+nextPosition;try{_getOverlayDiv(navArry[lastPosition]).removeClassName("lfsportsSpanOverlay");_getOverlayDiv(navArry[nextPosition]).addClassName("lfsportsSpanOverlay");$(currContent).hide();$(nextContent).show();_doRotate();}catch(_eRR){isErr=true;s
alert("t1PodNav._showHideT1(): Content element with ID [ "+currContent+"] or [ "+nextContent+"] was not found in the DOM");}
lastPosition=nextPosition;}
function _getOverlayDiv(liElement)
{var liFirstChild=liElement.firstDescendant();var liFirstChildDivs=liFirstChild.getElementsBySelector('div')
return liFirstChildDivs[0];}}
