Array.prototype.inArray=function(B){for(var A in this){if(this[A]===B){return A}}return -1};function getQueryVariable(A){var C=window.location.search.substring(1);var D=C.split("&");for(var B=0;B<D.length;B++){var E=D[B].split("=");if(E[0]==A){return E[1]}}return null}function addClass(A,B){myClass=A.className;myClass+=" "+B;A.className=myClass}function removeClass(A,B){myClass=A.className;myClassAry=myClass.split(" ");for(i=0;i<myClassAry.length;i++){if(myClassAry[i]==B){myClassAry.splice(i,1)}}myClass=myClassAry.join(" ");A.className=myClass}function getWebComponent(){var A;if(typeof XMLHttpRequest!="undefined"){A=new XMLHttpRequest()}else{A=new ActiveXObject("Microsoft.XMLHTTP")}return A}function getXML(B,D,E){var C;var A;A=typeof E=="undefined"?"GET":"POST";C=getWebComponent();C.open(A,B,true);if(A=="POST"){C.setRequestHeader("Content-type","application/x-www-form-urlencoded");C.setRequestHeader("Content-length",E.length);C.setRequestHeader("Connection","Close")}C.onreadystatechange=function(){if(C.readyState==4){var F=C.responseXML;if((F!=null)&&F.hasChildNodes()){if(D&&typeof D=="object"&&typeof D.readXML=="function"){return D.readXML(F)}else{if(D){return D(F)}}}else{alert("Error receiving a response from the server")}}};C.send(E)}function postForm(D,F){var A;var C;var E;A=D.getElementsByTagName("input");E="";for(var B=0;B<A.length;B++){C=A[B].getAttribute("type");if(C&&(C=="text"||C=="hidden"||C=="password")){E+=A[B].name;E+="=";E+=A[B].value;E+="&"}}A=D.getElementsByTagName("textarea");for(var B=0;B<A.length;B++){E+=A[B].getAttribute("name");E+="=";E+=A[B].value;E+="&"}getXML(D.action,F,E)}function formatDate(B,C){var E=C;var D=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];var A=["January","February","March","April","May","June","July","August","September","October","November","December"];E=E.replace(/%d/g,B.getDate());E=E.replace(/%D/g,fixDigits(B.getDate(),2));E=E.replace(/%h/g,String(B.getHours()%12==0?"12":B.getHours()%12));E=E.replace(/%H/g,fixDigits(B.getHours(),2));E=E.replace(/%MM/g,A[B.getMonth()]);E=E.replace(/%m/g,fixDigits(B.getMonth()+1,2));E=E.replace(/%n/g,fixDigits(B.getMinutes(),2));E=E.replace(/%od/g,getOrdinalSufix(B.getDate()));E=E.replace(/%s/g,B.getSeconds());E=E.replace(/%W/g,D[B.getDay()]);E=E.replace(/%yy/g,B.getFullYear());E=E.replace(/%y/g,B.getYear());E=E.replace(/%a/g,(B.getHours()<12)?"A":"P");return E}function fixDigits(B,C){tmpNumber=parseInt(B);C=parseInt(C);numberDigits=0;addDigits=0;myResp="";while(tmpNumber>0){tmpNumber=parseInt(tmpNumber/10);numberDigits++}addDigits=C-numberDigits;for(var A=0;A<addDigits;A++){myResp+="0"}if(B>0){myResp+=B}return(myResp)}function getOrdinalSufix(A){A=String(A).trim();if(A=="1"){return"st"}else{if(A=="2"){return"nd"}else{if(A=="3"){return"rd"}else{if(A==""){return""}else{return"th"}}}}}function setCookie(B,C){var A=new Date();A.setYear(2012);A.setMonth(12);A.setDate(12);document.cookie=B+"="+C+";expires="+A.toGMTString()}function getCookie(A){cookieRegexp=new RegExp(A+"=(.*?);");values=document.cookie.match(cookieRegexp);if(values){return values[1]}return""}function processXML(E,A,F,B){var G=new Array();if(E){myArray=E.getElementsByTagName(A);var D=myArray.length;for(var C=0;C<D;C++){G[C]=new F(myArray[C],B);if(G[C].readXML){G[C].readXML(myArray[C],B)}G[C].arrayPos=C}return G}return false}function getDateFromString(B){var A=new Date();myFullDate=/(\d{4})[-\/](\d{2})[-\/](\d{2})[+T\s]*?(\d{2}):(\d{2})(?::(\d{2}))?/;myTime=/(\d{2}):(\d{2})/;if(B){if(myDateArray=B.match(myFullDate)){A.setYear(1980);A.setMonth(1);A.setDate(1);A.setYear(myDateArray[1]);A.setMonth(myDateArray[2]-1);A.setDate(myDateArray[3]);A.setHours(myDateArray[4]);A.setMinutes(myDateArray[5])}else{if(myDateArray=B.match(myTime)){A.setHours(myDateArray[1]);A.setMinutes(myDateArray[2])}else{A=new Date()}}}else{A=new Date()}return A}function getParent(A,B){while(B){if(B.nodeName==A.toUpperCase()){return B}B=B.parentNode}return false}function getParentObj(A){while(A){if(typeof A.obj!="undefined"){return A.obj}A=A.parentNode}return false}function getCurrentUrl(){var A;A=window.location.protocol+"//"+window.location.host;return A}function getTarget(B){var A="";switch(B){case SBR.CORE.Common.TargetType._BLANK:A="_blank";break;case SBR.CORE.Common.TargetType._TOP:A="_top";break;case SBR.CORE.Common.TargetType._PARENT:A="_parent";break;case SBR.CORE.Common.TargetType._SELF:A="_self";break}return A}function validateInteger(A){A=parseInt(A);if(isNaN(A)){return 0}else{return 1}}var EMPTY_STRING="";var HTML_ELEMENT_BR="br";var HTML_ELEMENT_UL="ul";var HTML_ELEMENT_LI="li";var HTML_ELEMENT_A="a";var HTML_ELEMENT_P="p";var HTML_ELEMENT_TABLE="table";var HTML_ELEMENT_TABLE_TBODY="tbody";var HTML_ELEMENT_TABLE_ROW="tr";var HTML_ELEMENT_TABLE_CELL="td";var HTML_ELEMENT_DIV="div";var HTML_ELEMENT_SPAN="span";var HTML_ELEMENT_DISPLAY_BLOCK="block";var HTML_ELEMENT_DISPLAY_NONE="none";var HTML_ELEMENT_IMG="img";var ENTER_KEY_CODE=13;var LAST_URL_CHARACTER="/";var MODE_REWRITE_PARAMETER="#";function Comments(){var O;var E;var L;var B;var H;var P;var N;var A;var M;var C;var D;var G;var F;var K;var I;var J}Comments.prototype.GoToPage=function(E,C,D){Donbest.Website.WebServices.JSEvents.GetComments(C._ArticleId,C._CommentsToShow,D,B,A);function B(H){var O=document.createElement(HTML_ELEMENT_DIV);var U=document.createElement(HTML_ELEMENT_DIV);C._CurrentPage=D;for(var X in H){for(var S=0;S<H[X].length;S++){var F=H[X][S];var W=document.createElement(HTML_ELEMENT_DIV);var N=document.createElement(HTML_ELEMENT_DIV);var L=document.createElement(HTML_ELEMENT_DIV);var G=document.createElement(HTML_ELEMENT_SPAN);var b=document.createElement(HTML_ELEMENT_SPAN);W.className="single_comment_container";N.className="commentHeader";if(F.IsMembershipUser){G.innerHTML=F.CreatedBy.UserName}else{G.innerHTML=F.DonBestUserName}b.innerHTML=F.CreatedDate.format("MM/dd/yyyy h:mm:ss tt");N.appendChild(G);if(C._IsAdmin||(C._IsMembershipUser&&C._CurrentUser==F.CreatedBy.UserId)||(!C._IsMembershipUser&&C._CurrentUser==F.DonBestUserName)){SpanDeleteComment=document.createElement(HTML_ELEMENT_SPAN);var V=document.createElement(HTML_ELEMENT_A);V.href="#";V.innerHTML="&nbsp;";if(V.attachEvent){V.attachEvent("onclick",new Function(String.format("return {0}.DeleteComment({0}, {1});",C._ClientId,F.CommentId)))}else{V.setAttribute("onclick",String.format("return {0}.DeleteComment({0}, {1});",C._ClientId,F.CommentId))}SpanDeleteComment.className="deleteComment";SpanDeleteComment.appendChild(V);N.appendChild(SpanDeleteComment)}N.appendChild(document.createElement(HTML_ELEMENT_BR));N.appendChild(b);L.innerHTML=F.Content;W.appendChild(N);W.appendChild(L);O.appendChild(W)}var R;var P;var Z=Math.ceil(X/C._CommentsToShow);var J=Z>C._PagesToShow?C._PagesToShow:Z;if(C._CurrentBlock*J<D){C._CurrentBlock+=1}if(C._CurrentBlock*J-J==D){C._CurrentBlock-=1}if(C._CurrentBlock>1){R=document.createElement(HTML_ELEMENT_DIV);P=document.createElement(HTML_ELEMENT_A);P.href="#";P.innerHTML="&laquo;";R.className="control_page";var I=((C._CurrentBlock*J)-(J-1))-1;if(P.attachEvent){P.attachEvent("onclick",new Function(String.format("return {0}.GoToPage(this, {0}, {1});",C._ClientId,I)))}else{P.setAttribute("onclick",String.format("return {0}.GoToPage(this, {0}, {1});",C._ClientId,I))}R.appendChild(P);U.appendChild(R);P=null;R=null}for(var K=1;K<=J;K++){var T=(C._CurrentBlock*J)-(J-K);if(X<=(T*C._CommentsToShow)-C._CommentsToShow){break}R=document.createElement(HTML_ELEMENT_DIV);P=document.createElement(HTML_ELEMENT_A);P.href="#";P.innerHTML=T;if(D==T){R.className="control_page_selected"}else{R.className="control_page"}if(P.attachEvent){P.attachEvent("onclick",new Function(String.format("return {0}.GoToPage(this, {0}, {1});",C._ClientId,T)))}else{P.setAttribute("onclick",String.format("return {0}.GoToPage(this, {0}, {1});",C._ClientId,T))}R.appendChild(P);U.appendChild(R);P=null;R=null}if(Z<=(J*C._CurrentBlock)){break}R=document.createElement(HTML_ELEMENT_DIV);P=document.createElement(HTML_ELEMENT_A);P.href="#";P.innerHTML="&raquo;";R.className="control_page";var Q=(C._CurrentBlock*J)+1;if(P.attachEvent){P.attachEvent("onclick",new Function(String.format("return {0}.GoToPage(this, {0}, {1});",C._ClientId,Q)))}else{P.setAttribute("onclick",String.format("return {0}.GoToPage(this, {0}, {1});",C._ClientId,Q))}R.appendChild(P);U.appendChild(R);P=null;R=null}var M=$get(C._DivCommentsId);var Y=$get(C._DivCommentPagesId);M.innerHTML="";Y.innerHTML="";M.appendChild(O);Y.appendChild(U);M=null;Y=null}function A(F){}return false};Comments.prototype.AddComment=function(C){var B=$get(C._TxtCommentId);if(B.value.length>0){var D=new Object();D.ReferId=C._ArticleId;D.Content=B.value;Donbest.Website.WebServices.JSEvents.AddComment(D,E,A)}function E(F){C.GoToPage(null,C,1);B.value=""}function A(F){B.value=""}return false};Comments.prototype.DeleteComment=function(B,C){if(confirm("Are you sure you want to delete this comment?")){Donbest.Website.WebServices.JSEvents.DeleteComment(C,A,D)}function A(F){if(F>-1){var E=Math.ceil(F/B._CommentsToShow);if(B._CurrentPage>E){B._CurrentPage-=1}}B.GoToPage(null,B,B._CurrentPage)}function D(E){alert(E.Message)}return false};Calendar.LANG("en","English",{fdow:1,goToday:"Go Today",today:"Today",wk:"wk",weekend:"0,6",AM:"am",PM:"pm",mn:["January","February","March","April","May","June","July","August","September","October","November","December"],smn:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dn:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],sdn:["Su","Mo","Tu","We","Th","Fr","Sa","Su"]});var a=0;var getEls=document.getElementById("pmenu");if(getEls){var getEls=document.getElementById("pmenu").getElementsByTagName("IFRAME");for(var i=0;i<getEls.length;i++){getEls.item(i).style.width=getEls.item(i).nextSibling.offsetWidth;getEls.item(i).style.height=getEls.item(i).nextSibling.offsetHeight}}function livechatpopup(URL){day=new Date();id=day.getTime();eval("page"+id+" = window.open(URL, '"+id+"','toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=865,height=510');")}function popup(URL){day=new Date();id=day.getTime();eval("page"+id+" = window.open(URL, '"+id+"','toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=700,height=900');")}function liveHelp(){}liveHelp.prototype.init=function(){if(this._TAB_LIVE_HELP&&this._TAB_SUPPORT){var A=$get(this._TAB_LIVE_HELP);var E=$get(this._TAB_SUPPORT);if(A&&E){var C=document.createElement(HTML_ELEMENT_A);var B=document.createElement(HTML_ELEMENT_A);var D=document.createElement(HTML_ELEMENT_A);C.innerHTML="Live Help";C.onclick=this.liveHelpSelected;C.objLiveHelp=this;B.innerHTML="Support";B.onclick=this.SupportSelected;B.objLiveHelp=this;A.appendChild(C);E.appendChild(B)}this.SetStatus(0)}};liveHelp.prototype.liveHelpSelected=function(){if(this.objLiveHelp){var A=this.objLiveHelp;A.SetStatus(0)}};liveHelp.prototype.SupportSelected=function(){if(this.objLiveHelp){var A=this.objLiveHelp;A.SetStatus(1)}};liveHelp.prototype.SetStatus=function(E){if(this._TAB_LIVE_HELP&&this._TAB_SUPPORT&&this._DIV_LIVE_HELP&&this._DIV_SUPPORT){var A=$get(this._TAB_LIVE_HELP);var C=$get(this._TAB_SUPPORT);var D=$get(this._DIV_LIVE_HELP);var B=$get(this._DIV_SUPPORT);switch(E){case 0:D.style.display=HTML_ELEMENT_DISPLAY_BLOCK;B.style.display=HTML_ELEMENT_DISPLAY_NONE;A.className="selected_tab";C.className=EMPTY_STRING;break;case 1:D.style.display=HTML_ELEMENT_DISPLAY_NONE;B.style.display=HTML_ELEMENT_DISPLAY_BLOCK;A.className=EMPTY_STRING;C.className="selected_tab";break}}};function setFocusLoginButtonEnterKey(B){var C=0;if(B.keyCode){C=B.keyCode}if(C==ENTER_KEY_CODE){if(LOGIN_BUTTON){var A=$get(LOGIN_BUTTON);if(A){A.focus()}}}}function setFocusLoginButton(){if(LOGIN_BUTTON){var A=$get(LOGIN_BUTTON);if(A){A.focus()}}}var _OFFSETPOPUP=375;var _TIME_OUT_ID=-1;function loginPopUp(){var A=false}loginPopUp.prototype.init=function(){};loginPopUp.prototype.openLoginPopUp=function(){if(this._DIV_LOGIN_POPUP){var B=$get(this._DIV_LOGIN_POPUP);B.style.display=HTML_ELEMENT_DISPLAY_BLOCK;var A=this.getLeftPosition();B.style.left=A;this._IsOpen=true}if(this._ANCHOR_LOGIN){var C=$get(this._ANCHOR_LOGIN);C.className="mydonbestOver"}};loginPopUp.prototype.getLeftPosition=function(){var A=0;if(this._ANCHOR_LOGIN){var D=$get(this._ANCHOR_LOGIN);var C=D.offsetLeft;var B=D.scrollLeft;A=((C-B)-_OFFSETPOPUP)+"px"}return A};loginPopUp.prototype.closeLoginPopUp=function(){if(this._DIV_LOGIN_POPUP){var A=$get(this._DIV_LOGIN_POPUP);A.style.display=HTML_ELEMENT_DISPLAY_NONE;this._IsOpen=false}if(this._ANCHOR_LOGIN){var B=$get(this._ANCHOR_LOGIN);B.className="mydonbest"}};function openLoginPopUpAnchor(A){if(_TIME_OUT_ID!=-1){clearTimeout(_TIME_OUT_ID);_TIME_OUT_ID=-1}else{if(A._IsOpen==false){A.openLoginPopUp()}else{A.closeLoginPopUp()}}}function closeLoginPopUpAnchor(A){_TIME_OUT_ID=setTimeout("invokeCloseObject('"+A._NAME+"')",1000)}function invokeCloseObject(objMenuPopUp){eval("var objRef = "+objMenuPopUp);if(objRef){objRef.closeLoginPopUp();if(_TIME_OUT_ID!=1){clearTimeout(_TIME_OUT_ID)}_TIME_OUT_ID=-1}}function openLoginPopUp(A){if(_TIME_OUT_ID!=-1){clearTimeout(_TIME_OUT_ID);_TIME_OUT_ID=-1}}function closeLoginPopUp(A){_TIME_OUT_ID=setTimeout("invokeCloseObject('"+A._NAME+"')",1000)}function ClosePopUp(A){invokeCloseObject(A._NAME)}function MiniOdds(){var D;var B;var E;var C;var A}MiniOdds.prototype.displayMainMenu=function(D){if(D._MainLeaguesControls!=undefined){var C=D._MainLeaguesControls.length;var A=document.getElementById(D._ULLIST);A.innerHTML="";for(indexMain=0;indexMain<C;indexMain++){var B=D._MainLeaguesControls[indexMain];var E=document.createElement(HTML_ELEMENT_LI);if(B.LeagueId==D._SELECTED_LEAGUEID){E.className="selected_tab blue_tab"}else{E.className=""}var F=document.createElement(HTML_ELEMENT_A);F.innerHTML=B.ShortName;F.name=B.ShortName;F.id=B.LeagueId;F.sportId=B.SportId;F.obj=D;F.onclick=D.LoadByLeague;E.appendChild(F);A.appendChild(E)}}};MiniOdds.prototype.LoadByLeague=function(){var A=this.obj;A._SELECTED_LEAGUEID=this.id;A._SELECTED_LEAGUE=this.name;A.LoadMiniOdds(A)};MiniOdds.prototype.ChangeTimeZone=function(D){var B=$get(D._DIV_LOADING_MINIODDS);B.style.visibility="visible";B.style.display="";var A=$get(D._DDL_TIME_ZONES);var E=A.options[A.selectedIndex].text;var C=new Object();C.info=D;Donbest.Website.WebServices.JSStatistics.GetMiniODDS(D._ClientId,D._SELECTED_LEAGUEID,D._SELECTED_LEAGUE,D._SELECTED_DATE,D._CURRENT_TIME_ZONE,E,D.WSSuccess,D.WSError,C);return false};MiniOdds.prototype.LoadMiniOdds=function(D){var B=$get(D._DIV_LOADING_MINIODDS);B.style.visibility="visible";B.style.display="";var A=$get(D._DDL_TIME_ZONES);var E=A.options[A.selectedIndex].text;D.displayMainMenu(D);var C=new Object();C.info=D;Donbest.Website.WebServices.JSStatistics.GetMiniODDS(D._ClientId,D._SELECTED_LEAGUEID,D._SELECTED_LEAGUE,D._SELECTED_DATE,D._CURRENT_TIME_ZONE,E,D.WSSuccess,D.WSError,C)};MiniOdds.prototype.WSSuccess=function(A,D){var C=document.getElementById(D.info._DIV_ODDS);C.innerHTML=A;var B=$get(D.info._DIV_LOADING_MINIODDS);B.style.display="none";B.style.visibility="hidden"};MiniOdds.prototype.WSError=function(C,B){var A=$get(B.info._DIV_LOADING_MINIODDS);A.style.display="none";A.style.visibility="hidden"};function Navegation(){var B;var A}Navegation.prototype.OnClick=function(E,B,D){var A=$get(D);if(E._CurrentClickedLinkId==D){return false}else{if(E._CurrentClickedLinkId.length>0){var C=$get(E._CurrentClickedLinkId);if(C){C.style.display="none";if(navigator.appName=="Microsoft Internet Explorer"){C.innerHTML=""}}}}if(A){A.style.display="";if(navigator.appName=="Microsoft Internet Explorer"){A.innerHTML=String.format('<img src="/{0}" />',E._ProgressImageUrl)}}E._CurrentClickedLinkId=D;return true};function OddsAllLeagues(){}OddsAllLeagues.prototype.displayMainMenu=function(D){if(D._MainLeaguesControls!=undefined){var C=D._MainLeaguesControls.length;var A=document.getElementById(D._ULLIST);A.innerHTML="";for(indexMain=0;indexMain<C;indexMain++){var B=D._MainLeaguesControls[indexMain];var E=document.createElement(HTML_ELEMENT_LI);if(B.ShortName==D._SELECTED_LEAGUE){E.className="selected_tab blue_tab"}else{E.className=""}var F=document.createElement(HTML_ELEMENT_A);F.innerHTML=B.MenuDescription;F.League=B.ShortName;F.id=B.LeagueId;F.Sport=B.SportId;F.obj=D;F.onclick=D.LoadInfoByLeague;E.appendChild(F);A.appendChild(E)}}};OddsAllLeagues.prototype.LoadInfoByLeague=function(){var B=this.obj;var A=$get(B._LBL_LEAGUE);A.innerHTML=this.League;B._SELECTED_LEAGUEID=this.id;B._SELECTED_LEAGUE=this.League;B.LoadOddsAllLeagues(B)};OddsAllLeagues.prototype.ChangeDay=function(B,A){B._SELECTED_DATE=A;B.LoadOddsAllLeagues(B)};OddsAllLeagues.prototype.LoadOddsAllLeagues=function(C){var A=$get(C._DIV_LOADING_ODDS);A.style.visibility="visible";A.style.display="";C.displayMainMenu(C);var B=new Object();B.info=C;Donbest.Website.WebServices.JSStatistics.GetOddsDB(C._SELECTED_LEAGUE,C._PERIOD_TYPE,C._SELECTED_DATE,C._SPORTSBOOK_OPENER,C._Sportsbooks_Ids,"",C._SELECTED_SPORT,C._SELECTED_LEAGUEID,true,C.WSSuccess,C.WSError,B)};OddsAllLeagues.prototype.WSSuccess=function(B,D){var A=document.getElementById(D.info._DIV_ODDS);A.innerHTML=B;var C=$get(D.info._DIV_LOADING_ODDS);C.style.display="none";C.style.visibility="hidden"};OddsAllLeagues.prototype.WSError=function(C,B){var A=$get(B.info._DIV_LOADING_ODDS);A.style.display="none";A.style.visibility="hidden"};function OddsByLeague(){}OddsByLeague.prototype.ChangeDay=function(B,A){B._SELECTED_DATE=A;if(B._SELECTED_LINE=="ALL"){B.LoadAllOdds(B)}else{B.LoadOdds(B)}};OddsByLeague.prototype.ChangeLine=function(D,C){if(D._Selected_TabId!=C.id){D._SELECTED_LINE=C.innerHTML;C.parentNode.className="selected_tab blue_tab";var B=$get(D._Selected_TabId);B.parentNode.className="";B=null;D._Selected_TabId=C.id}var A=D._ClientId+"_all";if(C.id==A){D.LoadAllOdds(D)}else{D.LoadOdds(D)}return false};OddsByLeague.prototype.LoadOdds=function(C){var A=$get(C._DIV_LOADING_ODDS);A.style.visibility="visible";A.style.display="";var B=new Object();B.info=C;Donbest.Website.WebServices.JSStatistics.GetOddsDB(C._SELECTED_LEAGUE,C._PERIOD_TYPE,C._SELECTED_DATE,C._SPORTSBOOK_OPENER,C._Sportsbooks_Ids,C._SELECTED_LINE,C._SELECTED_SPORT,C._SELECTED_LEAGUEID,false,C.WSSuccess,C.WSError,B)};OddsByLeague.prototype.LoadAllOdds=function(C){var A=$get(C._DIV_LOADING_ODDS);A.style.visibility="visible";A.style.display="";var B=new Object();B.info=C;Donbest.Website.WebServices.JSStatistics.GetOddsDB(C._SELECTED_LEAGUE,C._PERIOD_TYPE,C._SELECTED_DATE,C._SPORTSBOOK_OPENER,C._Sportsbooks_Ids,"",C._SELECTED_SPORT,C._SELECTED_LEAGUEID,true,C.WSSuccess,C.WSError,B)};OddsByLeague.prototype.WSSuccess=function(B,D){var A=document.getElementById(D.info._DIV_ODDS);A.innerHTML=B;var C=$get(D.info._DIV_LOADING_ODDS);C.style.display="none";C.style.visibility="hidden"};OddsByLeague.prototype.WSError=function(C,B){var A=$get(B.info._DIV_LOADING_ODDS);A.style.display="none";A.style.visibility="hidden"};var divSbrAlert;var divSbrAlertBackGround;function sbrAlertShow(E,G,B,F,C,A,D){if(divSbrAlert==undefined&&divSbrAlertBackGround==undefined){window.onresize=DoResize;window.pWidth=B;divSbrAlertBackGround=document.createElement("div");divSbrAlertBackGround.className="sbrAlertBackground";divSbrAlert=document.createElement("div");divSbrAlert.className="sbrAlert";DoResize();divMainTop=document.createElement("div");divMainTop.className="mainTop";divCornerTopLeft=document.createElement("div");divCornerTopLeft.className="cornerTopLeft";divTop=document.createElement("div");divTop.className="top";divCornerTopRight=document.createElement("div");divCornerTopRight.className="cornerTopRight";divMainMiddleContentTitle=document.createElement("div");divMainMiddleContentTitle.className="mainMiddle";divLeftContentTitle=document.createElement("div");divLeftContentTitle.className="leftTitle";divTitle=document.createElement("div");pElement=document.createElement("p");divTitle.className="TitleAlert";pElement.innerHTML=E;divTitle.appendChild(pElement);divRightContentTitle=document.createElement("div");divRightContentTitle.className="rightTitle";divMainMiddleContent=document.createElement("div");divMainMiddleContent.className="mainMiddle";divBox=document.createElement("div");divBox.className="box";divContent=document.createElement("div");divContent.className="Content";divThumbnailBox=document.createElement("img");divThumbnailBox.className="Thumbnail";divThumbnailBox.alt="";if(D!=null&&D!=undefined&&D.Thumbnail){divThumbnailBox.src=D.Thumbnail}divThumbnailBox.style.display="none";divThumbnailBox.style.width="80px";divThumbnailBox.style.height="60px";divMsgBox=document.createElement("div");divMsgBox.className="msgBox";divMainMiddleButtoms=document.createElement("div");divMainMiddleButtoms.className="mainMiddle";divLeftButtons=document.createElement("div");divLeftButtons.className="leftButtons";divButtoms=document.createElement("div");divButtoms.className="buttoms";divButtomsContainer=document.createElement("div");divButtomsContainer.className="buttomsContainer";divRightButtons=document.createElement("div");divRightButtons.className="rightButtons";divMainBottom=document.createElement("div");divMainBottom.className="mainBottom";divCornerBottomLeft=document.createElement("div");divCornerBottomLeft.className="cornerBottomLeft";divBottom=document.createElement("div");divBottom.className="bottom";divCornerBottomRight=document.createElement("div");divCornerBottomRight.className="cornerBottomRight";divMainTop.appendChild(divCornerTopLeft);divMainTop.appendChild(divTop);divMainTop.appendChild(divCornerTopRight);divSbrAlert.appendChild(divMainTop);divMainMiddleContentTitle.appendChild(divLeftContentTitle);divMainMiddleContentTitle.appendChild(divTitle);divMainMiddleContentTitle.appendChild(divRightContentTitle);divSbrAlert.appendChild(divMainMiddleContentTitle);divMainMiddleContent.appendChild(divBox);divSbrAlert.appendChild(divMainMiddleContent);divMainMiddleButtoms.appendChild(divLeftButtons);divMainMiddleButtoms.appendChild(divButtoms);divButtoms.appendChild(divButtomsContainer);divMainMiddleButtoms.appendChild(divRightButtons);divSbrAlert.appendChild(divMainMiddleButtoms);divMainBottom.appendChild(divCornerBottomLeft);divMainBottom.appendChild(divBottom);divMainBottom.appendChild(divCornerBottomRight);divSbrAlert.appendChild(divMainBottom);if(B){divSbrAlert.style.width=B+20+"px";divBox.style.width=B+"px";divTop.style.width=B+"px";divBottom.style.width=B+"px";divTitle.style.width=B+"px";divButtoms.style.width=B+"px"}if(G){divMsgBox.innerHTML=G}else{divMsgBox.innerHTML=""}divContent.appendChild(divThumbnailBox);divContent.appendChild(divMsgBox);divBox.appendChild(divContent);switch(F){case 0:CreateDoneButtons(divButtomsContainer,C);break;case 1:CreateConfirmButtons(divButtomsContainer,C,A);break;case 2:divThumbnailBox.style.display="block";divMsgBox.className="msgBoxDelete";CreateDeleteButtons(divButtomsContainer,C,A);break;case SBR.TV.Communication.Objects.AlertType.DONE:CreateDoneButtons(divButtomsContainer,C);break;case SBR.TV.Communication.Objects.AlertType.CONFIRM:CreateConfirmButtons(divButtomsContainer,C,A);break;case SBR.TV.Communication.Objects.AlertType.DELETE:divThumbnailBox.style.display="block";divMsgBox.className="msgBoxDelete";CreateDeleteButtons(divButtomsContainer,C,A);break}document.body.appendChild(divSbrAlertBackGround);document.body.appendChild(divSbrAlert)}return false}function CreateDoneButtons(B,A){doneButtom=document.createElement("a");doneButtom.href="#";doneButtom.innerHTML="Close";doneButtom.className="buttom";doneButtom.onmousedown=ExecuteAction;doneButtom.callBack=A;B.appendChild(doneButtom);return }function CreateConfirmButtons(C,B,A){yesButtom=document.createElement("a");yesButtom.href="#";yesButtom.innerHTML="Yes";yesButtom.className="buttom";yesButtom.onmousedown=ExecuteAction;yesButtom.callBack=B;C.appendChild(yesButtom);noButtom=document.createElement("a");noButtom.href="#";noButtom.innerHTML="No";noButtom.className="buttom";noButtom.onmousedown=ExecuteAction;noButtom.callBack=A;C.appendChild(noButtom);return false}function CreateDeleteButtons(C,B,A){deleteButtom=document.createElement("a");deleteButtom.href="#";deleteButtom.innerHTML="Delete";deleteButtom.className="buttom";deleteButtom.onmousedown=ExecuteAction;deleteButtom.callBack=B;C.appendChild(deleteButtom);cancelButtom=document.createElement("a");cancelButtom.href="#";cancelButtom.innerHTML="Cancel";cancelButtom.className="buttom";cancelButtom.onmousedown=ExecuteAction;cancelButtom.callBack=A;C.appendChild(cancelButtom);return false}function ExecuteAction(){CloseDiv();if(this.callBack&&this.callBack!=null&&this.callBack!=undefined){var params=this.callBack;var call;call="params[0](";for(i=1;i<params.length-1;i++){call+="params["+i+"],"}call+="params["+(params.length-1)+"]);";if(call.length>0){return eval(call)}}}function CloseDiv(){if(divSbrAlert&&divSbrAlertBackGround){var B=divSbrAlert.parentNode;B.removeChild(divSbrAlert);divSbrAlert=undefined;var A=divSbrAlertBackGround.parentNode;A.removeChild(divSbrAlertBackGround);divSbrAlertBackGround=undefined;document.body.style.cursor="default"}return false}function DoResize(){if(divSbrAlert!=undefined&&divSbrAlertBackGround!=undefined&&window.pWidth){if(document&&document.body&&document.body.clientWidth&&window.screen.height&&window.screen&&window.screen.height&&window.screen.width){divSbrAlertBackGround.style.height=window.screen.height+"px";divSbrAlertBackGround.style.width=window.screen.width+"px";divSbrAlert.style.left=(document.documentElement.clientWidth/2)-(window.pWidth/2)+"px";divSbrAlert.style.top=(((document.documentElement.clientHeight/2)-100)+document.documentElement.scrollTop)+"px"}}}function Standings(){var H;var D;var K;var C;var E;var F;var L;var A;var N;var J;var B;var I;var M;var G}Standings.prototype.displayMainMenu=function(D){if(D._MainLeaguesControls!=undefined){var C=D._MainLeaguesControls.length;var A=document.getElementById(D._ULLIST);A.innerHTML="";for(indexMain=0;indexMain<C;indexMain++){var B=D._MainLeaguesControls[indexMain];var E=document.createElement(HTML_ELEMENT_LI);if(B.ShortName==D._SELECTED_LEAGUE){E.className="selected_tab blue_tab"}else{E.className=""}var F=document.createElement(HTML_ELEMENT_A);F.innerHTML=B.MenuDescription;F.League=B.ShortName;F.id=B.LeagueId;F.Sport=B.SportId;F.obj=D;F.onclick=D.LoadInfoByLeague;E.appendChild(F);A.appendChild(E)}}};Standings.prototype.LoadInfoByLeague=function(){var A=this.obj;A._SELECTED_LEAGUEID=this.id;A._SELECTED_LEAGUE=this.League;A._SELECTED_SPORT=this.Sport;A.LoadStandings(A)};Standings.prototype.LoadStandings=function(C){var A=$get(C._DIV_LOADING_STANDINGS);A.style.visibility="visible";A.style.display="";C.displayMainMenu(C);var B=new Object();B.info=C;Donbest.Website.WebServices.JSStatistics.GetStandingsDB(C._SELECTED_LEAGUE,C._SELECTED_LEAGUEID,C._SELECTED_N_GAMES,C._SELECTED_HOME,C._SELECTED_FAVE,C._SELECTED_START_DATE,C._SELECTED_SPORT,C._IS_SEASON,C.WSSuccess,C.WSError,B)};Standings.prototype.WSSuccess=function(B,D){var A=document.getElementById(D.info._DIV_STANDINGS);A.innerHTML=B;var C=$get(D.info._DIV_LOADING_STANDINGS);C.style.display="none";C.style.visibility="hidden"};Standings.prototype.WSError=function(C,B){var A=$get(B.info._DIV_LOADING_STANDINGS);A.style.display="none";A.style.visibility="hidden"};function TopStandings(){var H;var D;var K;var C;var E;var F;var L;var A;var N;var J;var B;var I;var M;var G}TopStandings.prototype.displayMainMenu=function(D){if(D._MainLeaguesControls!=undefined){var C=D._MainLeaguesControls.length;var A=document.getElementById(D._ULLIST);A.innerHTML="";for(indexMain=0;indexMain<C;indexMain++){var B=D._MainLeaguesControls[indexMain];var E=document.createElement(HTML_ELEMENT_LI);if(B.ShortName==D._SELECTED_LEAGUE){E.className="selected_tab blue_tab"}else{E.className=""}var F=document.createElement(HTML_ELEMENT_A);F.innerHTML=B.MenuDescription;F.League=B.ShortName;F.id=B.LeagueId;F.Sport=B.SportId;F.obj=D;F.onclick=D.LoadInfoByLeague;E.appendChild(F);A.appendChild(E)}}};TopStandings.prototype.ChangeLine=function(C,B){if(C._Selected_TabId!=B.id){B.parentNode.className="selected_tab blue_tab";var A=$get(C._Selected_TabId);A.parentNode.className="";A=null;C._Selected_TabId=B.id;if(B.innerHTML=="Money Lines"){C._SELECTED_LINE="Money Line";C.LoadStandings(C)}if(B.innerHTML=="Run Lines"||B.innerHTML=="Puck Lines"||B.innerHTML=="Spreads"){C._SELECTED_LINE="Spreads";C.LoadStandings(C)}if(B.innerHTML=="Totals"){C._SELECTED_LINE="Totals";C.LoadStandings(C)}}return false};TopStandings.prototype.ChangeSeason=function(B){var C=document.getElementById(B._CB_IS_SEASON);B._IS_SEASON=C.checked;if(C.checked==false){var A=$get(B._DIV_LASTGAMES);A.style.display=""}else{var D=$get(B._TXT_LASTGAMES);B._SELECTED_N_GAMES="";D.value="";var A=$get(B._DIV_LASTGAMES);A.style.display="none";B.LoadStandings(B)}return false};TopStandings.prototype.LoadByLastGames=function(A){var B=$get(A._TXT_LASTGAMES);A._SELECTED_N_GAMES=B.value;if(B.value==""||!validateInteger(B.value)){alert("Please enter a valid number.");return false}else{A.LoadStandings(A)}return false};TopStandings.prototype.ChangeType=function(B){var C=$get(B._DDL_TYPES);var A=C.options[C.selectedIndex].text;switch(A){case"All":B._SELECTED_HOME=null;B._SELECTED_FAVE=null;break;case"Home":B._SELECTED_HOME="1";B._SELECTED_FAVE=null;break;case"Away":B._SELECTED_HOME="0";B._SELECTED_FAVE=null;break;case"Faves":B._SELECTED_HOME=null;B._SELECTED_FAVE="1";break;case"Dogs":B._SELECTED_HOME=null;B._SELECTED_FAVE="0";break;case"Home Faves":B._SELECTED_HOME="1";B._SELECTED_FAVE="1";break;case"Home Dogs":B._SELECTED_HOME="1";B._SELECTED_FAVE="0";break;case"Away Faves":B._SELECTED_HOME="0";B._SELECTED_FAVE="1";break;case"Away Dogs":B._SELECTED_HOME="0";B._SELECTED_FAVE="0";break}B.LoadStandings(B)};TopStandings.prototype.LoadInfoByLeague=function(){var B=this.obj;B._SELECTED_LEAGUEID=this.id;B._SELECTED_LEAGUE=this.League;B._SELECTED_SPORT=this.Sport;if(this.League=="MLB"||this.League=="NHL"){var D=$get(B._TAB_SPREADS);if(this.League=="MLB"){D.innerHTML="Run Lines"}else{D.innerHTML="Puck Lines"}var C=$get(B._Selected_TabId);C.parentNode.className="";C=null;B._Selected_TabId=B._ClientId+"_Money_Line";var A=$get(B._Selected_TabId);A.parentNode.className="selected_tab blue_tab";B._SELECTED_LINE="Money Line"}else{var D=$get(B._TAB_SPREADS);D.innerHTML="Spreads";var C=$get(B._Selected_TabId);C.parentNode.className="";C=null;B._Selected_TabId=B._ClientId+"_Spreads";var A=$get(B._Selected_TabId);A.parentNode.className="selected_tab blue_tab";B._SELECTED_LINE="Spreads"}B.LoadStandings(B)};TopStandings.prototype.LoadStandings=function(C){var A=$get(C._DIV_LOADING_STANDINGS);A.style.visibility="visible";A.style.display="";C.displayMainMenu(C);var B=new Object();B.info=C;Donbest.Website.WebServices.JSStatistics.Get_Top_Standings(C._SELECTED_LEAGUE,C._SELECTED_LEAGUEID,C._SELECTED_TOP,C._SELECTED_N_GAMES,C._SELECTED_HOME,C._SELECTED_FAVE,C._SELECTED_START_DATE,C._SELECTED_SPORT,C._IS_SEASON,C._SELECTED_LINE,C.WSSuccess,C.WSError,B)};TopStandings.prototype.WSSuccess=function(B,D){var A=document.getElementById(D.info._DIV_STANDINGS);A.innerHTML=B;var C=$get(D.info._DIV_LOADING_STANDINGS);C.style.display="none";C.style.visibility="hidden"};TopStandings.prototype.WSError=function(C,B){var A=$get(B.info._DIV_LOADING_STANDINGS);A.style.display="none";A.style.visibility="hidden"};function Statistic(){var F;var T;var E;var S;var M;var P;var B;var N;var G;var R;var Q;var D;var K;var C;var I;var O;var J;var H;var A;var L}Statistic.prototype.Init=function(){this._StatsContainer=$get(this._DivContainerId)};Statistic.prototype.CreateLinks=function(E,F){if(F._DIV_BACK_LINKS){var D=$get(F._DIV_BACK_LINKS);if(D){D.style.display="";if(F._Is_First_Link==1){var H=document.createElement(HTML_ELEMENT_A);H.href=F._Current_Link;H.innerHTML=F._Name_Link;D.appendChild(H);F._Is_First_Link=0}else{var H=document.createElement(HTML_ELEMENT_A);H.innerHTML=F._Current_Link.innerHTML;H.href=F._Current_Link.href;H.control=F._Current_Link;H.obj=F;if(F._Current_Link.param1!=""){H.param1=F._Current_Link.param1}if(F._Current_Link.param2!=""){H.param2=F._Current_Link.param2}H.onclick=F._Current_Link.onclick;D.appendChild(H)}var J=document.createElement(HTML_ELEMENT_DIV);var A=0;var B=D.childNodes;for(var G=0;1<=B.length;G++){var C=B[0];if(C.innerHTML==E.innerHTML){A=1;D.removeChild(C)}else{if(A==0&&C.tagName!="SPAN"){J.appendChild(C)}else{D.removeChild(C)}}}D.innerHTML="";for(var G=0;1<=J.childNodes.length;G++){var I=J.childNodes[0];D.appendChild(I);if(J.childNodes.length!=0){var K=document.createElement("span");K.innerHTML="<img src='./img/navigation_arrow.gif' style='padding:0px 5px;'/>";D.appendChild(K)}}}}};Statistic.prototype.ChangeType=function(A,D){var E=$get(D._DDL_TYPES);var B=E.options[E.selectedIndex].text;switch(B){case"All":D._SELECTED_HOME=null;D._SELECTED_FAVE=null;break;case"Home":D._SELECTED_HOME="1";D._SELECTED_FAVE=null;break;case"Away":D._SELECTED_HOME="0";D._SELECTED_FAVE=null;break;case"Faves":D._SELECTED_HOME=null;D._SELECTED_FAVE="1";break;case"Dogs":D._SELECTED_HOME=null;D._SELECTED_FAVE="0";break;case"Home Faves":D._SELECTED_HOME="1";D._SELECTED_FAVE="1";break;case"Home Dogs":D._SELECTED_HOME="1";D._SELECTED_FAVE="0";break;case"Away Faves":D._SELECTED_HOME="0";D._SELECTED_FAVE="1";break;case"Away Dogs":D._SELECTED_HOME="0";D._SELECTED_FAVE="0";break}var C=document.createElement(HTML_ELEMENT_A);C.innerHTML="Gambling Standings";C.obj=D;C.param1=null;C.param2="";C.onclick=D.GotoStandingsDBAux;return D.GotoStandingsDB(C,C.param1,D)};Statistic.prototype.GotoStandingsAux=function(){return this.obj.GotoStandings(this.control,this.obj)};Statistic.prototype.GotoStandings=function(F,E){var C=new Object();C.control=F;C.stats=E;window.location=E._StatisticsHomeLinkName;var G=F.innerHTML;var B=$get(E._DIV_LOADING_STATISTICS);B.style.visibility="visible";B.style.display="";E.GoToTop();Donbest.Website.WebServices.JSStatistics.GetStandings(E._ClientId,E._Sport,E._League,E._LeagueId,E.WSSuccess,E.WSError,C);if(E._DIV_BACK_LINKS){var A=$get(E._DIV_BACK_LINKS);if(A){A.innerHTML="";A.style.display="none"}}var D=document.createElement(HTML_ELEMENT_A);D.innerHTML="Gambling Standings";D.href=F.href;D.control=F;D.obj=E;D.param1="";D.param2="";D.onclick=E.GotoStandingsAux;E._Current_Link=D;return false};Statistic.prototype.GotoStandingsDBAux=function(){return this.obj.GotoStandingsDB(this.control,this.param1,this.obj)};Statistic.prototype.GotoStandingsDB=function(D,A,E){if(E._ASCENDING_TEAM=="False"){E._ASCENDING_TEAM="True"}else{E._ASCENDING_TEAM="False"}var I=new Object();I.control=D;I.stats=E;window.location=E._StatisticsHomeLinkName;var F=D.innerHTML;var C=$get(E._DIV_LOADING_STATISTICS);C.style.visibility="visible";C.style.display="";E.GoToTop();Donbest.Website.WebServices.JSStatistics.GetStandingsDBStats(E._ClientId,E._League,E._LeagueId,null,E._SELECTED_HOME,E._SELECTED_FAVE,E._Sport,true,A,E._ASCENDING_TEAM,E._ASCENDING_OTHERS,E.WSSuccess,E.WSError,I);if(E._DIV_BACK_LINKS){var B=$get(E._DIV_BACK_LINKS);if(B){B.innerHTML="";B.style.display="none"}}if(E._DIV_DDL_TYPES){var H=$get(E._DIV_DDL_TYPES);if(H){H.style.display=""}}var G=document.createElement(HTML_ELEMENT_A);G.innerHTML="Gambling Standings";G.href=D.href;G.control=D;G.obj=E;G.param1=A;G.param2="";G.onclick=E.GotoStandingsDBAux;E._Current_Link=G;return false};Statistic.prototype.GotoExpandedStandingsAux=function(){return this.obj.GotoExpandedStandings(this.control,this.obj)};Statistic.prototype.GotoExpandedStandings=function(G,F){var C=new Object();C.control=G;C.stats=F;var H=G.innerHTML;var B=$get(F._DIV_LOADING_STATISTICS);B.style.visibility="visible";B.style.display="";F.GoToTop();Donbest.Website.WebServices.JSStatistics.GetExpandedStandings(F._ClientId,F._Sport,F._League,F._LeagueId,F.WSSuccess,F.WSError,C);G.innerHTML="Standings";if(F._DIV_BACK_LINKS){var A=$get(F._DIV_BACK_LINKS);if(A){A.innerHTML="";A.style.display="none"}}if(F._DIV_DDL_TYPES){var E=$get(F._DIV_DDL_TYPES);if(E){E.style.display="none"}}var D=document.createElement(HTML_ELEMENT_A);D.innerHTML="Standings";D.href=G.href;D.control=G;D.obj=F;D.param1="";D.param2="";D.onclick=F.GotoExpandedStandingsAux;F._Current_Link=D;return false};Statistic.prototype.GotoTeamReportAux=function(){return this.obj.GotoTeamReport(this.control,this.obj,this.param1)};Statistic.prototype.GotoTeamReport=function(F,E,B){var C=new Object();C.control=F;C.stats=E;var G=F.innerHTML;var A=$get(E._DIV_LOADING_STATISTICS);A.style.visibility="visible";A.style.display="";E.GoToTop();Donbest.Website.WebServices.JSStatistics.GetTeamReport(E._ClientId,E._Sport,E._League,E._LeagueId,B,E.WSSuccess,E.WSError,C);F.innerHTML=G;E.CreateLinks(F,E);var D=document.createElement(HTML_ELEMENT_A);D.innerHTML=F.innerHTML;D.href=F.href;D.control=F;D.obj=E;D.param1=B;D.param2="";D.onclick=E.GotoTeamReportAux;E._Current_Link=D;return false};Statistic.prototype.GetRecapAux=function(){return this.obj.GetRecap(this.control,this.obj,this.param1)};Statistic.prototype.GetRecap=function(F,E,B){var C=new Object();C.control=F;C.stats=E;var G=F.innerHTML;var A=$get(E._DIV_LOADING_STATISTICS);A.style.visibility="visible";A.style.display="";E.GoToTop();Donbest.Website.WebServices.JSStatistics.GetRecap(E._ClientId,E._Sport,E._League,E._LeagueId,B,E.WSSuccess,E.WSError,C);F.innerHTML=G;E.CreateLinks(F,E);var D=document.createElement(HTML_ELEMENT_A);D.innerHTML=F.innerHTML;D.href=F.href;D.control=F;D.obj=E;D.param1=B;D.param2="";D.onclick=E.GetRecapAux;E._Current_Link=D;return false};Statistic.prototype.GetPreviewAux=function(){return this.obj.GetPreview(this.control,this.obj,this.param1)};Statistic.prototype.GetPreview=function(F,E,A){var C=new Object();C.control=F;C.stats=E;var G=F.innerHTML;var B=$get(E._DIV_LOADING_STATISTICS);B.style.visibility="visible";B.style.display="";E.GoToTop();Donbest.Website.WebServices.JSStatistics.GetPreview(E._ClientId,E._Sport,E._League,E._LeagueId,A,E.WSSuccess,E.WSError,C);F.innerHTML=G;E.CreateLinks(F,E);var D=document.createElement(HTML_ELEMENT_A);D.innerHTML=F.innerHTML;D.href=F.href;D.control=F;D.obj=E;D.param1=A;D.param2="";D.onclick=E.GetPreviewAux;E._Current_Link=D;return false};Statistic.prototype.GetTeamListAux=function(){return this.obj.GetTeamList(this.control,this.obj)};Statistic.prototype.GetTeamList=function(E,D){var B=new Object();B.control=E;B.stats=D;var F=E.innerHTML;var A=$get(D._DIV_LOADING_STATISTICS);A.style.visibility="visible";A.style.display="";D.GoToTop();Donbest.Website.WebServices.JSStatistics.GetTeamList(D._ClientId,D._Sport,D._League,D._LeagueId,D.WSSuccess,D.WSError,B);E.innerHTML=F;D.CreateLinks(E,D);var C=document.createElement(HTML_ELEMENT_A);C.innerHTML=E.innerHTML;C.href=E.href;C.control=E;C.obj=D;C.param1="";C.param2="";C.onclick=D.GetTeamListAux;D._Current_Link=C;return false};Statistic.prototype.GetScheduleAux=function(){return this.obj.GetSchedule(this.control,this.obj,this.param1)};Statistic.prototype.GetSchedule=function(G,F,B){var D=new Object();D.control=G;D.stats=F;var H=G.innerHTML;var C=$get(F._DIV_LOADING_STATISTICS);C.style.visibility="visible";C.style.display="";F.GoToTop();if(B==""){B=F._DefaultMonth}Donbest.Website.WebServices.JSStatistics.GetSchedule(F._ClientId,F._Sport,F._League,F._LeagueId,B,F.WSSuccess,F.WSError,D);if(F._DIV_BACK_LINKS){var A=$get(F._DIV_BACK_LINKS);if(A){A.innerHTML="";A.style.display="none"}}var E=document.createElement(HTML_ELEMENT_A);E.innerHTML="Schedule";E.href=G.href;E.control=G;E.obj=F;E.param1=B;E.param2="";E.onclick=F.GetScheduleAux;F._Current_Link=E;return false};Statistic.prototype.GetScheduleTeamAux=function(){return this.obj.GetScheduleTeam(this.control,this.obj,this.param1,this.param2)};Statistic.prototype.GetScheduleTeam=function(G,F,C,A){var D=new Object();D.control=G;D.stats=F;var H=G.innerHTML;var B=$get(F._DIV_LOADING_STATISTICS);B.style.visibility="visible";B.style.display="";F.GoToTop();if(A==""){A=F._DefaultSeason}Donbest.Website.WebServices.JSStatistics.GetScheduleTeam(F._ClientId,F._Sport,F._League,C,A,F._LeagueId,F.WSSuccess,F.WSError,D);G.innerHTML="Game Logs";F.CreateLinks(G,F);var E=document.createElement(HTML_ELEMENT_A);E.innerHTML="Game Logs";E.href=G.href;E.control=G;E.obj=F;E.param1=C;E.param2=A;E.onclick=F.GetScheduleTeamAux;F._Current_Link=E;return false};Statistic.prototype.GetScheduleByWeekAux=function(){return this.obj.GetScheduleByWeek(this.control,this.obj,this.param1)};Statistic.prototype.GetScheduleByWeek=function(G,F,A){var D=new Object();D.control=G;D.stats=F;var H=G.innerHTML;var C=$get(F._DIV_LOADING_STATISTICS);C.style.visibility="visible";C.style.display="";F.GoToTop();if(A==""){A=F._DefaultWeek}Donbest.Website.WebServices.JSStatistics.GetScheduleByWeek(F._ClientId,F._Sport,F._League,F._LeagueId,A,F.WSSuccess,F.WSError,D);if(F._DIV_BACK_LINKS){var B=$get(F._DIV_BACK_LINKS);if(B){B.innerHTML="";B.style.display="none"}}var E=document.createElement(HTML_ELEMENT_A);E.innerHTML="Schedule By Week";E.href=G.href;E.control=G;E.obj=F;E.param1=A;E.param2="";E.onclick=F.GetScheduleByWeekAux;F._Current_Link=E;return false};Statistic.prototype.GetMatchupAux=function(){return this.obj.GetMatchup(this.control,this.obj,this.param1)};Statistic.prototype.GetMatchup=function(F,E,A){var C=new Object();C.control=F;C.stats=E;var G=F.innerHTML;var B=$get(E._DIV_LOADING_STATISTICS);B.style.visibility="visible";B.style.display="";E.GoToTop();Donbest.Website.WebServices.JSStatistics.GetMatchup(E._ClientId,E._Sport,E._League,E._LeagueId,A,E.WSSuccess,E.WSError,C);F.innerHTML=G;E.CreateLinks(F,E);var D=document.createElement(HTML_ELEMENT_A);D.innerHTML=F.innerHTML;D.href=F.href;D.control=F;D.obj=E;D.param1=A;D.param2="";D.onclick=E.GetMatchupAux;E._Current_Link=D;return false};Statistic.prototype.GetSoccerMatchupAux=function(){return this.obj.GetSoccerMatchup(this.control,this.obj,this.param1)};Statistic.prototype.GetSoccerMatchup=function(F,E,A){var C=new Object();C.control=F;C.stats=E;var G=F.innerHTML;var B=$get(E._DIV_LOADING_STATISTICS);B.style.visibility="visible";B.style.display="";E.GoToTop();Donbest.Website.WebServices.JSStatistics.GetSoccerMatchup(E._ClientId,E._Sport,E._League,E._LeagueId,A,E.WSSuccess,E.WSError,C);F.innerHTML=G;E.CreateLinks(F,E);var D=document.createElement(HTML_ELEMENT_A);D.innerHTML=F.innerHTML;D.href=F.href;D.control=F;D.obj=E;D.param1=A;D.param2="";D.onclick=E.GetSoccerMatchupAux;E._Current_Link=D;return false};Statistic.prototype.GetCollegueMatchupListAux=function(){return this.obj.GetCollegueMatchupList(this.control,this.obj,this.param1,this.param2)};Statistic.prototype.GetCollegueMatchupList=function(C,D,E,I){var H=new Object();H.control=C;H.stats=D;var F=C.innerHTML;var B=$get(D._DIV_LOADING_STATISTICS);B.style.visibility="visible";B.style.display="";D.GoToTop();Donbest.Website.WebServices.JSStatistics.GetCollegueMatchupList(D._ClientId,D._Sport,D._League,E,D._LeagueId,I,D.WSSuccess,D.WSError,H);C.innerHTML="Matchups";D.CreateLinks(C,D);if(D._DIV_BACK_LINKS){var A=$get(D._DIV_BACK_LINKS);if(A){A.innerHTML="";A.style.display="none"}}var G=document.createElement(HTML_ELEMENT_A);G.innerHTML="Matchups";G.href=C.href;G.control=C;G.obj=D;G.param1=E;G.param2=I;G.onclick=D.GetCollegueMatchupListAux;D._Current_Link=G;return false};Statistic.prototype.GetSuperGridAux=function(){return this.obj.GetSuperGrid(this.control,this.obj,this.param1,this.param2)};Statistic.prototype.GetSuperGrid=function(C,D,I,A){var H=new Object();H.control=C;H.stats=D;var F=C.innerHTML;var B=$get(D._DIV_LOADING_STATISTICS);B.style.visibility="visible";B.style.display="";D.GoToTop();Donbest.Website.WebServices.JSStatistics.GetSuperGrid(D._ClientId,D._Sport,D._League,D._LeagueId,I,A,D.WSSuccess,D.WSError,H);C.innerHTML=F;D.CreateLinks(C,D);var G=document.createElement(HTML_ELEMENT_A);var E=navigator.appName;G.innerHTML=C.innerHTML;G.href=C.href;G.control=C;G.obj=D;G.param1=I;if(A==""){A="awayvshome"}G.param2=A;G.onclick=D.GetSuperGridAux;D._Current_Link=G;return false};Statistic.prototype.GetPitchersAux=function(){return this.obj.GetPitchers(this.control,this.obj)};Statistic.prototype.GetPitchers=function(E,D){var B=new Object();B.control=E;B.stats=D;var F=E.innerHTML;var A=$get(D._DIV_LOADING_STATISTICS);A.style.visibility="visible";A.style.display="";D.GoToTop();Donbest.Website.WebServices.JSStatistics.GetPitchers(D._ClientId,D._Sport,D._League,D._LeagueId,D.WSSuccess,D.WSError,B);E.innerHTML=F;D.CreateLinks(E,D);var C=document.createElement(HTML_ELEMENT_A);C.innerHTML=E.innerHTML;C.href=E.href;C.control=E;C.obj=D;C.param1="";C.param2="";C.onclick=D.GetPitchersAux;D._Current_Link=C;return false};Statistic.prototype.GetPitcherLogsAux=function(){return this.obj.GetPitcherLogs(this.control,this.obj,this.param1,this.param2)};Statistic.prototype.GetPitcherLogs=function(G,F,C,A){var D=new Object();D.control=G;D.stats=F;if(A==""){A=F._DefaultSeason}var H=G.innerHTML;var B=$get(F._DIV_LOADING_STATISTICS);B.style.visibility="visible";B.style.display="";F.GoToTop();Donbest.Website.WebServices.JSStatistics.GetPitcherLogs(F._ClientId,F._Sport,F._League,F._LeagueId,C,A,F.WSSuccess,F.WSError,D);G.innerHTML="Pitcher Logs";F.CreateLinks(G,F);var E=document.createElement(HTML_ELEMENT_A);E.innerHTML="Pitcher Logs";E.href=G.href;E.control=G;E.obj=F;E.param1=C;E.param2=A;E.onclick=F.GetPitcherLogsAux;F._Current_Link=E;return false};Statistic.prototype.GetRefereeStandingsAux=function(){return this.obj.GetRefereeStandings(this.control,this.obj)};Statistic.prototype.GetRefereeStandings=function(F,E){var C=new Object();C.control=F;C.stats=E;var G=F.innerHTML;var B=$get(E._DIV_LOADING_STATISTICS);B.style.visibility="visible";B.style.display="";E.GoToTop();Donbest.Website.WebServices.JSStatistics.GetRefereeStandings(E._ClientId,E._Sport,E._League,E._LeagueId,E.WSSuccess,E.WSError,C);if(E._DIV_BACK_LINKS){var A=$get(E._DIV_BACK_LINKS);if(A){A.innerHTML="";A.style.display="none"}}var D=document.createElement(HTML_ELEMENT_A);D.innerHTML="Umpires";D.href=F.href;D.control=F;D.obj=E;D.param1="";D.param2="";D.onclick=E.GetRefereeStandingsAux;E._Current_Link=D;return false};Statistic.prototype.RefereeReportAux=function(){return this.obj.RefereeReport(this.control,this.obj,this.param1)};Statistic.prototype.RefereeReport=function(F,E,A){var C=new Object();C.control=F;C.stats=E;var G=F.innerHTML;var B=$get(E._DIV_LOADING_STATISTICS);B.style.visibility="visible";B.style.display="";E.GoToTop();Donbest.Website.WebServices.JSStatistics.RefereeReport(E._ClientId,E._Sport,E._League,E._LeagueId,A,E.WSSuccess,E.WSError,C);E.CreateLinks(F,E);var D=document.createElement(HTML_ELEMENT_A);D.innerHTML="Umpire";D.href=F.href;D.control=F;D.obj=E;D.param1=A;D.param2="";D.onclick=E.RefereeReportAux;E._Current_Link=D;return false};Statistic.prototype.GetInjuriesAux=function(){return this.obj.GetInjuries(this.control,this.obj)};Statistic.prototype.GetInjuries=function(E,D){var B=new Object();B.control=E;B.stats=D;var F=E.innerHTML;var A=$get(D._DIV_LOADING_STATISTICS);A.style.visibility="visible";A.style.display="";D.GoToTop();Donbest.Website.WebServices.JSStatistics.GetInjuries(D._ClientId,D._Sport,D._League,D._LeagueId,D.WSSuccess,D.WSError,B);E.innerHTML=F;D.CreateLinks(E,D);var C=document.createElement(HTML_ELEMENT_A);C.innerHTML=E.innerHTML;C.href=E.href;C.control=E;C.obj=D;C.param1="";C.param2="";C.onclick=D.GetInjuriesAux;D._Current_Link=C;return false};Statistic.prototype.GetOffensiveStatsAux=function(){return this.obj.GetOffensiveStats(this.control,this.obj,this.param1)};Statistic.prototype.GetOffensiveStats=function(F,E,H){var C=new Object();C.control=F;C.stats=E;var G=F.innerHTML;var B=$get(E._DIV_LOADING_STATISTICS);B.style.visibility="visible";B.style.display="";E.GoToTop();if(H==""){H=E._DefaultSortOrder}Donbest.Website.WebServices.JSStatistics.GetOffensiveStats(E._ClientId,E._Sport,E._League,E._LeagueId,H,E.WSSuccess,E.WSError,C);if(E._DIV_BACK_LINKS){var A=$get(E._DIV_BACK_LINKS);if(A){A.innerHTML="";A.style.display="none"}}var D=document.createElement(HTML_ELEMENT_A);D.innerHTML="Offensive Stats";D.href=F.href;D.control=F;D.obj=E;D.param1=H;D.param2="";D.onclick=E.GetOffensiveStatsAux;E._Current_Link=D;return false};Statistic.prototype.GetDefensiveStatsAux=function(){return this.obj.GetDefensiveStats(this.control,this.obj,this.param1)};Statistic.prototype.GetDefensiveStats=function(F,E,H){var C=new Object();C.control=F;C.stats=E;var G=F.innerHTML;var B=$get(E._DIV_LOADING_STATISTICS);B.style.visibility="visible";B.style.display="";E.GoToTop();if(H==""){H=E._DefaultSortOrder}Donbest.Website.WebServices.JSStatistics.GetDefensiveStats(E._ClientId,E._Sport,E._League,E._LeagueId,H,E.WSSuccess,E.WSError,C);if(E._DIV_BACK_LINKS){var A=$get(E._DIV_BACK_LINKS);if(A){A.innerHTML="";A.style.display="none"}}var D=document.createElement(HTML_ELEMENT_A);D.innerHTML="Defensive Stats";D.href=F.href;D.control=F;D.obj=E;D.param1=H;D.param2="";D.onclick=E.GetDefensiveStatsAux;E._Current_Link=D;return false};Statistic.prototype.GetSoccerClubAux=function(){return this.obj.GetSoccerClub(this.control,this.obj,this.param1)};Statistic.prototype.GetSoccerClub=function(F,E,A){var C=new Object();C.control=F;C.stats=E;var G=F.innerHTML;var B=$get(E._DIV_LOADING_STATISTICS);B.style.visibility="visible";B.style.display="";E.GoToTop();Donbest.Website.WebServices.JSStatistics.GetSoccerClub(E._ClientId,E._Sport,E._League,E._LeagueId,A,E.WSSuccess,E.WSError,C);F.innerHTML=G;E.CreateLinks(F,E);var D=document.createElement(HTML_ELEMENT_A);D.innerHTML="Team";D.href=F.href;D.control=F;D.obj=E;D.param1=A;D.param2="";D.onclick=E.GetSoccerClubAux;E._Current_Link=D;return false};Statistic.prototype.GetSoccerPreviewAux=function(){return this.obj.GetSoccerPreview(this.control,this.obj,this.param1)};Statistic.prototype.GetSoccerPreview=function(F,E,A){var C=new Object();C.control=F;C.stats=E;var G=F.innerHTML;var B=$get(E._DIV_LOADING_STATISTICS);B.style.visibility="visible";B.style.display="";E.GoToTop();Donbest.Website.WebServices.JSStatistics.GetSoccerPreview(E._ClientId,E._Sport,E._League,E._LeagueId,A,E.WSSuccess,E.WSError,C);F.innerHTML=G;E.CreateLinks(F,E);var D=document.createElement(HTML_ELEMENT_A);D.innerHTML=F.innerHTML;D.href=F.href;D.control=F;D.obj=E;D.param1=A;D.param2="";D.onclick=E.GetSoccerPreviewAux;E._Current_Link=D;return false};Statistic.prototype.GetSoccerRecapAux=function(){return this.obj.GetSoccerRecap(this.control,this.obj,this.param1)};Statistic.prototype.GetSoccerRecap=function(F,E,B){var C=new Object();C.control=F;C.stats=E;var G=F.innerHTML;var A=$get(E._DIV_LOADING_STATISTICS);A.style.visibility="visible";A.style.display="";E.GoToTop();Donbest.Website.WebServices.JSStatistics.GetSoccerRecap(E._ClientId,E._Sport,E._League,E._LeagueId,B,E.WSSuccess,E.WSError,C);F.innerHTML=G;E.CreateLinks(F,E);var D=document.createElement(HTML_ELEMENT_A);D.innerHTML=F.innerHTML;D.href=F.href;D.control=F;D.obj=E;D.param1=B;D.param2="";D.onclick=E.GetSoccerRecapAux;E._Current_Link=D;return false};Statistic.prototype.GetSoccerMatchupAux=function(){return this.obj.GetSoccerMatchup(this.control,this.obj,this.param1)};Statistic.prototype.GetSoccerMatchup=function(F,E,A){var C=new Object();C.control=F;C.stats=E;var G=F.innerHTML;var B=$get(E._DIV_LOADING_STATISTICS);B.style.visibility="visible";B.style.display="";E.GoToTop();Donbest.Website.WebServices.JSStatistics.GetSoccerMatchup(E._ClientId,E._Sport,E._League,E._LeagueId,A,E.WSSuccess,E.WSError,C);F.innerHTML=G;E.CreateLinks(F,E);var D=document.createElement(HTML_ELEMENT_A);D.innerHTML=F.innerHTML;D.href=F.href;D.control=F;D.obj=E;D.param1=A;D.param2="";D.onclick=E.GetSoccerMatchupAux;E._Current_Link=D;return false};Statistic.prototype.GetSoccerScheduleAux=function(){return this.obj.GetSoccerSchedule(this.control,this.obj,this.param1)};Statistic.prototype.GetSoccerSchedule=function(G,F,B){var D=new Object();D.control=G;D.stats=F;var H=G.innerHTML;var C=$get(F._DIV_LOADING_STATISTICS);C.style.visibility="visible";C.style.display="";F.GoToTop();if(B==""){B=F._DefaultMonth}Donbest.Website.WebServices.JSStatistics.GetSoccerSchedule(F._ClientId,F._Sport,F._League,F._LeagueId,B,F.WSSuccess,F.WSError,D);if(F._DIV_BACK_LINKS){var A=$get(F._DIV_BACK_LINKS);if(A){A.innerHTML="";A.style.display="none"}}var E=document.createElement(HTML_ELEMENT_A);E.innerHTML=G.innerHTML;E.href="Soccer Schedule";E.control=G;E.obj=F;E.param1=B;E.param2="";E.onclick=F.GetSoccerScheduleAux;F._Current_Link=E;return false};Statistic.prototype.GetDriverReportAux=function(){return this.obj.GetDriverReport(this.control,this.obj,this.param1)};Statistic.prototype.GetDriverReport=function(F,E,A){var C=new Object();C.control=F;C.stats=E;var G=F.innerHTML;var B=$get(E._DIV_LOADING_STATISTICS);B.style.visibility="visible";B.style.display="";E.GoToTop();Donbest.Website.WebServices.JSStatistics.GetDriverReport(E._ClientId,E._Sport,E._League,E._LeagueId,A,E.WSSuccess,E.WSError,C);F.innerHTML=G;E.CreateLinks(F,E);var D=document.createElement(HTML_ELEMENT_A);D.innerHTML="Driver";D.href=F.href;D.control=F;D.obj=E;D.param1=A;D.param2="";D.onclick=E.GetDriverReportAux;E._Current_Link=D;return false};Statistic.prototype.GetRaceAux=function(){return this.obj.GetRace(this.control,this.obj,this.param1,this.param2)};Statistic.prototype.GetRace=function(G,F,E,A){var C=new Object();C.control=G;C.stats=F;var H=G.innerHTML;var B=$get(F._DIV_LOADING_STATISTICS);B.style.visibility="visible";B.style.display="";F.GoToTop();if(A==""){A=F._DefaultSeason}Donbest.Website.WebServices.JSStatistics.GetRace(F._ClientId,F._Sport,F._League,F._LeagueId,E,A,F.WSSuccess,F.WSError,C);G.innerHTML="Race";F.CreateLinks(G,F);var D=document.createElement(HTML_ELEMENT_A);D.innerHTML="Race";D.href=G.href;D.control=G;D.obj=F;D.param1=E;D.param2=A;D.onclick=F.GetRaceAux;F._Current_Link=D;return false};Statistic.prototype.GetTrackAux=function(){return this.obj.GetTrack(this.control,this.obj,this.param1,this.param2)};Statistic.prototype.GetTrack=function(G,F,E,A){var C=new Object();C.control=G;C.stats=F;var H=G.innerHTML;var B=$get(F._DIV_LOADING_STATISTICS);B.style.visibility="visible";B.style.display="";F.GoToTop();if(A==""){A=F._DefaultSeason}Donbest.Website.WebServices.JSStatistics.GetTrack(F._ClientId,F._Sport,F._League,F._LeagueId,E,A,F.WSSuccess,F.WSError,C);G.innerHTML="Track";F.CreateLinks(G,F);var D=document.createElement(HTML_ELEMENT_A);D.innerHTML="Track";D.href=G.href;D.control=G;D.obj=F;D.param1=E;D.param2=A;D.onclick=F.GetTrackAux;F._Current_Link=D;return false};Statistic.prototype.GetTrendSheetAux=function(){return this.obj.GetTrendSheet(this.control,this.obj)};Statistic.prototype.GetTrendSheet=function(E,D){var B=new Object();B.control=E;B.stats=D;var F=E.innerHTML;var A=$get(D._DIV_LOADING_STATISTICS);A.style.visibility="visible";A.style.display="";D.GoToTop();Donbest.Website.WebServices.JSStatistics.GetTrendSheet(D._ClientId,D._Sport,D._League,D._LeagueId,D.WSSuccess,D.WSError,B);E.innerHTML=F;D.CreateLinks(E,D);var C=document.createElement(HTML_ELEMENT_A);C.innerHTML=E.innerHTML;C.href=E.href;C.control=E;C.obj=D;C.param1="";C.param2="";C.onclick=D.GetTrendSheetAux;D._Current_Link=C;return false};Statistic.prototype.GetODDSByLineTypeAux=function(){return this.obj.GetODDSByLineType(this.control,this.obj,this.param1,this.param2)};Statistic.prototype.GetODDSByLineType=function(E,F,I,G){var K=new Object();K.control=E;K.stats=F;var H=E.innerHTML;var D=$get(F._DIV_LOADING_STATISTICS);D.style.visibility="visible";D.style.display="";var A=$get(F._DDL_TIME_ZONES);var C=A.options[A.selectedIndex].text;if(G==true){Donbest.Website.WebServices.JSStatistics.GetAllOddsByLineType(F._ClientId,I,F._CURRENT_TIME_ZONE,C,F.WSSuccess,F.WSError,K)}else{Donbest.Website.WebServices.JSStatistics.GetOddsByLineType(F._ClientId,F._League,F._LeagueId,I,F._CURRENT_TIME_ZONE,C,F.WSSuccess,F.WSError,K)}if(F._DIV_BACK_LINKS){var B=$get(F._DIV_BACK_LINKS);if(B){B.innerHTML="";B.style.display="none"}}var J=document.createElement(HTML_ELEMENT_A);J.innerHTML="Line Type";J.href=E.href;J.control=E;J.obj=F;J.param1=I;J.param2=G;J.onclick=F.GetODDSByLineTypeAux;F._Current_Link=J;return false};Statistic.prototype.ChangeLineOdds=function(D,B,E){var C=document.createElement(HTML_ELEMENT_A);C.innerHTML="LineType";C.obj=D;C.param2="";C.onclick=D.GetODDSByLineTypeAux;if(D._Selected_TabId!=B.id){B.parentNode.className="selected_tab blue_tab";var A=$get(D._Selected_TabId);A.parentNode.className="";A=null;D._Selected_TabId=B.id;if(B.innerHTML=="Spreads/Totals"||B.innerHTML=="ML/Totals"){D._SELECTED_LINE="Mixed";D._SELECTED_LINEID=0;C.param1=0;D.GetODDSByLineType(C,D,0,E)}if(B.innerHTML=="Money Lines"){D._SELECTED_LINE="Money Line";D._SELECTED_LINEID=2;C.param1=2;D.GetODDSByLineType(C,D,2,E)}if(B.innerHTML=="Run Lines"||B.innerHTML=="Puck Lines"||B.innerHTML=="Spreads"){D._SELECTED_LINE="Spreads";D._SELECTED_LINEID=1;C.param1=1;D.GetODDSByLineType(C,D,1,E)}if(B.innerHTML=="Totals"){D._SELECTED_LINE="Totals";D._SELECTED_LINEID=3;C.param1=3;D.GetODDSByLineType(C,D,3,E)}}return false};Statistic.prototype.ChangeTimeZone=function(E,C){var B=$get(E._DIV_LOADING_STATISTICS);B.style.visibility="visible";B.style.display="";var A=$get(E._DDL_TIME_ZONES);var F=A.options[A.selectedIndex].text;var D=new Object();D.stats=E;if(C=="oddssbr"){Donbest.Website.WebServices.JSStatistics.GetOddsByLineType(E._ClientId,E._League,E._LeagueId,E._SELECTED_LINEID,E._CURRENT_TIME_ZONE,F,E.WSSuccess,E.WSError,D)}else{if(C=="scoressbr"){Donbest.Website.WebServices.JSStatistics.GetScoresByDate(E._Sport,E._League,E._LeagueId,E._CurrentDate,E._CURRENT_TIME_ZONE,F,this.ScoreByDateSuccess,this.ScoreByDateError,this)}else{if(C=="allscoressbr"){Donbest.Website.WebServices.JSStatistics.GetAllScoresSBR("Pacific Standard Time",F,this.ScoreByDateSuccess,this.ScoreByDateError,this)}else{if(C=="alloddssbr"){Donbest.Website.WebServices.JSStatistics.GetAllOddsSBR(E._SELECTED_LINEID,"Pacific Standard Time",F,this.ScoreByDateSuccess,this.ScoreByDateError,this)}}}}return false};Statistic.prototype.WSSuccess=function(A,C){var B=$get(C.stats._DIV_LOADING_STATISTICS);C.stats._StatsContainer.innerHTML=A;C.stats._ResultHtmlDynamic=A;B.style.display="none";B.style.visibility="hidden";return false};Statistic.prototype.WSError=function(C,B){var A=$get(B.stats._DIV_LOADING_STATISTICS);A.style.display="none";A.style.visibility="hidden"};Statistic.prototype.GoToTop=function(){if(this._GoToControlTop){window.location.hash=this._StatisticsHomeLinkName}else{window.scrollTo(0,0)}};Statistic.prototype.SelectTeamSchedule=function(A,C){var B=document.createElement(HTML_ELEMENT_A);B.innerHTML="Game Logs";B.obj=C;B.param1=A.value;B.param2="";B.onclick=C.GetScheduleTeamAux;if(A.value!="0"){C.GetScheduleTeam(B,C,A.value,"")}};Statistic.prototype.SelectTeamSoccer=function(A,C){var B=document.createElement(HTML_ELEMENT_A);B.innerHTML="Team";B.obj=C;B.param1=A.value;B.param2="";B.onclick=C.GetSoccerClubAux;if(A.value!="0"){C.GetSoccerClub(B,C,A.value)}};Statistic.prototype.SelectCollegueConferenceForMatchups=function(C,B){var A=document.createElement(HTML_ELEMENT_A);A.innerHTML="Matchups";A.obj=B;A.param1=C.value;A.param2="";A.onclick=B.GetCollegueMatchupListAux;if(C.value!=""){B.GetCollegueMatchupList(A,B,C.value,C.options[C.selectedIndex].text)}};Statistic.prototype.SelectDriver=function(A,C){var B=document.createElement(HTML_ELEMENT_A);B.innerHTML="Driver";B.obj=C;B.param1=A.value;B.param2="";B.onclick=C.GetDriverReportAux;if(A.value!="0"){C.GetDriverReport(B,C,A.value)}};Statistic.prototype.SelectRace=function(A,C){var B=document.createElement(HTML_ELEMENT_A);B.innerHTML="Race";B.obj=C;B.param1=A.value;B.param2="";B.onclick=C.GetRaceAux;if(A.value!="0"){C.GetRace(B,C,A.value,"")}};Statistic.prototype.SelectTrack=function(A,C){var B=document.createElement(HTML_ELEMENT_A);B.innerHTML="Track";B.obj=C;B.param1=A.value;B.param2="";B.onclick=C.GetTrackAux;if(A.value!="0"){C.GetTrack(B,C,A.value,"")}};Statistic.prototype.SelectLineType=function(A,C){var B=document.createElement(HTML_ELEMENT_A);B.innerHTML="LineType";B.obj=C;B.param1=A.value;B.param2="";B.onclick=C.GetODDSByLineTypeAux;if(A.value!="0"){C.GetODDSByLineType(B,C,A.value)}};Statistic.prototype.ChangeDay=function(A,C,F,B){var E=$get(this._DIV_LOADING_STATISTICS);E.style.visibility="visible";var D=$get(this._DDL_TIME_ZONES);var G=D.options[D.selectedIndex].text;this._CurrentDate=B;Donbest.Website.WebServices.JSStatistics.GetScoresByDate(A,C,F,B,this._CURRENT_TIME_ZONE,G,this.ScoreByDateSuccess,this.ScoreByDateError,this)};Statistic.prototype.ScoreByDateSuccess=function(A,C){var D=$get(C._DIV_LOADING_STATISTICS);var B=$get(C._DivContainerId);if(B){B.innerHTML=A}D.style.visibility="hidden"};Statistic.prototype.ScoreByDateError=function(C,B){var A=$get(B._DIV_LOADING_STATISTICS);A.style.display="none";A.style.visibility="hidden"};var config=new Object();var tt_Debug=true;var tt_Enabled=true;var TagsToTip=true;config.Above=false;config.BgColor="#E2E7FF";config.BgImg="";config.BorderColor="#003099";config.BorderStyle="solid";config.BorderWidth=1;config.CenterMouse=false;config.ClickClose=false;config.ClickSticky=false;config.CloseBtn=false;config.CloseBtnColors=["#990000","#FFFFFF","#DD3333","#FFFFFF"];config.CloseBtnText="&nbsp;X&nbsp;";config.CopyContent=true;config.Delay=400;config.Duration=0;config.Exclusive=false;config.FadeIn=100;config.FadeOut=100;config.FadeInterval=30;config.Fix=null;config.FollowMouse=true;config.FontColor="#000044";config.FontFace="Verdana,Geneva,sans-serif";config.FontSize="8pt";config.FontWeight="normal";config.Height=0;config.JumpHorz=false;config.JumpVert=true;config.Left=false;config.OffsetX=14;config.OffsetY=8;config.Opacity=100;config.Padding=3;config.Shadow=false;config.ShadowColor="#C0C0C0";config.ShadowWidth=5;config.Sticky=false;config.TextAlign="left";config.Title="";config.TitleAlign="left";config.TitleBgColor="";config.TitleFontColor="#FFFFFF";config.TitleFontFace="";config.TitleFontSize="";config.TitlePadding=2;config.Width=0;function DynamicTip(){if(this.parameters){var dynamicArguments="";var parameters=parseInt(this.parameters);for(index=0;index<=parameters;index++){var expression="var value=this.p"+index;eval(expression);if(dynamicArguments.length==0){dynamicArguments=value}else{dynamicArguments+=","+value}}}if(dynamicArguments.length>0){return eval("Tip("+dynamicArguments+")")}}function Tip(){var A=0;tt_Tip(arguments,null)}function TagToTip(){var A=tt_GetElt(arguments[0]);if(A){tt_Tip(arguments,A)}}function UnTip(){tt_OpReHref();if(tt_aV[DURATION]<0&&(tt_iState&2)){tt_tDurt.Timer("tt_HideInit()",-tt_aV[DURATION],true)}else{if(!(tt_aV[STICKY]&&(tt_iState&2))){tt_HideInit()}}}var tt_aElt=new Array(10),tt_aV=new Array(),tt_sContent,tt_t2t,tt_t2tDad,tt_musX,tt_musY,tt_over,tt_x,tt_y,tt_w,tt_h;function tt_Extension(){tt_ExtCmdEnum();tt_aExt[tt_aExt.length]=this;return this}function tt_SetTipPos(B,D){var C=tt_aElt[0].style;tt_x=B;tt_y=D;C.left=B+"px";C.top=D+"px";if(tt_ie56){var A=tt_aElt[tt_aElt.length-1];if(A){A.style.left=C.left;A.style.top=C.top}}}function tt_HideInit(){if(tt_iState){tt_ExtCallFncs(0,"HideInit");tt_iState&=~(4|8);if(tt_flagOpa&&tt_aV[FADEOUT]){tt_tFade.EndTimer();if(tt_opa){var A=Math.round(tt_aV[FADEOUT]/(tt_aV[FADEINTERVAL]*(tt_aV[OPACITY]/tt_opa)));tt_Fade(tt_opa,tt_opa,0,A);return }}tt_tHide.Timer("tt_Hide();",1,false)}}function tt_Hide(){if(tt_db&&tt_iState){tt_OpReHref();if(tt_iState&2){tt_aElt[0].style.visibility="hidden";tt_ExtCallFncs(0,"Hide")}tt_tShow.EndTimer();tt_tHide.EndTimer();tt_tDurt.EndTimer();tt_tFade.EndTimer();if(!tt_op&&!tt_ie){tt_tWaitMov.EndTimer();tt_bWait=false}if(tt_aV[CLICKCLOSE]||tt_aV[CLICKSTICKY]){tt_RemEvtFnc(document,"mouseup",tt_OnLClick)}tt_ExtCallFncs(0,"Kill");if(tt_t2t&&!tt_aV[COPYCONTENT]){tt_UnEl2Tip()}tt_iState=0;tt_over=null;tt_ResetMainDiv();if(tt_aElt[tt_aElt.length-1]){tt_aElt[tt_aElt.length-1].style.display="none"}}if(divSbrAlertBackGround){closeBackGround()}}function tt_GetElt(A){return(document.getElementById?document.getElementById(A):document.all?document.all[A]:null)}function tt_GetDivW(A){return(A?(A.offsetWidth||A.style.pixelWidth||0):0)}function tt_GetDivH(A){return(A?(A.offsetHeight||A.style.pixelHeight||0):0)}function tt_GetScrollX(){return(window.pageXOffset||(tt_db?(tt_db.scrollLeft||0):0))}function tt_GetScrollY(){return(window.pageYOffset||(tt_db?(tt_db.scrollTop||0):0))}function tt_GetClientW(){return tt_GetWndCliSiz("Width")}function tt_GetClientH(){return tt_GetWndCliSiz("Height")}function tt_GetEvtX(A){return(A?((typeof (A.pageX)!=tt_u)?A.pageX:(A.clientX+tt_GetScrollX())):0)}function tt_GetEvtY(A){return(A?((typeof (A.pageY)!=tt_u)?A.pageY:(A.clientY+tt_GetScrollY())):0)}function tt_AddEvtFnc(B,A,C){if(B){if(B.addEventListener){B.addEventListener(A,C,false)}else{B.attachEvent("on"+A,C)}}}function tt_RemEvtFnc(B,A,C){if(B){if(B.removeEventListener){B.removeEventListener(A,C,false)}else{B.detachEvent("on"+A,C)}}}function tt_GetDad(A){return(A.parentNode||A.parentElement||A.offsetParent)}function tt_MovDomNode(B,A,C){if(A){A.removeChild(B)}if(C){C.appendChild(B)}}var tt_aExt=new Array(),tt_db,tt_op,tt_ie,tt_ie56,tt_bBoxOld,tt_body,tt_ovr_,tt_flagOpa,tt_maxPosX,tt_maxPosY,tt_iState=0,tt_opa,tt_bJmpVert,tt_bJmpHorz,tt_elDeHref,tt_tShow=new Number(0),tt_tHide=new Number(0),tt_tDurt=new Number(0),tt_tFade=new Number(0),tt_tWaitMov=new Number(0),tt_bWait=false,tt_u="undefined";function tt_Init(){tt_MkCmdEnum();if(!tt_Browser()||!tt_MkMainDiv()){return }tt_IsW3cBox();tt_OpaSupport();tt_AddEvtFnc(document,"mousemove",tt_Move);if(TagsToTip||tt_Debug){tt_SetOnloadFnc()}tt_AddEvtFnc(window,"unload",tt_Hide)}function tt_MkCmdEnum(){var n=0;for(var i in config){eval("window."+i.toString().toUpperCase()+" = "+n++)}tt_aV.length=n}function tt_Browser(){var n,nv,n6,w3c;n=navigator.userAgent.toLowerCase(),nv=navigator.appVersion;tt_op=(document.defaultView&&typeof (eval("window.opera"))!=tt_u);tt_ie=n.indexOf("msie")!=-1&&document.all&&!tt_op;if(tt_ie){var ieOld=(!document.compatMode||document.compatMode=="BackCompat");tt_db=!ieOld?document.documentElement:(document.body||null);if(tt_db){tt_ie56=parseFloat(nv.substring(nv.indexOf("MSIE")+5))>=5.5&&typeof document.body.style.maxHeight==tt_u}}else{tt_db=document.documentElement||document.body||(document.getElementsByTagName?document.getElementsByTagName("body")[0]:null);if(!tt_op){n6=document.defaultView&&typeof document.defaultView.getComputedStyle!=tt_u;w3c=!n6&&document.getElementById}}tt_body=(document.getElementsByTagName?document.getElementsByTagName("body")[0]:(document.body||null));if(tt_ie||n6||tt_op||w3c){if(tt_body&&tt_db){if(document.attachEvent||document.addEventListener){return true}}else{tt_Err("wz_tooltip.js must be included INSIDE the body section, immediately after the opening <body> tag.",false)}}tt_db=null;return false}function tt_MkMainDiv(){if(tt_body.insertAdjacentHTML){tt_body.insertAdjacentHTML("afterBegin",tt_MkMainDivHtm())}else{if(typeof tt_body.innerHTML!=tt_u&&document.createElement&&tt_body.appendChild){tt_body.appendChild(tt_MkMainDivDom())}}if(window.tt_GetMainDivRefs&&tt_GetMainDivRefs()){return true}tt_db=null;return false}function tt_MkMainDivHtm(){return('<div id="WzTtDiV"></div>'+(tt_ie56?('<iframe id="WzTtIfRm" src="javascript:false" scrolling="no" frameborder="0" style="filter:Alpha(opacity=0);position:absolute;top:0px;left:0px;display:none;"></iframe>'):""))}function tt_MkMainDivDom(){var A=document.createElement("div");if(A){A.id="WzTtDiV"}return A}function tt_GetMainDivRefs(){tt_aElt[0]=tt_GetElt("WzTtDiV");if(tt_ie56&&tt_aElt[0]){tt_aElt[tt_aElt.length-1]=tt_GetElt("WzTtIfRm");if(!tt_aElt[tt_aElt.length-1]){tt_aElt[0]=null}}if(tt_aElt[0]){var A=tt_aElt[0].style;A.visibility="hidden";A.position="absolute";A.overflow="hidden";return true}return false}function tt_ResetMainDiv(){tt_SetTipPos(0,0);tt_aElt[0].innerHTML="";tt_aElt[0].style.width="0px";tt_h=0}function tt_IsW3cBox(){var A=tt_aElt[0].style;A.padding="10px";A.width="40px";tt_bBoxOld=(tt_GetDivW(tt_aElt[0])==40);A.padding="0px";tt_ResetMainDiv()}function tt_OpaSupport(){var A=tt_body.style;tt_flagOpa=(typeof (A.KhtmlOpacity)!=tt_u)?2:(typeof (A.KHTMLOpacity)!=tt_u)?3:(typeof (A.MozOpacity)!=tt_u)?4:(typeof (A.opacity)!=tt_u)?5:(typeof (A.filter)!=tt_u)?1:0}function tt_SetOnloadFnc(){tt_AddEvtFnc(document,"DOMContentLoaded",tt_HideSrcTags);tt_AddEvtFnc(window,"load",tt_HideSrcTags);if(tt_body.attachEvent){tt_body.attachEvent("onreadystatechange",function(){if(tt_body.readyState=="complete"){tt_HideSrcTags()}})}if(/WebKit|KHTML/i.test(navigator.userAgent)){var A=setInterval(function(){if(/loaded|complete/.test(document.readyState)){clearInterval(A);tt_HideSrcTags()}},10)}}function tt_HideSrcTags(){if(!window.tt_HideSrcTags||window.tt_HideSrcTags.done){return }window.tt_HideSrcTags.done=true;if(!tt_HideSrcTagsRecurs(tt_body)){tt_Err("There are HTML elements to be converted to tooltips.\nIf you want these HTML elements to be automatically hidden, you must edit wz_tooltip.js, and set TagsToTip in the global tooltip configuration to true.",true)}}function tt_HideSrcTagsRecurs(B){var E,D;var A=B.childNodes||B.children||null;for(var C=A?A.length:0;C;){--C;if(!tt_HideSrcTagsRecurs(A[C])){return false}E=A[C].getAttribute?(A[C].getAttribute("onmouseover")||A[C].getAttribute("onclick")):(typeof A[C].onmouseover=="function")?(A[C].onmouseover||A[C].onclick):null;if(E){D=E.toString().match(/TagToTip\s*\(\s*'[^'.]+'\s*[\),]/);if(D&&D.length){if(!tt_HideSrcTag(D[0])){return false}}}}return true}function tt_HideSrcTag(B){var C,A;C=B.replace(/.+'([^'.]+)'.+/,"$1");A=tt_GetElt(C);if(A){if(tt_Debug&&!TagsToTip){return false}else{A.style.display="none"}}else{tt_Err("Invalid ID\n'"+C+"'\npassed to TagToTip(). There exists no HTML element with that ID.",true)}return true}function tt_Tip(A,B){if(!tt_db||(tt_iState&8)){return }if(tt_iState){tt_Hide()}if(!tt_Enabled){return }tt_t2t=B;if(!tt_ReadCmds(A)){return }tt_iState=1|4;tt_AdaptConfig1();tt_MkTipContent(A);tt_MkTipSubDivs();tt_FormatTip();tt_bJmpVert=false;tt_bJmpHorz=false;tt_maxPosX=tt_GetClientW()+tt_GetScrollX()-tt_w-1;tt_maxPosY=tt_GetClientH()+tt_GetScrollY()-tt_h-1;tt_AdaptConfig2();tt_OverInit();tt_ShowInit();tt_Move()}function tt_ReadCmds(A){var C;C=0;for(var B in config){tt_aV[C++]=config[B]}if(A.length&1){for(C=A.length-1;C>0;C-=2){tt_aV[A[C-1]]=A[C]}return true}tt_Err("Incorrect call of Tip() or TagToTip().\nEach command must be followed by a value.",true);return false}function tt_AdaptConfig1(){tt_ExtCallFncs(0,"LoadConfig");if(!tt_aV[TITLEBGCOLOR].length){tt_aV[TITLEBGCOLOR]=tt_aV[BORDERCOLOR]}if(!tt_aV[TITLEFONTCOLOR].length){tt_aV[TITLEFONTCOLOR]=tt_aV[BGCOLOR]}if(!tt_aV[TITLEFONTFACE].length){tt_aV[TITLEFONTFACE]=tt_aV[FONTFACE]}if(!tt_aV[TITLEFONTSIZE].length){tt_aV[TITLEFONTSIZE]=tt_aV[FONTSIZE]}if(tt_aV[CLOSEBTN]){if(!tt_aV[CLOSEBTNCOLORS]){tt_aV[CLOSEBTNCOLORS]=new Array("","","","")}for(var A=4;A;){--A;if(!tt_aV[CLOSEBTNCOLORS][A].length){tt_aV[CLOSEBTNCOLORS][A]=(A&1)?tt_aV[TITLEFONTCOLOR]:tt_aV[TITLEBGCOLOR]}}if(!tt_aV[TITLE].length){tt_aV[TITLE]=" "}}if(tt_aV[OPACITY]==100&&typeof tt_aElt[0].style.MozOpacity!=tt_u&&!Array.every){tt_aV[OPACITY]=99}if(tt_aV[FADEIN]&&tt_flagOpa&&tt_aV[DELAY]>100){tt_aV[DELAY]=Math.max(tt_aV[DELAY]-tt_aV[FADEIN],100)}}function tt_AdaptConfig2(){if(tt_aV[CENTERMOUSE]){tt_aV[OFFSETX]-=((tt_w-(tt_aV[SHADOW]?tt_aV[SHADOWWIDTH]:0))>>1);tt_aV[JUMPHORZ]=false}}function tt_MkTipContent(A){if(tt_t2t){if(tt_aV[COPYCONTENT]){tt_sContent=tt_t2t.innerHTML}else{tt_sContent=""}}else{tt_sContent=A[0]}tt_ExtCallFncs(0,"CreateContentString")}function tt_MkTipSubDivs(){var B="position:relative;margin:0px;padding:0px;border-width:0px;left:0px;top:0px;line-height:normal;width:auto;",A=' cellspacing="0" cellpadding="0" border="0" style="'+B+'"><tbody style="'+B+'"><tr><td ';tt_aElt[0].style.width=tt_GetClientW()+"px";tt_aElt[0].innerHTML=(""+(tt_aV[TITLE].length?('<div id="WzTiTl" style="position:relative;z-index:1;"><table id="WzTiTlTb"'+A+'id="WzTiTlI" style="'+B+'">'+tt_aV[TITLE]+"</td>"+(tt_aV[CLOSEBTN]?('<td align="right" style="'+B+'text-align:right;"><span id="WzClOsE" style="position:relative;left:2px;padding-left:2px;padding-right:2px;cursor:'+(tt_ie?"hand":"pointer")+';" onmouseover="tt_OnCloseBtnOver(1)" onmouseout="tt_OnCloseBtnOver(0)" onclick="tt_HideInit()">'+tt_aV[CLOSEBTNTEXT]+"</span></td>"):"")+"</tr></tbody></table></div>"):"")+'<div id="WzBoDy" style="position:relative;z-index:0;"><table'+A+'id="WzBoDyI" style="'+B+'">'+tt_sContent+"</td></tr></tbody></table></div>"+(tt_aV[SHADOW]?('<div id="WzTtShDwR" style="position:absolute;overflow:hidden;"></div><div id="WzTtShDwB" style="position:relative;overflow:hidden;"></div>'):""));tt_GetSubDivRefs();if(tt_t2t&&!tt_aV[COPYCONTENT]){tt_El2Tip()}tt_ExtCallFncs(0,"SubDivsCreated")}function tt_GetSubDivRefs(){var B=new Array("WzTiTl","WzTiTlTb","WzTiTlI","WzClOsE","WzBoDy","WzBoDyI","WzTtShDwB","WzTtShDwR");for(var A=B.length;A;--A){tt_aElt[A]=tt_GetElt(B[A-1])}}function tt_FormatTip(){var F,I,E,B=tt_aV[PADDING],D,C=tt_aV[BORDERWIDTH],A,G,H=(B+C)<<1;if(tt_aV[TITLE].length){D=tt_aV[TITLEPADDING];F=tt_aElt[1].style;F.background=tt_aV[TITLEBGCOLOR];F.paddingTop=F.paddingBottom=D+"px";F.paddingLeft=F.paddingRight=(D+2)+"px";F=tt_aElt[3].style;F.color=tt_aV[TITLEFONTCOLOR];if(tt_aV[WIDTH]==-1){F.whiteSpace="nowrap"}F.fontFamily=tt_aV[TITLEFONTFACE];F.fontSize=tt_aV[TITLEFONTSIZE];F.fontWeight="bold";F.textAlign=tt_aV[TITLEALIGN];if(tt_aElt[4]){F=tt_aElt[4].style;F.background=tt_aV[CLOSEBTNCOLORS][0];F.color=tt_aV[CLOSEBTNCOLORS][1];F.fontFamily=tt_aV[TITLEFONTFACE];F.fontSize=tt_aV[TITLEFONTSIZE];F.fontWeight="bold"}if(tt_aV[WIDTH]>0){tt_w=tt_aV[WIDTH]}else{tt_w=tt_GetDivW(tt_aElt[3])+tt_GetDivW(tt_aElt[4]);if(tt_aElt[4]){tt_w+=B}if(tt_aV[WIDTH]<-1&&tt_w>-tt_aV[WIDTH]){tt_w=-tt_aV[WIDTH]}}A=-C}else{tt_w=0;A=0}F=tt_aElt[5].style;F.top=A+"px";if(C){F.borderColor=tt_aV[BORDERCOLOR];F.borderStyle=tt_aV[BORDERSTYLE];F.borderWidth=C+"px"}if(tt_aV[BGCOLOR].length){F.background=tt_aV[BGCOLOR]}if(tt_aV[BGIMG].length){F.backgroundImage="url("+tt_aV[BGIMG]+")"}F.padding=B+"px";F.textAlign=tt_aV[TEXTALIGN];if(tt_aV[HEIGHT]){F.overflow="auto";if(tt_aV[HEIGHT]>0){F.height=(tt_aV[HEIGHT]+H)+"px"}else{tt_h=H-tt_aV[HEIGHT]}}F=tt_aElt[6].style;F.color=tt_aV[FONTCOLOR];F.fontFamily=tt_aV[FONTFACE];F.fontSize=tt_aV[FONTSIZE];F.fontWeight=tt_aV[FONTWEIGHT];F.textAlign=tt_aV[TEXTALIGN];if(tt_aV[WIDTH]>0){I=tt_aV[WIDTH]}else{if(tt_aV[WIDTH]==-1&&tt_w){I=tt_w}else{I=tt_GetDivW(tt_aElt[6]);if(tt_aV[WIDTH]<-1&&I>-tt_aV[WIDTH]){I=-tt_aV[WIDTH]}}}if(I>tt_w){tt_w=I}tt_w+=H;if(tt_aV[SHADOW]){tt_w+=tt_aV[SHADOWWIDTH];G=Math.floor((tt_aV[SHADOWWIDTH]*4)/3);F=tt_aElt[7].style;F.top=A+"px";F.left=G+"px";F.width=(tt_w-G-tt_aV[SHADOWWIDTH])+"px";F.height=tt_aV[SHADOWWIDTH]+"px";F.background=tt_aV[SHADOWCOLOR];F=tt_aElt[8].style;F.top=G+"px";F.left=(tt_w-tt_aV[SHADOWWIDTH])+"px";F.width=tt_aV[SHADOWWIDTH]+"px";F.background=tt_aV[SHADOWCOLOR]}else{G=0}tt_SetTipOpa(tt_aV[FADEIN]?0:tt_aV[OPACITY]);tt_FixSize(A,G)}function tt_FixSize(A,G){var H,D,F,I,B=tt_aV[PADDING],C=tt_aV[BORDERWIDTH],E;tt_aElt[0].style.width=tt_w+"px";tt_aElt[0].style.pixelWidth=tt_w;D=tt_w-((tt_aV[SHADOW])?tt_aV[SHADOWWIDTH]:0);H=D;if(!tt_bBoxOld){H-=(B+C)<<1}tt_aElt[5].style.width=H+"px";if(tt_aElt[1]){H=D-((tt_aV[TITLEPADDING]+2)<<1);if(!tt_bBoxOld){D=H}tt_aElt[1].style.width=D+"px";tt_aElt[2].style.width=H+"px"}if(tt_h){F=tt_GetDivH(tt_aElt[5]);if(F>tt_h){if(!tt_bBoxOld){tt_h-=(B+C)<<1}tt_aElt[5].style.height=tt_h+"px"}}tt_h=tt_GetDivH(tt_aElt[0])+A;if(tt_aElt[8]){tt_aElt[8].style.height=(tt_h-G)+"px"}E=tt_aElt.length-1;if(tt_aElt[E]){tt_aElt[E].style.width=tt_w+"px";tt_aElt[E].style.height=tt_h+"px"}}function tt_DeAlt(C){var A;if(C){if(C.alt){C.alt=""}if(C.title){C.title=""}A=C.childNodes||C.children||null;if(A){for(var B=A.length;B;){tt_DeAlt(A[--B])}}}}function tt_OpDeHref(A){if(!tt_op){return }if(tt_elDeHref){tt_OpReHref()}while(A){if(A.hasAttribute&&A.hasAttribute("href")){A.t_href=A.getAttribute("href");A.t_stats=window.status;A.removeAttribute("href");A.style.cursor="hand";tt_AddEvtFnc(A,"mousedown",tt_OpReHref);window.status=A.t_href;tt_elDeHref=A;break}A=tt_GetDad(A)}}function tt_OpReHref(){if(tt_elDeHref){tt_elDeHref.setAttribute("href",tt_elDeHref.t_href);tt_RemEvtFnc(tt_elDeHref,"mousedown",tt_OpReHref);window.status=tt_elDeHref.t_stats;tt_elDeHref=null}}function tt_El2Tip(){var A=tt_t2t.style;tt_t2t.t_cp=A.position;tt_t2t.t_cl=A.left;tt_t2t.t_ct=A.top;tt_t2t.t_cd=A.display;tt_t2tDad=tt_GetDad(tt_t2t);tt_MovDomNode(tt_t2t,tt_t2tDad,tt_aElt[6]);A.display="block";A.position="static";A.left=A.top=A.marginLeft=A.marginTop="0px"}function tt_UnEl2Tip(){var A=tt_t2t.style;A.display=tt_t2t.t_cd;tt_MovDomNode(tt_t2t,tt_GetDad(tt_t2t),tt_t2tDad);A.position=tt_t2t.t_cp;A.left=tt_t2t.t_cl;A.top=tt_t2t.t_ct;tt_t2tDad=null}function tt_OverInit(){if(window.event){tt_over=window.event.target||window.event.srcElement}else{tt_over=tt_ovr_}tt_DeAlt(tt_over);tt_OpDeHref(tt_over)}function tt_ShowInit(){tt_tShow.Timer("tt_Show()",tt_aV[DELAY],true);if(tt_aV[CLICKCLOSE]||tt_aV[CLICKSTICKY]){tt_AddEvtFnc(document,"mouseup",tt_OnLClick)}}function tt_Show(){var A=tt_aElt[0].style;A.zIndex=Math.max((window.dd&&dd.z)?(dd.z+2):0,1010);if(tt_aV[STICKY]||!tt_aV[FOLLOWMOUSE]){tt_iState&=~4}if(tt_aV[EXCLUSIVE]){tt_iState|=8}if(tt_aV[DURATION]>0){tt_tDurt.Timer("tt_HideInit()",tt_aV[DURATION],true)}tt_ExtCallFncs(0,"Show");A.visibility="visible";tt_iState|=2;if(tt_aV[FADEIN]){tt_Fade(0,0,tt_aV[OPACITY],Math.round(tt_aV[FADEIN]/tt_aV[FADEINTERVAL]))}tt_ShowIfrm()}function tt_ShowIfrm(){if(tt_ie56){var A=tt_aElt[tt_aElt.length-1];if(A){var B=A.style;B.zIndex=tt_aElt[0].style.zIndex-1;B.display="block"}}}function tt_Move(A){if(A){tt_ovr_=A.target||A.srcElement}A=A||window.event;if(A){tt_musX=tt_GetEvtX(A);tt_musY=tt_GetEvtY(A)}if(tt_iState&4){if(!tt_op&&!tt_ie){if(tt_bWait){return }tt_bWait=true;tt_tWaitMov.Timer("tt_bWait = false;",1,true)}if(tt_aV[FIX]){tt_iState&=~4;tt_PosFix()}else{if(!tt_ExtCallFncs(A,"MoveBefore")){tt_SetTipPos(tt_Pos(0),tt_Pos(1))}}tt_ExtCallFncs([tt_musX,tt_musY],"MoveAfter")}}function tt_Pos(B){var H,J,C,A,D,F,E,G,I;if(B){J=tt_aV[JUMPVERT];C=ABOVE;A=OFFSETY;D=tt_h;F=tt_maxPosY;E=tt_GetScrollY();G=tt_musY;I=tt_bJmpVert}else{J=tt_aV[JUMPHORZ];C=LEFT;A=OFFSETX;D=tt_w;F=tt_maxPosX;E=tt_GetScrollX();G=tt_musX;I=tt_bJmpHorz}if(J){if(tt_aV[C]&&(!I||tt_CalcPosAlt(B)>=E+16)){H=tt_PosAlt(B)}else{if(!tt_aV[C]&&I&&tt_CalcPosDef(B)>F-16){H=tt_PosAlt(B)}else{H=tt_PosDef(B)}}}else{H=G;if(tt_aV[C]){H-=D+tt_aV[A]-(tt_aV[SHADOW]?tt_aV[SHADOWWIDTH]:0)}else{H+=tt_aV[A]}}if(H>F){H=J?tt_PosAlt(B):F}if(H<E){H=J?tt_PosDef(B):E}return H}function tt_PosDef(A){if(A){tt_bJmpVert=tt_aV[ABOVE]}else{tt_bJmpHorz=tt_aV[LEFT]}return tt_CalcPosDef(A)}function tt_PosAlt(A){if(A){tt_bJmpVert=!tt_aV[ABOVE]}else{tt_bJmpHorz=!tt_aV[LEFT]}return tt_CalcPosAlt(A)}function tt_CalcPosDef(A){return A?(tt_musY+tt_aV[OFFSETY]):(tt_musX+tt_aV[OFFSETX])}function tt_CalcPosAlt(B){var C=B?OFFSETY:OFFSETX;var A=tt_aV[C]-(tt_aV[SHADOW]?tt_aV[SHADOWWIDTH]:0);if(tt_aV[C]>0&&A<=0){A=1}return((B?(tt_musY-tt_h):(tt_musX-tt_w))-A)}function tt_PosFix(){var A,B;if(typeof (tt_aV[FIX][0])=="number"){A=tt_aV[FIX][0];B=tt_aV[FIX][1]}else{if(typeof (tt_aV[FIX][0])=="string"){el=tt_GetElt(tt_aV[FIX][0])}else{el=tt_aV[FIX][0]}A=tt_aV[FIX][1];B=tt_aV[FIX][2];if(!tt_aV[ABOVE]&&el){B+=tt_GetDivH(el)}for(;el;el=el.offsetParent){A+=el.offsetLeft||0;B+=el.offsetTop||0}}if(tt_aV[ABOVE]){B-=tt_h}tt_SetTipPos(A,B)}function tt_Fade(A,B,C,D){if(D){B+=Math.round((C-B)/D);if((C>A)?(B>=C):(B<=C)){B=C}else{tt_tFade.Timer("tt_Fade("+A+","+B+","+C+","+(D-1)+")",tt_aV[FADEINTERVAL],true)}}B?tt_SetTipOpa(B):tt_Hide()}function tt_SetTipOpa(A){tt_SetOpa(tt_aElt[5],A);if(tt_aElt[1]){tt_SetOpa(tt_aElt[1],A)}if(tt_aV[SHADOW]){A=Math.round(A*0.8);tt_SetOpa(tt_aElt[7],A);tt_SetOpa(tt_aElt[8],A)}}function tt_OnCloseBtnOver(B){var A=tt_aElt[4].style;B<<=1;A.background=tt_aV[CLOSEBTNCOLORS][B];A.color=tt_aV[CLOSEBTNCOLORS][B+1]}function tt_OnLClick(A){A=A||window.event;if(!((A.button&&A.button&2)||(A.which&&A.which==3))){if(tt_aV[CLICKSTICKY]&&(tt_iState&4)){tt_aV[STICKY]=true;tt_iState&=~4}else{if(tt_aV[CLICKCLOSE]){tt_HideInit()}}}}function tt_Int(A){var B;return(isNaN(B=parseInt(A))?0:B)}Number.prototype.Timer=function(C,B,A){if(!this.value||A){this.value=window.setTimeout(C,B)}};Number.prototype.EndTimer=function(){if(this.value){window.clearTimeout(this.value);this.value=0}};function tt_GetWndCliSiz(C){var A,F=window["inner"+C],E="client"+C,D="number";if(typeof F==D){var B;return(((A=document.body)&&typeof (B=A[E])==D&&B&&B<=F)?B:((A=document.documentElement)&&typeof (B=A[E])==D&&B&&B<=F)?B:F)}return(((A=document.documentElement)&&(F=A[E]))?F:document.body[E])}function tt_SetOpa(C,A){var B=C.style;tt_opa=A;if(tt_flagOpa==1){if(A<100){if(typeof (C.filtNo)==tt_u){C.filtNo=B.filter}var D=B.visibility!="hidden";B.zoom="100%";if(!D){B.visibility="visible"}B.filter="alpha(opacity="+A+")";if(!D){B.visibility="hidden"}}else{if(typeof (C.filtNo)!=tt_u){B.filter=C.filtNo}}}else{A/=100;switch(tt_flagOpa){case 2:B.KhtmlOpacity=A;break;case 3:B.KHTMLOpacity=A;break;case 4:B.MozOpacity=A;break;case 5:B.opacity=A;break}}}function tt_Err(B,A){if(tt_Debug||!A){alert("Tooltip Script Error Message:\n\n"+B)}}function tt_ExtCmdEnum(){var s;for(var i in config){s="window."+i.toString().toUpperCase();if(eval("typeof("+s+") == tt_u")){eval(s+" = "+tt_aV.length);tt_aV[tt_aV.length]=null}}}function tt_ExtCallFncs(B,C){var A=false;for(var D=tt_aExt.length;D;){--D;var E=tt_aExt[D]["On"+C];if(E&&E(B)){A=true}}return A}tt_Init();if(typeof config=="undefined"){alert("Error:\nThe core tooltip script file 'wz_tooltip.js' must be included first, before the plugin files!")}config.CenterWindow=false;config.CenterAlways=false;var ctrwnd=new tt_Extension();ctrwnd.OnLoadConfig=function(){if(tt_aV[CENTERWINDOW]){if(tt_aV[STICKY]){if(tt_aV[CENTERALWAYS]){if(tt_ie){tt_AddEvtFnc(window,"scroll",Ctrwnd_DoCenter)}else{tt_aElt[0].style.position="fixed"}tt_AddEvtFnc(window,"resize",Ctrwnd_DoCenter)}return true}tt_aV[CENTERWINDOW]=false}return false};ctrwnd.OnMoveBefore=Ctrwnd_DoCenter;ctrwnd.OnKill=function(){if(tt_aV[CENTERWINDOW]&&tt_aV[CENTERALWAYS]){tt_RemEvtFnc(window,"resize",Ctrwnd_DoCenter);if(tt_ie){tt_RemEvtFnc(window,"scroll",Ctrwnd_DoCenter)}else{tt_aElt[0].style.position="absolute"}}return false};function Ctrwnd_DoCenter(){if(tt_aV[CENTERWINDOW]){var A,D,C,B;if(tt_ie||!tt_aV[CENTERALWAYS]){C=tt_GetScrollX();B=tt_GetScrollY()}else{C=0;B=0}A=(tt_GetClientW()-tt_w)/2+C+tt_aV[OFFSETX];D=(tt_GetClientH()-tt_h)/2+B+tt_aV[OFFSETY];tt_SetTipPos(A,D);return true}return false}if(typeof config=="undefined"){alert("Error:\nThe core tooltip script file 'wz_tooltip.js' must be included first, before the plugin files!")}config.FollowScroll=false;var fscrl=new tt_Extension();fscrl.OnShow=function(){if(tt_aV[FOLLOWSCROLL]){if(tt_aV[STICKY]){var A=tt_x-tt_GetScrollX(),B=tt_y-tt_GetScrollY();if(tt_ie){fscrl.MoveOnScrl.offX=A;fscrl.MoveOnScrl.offY=B;fscrl.AddRemEvtFncs(tt_AddEvtFnc)}else{tt_SetTipPos(A,B);tt_aElt[0].style.position="fixed"}return true}tt_aV[FOLLOWSCROLL]=false}return false};fscrl.OnHide=function(){if(tt_aV[FOLLOWSCROLL]){if(tt_ie){fscrl.AddRemEvtFncs(tt_RemEvtFnc)}else{tt_aElt[0].style.position="absolute"}}};fscrl.MoveOnScrl=function(){tt_SetTipPos(fscrl.MoveOnScrl.offX+tt_GetScrollX(),fscrl.MoveOnScrl.offY+tt_GetScrollY())};fscrl.AddRemEvtFncs=function(A){A(window,"resize",fscrl.MoveOnScrl);A(window,"scroll",fscrl.MoveOnScrl)};var divSbrAlertBackGround;function getCompleteWeatherFormat(h,Y,g,j,U,C,W,f,V,E,b,n,p,M){var o=0;var K=M.split(";");var S=K.length-1;var H="";var m="";var l="";var A="";var T="";var J="";var I="";var Z="";var O="";var N="<td ";var k="</td>";var c=" class=";var d=">";var G=0;var X=1;var B=2;var e=3;var P=0;var R=4;var Q=5;var D=6;var q=7;for(index=0;index<S;index++){var L=K[index];if(L.split(",")[G]!=null){if(H.length==G){H=N+"width=102 "+c+"weathersubhead"+d+L.split(",")[G]+k}else{H+=N+"width=102"+c+"weathersubhead"+d+L.split(",")[G]+k}}if(L.split(",")[X]!=null){if(m.length==0){m=N+"width=102 "+c+"weatherforcast"+d+"<img src= "+L.split(",")[X]+">"+k}else{m+=N+"width=102 "+c+"weatherforcast"+d+"<img src= "+L.split(",")[X]+">"+k}}if(L.split(",")[B]!=null){if(l.length==0){l=N+"width=102"+c+"weatherforcast"+d+L.split(",")[B]+k}else{l+=N+"width=102"+c+"weatherforcast"+d+L.split(",")[B]+k}}if(L.split(",")[e]!=null){if(T.length==0){A=N+"width=102"+c+"weatherforcast"+d+L.split(",")[e]+k}else{A+=N+"width=102"+c+"weatherforcast"+d+L.split(",")[e]+k}}if(L.split(",")[P]!=null){if(T.length==0){T=N+"width=85"+c+"weathersubhead"+d+L.split(",")[P]+k}else{T+=N+"width=85"+c+"weathersubhead"+d+L.split(",")[P]+k}}if(L.split(",")[R]!=null){if(J.length==0){J=N+"width=85"+c+"weatherforcast2"+d+L.split(",")[R]+k}else{J+=N+"width=85"+c+"weatherforcast2"+d+L.split(",")[R]+k}}if(L.split(",")[Q]!=null){if(I.length==0){I=N+"width=85"+c+"weatherforcast2"+d+L.split(",")[Q]+k}else{I+=N+"width=85"+c+"weatherforcast2"+d+L.split(",")[Q]+k}}if(L.split(",")[D]!=null){if(Z.length==0){Z=N+"width=85"+c+"weatherforcast2"+d+L.split(",")[D]+k}else{Z+=N+"width=85"+c+"weatherforcast2"+d+L.split(",")[D]+k}}if(L.split(",")[q]!=null){if(O.length==0){O=N+"width=85"+c+"weatherforcast2"+d+L.split(",")[q]+k}else{O+=N+"width=85"+c+"weatherforcast2"+d+L.split(",")[q]+k}}}var F="<table cellspacing=0 cellpadding=0 bgcolor=#cccccc width=510>";F+="<tbody>";F+="<tr>";F+="<td class=weathertop3>Weather for "+h+"</td>";F+="</tr>";F+="<tr>";F+="<td>";F+="<table cellspacing=0 cellpadding=0 width=510>";F+="<tbody>";F+="<tr>";F+="<td width=160 class=weathertop><b>"+Y+"</b><br/>";F+="<b>Elevation: </b> "+g+" <br/>";F+="<b>Capacity: </b> "+j+" <br/>";F+="<b>Stadium Type:</b> "+U+"<br/>";F+="<b>Playing Surface: </b> "+C+" </td>";F+="<td width=110 class=weathertop>";F+="</td>";F+="<td bgcolor=#ffffff align=center width=240 valign=middle class=weathertop>";F+="Relative Wind Direction<br/>";F+="<img alt=Calm src="+W+">";F+="</td>";F+="</tr>";F+="</tbody>";F+="</table>";F+="</td>";F+="</tr>";F+="</tbody>";F+="</table>";F+="<table  cellspacing=1 cellpadding=0 bgcolor=#cccccc width=510> ";F+="<tbody>";F+="<tr>";F+="<td>";F+="<table width=510 cellspacing=0 cellpadding=0 border=0 bgcolor=#F6F6F6>";F+="<tbody>";F+="<tr>";F+="<td colspan=2 class=weathertop2>Current Conditions</td>";F+="</tr>";F+="<tr> </tr>";F+="<tr>";F+="<td height=1 bgcolor=#ffffff colspan=2><img height=1 src=/weather/misc/weather/spacer.gif/></td>";F+="</tr>";F+="<tr>";F+="<td colspan=2 class=weathersubhead2>Last Updated: "+f+"</td>";F+="</tr>";F+="<tr>";F+="<td width=102 align=center class=currentweather><img vspace=5 src="+V+">";F+="</br>";F+="<font size=+1><b>°</b></font>";F+="</td>";F+="<td width=408 valign=middle><table width=408 cellspacing=0 cellpadding=0 border=0 bgcolor=#F6F6F6>";F+="<tbody>";F+="<tr>";F+="<td class=currentweather><b>Dew Point:</b></td>";F+="<td class=currentweather><b>Barometer:</b></td>";F+="<td class=currentweather><b>Humidity:</b></td>";F+="<td class=currentweather><b>Wind Speed:</b></td>";F+="</tr>";F+="<tr>";F+="<td class=currentweather/>"+E+" </td>";F+="<td class=currentweather> "+b+"</td>";F+="<td class=currentweather>"+n+"</td>";F+="<td class=currentweather>"+p+"  MPH</td>";F+="</tr>";F+="<tr>";F+="<td width=102 height=0> </td>";F+="<td width=102> </td>";F+="<td width=102> </td>";F+="<td width=102> </td>";F+="</tr>";F+="</tbody>";F+="</table>";F+="</td>";F+="</tr>";F+="</tbody>";F+="</table>";F+="</td>";F+="</tr>";F+="<tr>";F+="<td>";F+="<table width=510 cellspacing=0 cellpadding=0>";F+="<tbody>";F+="<tr>";F+="<td class=weathertop2 colspan=5>Forecast Weather Summary</td>";F+="</tr>";F+="<tr>";F+="<td height=1 bgcolor=#ffffff colspan=5><img height=1 src=/weather/misc/weather/spacer.gif/></td>";F+="</tr>";F+="<tr>";F+=H;F+="</tr>";F+="<tr>";F+=m;F+="</tr>";F+="<tr>";F+=l;F+="</tr>";F+="<tr>";F+=A;F+="</tr>";F+="</tbody>";F+="</table>";F+="</td>";F+="</tr>";F+="<tr>";F+="<td>";F+="<table width=510 cellspacing=0 cellpadding=0>";F+="<tbody>";F+="<tr>";F+="<td class=weathertop2 colspan=6>Forecast Weather Details</td>";F+="</tr>";F+="<tr>";F+="<td height=1 bgcolor=#ffffff colspan=6><img height=1 src=/weather/misc/weather/spacer.gif/>";F+="</td>";F+="</tr>";F+="<tr>";F+="<td width=85 class=weathersubhead><br/></td>";F+=T;F+="</tr>";F+="<tr>";F+="<td width=85 class=weatherforcast2><b>Dew Point</b></td>";F+=J;F+="</tr>";F+="<tr>";F+="<td width=85 class=weatherforcast2><b>Humidity</b></td>";F+=I;F+="</tr>";F+="<tr>";F+="<td width=85 class=weatherforcast2><b>Wind Dir</b></td>";F+=Z;F+="</tr>";F+="<tr>";F+="<td width=85 class=weatherforcast2><b>Wind Speed</b></td>";F+=O;F+="</tr>";F+="</tbody>";F+="</table>";F+="</td>";F+="</tr>";F+="</tbody>";F+="</table>";return F}function getSummaryWeatherFormat(J,Q,P,C,F,N,I,O,E,M,D,G,L,B,A){var H=getCompleteWeatherFormat(Q,P,C,F,N,I,O,E,M,D,G,L,B,A);var K='<table width="510" cellspacing="0" cellpadding="0" border="0" bgcolor="#F6F6F6">';K+="<tbody>";K+="<tr>";K+='<td colspan="2" class="weathersubhead2">Current Conditions</td>';K+="</tr>";K+="<tr> </tr>";K+="<tr>";K+='<td height="1" bgcolor="#ffffff" colspan="2"><img height="1" src="/weather/misc/weather/spacer.gif"/></td>';K+="</tr>";K+="<tr>";K+='<td colspan="2" class="weathersubhead2">Last Updated: '+E+"</td>";K+="</tr>";K+="<tr>";K+='<td width="102" align="center" class="currentweather"><img vspace="5" src="'+M+'" width="25"/>';K+="</br>";K+='<font size="+1"><b>°</b></font>';K+="</td>";K+='<td width="408" valign="middle"><table width="408" cellspacing="0" cellpadding="0" border="0" bgcolor="#F6F6F6">';K+="<tbody>";K+="<tr>";K+='<td class="currentweather"><b>Dew Point:</b></td>';K+='<td class="currentweather"><b>Barometer:</b></td>';K+='<td class="currentweather"><b>Humidity:</b></td>';K+='<td class="currentweather"><b>Wind Speed:</b></td>';K+="</tr>";K+="<tr>";K+='<td class="currentweather"/>'+D+" </td>";K+='<td class="currentweather"> '+G+"</td>";K+='<td class="currentweather">'+L+"</td>";K+='<td class="currentweather">'+B+"  MPH</td>";K+="</tr>";K+="<tr>";K+='<td width="102" height="0"> </td>';K+='<td width="102"> </td>';K+='<td width="102"> </td>';K+='<td width="102"> </td>';K+="</tr>";K+="<tr>";K+='<td width="102"> </td>';K+='<td width="102"> </td>';K+='<td width="102"> </td>';K+='<td width="102"><a class="moreInfo" onclick="Tip( \''+H+" ',ABOVE, true,TITLE,'"+J+"',CLOSEBTN,true,CLOSEBTNTEXT, 'CLOSE', STICKY, true,PADDING, 8,WIDTH,515,HEIGHT,0,SHADOW, true,SHADOWCOLOR, '#999999',FIX, [document, calculateX(515), calculateY(495)], BGCOLOR,'#E4EBF0',BORDERCOLOR,'#192A3E');openBackGround();\">Click for details & forecast&nbsp;&raquo;</a>";K+="</td>";K+="</tr>";K+="</tbody>";K+="</table>";return K}function openBackGround(){if(divSbrAlertBackGround==undefined){window.onresize=DoResize;divSbrAlertBackGround=document.createElement("div");divSbrAlertBackGround.className="sbrAlertBackground";DoResize();document.body.appendChild(divSbrAlertBackGround)}}function closeBackGround(){if(divSbrAlertBackGround){var A=divSbrAlertBackGround.parentNode;A.removeChild(divSbrAlertBackGround);divSbrAlertBackGround=undefined;document.body.style.cursor="default"}return false}function DoResize(){if(divSbrAlertBackGround!=undefined){if(document&&document.body&&document.body.clientWidth&&window.screen.height&&window.screen&&window.screen.height&&window.screen.width){divSbrAlertBackGround.style.height=window.screen.height+"px";divSbrAlertBackGround.style.width=window.screen.width+"px"}}}function calculateX(B){var A=(document.documentElement.clientWidth/2)-(B/2);return A}function calculateY(A){var B=(((document.documentElement.clientHeight/2)+300)+document.documentElement.scrollTop);return B}function detectBrowser(){var B=-1;BrowserDetect.init();switch(BrowserDetect.browser.toLowerCase()){case"firefox":B=parseInt(BrowserDetect.version);if(B<3){if(DETECT_BOX_MSG){var A=$get(DETECT_BOX_MSG);if(A){A.style.display="block"}}}break;case"explorer":B=parseInt(BrowserDetect.version);if(B<7){if(DETECT_BOX_MSG){var A=$get(DETECT_BOX_MSG);if(A){A.style.display="block"}}}break}}var BrowserDetect={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this.OS=this.searchString(this.dataOS)||"an unknown OS"},searchString:function(D){for(var A=0;A<D.length;A++){var B=D[A].string;var C=D[A].prop;this.versionSearchString=D[A].versionSearch||D[A].identity;if(B){if(B.indexOf(D[A].subString)!=-1){return D[A].identity}}else{if(C){return D[A].identity}}}},searchVersion:function(B){var A=B.indexOf(this.versionSearchString);if(A==-1){return }return parseFloat(B.substring(A+this.versionSearchString.length+1))},dataBrowser:[{string:navigator.userAgent,subString:"Chrome",identity:"Chrome"},{string:navigator.userAgent,subString:"OmniWeb",versionSearch:"OmniWeb/",identity:"OmniWeb"},{string:navigator.vendor,subString:"Apple",identity:"Safari",versionSearch:"Version"},{prop:window.opera,identity:"Opera"},{string:navigator.vendor,subString:"iCab",identity:"iCab"},{string:navigator.vendor,subString:"KDE",identity:"Konqueror"},{string:navigator.userAgent,subString:"Firefox",identity:"Firefox"},{string:navigator.vendor,subString:"Camino",identity:"Camino"},{string:navigator.userAgent,subString:"Netscape",identity:"Netscape"},{string:navigator.userAgent,subString:"MSIE",identity:"Explorer",versionSearch:"MSIE"},{string:navigator.userAgent,subString:"Gecko",identity:"Mozilla",versionSearch:"rv"},{string:navigator.userAgent,subString:"Mozilla",identity:"Netscape",versionSearch:"Mozilla"}],dataOS:[{string:navigator.platform,subString:"Win",identity:"Windows"},{string:navigator.platform,subString:"Mac",identity:"Mac"},{string:navigator.userAgent,subString:"iPhone",identity:"iPhone/iPod"},{string:navigator.platform,subString:"Linux",identity:"Linux"}]};if(typeof (console)=="undefined"){window.console={log:function(A){}}}var Menu=Class.create({Options:{},VisibleKey:"",MainOptions:new Array(),SubOptions:new Array(),initialize:function(A){this.Options={};Object.extend(this.Options,A||{});this.InitMenu()}});Menu.MenuType={MAINITEM:1,SUBITEM:2};Menu.prototype.InitMenu=function(){this.Holder=$(this.Options.menuId);this.Holder.down("ul").immediateDescendants().each(function(B,A){var C={obj:B,index:A,key:"#{0}_#{1}".interpolate({0:this.Options.menuId,1:A}),hasMenu:B.down("ul")!=null&&!B.hasClassName("menu-item-hide-dd"),link:B.down("a"),timeout:0,dd:new Element("div",{style:"display:none;"}).addClassName("mainMenuDDBox dropdownGeneral"),type:Menu.MenuType.MAINITEM,subOptions:new Array()};this.MainOptions.push(C);B.id=C.key}.bind(this));Event.observe(window,"load",function(){this.MainOptions.each(function(A){if(!A.hasMenu){return }this.MakeDD(A,A.obj.down("ul"))}.bind(this))}.bind(this))};Menu.prototype.MakeDD=function(A,B){A.dd.appendChild(B);$(document.body).appendChild(A.dd);Event.observe(A.obj,"mouseover",function(){this.Show(A)}.bind(this));Event.observe(A.obj,"mouseout",function(){this.Hide(A)}.bind(this));Event.observe(A.dd,"mouseover",function(){this.Show(A)}.bind(this));Event.observe(A.dd,"mouseout",function(){this.Hide(A)}.bind(this));A.dd.down("ul").immediateDescendants().each(function(D,C){var F=D.cumulativeOffset();var E={obj:D,index:C,key:"#{0}_#{1}".interpolate({0:A.key,1:C}),hasMenu:D.down("ul")!=null,link:D.down("a"),timeout:0,dd:new Element("div",{style:"display:none;"}).addClassName("mainMenuDDSubBox dropdownGeneral"),parent:A,type:Menu.MenuType.SUBITEM};D.id=E.key;A.subOptions.push(E)}.bind(this));A.subOptions.each(function(C){if(!C.hasMenu){return }this.MakeSubDD(C,C.obj.down("ul"))}.bind(this))};Menu.prototype.MakeSubDD=function(A,B){A.dd.appendChild(B);$(document.body).appendChild(A.dd);A.link.appendChild(new Element("span").addClassName("dropdownHasSub").update(""));Event.observe(A.obj,"mouseover",function(){this.ShowSubMenu(A)}.bind(this));Event.observe(A.obj,"mouseout",function(){this.Hide(A)}.bind(this));Event.observe(A.dd,"mouseover",function(){this.ShowSubMenu(A)}.bind(this));Event.observe(A.dd,"mouseout",function(){this.Hide(A)}.bind(this));Event.observe(A.dd,"mouseover",function(){this.Show(A.parent)}.bind(this));Event.observe(A.dd,"mouseout",function(){this.Hide(A.parent)}.bind(this))};Menu.prototype.ShowSubMenu=function(A){clearTimeout(A.timeout);if(A.key==this.VisibleKey){return }this.VisibleKey=A.key;A.parent.subOptions.each(function(C){$(C.dd).hide();$(C.obj).removeClassName("menu-item-selected")});var B=A.pos;A.dd.setStyle({position:"absolute",top:B.top+"px",left:(B.left+130)+"px"});A.obj.addClassName("menu-item-selected");A.dd.show();console.log(A.obj)};Menu.prototype.Show=function(A){clearTimeout(A.timeout);var B=A.key.indexOf(this.VisibleKey)==0&&!this.VisibleKey.empty();if(B){return }$(this.MainOptions).each(function(D){if(D.key==A.key){return }$(D.dd).hide();$(D.obj).removeClassName("menu-item-selected");if(D.type=Menu.MenuType.MAINITEM){D.subOptions.each(function(E){if(E.hasMenu){E.dd.hide()}}.bind(this))}}.bind(this));this.VisibleKey=A.key;var C=A.obj.cumulativeOffset();A.dd.setStyle({position:"absolute",top:(C.top+A.obj.getHeight())+"px",left:(C.left)+"px"});A.obj.addClassName("menu-item-selected");A.dd.show();if(A.type==Menu.MenuType.MAINITEM&&A.subOptions.length>0){A.subOptions.each(function(D){D.pos=D.obj.cumulativeOffset()})}};Menu.prototype.Hide=function(A){A.timeout=setTimeout(function(){$(A.dd).hide();this.VisibleKey="";$(A.obj).removeClassName("menu-item-selected")}.bind(this),300)};var subMenu={_div:null,MaxWidth:910,MovedItems:function(){if(subMenu._div==null){subMenu._div=new Element("div")}return subMenu._div},ShowTo:0,NewMenuHolder:null,MainHolder:null,MoreLi:null,Make:function(C){subMenu.MainHolder=C;if(C==null){return }var B=0;B+=parseInt(C.down("ul").getStyle("margin-left"));var A=new Array();$(C).select("li").each(function(D,E){B+=$(D).getWidth();if(B>subMenu.MaxWidth){D.hide();subMenu.MoveItem(new Element("li").update(D.innerHTML))}});if(subMenu.MovedItems().select("li").length>0){subMenu.AddMoreButton();Event.observe(window,"load",function(){subMenu.MakeMenu()})}},MoveItem:function(A){subMenu.MovedItems().appendChild(A)},AddMoreButton:function(){var A="sectionMenuMoreHolder";subMenu.MoreLi=new Element("li",{"class":A+"_more",id:A+"_more"}).update('More <img src="../img/more_dd.gif" style="vertical-align: bottom;" />');subMenu.MoreLi.className=A+"_more";subMenu.MainHolder.down("ul").insertBefore(subMenu.MoreLi,subMenu.MainHolder.down("ul").firstChild)},MakeMenu:function(){var B="sectionMenuMoreHolder";subMenu.NewMenuHolder=new Element("div",{"class":B,id:B}).setStyle({display:"none"});subMenu.NewMenuHolder.className=B;subMenu.NewMenuHolder.appendChild(new Element("ul"));var A=subMenu.NewMenuHolder.down("ul");subMenu.MovedItems().select("li").each(function(C,D){A.appendChild(C)});$(document.body).appendChild(subMenu.NewMenuHolder);Event.observe(subMenu.MoreLi,"mouseover",function(){subMenu.Show()});Event.observe(subMenu.MoreLi,"mouseout",function(){subMenu.Hide()});Event.observe(subMenu.NewMenuHolder,"mouseover",function(){subMenu.Show()});Event.observe(subMenu.NewMenuHolder,"mouseout",function(){subMenu.Hide()})},Show:function(){clearTimeout(subMenu.ShowTo);if(subMenu.NewMenuHolder.visible()){return }var A=subMenu.MoreLi.cumulativeOffset();subMenu.NewMenuHolder.setStyle({top:(A.top+subMenu.MoreLi.getHeight())+"px",left:((A.left+subMenu.MoreLi.getWidth())-subMenu.NewMenuHolder.getWidth())+"px"});subMenu.NewMenuHolder.show();subMenu.MoreLi.addClassName("sectionMenuMoreHolder_more_selected")},Hide:function(){subMenu.ShowTo=setTimeout(function(){subMenu.MoreLi.removeClassName("sectionMenuMoreHolder_more_selected");subMenu.NewMenuHolder.hide()},300)}};