var WhichCategory="",WhichGroup="",WhichAngle="",AngleDescription="",AngleType=""; function ShowAngles(b){var c=[],d=[],a=[];c["CATEGORY COMBINATIONS"]="CATEGORY COMBINATIONS";c.HORSE="Class/Earnings&Current Form&Medication/Equipment&Miscellaneous&Pedigree&Speed&TrackMaster Power Ratings";c.JOCKEY="JOCKEY";c.TRAINER="Class&Distance/Surface&Miscellaneous&Statistics";d["CATEGORY COMBINATIONS&CATEGORY COMBINATIONS"]="Good jock/trainer combo&115#Jock/trainer good at D/S&116";d["HORSE&Class/Earnings"]="2nd off claim, class drop, ship&63#>=5:1, done well in higher class&57#>=5:1, top earnings per start&65#>=5:1, top earnings, class drop&60#Class drop, done well in higher&59#Class drop, track switch, out&61#Class drop, turf to dirt&62#Lower race, in the money last&64#Only horse done well at this level&58"; d["HORSE&Current Form"]="1st timer, working 1F per day&133#3rd race in 14 days, won at D/S&44#4 workouts/races, last 14 days&33#4F workout faster than race&134#5 in the money at D/S&30#5 in the money, 2 tracks&38#5 in the money, 8 starters&40#5 in the money, same connect&37#5F bullet, last 7 days&31#60-89 day layoff, done well&130#6F workout faster than race&135#90+ day layoff, done well&131#>=10:1 in last , <= 5:1 today&39#Bullet workout&137#Closer stretching out&28#Early speed then tired&124#Fav out off layoff, back in 21 days&42#Finished 2nd, 3 lengths over 3rd&136#High win%, normally a price&29#Horse closed too late&125#Horse for course&32#Layoff, 1st or 2nd in debut&45#Layoff, class drop, bullet in 10 days&43#M/L fav, layoff, no class drop&35#M/L fav, no action last 21 days&34#Maiden won but DQ'd&36#Out off layoff, back in 21 days&41#Route, 3rd start off layoff, preps&127#Sprint, 3rd or 4th start off layoff&126#Sprint, racing within ten days&128#Won off a layoff, then bounced&27"; d["HORSE&Medication/Equipment"]="1st time Lasix, blinkers on&20#1st time Lasix, early speed&21#2nd off a claim, 2nd time Lasix&24#2nd off a claim, blinkers on&23#2nd off a claim, blinks on, Lasix&25#Class drop, 2nd Lasix, blinkers on&22#Filly, 2nd time Lasix&122";d["HORSE&Miscellaneous"]="1st timer, >= 4 years old&67#2nd off claim, in the money&69#Five-year-old gelding&139#M/L fav with apprentice&71#M/L fav, turf to dirt&68#Maiden, fastest at D/S&70#Sprint, weight is >= 120 lbs&138";d["HORSE&Pedigree"]= "1st time starter, 1st time dam&119#1st time starter, 1st time sire&18#1st time turf, turf dam&117#1st time turf, turf sire&16#Maiden, overall dam&118#Maiden, overall sire&17#Mud dam&121#Mud sire&120";d["HORSE&Speed"]="5 SRs >= today's CR&9#>= 5:2 , top SR at D/S&13#>= 5:2 , top avg SR&12#>= 5:2, top SR at D/S, apprentice&14#Avg SR > M/L favorite's&10#Beaten favorite ran well&4#Class drop, top avg SR at D/S&11#Close at finish, faster SR&7#Close at stretch, faster SR&6#Faster SRs, last three races&5#Last 2 SRs > today's CR&8#Last SR faster than today's CR&3"; d["HORSE&TrackMaster Power Ratings"]="< 5:1, Top Power, sprint, top pace&51#< 5:1, Top Power, top SR at D/S&49#< 5:1, Top Power, within 25 days&47#>= 5:1, Top Power&53#>= 5:1, Top Power, sprint, top pace&52#>= 5:1, Top Power, top SR at D/S&50#>= 5:1, Top Power, within 25 days&48#Top Power, 5 point spread&54";d["JOCKEY&JOCKEY"]="Jock good at D/S&73#Jock good in allowance&82#Jock good in claimers&83#Jock good in maiden races&84#Jock good in stakes&81#Jock good with 1st timers&80#Jock good with favs&76#Jock good with horse&77#Jock good with longshots&79#Jock good with low odds&78#Jock hot last 10 days&75#Jock hot last 30 days&74#Jock in money with horse&85"; d["TRAINER&Class"]="Trainer good down in class&102#Trainer good in allowance&98#Trainer good in stakes&97#Trainer good up in class&101#Trainer good with claimers&99#Trainer good with maidens&100";d["TRAINER&Distance/Surface"]="Trainer good at D/S&87#Trainer good dirt to turf&88#Trainer good in dirt routes&91#Trainer good in dirt sprints&90#Trainer good in turf routes&93#Trainer good in turf sprints&92#Trainer good route to sprint&95#Trainer good sprint to route&94#Trainer good turf to dirt&89";d["TRAINER&Miscellaneous"]= "Trainer good with horse&112#Trainer hot last 10 days&111#Trainer hot last 30 days&110";d["TRAINER&Statistics"]="Trainer good with 1st timers&105#Trainer good with claims&106#Trainer good with favorites&108#Trainer good with layoffs&104#Trainer good with longshots&107";a[115]="Jockey and trainer combination has superior results#W";a[116]="Jockey has superior results at today's distance and surface, and trainer has superior results at today's distance and surface#W";a[63]="Horse is racing for the first time off a claim, dropping in class and shipping from another track#X"; a[57]="Horse with morning line odds of at least 5:1 that has been competitive in higher class races#X";a[65]="Horse is at least 5:1 morning line and has the highest earnings per start in the field#X";a[60]="Horse has morning line odds of at least 5:1, is running in a lower class race than his last race, and has the highest earnings per start in the field#X";a[59]="Horse is dropping in class, and has been competitive in higher class races#X";a[61]="Horse is dropping in class, changing tracks, and finished out of the money more than two lengths back in each of its last three races#X"; a[62]="Horse is dropping in class and moving from turf to dirt#X";a[64]="Horse is running in a lower rated race and ran in the money in last race#X";a[58]="Horse has been competitive at this level and in higher class races while the rest of the field has not#X";a[133]="If today's race is a maiden race, a first time starter that has been working out at about one furlong per day over the last 30 days.#X";a[44]="Horse is now racing for the third time in 14 days, lost last two races, but has won at today's distance and surface in the last 90 days#X"; a[33]="Horse has a combination of at least four workouts/races in the last 14 days#X";a[134]="If today's race is a maiden race, a horse that has a four furlong workout since its last race, and the workout time is faster than its own half-mile#X";a[30]="Horse has finished in the money in its last five starts at today's distance and surface#X";a[38]="Horse has hit the board in at least five straight races at a minimum of two different tracks#X";a[40]="Horse has hit the board in a minimum of five straight races and each race had at least eight starters#X"; a[37]="Horse has hit the board in at least five straight races at the same track, with the same jockey and trainer#X";a[31]="Horse had a five furlong or longer bullet workout within the last seven days#X";a[130]="Horse racing off a layoff of 60-89 days and horse has done well in the past in its starts shortly after a layoff of 60-89 days#X";a[135]="If today's race is a maiden race, a horse that has a six furlong workout since its last race, and the workout time is faster than its own final time#X"; a[131]="Horse racing off a layoff of 90 or more days and horse has done well in the past in its starts shortly after a layoff of 90 or more days#X";a[39]="Horse had odds of at least 10:1 in last race, did not finish in the money, and has morning line odds of 5:1 or lower today#X";a[137]="Horse's last workout earned a bullet#X";a[28]="Horse is a closer who finishes near the winner on average and is stretching out today#X";a[124]="Horse had early speed then tired in last race#X";a[42]="Horse raced as a favorite in his last race off a long layoff, didn?t finish in the money and returns to race today within 21 days of that start#X"; a[136]="If today's race is a maiden race, a horse that finished second in its last race and finished three lengths or more ahead of the third place horse#X";a[29]="Horse has a high win percentage and is consistently an overlay price#X";a[125]="Horse closed too late in last race#X";a[32]="Horse has had superior results at today's track#W";a[45]="Horse won or ran second as a first time starter and is running off a layoff for its second career start.#X";a[43]="Horse is coming off a long layoff, dropping in class, and has a bullet workout in the last ten days#X"; a[35]="Morning line favorite that is coming off a long layoff and not dropping significantly in class (Negative Angle)#X";a[34]="Morning line favorite with no races or workouts in the last 21 days (Negative Angle)#X";a[36]="Horse is a maiden that won its last race, but was placed lower via a disqualification#X";a[41]="Horse didn?t finish in the money in last race, which followed a long layoff, and returns to race today within 21 days of that start#X";a[127]="Today is a route and this is a horse's third start after a layoff of 30 or more days and its last two races were sprints#X"; a[126]="Today is a sprint and this is a horse's third or fourth start after a layoff of 30 or more days#X";a[128]="Today's race is a sprint and the horse is coming back within ten days#X";a[27]="Horse won off a layoff, then bounced in his next race#X";a[20]="Horse is getting Lasix for the first time and adding blinkers today#X";a[21]="Horse is getting Lasix for the first time and has early speed#X";a[24]="Horse racing for the second time off a claim and racing on Lasix for the second time today#X"; a[23]="Horse racing for the second time off a claim and adding blinkers today#X";a[25]="Horse racing for the second time off a claim, adding blinkers today, and running on Lasix for the first or second time today#X";a[22]="Horse is dropping in class, getting Lasix for the second time and adding blinkers today#X";a[122]="Horse is a filly getting Lasix for the second time#X";a[67]="Horse is a first time starter who is four years old or older#X";a[69]="Horse is making second start off a claim, having finished in the money in the first race off a claim#X"; a[139]="Horse is a five-year-old gelding#X";a[71]="Horse is a morning line favorite with an apprentice jockey weight allowance advantage#X";a[68]="Horse is a morning line favorite moving from turf to dirt#X";a[70]="Horse is a maiden with less than ten losses and is significantly faster on average at today's distance and surface than the rest of the horses in th#X";a[138]="Today's race is a sprint and horse is carrying 120 lbs. or more#X";a[119]="Horse is a first time starter that comes from a dam that has produced horses that had superior results as first timers#W"; a[18]="Horse is a first time starter that comes from a sire that has produced horses that had superior results as first timers#W";a[117]="Horse is on the turf for the first time and comes from a dam that has produced superior turf runners#W";a[16]="Horse is on the turf for the first time and comes from a sire that has produced superior turf runners#W";a[118]="Horse is a maiden that comes from a dam that has produced horses that had superior overall results#W";a[17]="Horse is a maiden that comes from a sire that has produced horses that had superior overall results#W"; a[121]="Horse comes from a dam that has produced superior mud runners#W";a[120]="Horse comes from a sire that has produced superior mud runners#W";a[9]="Horse has run at least as fast as today's class rating in five consecutive races#X";a[13]="Horse is 5:2 or higher on the morning line and has run a significantly faster speed rating at today's distance and surface than any other horse in t#X";a[12]="Horse is 5:2 or higher on the morning line and has significantly faster speed ratings on average than the rest of the field#X"; a[14]="Horse is 5:2 or higher on the morning line, has run a faster speed rating at today's distance and surface, than any other horse in the field, and i#X";a[10]="Horse has significantly faster speed ratings on average at today's distance and surface than the morning line favorite#X";a[4]="Horse was a beaten favorite in its last race, but ran well in a strong race for the level#X";a[11]="Horse is dropping in class and has the fastest speed ratings on average in the field at today's distance and surface#X"; a[7]="Horse lost, finished in a closer position to the winner than in its previous race while running a faster speed rating than in its previous two races#X";a[6]="Horse lost, was close at the stretch call in its last race and ran a faster speed rating than in its previous two races#X";a[5]="Horse has run increasingly faster, showing significant improvement over the last three races#X";a[8]="Horse ran significantly faster speed ratings in its last two races than today's class rating#X";a[3]="Horse ran in its last race a significantly faster speed rating than today's class rating#X"; a[51]="Top TrackMaster Power Rated horses in a sprint, less than a 25 day layoff, morning line odds less than 5:1, and superior pace ratings at today's dis#X";a[49]="Top TrackMaster Power Rated horses with less than a 25 day layoff, morning line odds less than 5:1, and has the fastest speed ratings on average at#X";a[47]="Top TrackMaster Power Rated horses with less than a 25 day layoff and morning line odds less than 5:1#X";a[53]="Top TrackMaster Power Rated horses with morning line odds of at least 5:1#X"; a[52]="Top TrackMaster Power Rated horses in a sprint, less than a 25 day layoff, morning line odds of at least 5:1, and superior pace ratings at today's d#X";a[50]="Top TrackMaster Power Rated horses with less than a 25 day layoff, morning line odds of at least 5:1, and has the fastest speed ratings on average i#X";a[48]="Top TrackMaster Power Rated horses with less than a 25 day layoff and morning line odds of at least 5:1#X";a[54]="Horse has the highest TrackMaster Power Rating and is rated at least five points higher than the next highest rated horse#X"; a[73]="Jockey has superior results at today's distance and surface#W";a[82]="Jockey has superior results in allowance races#W";a[83]="Jockey has superior results in claiming races#W";a[84]="Jockey has superior results in maiden races#W";a[81]="Jockey has superior results in stakes/handicap races#W";a[80]="Jockey has superior results with first time starters#W";a[76]="Jockey on morning line favorite and jockey has superior results with favorites#W";a[77]="Jockey has superior results with this horse#W"; a[79]="Jockey has superior results with horses with odds of at least 5:1 and is on a horse with morning line odds less of at least 5:1#W";a[78]="Jockey has superior results with horses with odds less than 5:1 and is on a horse with morning line odds less than 5:1#W";a[75]="Jockey has superior results for the last 10 days#W";a[74]="Jockey has superior results for the last 30 days#W";a[85]="Jockey has run in the money with this horse every time he has ridden it#X";a[102]="Trainer has superior results when moving a horse down in class#W"; a[98]="Trainer has superior results with allowance horses#W";a[97]="Trainer has superior results with stakes horses#W";a[101]="Trainer has superior results when moving a horse up in class#W";a[99]="Trainer has superior results with claimers#W";a[100]="Trainer has superior results with maidens#W";a[87]="Trainer has superior results at today's distance and surface#W";a[88]="Trainer has superior results when switching a horse from dirt to turf#W";a[91]="Trainer has superior results in dirt routes#W"; a[90]="Trainer has superior results in dirt sprints#W";a[93]="Trainer has superior results in turf routes#W";a[92]="Trainer has superior results in turf sprints#W";a[95]="Trainer has superior results when switching a horse from a route to a sprint#W";a[94]="Trainer has superior results when switching a horse from a sprint to a route#W";a[89]="Trainer has superior results when switching a horse from turf to dirt#W";a[112]="Trainer has superior results with this horse#W";a[111]="Trainer has superior results for the last 10 days#W"; a[110]="Trainer has superior results for the last 30 days#W";a[105]="Trainer has superior results with first time starters#W";a[106]="Trainer has superior results with horses, first time after a claim#W";a[108]="Trainer has superior results with favorites and horse is a morning line favorite#W";a[104]="Trainer has superior results with layoff horses#W";a[107]="Trainer has superior results with horses with odds of at least 5:1 and horse has morning line odds of at least 5:1#W";var e=false,f=false; if(b.category.selectedIndex>0){var g=b.category.options[b.category.selectedIndex].value;e=WhichCategory==g?true:false;WhichCategory=g;if(b.group.selectedIndex>0&&e){c=b.group.options[b.group.selectedIndex].value;f=WhichGroup==c?true:false;WhichGroup=c}else{c=c[WhichCategory];clearList(b.group);if(c){addElement(b.group,"Here are the available Angle Groups ",0);e=c.split("&");for(c=0;c<e.length;c++)if(e[c]){g=e[c];addElement(b.group,e[c],e[c])}b.group.disabled=false}else{addElement(b.group,"Please Select an Angle Category", 0);b.group.disabled=true}b.group.selectedIndex=0;b.description.value=AngleDescription;clearList(b.angle);addElement(b.angle,"Please Select a Category and Group",0);b.angle.disabled=true;clearList(b.type);addElement(b.type,"Please Select an Angle first",0);b.type.disabled=true}if(b.angle.selectedIndex>0&&f){WhichAngle=b.angle.options[b.angle.selectedIndex].value;d=a[WhichAngle].split("#");AngleDescription=limitLineLength(d[0],30);b.description.value=AngleDescription;AngleType=d[1];if(b.type)if(AngleType== "X"){clearList(b.type);addElement(b.type,"Not Needed","X");addElement(b.type,"Based on ROI","X");addElement(b.type,"Based on Win %","X");addElement(b.type,"Based on In the Money %","X");b.type.selectedIndex=0;b.type.disabled=true}else{clearList(b.type);addElement(b.type,"Please select the type of Angle","");addElement(b.type,"Based on ROI","R");addElement(b.type,"Based on Win %","W");addElement(b.type,"Based on In the Money %","I");b.type.selectedIndex=0;b.type.disabled=false}}else if(b.group.selectedIndex> 0){d=d[WhichCategory+"&"+WhichGroup];clearList(b.angle);if(d){addElement(b.angle,"Here are the available Angles ",0);d=d.split("#");for(c=0;c<d.length;c++)if(d[c]){a=d[c].split("&");addElement(b.angle,a[0],a[1])}b.angle.disabled=false}else{addElement(b.angle,"Please Select an Angle first",0);b.angle.disabled=true}b.angle.selectedIndex=0;b.description.value=AngleDescription}}else{clearList(b.group);addElement(b.group,"Please Select an Angle Category",0);b.group.disabled=true;clearList(b.angle);addElement(b.angle, "Please Select a Category and Group",0);b.angle.disabled=true;clearList(b.type);addElement(b.type,"Please Select an Angle first",0);b.type.disabled=true;b.description.value=AngleDescription}} function GetAngleHelp(b){if(!b.angle.disabled&&b.angle.selectedIndex>0){var c=b.type.options[b.type.selectedIndex].value;b=b.angle.options[b.angle.selectedIndex].value;if(c.length>0){if(c=="X")c="";OpenAngleHelp(b,c)}else{alert("Please select the Type of Angle before trying to view the help.");return 0}}else{alert("Please select a Category, Group, Angle and Type (if needed) before trying to view the help.");return 0}} function AddAngle(b,c){if(!b.angle.disabled&&b.angle.selectedIndex>0){c=b.type.options[b.type.selectedIndex].value;var d=b.angle.options[b.angle.selectedIndex].value;if(c.length>0){b.type.disabled=false;b.type.value=c;b.angle.value=d;b.submit()}else{alert("Please select the Type of Angle before trying to add the Angle.");return 0}}else{alert("Please select a Category, Group, Angle and Type (if needed) before trying to add the Angle.");return 0}} function limitLineLength(b,c){var d="";b=b.split(" ");for(var a="",e="",f=0;f<b.length;f++){e=a+" "+b[f];if(e.length>c){if(a!="")d+=a+"\n";a=""}else if(a.length>0)a+=" ";a+=b[f]}if(a.length>0)d+=a;return d}var AngleHelpWindow=null; function OpenAngleHelp(b,c){var d=screen.availWidth-10;c=c.toUpperCase();var a=b;c=="R"||c=="I"||c=="W"||(c="");var e=screen.availHeight-screen.availHeight*0.05;if(AngleHelpWindow==null||AngleHelpWindow.closed)if(b==""||b==null){AngleHelpWindow=window.open("/track/info/ulp_help.htm","AngleHelp","resizable=yes,scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,width="+d+",height="+e+",top=0,left=0");MaximizeAngleHelp()}else{for(;isNaN(parseInt(a,10))&&a.length>0;)a=a.substring(1); AngleHelpWindow=window.open("/track/info/ulp_help.htm#angle"+a+c,"AngleHelp","resizable=yes,scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,width=360,height=180,top=100,left=100")}else if(b==""||b==null){AngleHelpWindow.location="/track/info/ulp_help.htm";MaximizeAngleHelp()}else{for(;isNaN(parseInt(a,10))&&a.length>0;)a=a.substring(1);AngleHelpWindow.moveTo(100,100);AngleHelpWindow.resizeTo(360,180);AngleHelpWindow.location="/track/info/ulp_help.htm#angle"+a+c}AngleHelpWindow.focus()} function MaximizeAngleHelp(){if(AngleHelpWindow!=null){var b=screen.availWidth,c=screen.availHeight;AngleHelpWindow.moveTo(0,0);AngleHelpWindow.resizeTo(b,c)}}function CheckAll(b){for(var c=0;c<b.elements.length;c++)if(b.elements[c].type=="checkbox")b.elements[c].checked=true}function UnCheckAll(b){for(var c=0;c<b.elements.length;c++)if(b.elements[c].type=="checkbox")b.elements[c].checked=false}function GoToAddAngleTrack(){this.location="/cgi-bin/ulp_link/disp_angl_tracks.cgi"} function GoToAddAngles(){this.location="/track/angle_list.htm"}function GoToAngleList(){this.location="/cgi-bin/ulp_link/list_angles.cgi"}function GoToAngleReport(){this.location="/cgi-bin/ulp_link/download"}function GoToAngleChangeInfo(){this.location="/cgi-bin/ulp_link/chng_angl_user.cgi"};