function jumpTo(page,id) { var mrTargetUrl; switch(page) { case 'abc': mrTargetUrl = '/Abc/0,12527,thisisnotanoid,00.html'; break; case 'abcdetails': mrTargetUrl = '/Abc_Details/0,12692,thisisnotanoid,00.html'; break; case 'meeting': mrTargetUrl = '/Meeting_Home/0,12497,thisisnotanoid,00.html'; break; case 'race': mrTargetUrl = '/Cheltenham2010/Race/0,12495,thisisnotanoid,00.html'; break; case 'arch_race': mrTargetUrl = '/Cheltenham2010/Arch_Race/0,12658,thisisnotanoid,00.html'; break; case 'arch_race_pup': mrTargetUrl = '/Arch_Race_Pup/0,13215,thisisnotanoid,00.html'; break; case 'fastresults': mrTargetUrl = 'http://horses.sportinglife.com/Fast_Results/0,,thisisnotanoid,00.html'; break; case 'fullresult': mrTargetUrl = '/Cheltenham2010/Full_Results/0,12493,thisisnotanoid,00.html'; break; case 'midx': mrTargetUrl = '/Cheltenham2010/Racecards/0,27732,thisisnotanoid,00.html'; break; case 'ridx': mrTargetUrl = '/Cheltenham2010/Results/0,27732,thisisnotanoid,00.html'; break; case 'horse': mrTargetUrl = '/Horse_Profile/0,12491,thisisnotanoid,00.html'; break; case 'trainer': mrTargetUrl = '/Trainer_Profile/0,12487,thisisnotanoid,00.html'; break; case 'jockey': mrTargetUrl = '/Jockey_Profile/0,12488,thisisnotanoid,00.html'; break; case '7daystats': mrTargetUrl = '/Stats/SL_7day_Stats/0,12675,thisisnotanoid,00.html'; break; case '14daystats': mrTargetUrl = '/Stats/SL_14day_Stats/0,12676,thisisnotanoid,00.html'; break; case 'seasonstats': mrTargetUrl = '/Stats/SL_Season_Stats/0,12677,thisisnotanoid,00.html'; break; case 'courseregion': mrTargetUrl = '/Courses/0,12528,thisisnotanoid,00.html'; break; case 'course': mrTargetUrl = '/Course_Profile/0,12530,thisisnotanoid,00.html'; break; case 'nagme': mrTargetUrl = 'http://nagme.sportinglife.com/Horse_Profile/0,,thisisnotanoid,00.html'; break; case 'pointers': mrTargetUrl = '/Pointers/0,12521,thisisnotanoid,00.html'; break; case 'engagements': mrTargetUrl = '/Future_Engagements/0,12646,thisisnotanoid,00.html'; break; case 'headtohead': mrTargetUrl = '/Stats/Head_To_Head/0,13214,thisisnotanoid,00.html'; break; case 'fix': mrTargetUrl = '/Fixtures/0,13369,thisisnotanoid,00.html'; break; case 'jtstats': mrTargetUrl = '/Stats/SL_Jockey_Trainer_Stats/0,13376,thisisnotanoid,00.html'; break; case 'notebook': mrTargetUrl = '/Notebook/0,21234,,00.html'; break; } if (mrTargetUrl.length > 0) { mrTargetUrl = mrTargetUrl.replace('thisisnotanoid',id); if (page!='fastresults') { window.location.href = mrTargetUrl; } else { //window.open(mrTargetUrl,'fast results'); window.open(mrTargetUrl,'fast results','resizable=yes,scrollbars=yes'); } } } function profileJumpTo(page,id) { var mrTargetUrl; switch(page) { case 'card': mrTargetUrl = '/Racecards/0,12495,thisisnotanoid,00.html'; break; case 'race': mrTargetUrl = '/Full_Results/0,12493,thisisnotanoid,00.html'; break; case 'arch_race': mrTargetUrl = '/Arch_Race/0,12658,thisisnotanoid,00.html'; break; case 'course': mrTargetUrl = '/Course_Profile/0,12530,thisisnotanoid,00.html'; break; case 'notebook': mrTargetUrl = '/Notebook/0,21234,,00.html'; break; } if (mrTargetUrl.length > 0) { if (id) { mrTargetUrl = mrTargetUrl.replace('thisisnotanoid',id); } opener.window.location.href = mrTargetUrl; } } function showProfile(ptype,id) { var mrTargetUrl; switch(ptype) { case 'horse': mrTargetUrl = '/Horse_Profile/0,12491,thisisnotanoid,00.html'; break; case 'trainer': mrTargetUrl = '/Trainer_Profile/0,12487,thisisnotanoid,00.html'; break; case 'jockey': mrTargetUrl = '/Jockey_Profile/0,12488,thisisnotanoid,00.html'; break; case 'stars': mrTargetUrl = '/Star_Ratings/0,12705,thisisnotanoid,00.html'; break; case 'engagements': mrTargetUrl = '/Future_Engagements/0,12646,thisisnotanoid,00.html'; break; case 'headtohead': mrTargetUrl = '/Stats/Head_To_Head/0,13214,thisisnotanoid,00.html'; break; case 'racehistory': mrTargetUrl = '/Stats/Race_History/0,25137,thisisnotanoid,00.html'; break; case 'keytrials': mrTargetUrl = '/Stats/Key_Trials/0,25222,thisisnotanoid,00.html'; break; } if (mrTargetUrl.length > 0) { mrTargetUrl = mrTargetUrl.replace('thisisnotanoid',id); window.open(mrTargetUrl,ptype,'Height=600,Width=850,status=no,left=80,top=100,scrollbars=yes,resizable=yes'); } } function showSmlProfile(ptype,id) { var mrTargetUrl; switch(ptype) { case 'stars': mrTargetUrl = '/Star_Ratings/0,12705,thisisnotanoid,00.html'; break; case 'or': mrTargetUrl = '/Official_Ratings/0,12872,thisisnotanoid,00.html'; break; case 'coursetop': mrTargetUrl = '/Stats/SL_Course_Stats/0,12709,thisisnotanoid,00.html'; break; case 'coursefix': mrTargetUrl = '/Course/SL_Course_Fixtures/0,12816,thisisnotanoid,00.html'; break; case 'hotjockeys': mrTargetUrl = '/Profiles/SL_Hot_Jockeys/0,12885,thisisnotanoid,00.html'; break; case 'hottrainers': mrTargetUrl = '/Profiles/SL_Hot_Trainers/0,12886,thisisnotanoid,00.html'; break; case 'canddwinners': mrTargetUrl = '/Profiles/SL_CandD_Winners/0,12887,thisisnotanoid,00.html'; break; } if (mrTargetUrl.length > 0) { mrTargetUrl = mrTargetUrl.replace('thisisnotanoid',id); window.open(mrTargetUrl,ptype,'Height=450,Width=380,status=no,left=120,top=120,scrollbars=yes,resizable=yes'); } } function showMedProfile(ptype,id) { var mrTargetUrl; switch(ptype) { case 'hotjockeys': mrTargetUrl = '/Profiles/SL_Hot_Jockeys/0,12885,thisisnotanoid,00.html'; break; case 'hottrainers': mrTargetUrl = '/Profiles/SL_Hot_Trainers/0,12886,thisisnotanoid,00.html'; break; case 'canddwinners': mrTargetUrl = '/Profiles/SL_CandD_Winners/0,12887,thisisnotanoid,00.html'; break; case 'ftheadgear': mrTargetUrl = '/Profiles/FT_Headgear/0,13104,thisisnotanoid,00.html'; break; case 'cp': mrTargetUrl = '/Profiles/Cheekpieces/0,13166,thisisnotanoid,00.html'; break; case 'ts': mrTargetUrl = '/Profiles/Tonguestraps/0,13167,thisisnotanoid,00.html'; break; case 'headtohead': mrTargetUrl = '/Stats/Head_To_Head/0,13214,thisisnotanoid,00.html'; break; case 'fastcards': mrTargetUrl = '/SL_Fast_Cards/0,13751,thisisnotanoid,00.html'; break; case 'napsdetail': mrTargetUrl = '/Naps_Detail/0,13767,thisisnotanoid,00.html'; break; } if (mrTargetUrl.length > 0) { mrTargetUrl = mrTargetUrl.replace('thisisnotanoid',id); window.open(mrTargetUrl,ptype,'Height=450,Width=550,status=no,left=120,top=120,scrollbars=yes,resizable=yes'); } } function nagMe(id) { var mrTargetUrl = 'http://nagme.sportinglife.com/Horse_Profile/0,,thisisnotanoid,00.html'; mrTargetUrl = mrTargetUrl.replace('thisisnotanoid',id); window.open(mrTargetUrl,'mrWindow','resizable=yes,scrollbars=yes,width=645,height=550,left=80,top=100'); } function betSlip(id, odds) { var mrTargetUrl = 'http://www.totalbet.com/totalbet?action=GoSgl&ev_oc_id=' + id + '&aff_id=1935&CurPrice=' + odds; window.open(mrTargetUrl,'mrWindow','resizable=yes,scrollbars=yes,width=585,height=600,left=80,top=100'); } function skbetSlip(id,num,denom) { var mrTargetUrl = 'https://www.skybet.com/secure/rpbetslipmulti?action=go_gmulti&ev_oc_id=' + id + '&lp_num=' + num + '&lp_den=' + denom + '&AFF_ID=720'; window.open(mrTargetUrl,'mrWindow','resizable=yes,scrollbars=yes,width=585,height=600,left=80,top=100'); } function play(cname,rtime,atype,id) { var mrTargetUrl = '/SL_Racing_Audio_Player/0,13266,thisisnotanoid,00.html'; mrTargetUrl = mrTargetUrl.replace('thisisnotanoid',cname + '^' + rtime + '^' + atype + '^' + id); window.open(mrTargetUrl,'mrWindow','resizable=no,scrollbars=no,width=549,height=95,left=80,top=100'); } popupwin = new Array; function ShowPopup(page,name,options) { popupwin[popupwin.length] = window.open(page,name,options); } function maus (mrItem) { if (mrItem.className == 'racecard_daylink') { mrItem.className='racecard_daylink_sel'; } else { mrItem.className='racecard_daylink'; } }