function toggleSM(typ,cb){if(typ=="twitter"){if(cb.checked){document.getElementById("tdTwitterFull").style.display="block"}else{document.getElementById("tdTwitterFull").style.display="none"}}else{if(cb.checked){document.getElementById("tdSMSFull1").style.display="block";document.getElementById("tdSMSFull2").style.display="block"}else{document.getElementById("tdSMSFull1").style.display="none";document.getElementById("tdSMSFull2").style.display="none"}}}function getRealLeft(el){xPos=el.offsetLeft;tempEl=el.offsetParent;while(tempEl!=null){xPos+=tempEl.offsetLeft;tempEl=tempEl.offsetParent}return xPos}function getRealTop(el){yPos=el.offsetTop;tempEl=el.offsetParent;while(tempEl!=null){yPos+=tempEl.offsetTop;tempEl=tempEl.offsetParent}return yPos;alert(yPos)}function CharacterCount_Truncate(txtIn,txtOut,max){alert;var ll=String;ll=txtIn.value.length;if(ll>max){txtIn.value=txtIn.value.substr(0,max)}if(txtOut!=null){document.getElementById(txtOut).innerHTML=ll}return ll}function CharacterCount(txtIn,txtOut){var ll=String;ll=txtIn.length;if(txtOut!=null){document.getElementById(txtOut).innerHTML=ll}return ll}function rollover(img,onoff,permanent){str=img.src;if(!img.src){str=img.firstChild.src}if(onoff){if(str.indexOf(".jpg")>0){str=str.substring(0,str.length-4)+"b.jpg"}else{str=str.substring(0,str.length-4)+"b.gif"}}else{if(str.indexOf(".jpg")>0){str=str.substring(0,str.length-5)+".jpg"}else{str=str.substring(0,str.length-5)+".gif"}}img.src=str;if(permanent){img.onmouseover=function(){};img.onmouseout=function(){}}}function addLoadEvent(func){var oldonload=window.onload;if(typeof window.onload!="function"){window.onload=func}else{window.onload=function(){if(oldonload){oldonload()}func()}}}function removeRow(tbl){tbody=document.getElementById(tbl);tbody=tbody.getElementsByTagName("tbody")[0];if(currrow>0){tbody.removeChild(tbody.getElementsByTagName("tr")[currrow])}currrow=-1}function loadRow(tmpStr,tbl,cls,rnum,cnum,remove,no_remove){tbody=document.getElementById(tbl);tbody=tbody.getElementsByTagName("tbody")[0];if((currrow>0)&&(remove)){tbody.removeChild(tbody.getElementsByTagName("tr")[currrow])}trow=tbody.getElementsByTagName("tr")[rnum+1];var row=document.createElement("TR");var td1=document.createElement("TD");row.appendChild(td1);td1.innerHTML=tmpStr;td1.colSpan=cnum;td1.className=cls;if((rnum+1)==(tbody.getElementsByTagName("tr").length)){tbody.appendChild(row)}else{tbody.insertBefore(row,trow)}if(no_remove){currrow=-1}else{currrow=rnum+1}}function row_class_change(tbl,cls,rnum,bgcolor){tbody=document.getElementById(tbl);tbody=tbody.getElementsByTagName("tbody")[0];trow=tbody.getElementsByTagName("tr")[rnum+1];trow.className=trow.className+" "+cls;if(bgcolor){cval=parseInt(bgcolor.substr(1,30),16);tds=trow.getElementsByTagName("td");for(var x=0;x<=tds.length-1;x++){tds[x].style.backgroundColor=bgcolor;try{ary=new Array();ary=Contrast.match(bgcolor,["#000000","#333333","#666666","#999999","#CCCCCC","#FFFFFF"]);tdata=tds[x].getElementsByTagName("a");for(var y=0;y<=tdata.length-1;y++){tdata[y].style.color=ary[1]}tds[x].style.color=ary[1]}catch(e){}}}}function showCaption(id,onoff){if(navigator.userAgent.indexOf("Safari")>0){return}cap=document.getElementById(id);if(onoff){cap.style.display="block";cap.style.margin="-"+(cap.scrollHeight-0)+"px 0px 0px 0px";cap.className="media_object_caption"}else{cap.style.display="none"}}function obscure_email(fp,sp){document.write('<a href="mailto:'+fp+"@"+sp+'">'+fp+"@"+sp+"</a>")}function append_action(str){document.forms[0].action=str}function popup_window(url,h,w){var aw,aah;aw=screen.availWidth;ah=screen.availHeight;var popW=w,popH=h;var leftPos=(aw-popW)/2,topPos=(ah-popH)/2;window.open(url,"popup","scrollbars=yes,width="+popW+",height="+popH+",top="+topPos+",left="+leftPos)}function animate(onOrOff,emt,pos,neg){aw=screen.availWidth;ah=window.innerHeight;button=document.getElementById(emt);button.style.zIndex="50000";button.style.left=((aw/2)-(button.scrollWidth/2))+"px";pos=((ah/2)-(button.scrollHeight/2));if(parseInt(button.style.top)<0){ddtimer=window.setTimeout("moveButton(1,'"+emt+"',"+pos+","+neg+");",0,"JavaScript")}else{ddtimer=window.setTimeout("moveButton(0,'"+emt+"',"+pos+","+neg+");",0,"JavaScript")}}function moveButton(onOrOff,emt,pos,neg){button=document.getElementById(emt);if(onOrOff==1){if(parseInt(button.style.top)<pos){button.style.top=parseInt(button.style.top)+10+"px";ddtimer=window.setTimeout("moveButton(1,'"+emt+"',"+pos+","+neg+");",0,"JavaScript")}}else{if(parseInt(button.style.top)>neg){button.style.top=parseInt(button.style.top)-10+"px";ddtimer=window.setTimeout("moveButton(0,'"+emt+"',"+pos+","+neg+");",0,"JavaScript")}}}var Contrast=function(){var _private={min:{brightness:50,difference:300},brightness:function(rgb1,rgb2){var b1=((rgb1.r*299)+(rgb1.g*587)+(rgb1.b*114))/1000;var b2=((rgb2.r*299)+(rgb2.g*587)+(rgb2.b*114))/1000;return Math.abs(Math.round(b1-b2))},difference:function(rgb1,rgb2){var diff=(Math.max(rgb1.r,rgb2.r)-Math.min(rgb1.r,rgb2.r))+(Math.max(rgb1.g,rgb2.g)-Math.min(rgb1.g,rgb2.g))+(Math.max(rgb1.b,rgb2.b)-Math.min(rgb1.b,rgb2.b));return Math.abs(Math.round(diff))},rgb:function(hex){hex=hex.replace("#","");var rgb={r:parseInt(hex.charAt(0)+hex.charAt(1),16),g:parseInt(hex.charAt(2)+hex.charAt(3),16),b:parseInt(hex.charAt(4)+hex.charAt(5),16)};return rgb}};var _public={test:function(hex1,hex2){var rgb1=_private.rgb(hex1);var rgb2=_private.rgb(hex2);var brightness=_private.brightness(rgb1,rgb2);var difference=_private.difference(rgb1,rgb2);return(brightness>=_private.min.brightness&&difference>=_private.min.difference?((brightness-_private.min.brightness)+(difference-_private.min.difference)):false)},match:function(hex1,hex2){var total_score,i,j;if(typeof hex1=="string"){hex1=[hex1]}if(typeof hex2=="string"){hex2=[hex2]}var best_match={score:0,hex1:null,hex2:null};if(hex2==null){for(i=0;i<hex1.length;i++){for(j=0;j<hex1.length;j++){total_score=_public.test(hex1[i],hex1[j]);if(total_score>best_match.score){best_match.score=total_score;best_match.hex1=hex1[i];best_match.hex2=hex1[j]}}}}else{for(i=0;i<hex1.length;i++){for(j=0;j<hex2.length;j++){total_score=_public.test(hex1[i],hex2[j]);if(total_score>best_match.score){best_match.score=total_score;best_match.hex1=hex1[i];best_match.hex2=hex2[j]}}}}return(best_match.score>0?[best_match.hex1,best_match.hex2]:false)}};return _public}();if(typeof deconcept=="undefined"){var deconcept=new Object()}if(typeof deconcept.util=="undefined"){deconcept.util=new Object()}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object()}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a,_b){if(!document.getElementById){return}this.DETECT_KEY=_b?_b:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1)}if(id){this.setAttribute("id",id)}if(w){this.setAttribute("width",w)}if(h){this.setAttribute("height",h)}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(c){this.addParam("bgcolor",c)}var q=_8?_8:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",_7);this.setAttribute("doExpressInstall",false);var _d=(_9)?_9:window.location;this.setAttribute("xiRedirectUrl",_d);this.setAttribute("redirectUrl","");if(_a){this.setAttribute("redirectUrl",_a)}};deconcept.SWFObject.prototype={setAttribute:function(_e,_f){this.attributes[_e]=_f},getAttribute:function(_10){return this.attributes[_10]},addParam:function(_11,_12){this.params[_11]=_12},getParams:function(){return this.params},addVariable:function(_13,_14){this.variables[_13]=_14},getVariable:function(_15){return this.variables[_15]},getVariables:function(){return this.variables},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16.push(key+"="+_18[key])}return _16},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn")}_19='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'"';_19+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var _1a=this.getParams();for(var key in _1a){_19+=key+'="'+_1a[key]+'" '}var _1c=this.getVariablePairs().join("&");if(_1c.length>0){_19+='flashvars="'+_1c+'"'}_19+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX")}_19='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'">';_19+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var _1d=this.getParams();for(var key in _1d){_19+='<param name="'+key+'" value="'+_1d[key]+'" />'}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+='<param name="flashvars" value="'+_1f+'" />'}_19+="</object>"}return _19},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();n.style.display="block";return true}else{var n=(typeof _20=="string")?document.getElementById(_20):_20;if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}n.style.display="block";return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always"}catch(e){if(_23.major==6){return _23}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","))}}return _23};deconcept.PlayerVersion=function(_27){this.major=_27[0]!=null?parseInt(_27[0]):0;this.minor=_27[1]!=null?parseInt(_27[1]):0;this.rev=_27[2]!=null?parseInt(_27[2]):0};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false}if(this.major>fv.major){return true}if(this.minor<fv.minor){return false}if(this.minor>fv.minor){return true}if(this.rev<fv.rev){return false}return true};deconcept.util={getRequestParameter:function(_29){var q=document.location.search||document.location.hash;if(q){var _2b=q.substring(1).split("&");for(var i=0;i<_2b.length;i++){if(_2b[i].substring(0,_2b[i].indexOf("="))==_29){return _2b[i].substring((_2b[i].indexOf("=")+1))}}}return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var _2d=document.getElementsByTagName("OBJECT");for(var i=0;i<_2d.length;i++){_2d[i].style.display="none";for(var x in _2d[i]){if(typeof _2d[i][x]=="function"){_2d[i][x]=null}}}};if(typeof window.onunload=="function"){var oldunload=window.onunload;window.onunload=function(){deconcept.SWFObjectUtil.cleanupSWFs();oldunload()}}else{window.onunload=deconcept.SWFObjectUtil.cleanupSWFs}if(Array.prototype.push==null){Array.prototype.push=function(_30){this[this.length]=_30;return this.length}}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;var currId="nomatch";var HidingTimer;var currLink;var lhref=String;function showDiv(link){clearTimeout(HidingTimer);var tmpDiv=document.getElementById("smartBox");identifier=link.attributes.rev.value;lhref=link.attributes.href.value;var headDiv='<a href="javascript:hideDiv()"></a>';tmpDiv.innerHTML=headDiv+"Loading...";tmpDiv.style.display="block";var lft=parseInt(getRealLeft(link));if(lft+300>screen.width){lft=lft-200}tmpDiv.style.left=lft+"px";tmpDiv.style.top=(getRealTop(link)+20)+"px";var xmlhttp=new XMLHttpRequest();if(lhref.indexOf("coaches",0)>0){xmlhttp.open("GET","/services/smartplayerview.aspx?coach=true&id="+escape(identifier),true)}else{if(lhref.indexOf("staff",0)>0){xmlhttp.open("GET","/services/smartplayerview.aspx?staff=true&id="+escape(identifier),true)}else{xmlhttp.open("GET","/services/smartplayerview.aspx?id="+escape(identifier),true)}}xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){tmpDiv.innerHTML=headDiv;tmpDiv.innerHTML+=xmlhttp.responseText;xmlhttp=null}};xmlhttp.send(null);currId=identifier;return false}function properties_table(objectname,object){document.write("<table border=1 bgcolor=wheat><tr>");document.write("<td style='font-size: 18pt; font-weight: bold' colspan=2 align=center>");document.write("Properties of the <code>"+objectname+"</code> object</td></tr>");for(prop in object){document.writeln("<tr><th>"+prop+"</th><td>"+object[prop]+"</td></tr>")}document.writeln("</table><p>")}function startHide(){HidingTimer=setTimeout("hideDiv();",1000)}function hideDiv(){var tmpDiv=document.getElementById("smartBox");tmpDiv.style.display="none"}function addDiv(){if(document.getElementById("smartBox")==null){var bod=document.getElementsByTagName("body");var newDiv=bod[0].innerHTML+=newDiv}}document.write('<div id="smartBox"></div>');function smart_links(){ary=document.getElementsByTagName("dfn");if(ary.length==0){return}if(ary[0].childNodes[0]){for(var k=0;k<ary.length;k++){try{ary[k].childNodes[0].onmouseover=function(){showDiv(this)};ary[k].childNodes[0].onmouseout=function(){startHide()}}catch(e){}}}else{ary=document.getElementsByTagName("a");for(var k=0;k<ary.length;k++){if(ary[k].attributes.rev){try{ary[k].onmouseover=function(){showDiv(this)};ary[k].onmouseout=function(){startHide()}}catch(e){}}}}}addLoadEvent(smart_links);function WBCollapse(){var divs=document.getElementsByTagName("ul");for(var i=0;i<divs.length;i++){var dd=divs[i];if(dd.getAttribute("title")=="leftNav_WB"){dd.className="leftnav_closed"}}var divs=document.getElementsByTagName("div");for(var i=0;i<divs.length;i++){var dd=divs[i];if(dd.getAttribute("title")=="headline_morebox"){dd.className="divMoreHeadline_morebox mh_hidden"}}var divs=document.getElementsByTagName("img");for(var i=0;i<divs.length;i++){var dd=divs[i];if(dd.getAttribute("title")=="leftnav_WB_image"){if(dd.onmouseover==undefined){dd.onmouseover=function(){rollover(this,true)};dd.onmouseout=function(){rollover(this,false)}}}}}function Expand_508(sender,eventargs){eventargs.Item.Open()}function Collapse_508(sender,eventargs){eventargs.Item.Parent.Close()}addLoadEvent(WBCollapse);function launch_ads(sname,single,speed){var pary=new String;var divs=document.getElementsByTagName("a");for(var i=0;i<divs.length;i++){var dd=divs[i];if(dd.getAttribute("rev")==sname){dd.style.display="none";if(pary==""){pary=dd.id}else{pary+="@"+dd.id}}}try{if(single){document.getElementById(pary).style.display="block"}else{rotate_ad(sname,0,pary,speed)}}catch(e){}}function rotate_ad(sname,numi,pstr,speed){var ppary=pstr.split("@");if(numi==0){document.getElementById(ppary[ppary.length-1]).style.display="none"}else{document.getElementById(ppary[numi-1]).style.display="none"}document.getElementById(ppary[numi]).style.display="block";if(numi<ppary.length-1){numi+=1}else{numi=0}htimer_ads=setTimeout('rotate_ad("'+sname+'",'+numi+',"'+pstr+'",'+speed+");",speed)};function expand(d,collapse,startup){var divs=document.getElementsByTagName("ul");if(document.getElementById(d).style.display=="block"){document.getElementById(d).style.display="none";document.getElementById(d).classname="offmouse";return false}go=true;if(collapse){for(var i=0;i<divs.length;i++){var dd=divs[i];if(dd.getAttribute("title")=="leftNav_WB"){dd.style.display="none";dd.className="offmouse"}}}try{if(go){document.getElementById(d).style.display="block";document.getElementById(d).classname="onmouse"}if(startup){rollover(document.getElementById("img_"+d),true,true)}}catch(e){}};function videoToggle(img,vid){document.getElementById(img).style.display="none";document.getElementById(vid).style.display="block"}function switch_video(url,autoplay,width,height){var so=new SWFObject("http://www.youtube.com/v/"+url+"&enablejsapi=1&showsearch=0&rel=0&playerapiid=playvid&fs=1","youtube_player",width,height,"8","#000000");so.addParam("allowScriptAccess","always");so.addParam("allowFullScreen","true");so.addParam("wmode","transparent");so.setAttribute("id","youtube");so.write("youtube_player");if(autoplay){vtimer=setTimeout("playvid()",1000)}}function playvid(){yt=document.getElementById("youtube");yt.playVideo()}function switch_video_regular(player,url,autoplay,width,height,skincolor,bgcolor){var so=new SWFObject("/videos/masterFS.swf","flashvid",width,height,"9",bgcolor);so.addParam("wMode","transparent");so.addParam("allowFullScreen","true");so.addParam("noscale","false");so.addVariable("autoplayvid","true");so.addVariable("skincolor",skincolor);so.addVariable("skinname","/videos/fs_skin.swf");so.addVariable("file",url);so.write(player)}function switch_video_fullscreen(player,url,autoplay,width,height,skincolor,bgcolor,preview){var so=new SWFObject("/common/flvplayer/flvplayer.swf","flashvid",width,height,"9",bgcolor);so.addParam("wmode","transparent");so.addParam("allowfullscreen","true");so.addParam("scale","noscale");so.addParam("salign","tl");so.addVariable("autoscale","false");so.addVariable("autoplay","true");so.addVariable("skincolor",skincolor);so.addVariable("skin","skin-play-seek-fullscreen-vol.swf");so.addVariable("contentpath","");so.addVariable("playerpath","/common/flvplayer/");so.addVariable("preview",height);so.addVariable("videoheight",height-55);so.addVariable("videowidth",width);so.addVariable("video",url);so.write(player)};currID_MH="";var HidingTimer_MH;var HidingTimer_TS;var curr_story;var running;var numstories_global;function moreheadlines_show(id,go){clearTimeout(HidingTimer_MH);if(go){if((currID_MH!=id)&&(currID_MH!="")){moreheadlines_hide(currID_MH)}document.getElementById("divMoreHeadline_more_"+id).style.display="block";currID_MH=id}else{HidingTimer_MH=setTimeout("moreheadlines_show ("+id+", true)",1000)}}function moreheadlines_hide(id){document.getElementById("divMoreHeadline_more_"+id).style.display="none"}function moreheadlines_stoptimer(){clearTimeout(HidingTimer_MH)}function ICS_rotate(storyid,numstories,stop,speed){if(speed==""){speed=4000}for(var x=1;x<=numstories;x++){document.getElementById("rotImage_"+x).style.display="none";document.getElementById("rotStory_"+x).style.display="none";document.getElementById("rotHeadline_"+x).className="divTopStory_Rotate_ICS_Headlines"}document.getElementById("rotImage_"+storyid).style.display="block";document.getElementById("rotStory_"+storyid).style.display="block";document.getElementById("rotHeadline_"+storyid).className+=" divTopStory_Rotate_ICS_Headlines_selected";storyid+=1;if(storyid>numstories){storyid=1}if(!stop){HidingTimer_TS=setTimeout("ICS_rotate("+storyid+","+numstories+",0,"+speed+")",speed)}else{clearTimeout(HidingTimer_TS)}}function CS_rotate_stop(img){if(running){clearTimeout(HidingTimer_TS);running=false;rollover(img,true,false)}else{rollover(img,false,false);running=true;HidingTimer_TS=setTimeout("CS_rotate("+curr_story+","+numstories_global+",0,4000)",4000)}}function CS_rotate(storyid,numstories,stop,speed_cs){running=true;if(speed_cs==undefined){speed_cs=4000}for(var x=1;x<=numstories;x++){document.getElementById("rotStory_"+x).style.display="none";document.getElementById("rotHeadline_"+x).className="divTopStory_Rotate_CS_Headlines";document.getElementById("rotImage_"+x).style.display="none";document.getElementById("rotHeadlineImg_"+x).src="/images/thumbbuttons_"+x+".gif"}document.getElementById("rotStory_"+storyid).style.display="block";document.getElementById("rotHeadline_"+storyid).className+=" divTopStory_Rotate_CS_Headlines_selected";document.getElementById("rotHeadlineImg_"+storyid).src="/images/thumbbuttons_"+storyid+"b.gif";document.getElementById("rotImage_"+storyid).style.display="block";storyid+=1;if(storyid>numstories){storyid=1}if(!stop){HidingTimer_TS=setTimeout("CS_rotate("+storyid+","+numstories+",0,"+speed_cs+")",speed_cs)}else{running=false;clearTimeout(HidingTimer_TS)}curr_story=storyid;numstories_global=numstories}function TV_rotate_stop(stop){if((running)||(stop)){clearTimeout(HidingTimer_TS);running=false}else{running=true;HidingTimer_TS=setTimeout("TV_rotate("+curr_story+","+numstories_global+",0)",4000)}}function TV_rotate(storyid,numstories,stop,speed_tv){running=true;if(speed_tv==undefined){speed_tv=4000}for(var x=1;x<=numstories;x++){document.getElementById("rotStory_"+x).style.display="none";document.getElementById("rotStory_bm_"+x).style.display="none";document.getElementById("rotHeadline_"+x).className="divTopStory_Rotate_TV_Headlines"}document.getElementById("rotStory_"+storyid).style.display="block";document.getElementById("rotStory_bm_"+storyid).style.display="block";document.getElementById("rotHeadline_"+storyid).className+=" divTopStory_Rotate_TV_Headlines_selected";storyid+=1;if(storyid>numstories){storyid=1}curr_story=storyid;numstories_global=numstories;if(!stop){HidingTimer_TS=setTimeout("TV_rotate("+storyid+","+numstories+",0,"+speed_tv+")",speed_tv)}else{clearTimeout(HidingTimer_TS)}}function CSHeadlines_rotate(storyid,numstories,stop,speed_cs){if(speed_cs==undefined){speed_cs=4000}for(var x=1;x<=numstories;x++){document.getElementById("rotStory1_"+x).style.display="none";document.getElementById("rotHeadline1_"+x).className="divHeadlines_Rotate_CS_Headlines";document.getElementById("rotImage1_"+x).style.display="none";document.getElementById("rotHeadlineImg1_"+x).src="/images/headlinethumb_"+x+".gif"}document.getElementById("rotStory1_"+storyid).style.display="block";document.getElementById("rotHeadline1_"+storyid).className+=" divHeadlines_Rotate_CS_Headlines_selected";document.getElementById("rotHeadlineImg1_"+storyid).src="/images/headlinethumb_"+storyid+"b.gif";document.getElementById("rotImage1_"+storyid).style.display="block";storyid+=1;if(storyid>numstories){storyid=1}if(!stop){HidingTimer_TS=setTimeout("CSHeadlines_rotate("+storyid+","+numstories+",0,"+speed_cs+")",speed_cs)}else{clearTimeout(HidingTimer_TS)}};function Querystring(qs){this.params={};this.get=Querystring_get;if(qs==null){}qs=location.search.substring(1,location.search.length);if(qs.length==0){return}qs=qs.replace(/\+/g," ");var args=qs.split("&");for(var i=0;i<args.length;i++){var pair=args[i].split("=");var name=unescape(pair[0]);var value=(pair.length==2)?unescape(pair[1]):name;this.params[name]=value}}function Querystring_get(key,default_){var value=this.params[key];return(value!=null)?value:default_};currrow=-1;function loadGameInfo(tbl,game_id,rnum,cnum){if(parseInt(currrow-1)==parseInt(rnum)){removeRow(tbl);return}var tmpStr;var xmlhttp=new XMLHttpRequest();xmlhttp.open("GET","/services/schedule_detail.aspx?id="+escape(game_id),true);xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){tmpStr=xmlhttp.responseText;loadRow(tmpStr,tbl,"schedule_detail_row",rnum,cnum,true);xmlhttp=null}};xmlhttp.send(null)}function toggleHelp(cal){obj=document.getElementById("divHelp_"+cal);if(obj.style.display=="none"){obj.style.display="block"}else{obj.style.display="none"}};function launch_scoreboard(speed){var pary=new String;var divs=document.getElementsByTagName("div");for(var i=0;i<divs.length;i++){var dd=divs[i];if(dd.getAttribute("title")=="scoreboard_item"){dd.style.display="none";if(pary==""){pary=dd.id}else{pary+="@"+dd.id}}}rotate_scores(0,pary,speed)}function rotate_scores(numi,pstr,speed){try{var ppary=pstr.split("@");if(numi==0){document.getElementById(ppary[ppary.length-1]).style.display="none"}else{document.getElementById(ppary[numi-1]).style.display="none"}document.getElementById(ppary[numi]).style.display="block";if(numi<ppary.length-1){numi+=1}else{numi=0}htimer_ads=setTimeout("rotate_scores("+numi+',"'+pstr+'",'+speed+");",speed)}catch(e){}};