function getFlashMovieObject(movieName){if(window.document[movieName]){return window.document[movieName];}if(navigator.appName.indexOf("Microsoft Internet")==-1){if(document.embeds&&document.embeds[movieName])return document.embeds[movieName];}else{return document.getElementById(movieName);}}var lastHeight=-1;function TeaserHeight(height){var e=getFlashMovieObject('LivebetLiveTeaser');if(e){try{if(lastHeight!=height){document.getElementById('divLivebetLiveTeaser').style.height=height+"px";lastHeight=height;}}catch(e){var msg="following error:\n\n";if(document.all){msg+=e.description;}else{msg+=e;}}}}function switchToSportbook(){FrameBetslip=eval("parent.FrameBetslip");if(FrameBetslip){var e=FrameBetslip.getElem('id','frmMain',0);var cont=FrameBetslip.getElem('id','f_betslipContent',0);if(e&&cont&&cont.value&&cont.value.length>0){e.submit();}}location.href="default.aspx?action=sportbook";}function f_addToBetslipLive(obj,wetteid,quote,mstr,tip,eventID,ismainbet,oddtype,bettype,tipname,livebet){Frame1=eval("parent.FrameBetslip");return Frame1.f_addBetLive(wetteid,quote,mstr,tip,eventID,ismainbet,oddtype,bettype,tipname,livebet);}function f_addToBetslip(obj,wetteid,quote,mstr,tip,eventID,ismainbet,oddtype,bettype,tipname){Frame1=eval("parent.FrameBetslip");return Frame1.f_addBet(wetteid,quote,mstr,tip,eventID,ismainbet,oddtype,bettype,tipname);}function f_markAllTips(){Frame1=eval("parent.FrameBetslip");if(!Frame1)return;try{var tipsArr=Frame1.f_tipsInSlip();}catch(e){var tipsArr=null;}if(!tipsArr||tipsArr.length==0||tipsArr==null)return;var tipMarkedCount=0;var i,d,td,id,a,found;if(document.getElementById){d=document;if(d){td=d.getElementsByTagName("TD");if(td&&td.length){for(i=0;i<td.length&&tipMarkedCount!=tipsArr.length;i++){a=td[i].getAttribute("onMouseOut");id=td[i].id;if(a&&id!=''){found=false;for(var idx=0;idx<tipsArr.length&&!found;idx++){if(tipsArr[idx]==id)found=true;}if(found){changeCellBackground(td[i],true);tipMarkedCount++;}}}}}}}function f_ChangeTipBackground(elemId,state){var elem=getElem('id',elemId,0);if(elem)changeCellBackground(elem,state);}function changeCellBackground(elem,state){if(MS){if(!state)elem.style.backgroundColor="";else{elem.style.backgroundColor="#F9D389";}}else{if(!state)elem.bgColor="";else{elem.bgColor="#F9D389";}}}function f_ClearTipBackground(){var i,d,a,td;if(document.getElementById){d=document;if(d){td=d.getElementsByTagName("TD");if(td&&td.length){for(i=0;i<td.length;i++){a=td[i].getAttribute("onMouseOut");if(a){changeCellBackground(td[i],false);}}}}}}
