$(function () {
    var datasets = {
    "W.Davison/G.Tander": {label: "W.Davison/G.Tander",data:[[1,-1],[2,-1],[3,-1],[4,-1],[5,-1],[6,-1],[7,-11],[8,-1],[9,-1],[10,-1],[11,-1],[12,-1],[13,-1],[14,-1],[15,-1],[16,-1],[17,-1],[18,-1],[19,-1],[20,-1],[21,-1],[22,-1],[23,-1],[24,-1],[25,-1],[26,-1],[27,-1],[28,-1],[29,-1],[30,-1],[31,-7],[32,-6],[33,-3],[34,-1],[35,-1],[36,-1],[37,-1],[38,-1],[39,-1],[40,-1],[41,-1],[42,-1],[43,-1],[44,-1],[45,-1],[46,-1],[47,-1],[48,-1],[49,-1],[50,-1],[51,-1],[52,-1],[53,-1],[54,-1],[55,-1],[56,-4],[57,-4],[58,-2],[59,-2],[60,-2],[61,-1],[62,-1],[63,-1],[64,-1],[65,-1],[66,-1],[67,-1],[68,-1],[69,-1],[70,-3],[71,-3],[72,-3],[73,-3],[74,-3],[75,-3],[76,-3],[77,-3],[78,-3],[79,-3],[80,-2],[81,-1],[82,-1],[83,-1],[84,-2],[85,-1],[86,-1],[87,-1],[88,-1],[89,-1],[90,-1],[91,-1],[92,-1],[93,-1],[94,-1],[95,-1],[96,-1],[97,-1],[98,-1],[99,-2],[100,-2],[101,-2],[102,-2],[103,-2],[104,-2],[105,-3],[106,-4],[107,-3],[108,-3],[109,-3],[110,-3],[111,-4],[112,-12],[113,-12],[114,-12],[115,-12],[116,-11],[117,-11],[118,-10],[119,-9],[120,-9],[121,-8],[122,-4],[123,-4],[124,-4],[125,-3],[126,-3],[127,-2],[128,-2],[129,-2],[130,-2],[131,-2],[132,-2],[133,-2],[134,-2],[135,-2],[136,-2],[137,-3],[138,-11],[139,-9],[140,-7],[141,-4],[142,-1],[143,-1],[144,-1],[145,-1],[146,-1],[147,-1],[148,-1],[149,-1],[150,-1],[151,-1],[152,-1],[153,-1],[154,-1],[155,-1],[156,-1],[157,-1],[158,-1],[159,-1],[160,-1],[161,-1]]},
    "C.McConville/J.Richards": {label: "C.McConville/J.Richards",data:[[1,-11],[2,-11],[3,-13],[4,-12],[5,-11],[6,-13],[7,-20],[8,-12],[9,-10],[10,-10],[11,-10],[12,-9],[13,-9],[14,-9],[15,-9],[16,-9],[17,-9],[18,-9],[19,-9],[20,-9],[21,-9],[22,-9],[23,-9],[24,-10],[25,-10],[26,-10],[27,-10],[28,-9],[29,-9],[30,-8],[31,-15],[32,-12],[33,-10],[34,-7],[35,-7],[36,-7],[37,-7],[38,-7],[39,-7],[40,-7],[41,-7],[42,-7],[43,-7],[44,-7],[45,-7],[46,-7],[47,-6],[48,-6],[49,-6],[50,-5],[51,-5],[52,-5],[53,-5],[54,-5],[55,-9],[56,-9],[57,-9],[58,-6],[59,-5],[60,-5],[61,-4],[62,-4],[63,-4],[64,-4],[65,-4],[66,-4],[67,-4],[68,-4],[69,-4],[70,-8],[71,-7],[72,-7],[73,-7],[74,-7],[75,-7],[76,-7],[77,-7],[78,-7],[79,-7],[80,-6],[81,-4],[82,-14],[83,-10],[84,-5],[85,-3],[86,-2],[87,-2],[88,-2],[89,-2],[90,-2],[91,-2],[92,-2],[93,-2],[94,-2],[95,-2],[96,-2],[97,-2],[98,-2],[99,-5],[100,-5],[101,-5],[102,-4],[103,-4],[104,-4],[105,-5],[106,-5],[107,-4],[108,-4],[109,-4],[110,-4],[111,-5],[112,-13],[113,-13],[114,-13],[115,-13],[116,-13],[117,-13],[118,-13],[119,-13],[120,-13],[121,-12],[122,-6],[123,-6],[124,-8],[125,-8],[126,-8],[127,-8],[128,-7],[129,-7],[130,-7],[131,-7],[132,-7],[133,-7],[134,-7],[135,-7],[136,-7],[137,-7],[138,-13],[139,-12],[140,-11],[141,-9],[142,-6],[143,-6],[144,-6],[145,-6],[146,-6],[147,-6],[148,-6],[149,-6],[150,-6],[151,-6],[152,-6],[153,-6],[154,-6],[155,-5],[156,-3],[157,-3],[158,-3],[159,-2],[160,-2],[161,-2]]},
    "M.Caruso/L.Holdsworth": {label: "M.Caruso/L.Holdsworth",data:[[1,-5],[2,-5],[3,-5],[4,-5],[5,-5],[6,-4],[7,-2],[8,-11],[9,-11],[10,-12],[11,-12],[12,-11],[13,-11],[14,-11],[15,-11],[16,-11],[17,-11],[18,-11],[19,-29],[20,-30],[21,-30],[22,-30],[23,-30],[24,-29],[25,-29],[26,-29],[27,-29],[28,-29],[29,-28],[30,-26],[31,-22],[32,-19],[33,-18],[34,-17],[35,-16],[36,-16],[37,-15],[38,-15],[39,-14],[40,-14],[41,-14],[42,-14],[43,-23],[44,-23],[45,-23],[46,-22],[47,-22],[48,-22],[49,-21],[50,-20],[51,-18],[52,-17],[53,-17],[54,-14],[55,-13],[56,-11],[57,-11],[58,-9],[59,-8],[60,-8],[61,-8],[62,-19],[63,-19],[64,-18],[65,-18],[66,-18],[67,-18],[68,-18],[69,-16],[70,-13],[71,-12],[72,-12],[73,-11],[74,-11],[75,-11],[76,-11],[77,-11],[78,-17],[79,-17],[80,-16],[81,-13],[82,-9],[83,-6],[84,-13],[85,-11],[86,-10],[87,-10],[88,-8],[89,-7],[90,-7],[91,-6],[92,-6],[93,-6],[94,-6],[95,-6],[96,-6],[97,-6],[98,-6],[99,-9],[100,-9],[101,-9],[102,-9],[103,-9],[104,-7],[105,-8],[106,-12],[107,-12],[108,-11],[109,-9],[110,-8],[111,-8],[112,-5],[113,-5],[114,-5],[115,-4],[116,-4],[117,-4],[118,-4],[119,-4],[120,-4],[121,-4],[122,-8],[123,-8],[124,-7],[125,-7],[126,-7],[127,-7],[128,-6],[129,-6],[130,-6],[131,-6],[132,-6],[133,-6],[134,-6],[135,-6],[136,-6],[137,-6],[138,-3],[139,-3],[140,-9],[141,-6],[142,-3],[143,-3],[144,-3],[145,-3],[146,-3],[147,-3],[148,-3],[149,-3],[150,-3],[151,-3],[152,-3],[153,-3],[154,-5],[155,-6],[156,-4],[157,-4],[158,-4],[159,-3],[160,-3],[161,-3]]},
    "G.Murphy/M.Skaife": {label: "G.Murphy/M.Skaife",data:[[1,-6],[2,-6],[3,-7],[4,-8],[5,-8],[6,-11],[7,-16],[8,-6],[9,-5],[10,-5],[11,-5],[12,-5],[13,-5],[14,-5],[15,-5],[16,-5],[17,-4],[18,-4],[19,-4],[20,-4],[21,-4],[22,-4],[23,-4],[24,-4],[25,-4],[26,-4],[27,-4],[28,-4],[29,-4],[30,-4],[31,-10],[32,-8],[33,-5],[34,-3],[35,-3],[36,-3],[37,-3],[38,-3],[39,-3],[40,-3],[41,-3],[42,-2],[43,-2],[44,-2],[45,-2],[46,-2],[47,-2],[48,-2],[49,-2],[50,-2],[51,-2],[52,-2],[53,-2],[54,-2],[55,-7],[56,-7],[57,-6],[58,-4],[59,-3],[60,-3],[61,-2],[62,-2],[63,-2],[64,-2],[65,-2],[66,-2],[67,-2],[68,-2],[69,-2],[70,-4],[71,-4],[72,-4],[73,-4],[74,-4],[75,-4],[76,-4],[77,-4],[78,-4],[79,-4],[80,-3],[81,-2],[82,-2],[83,-2],[84,-12],[85,-13],[86,-14],[87,-14],[88,-13],[89,-14],[90,-14],[91,-14],[92,-14],[93,-14],[94,-14],[95,-14],[96,-14],[97,-14],[98,-14],[99,-12],[100,-14],[101,-14],[102,-15],[103,-16],[104,-16],[105,-14],[106,-9],[107,-9],[108,-8],[109,-7],[110,-5],[111,-3],[112,-3],[113,-3],[114,-3],[115,-3],[116,-3],[117,-3],[118,-3],[119,-3],[120,-3],[121,-3],[122,-7],[123,-7],[124,-5],[125,-5],[126,-4],[127,-4],[128,-4],[129,-3],[130,-3],[131,-3],[132,-3],[133,-3],[134,-3],[135,-3],[136,-3],[137,-2],[138,-2],[139,-2],[140,-2],[141,-2],[142,-11],[143,-10],[144,-9],[145,-9],[146,-8],[147,-8],[148,-8],[149,-7],[150,-7],[151,-7],[152,-7],[153,-7],[154,-7],[155,-7],[156,-6],[157,-6],[158,-6],[159,-4],[160,-4],[161,-4]]},
    "C.Lowndes/J.Whincup": {label: "C.Lowndes/J.Whincup",data:[[1,-3],[2,-3],[3,-3],[4,-3],[5,-3],[6,-5],[7,-12],[8,-5],[9,-20],[10,-19],[11,-18],[12,-18],[13,-18],[14,-18],[15,-18],[16,-17],[17,-17],[18,-16],[19,-15],[20,-14],[21,-14],[22,-14],[23,-14],[24,-14],[25,-14],[26,-14],[27,-14],[28,-12],[29,-12],[30,-10],[31,-5],[32,-4],[33,-1],[34,-12],[35,-12],[36,-11],[37,-10],[38,-9],[39,-9],[40,-9],[41,-9],[42,-9],[43,-9],[44,-9],[45,-8],[46,-8],[47,-8],[48,-7],[49,-7],[50,-6],[51,-6],[52,-6],[53,-6],[54,-6],[55,-3],[56,-2],[57,-2],[58,-1],[59,-1],[60,-1],[61,-5],[62,-5],[63,-5],[64,-5],[65,-5],[66,-5],[67,-5],[68,-5],[69,-5],[70,-1],[71,-1],[72,-1],[73,-1],[74,-1],[75,-1],[76,-1],[77,-1],[78,-1],[79,-1],[80,-5],[81,-16],[82,-12],[83,-9],[84,-4],[85,-4],[86,-5],[87,-6],[88,-7],[89,-10],[90,-11],[91,-10],[92,-10],[93,-10],[94,-10],[95,-10],[96,-11],[97,-11],[98,-11],[99,-7],[100,-7],[101,-7],[102,-7],[103,-6],[104,-5],[105,-4],[106,-3],[107,-2],[108,-2],[109,-2],[110,-15],[111,-14],[112,-10],[113,-10],[114,-9],[115,-9],[116,-9],[117,-9],[118,-9],[119,-8],[120,-8],[121,-6],[122,-1],[123,-1],[124,-1],[125,-4],[126,-5],[127,-5],[128,-5],[129,-5],[130,-5],[131,-5],[132,-5],[133,-5],[134,-4],[135,-4],[136,-4],[137,-5],[138,-12],[139,-11],[140,-10],[141,-8],[142,-5],[143,-5],[144,-5],[145,-5],[146,-5],[147,-5],[148,-5],[149,-5],[150,-5],[151,-5],[152,-5],[153,-5],[154,-4],[155,-4],[156,-5],[157,-5],[158,-5],[159,-6],[160,-5],[161,-5]]},
    "J.Bargwanna/M.Noske": {label: "J.Bargwanna/M.Noske",data:[[1,-14],[2,-14],[3,-14],[4,-13],[5,-12],[6,-9],[7,-4],[8,-14],[9,-12],[10,-11],[11,-11],[12,-10],[13,-10],[14,-10],[15,-10],[16,-10],[17,-10],[18,-10],[19,-10],[20,-10],[21,-10],[22,-10],[23,-10],[24,-9],[25,-9],[26,-9],[27,-9],[28,-8],[29,-8],[30,-7],[31,-3],[32,-2],[33,-12],[34,-10],[35,-10],[36,-10],[37,-11],[38,-12],[39,-12],[40,-12],[41,-13],[42,-13],[43,-13],[44,-13],[45,-13],[46,-13],[47,-13],[48,-12],[49,-12],[50,-11],[51,-11],[52,-11],[53,-12],[54,-9],[55,-6],[56,-6],[57,-7],[58,-15],[59,-15],[60,-15],[61,-16],[62,-15],[63,-15],[64,-14],[65,-14],[66,-14],[67,-14],[68,-14],[69,-12],[70,-11],[71,-10],[72,-10],[73,-10],[74,-10],[75,-10],[76,-10],[77,-10],[78,-10],[79,-10],[80,-10],[81,-8],[82,-5],[83,-13],[84,-8],[85,-8],[86,-8],[87,-8],[88,-6],[89,-5],[90,-5],[91,-5],[92,-5],[93,-5],[94,-5],[95,-5],[96,-5],[97,-5],[98,-5],[99,-10],[100,-10],[101,-10],[102,-12],[103,-12],[104,-13],[105,-12],[106,-15],[107,-15],[108,-15],[109,-14],[110,-12],[111,-12],[112,-9],[113,-9],[114,-10],[115,-10],[116,-10],[117,-10],[118,-11],[119,-10],[120,-10],[121,-9],[122,-12],[123,-12],[124,-11],[125,-11],[126,-11],[127,-11],[128,-11],[129,-9],[130,-9],[131,-9],[132,-8],[133,-8],[134,-8],[135,-8],[136,-8],[137,-8],[138,-5],[139,-4],[140,-3],[141,-7],[142,-4],[143,-4],[144,-4],[145,-4],[146,-4],[147,-4],[148,-4],[149,-4],[150,-4],[151,-4],[152,-4],[153,-4],[154,-3],[155,-3],[156,-7],[157,-7],[158,-7],[159,-7],[160,-6],[161,-6]]},
    "P.Morris/T.Slade": {label: "P.Morris/T.Slade",data:[[1,-20],[2,-20],[3,-20],[4,-21],[5,-19],[6,-19],[7,-28],[8,-27],[9,-27],[10,-28],[11,-28],[12,-28],[13,-28],[14,-27],[15,-26],[16,-26],[17,-26],[18,-26],[19,-25],[20,-25],[21,-25],[22,-25],[23,-23],[24,-23],[25,-23],[26,-22],[27,-22],[28,-22],[29,-22],[30,-29],[31,-27],[32,-25],[33,-24],[34,-23],[35,-23],[36,-23],[37,-23],[38,-23],[39,-23],[40,-23],[41,-23],[42,-23],[43,-22],[44,-21],[45,-21],[46,-21],[47,-21],[48,-21],[49,-20],[50,-19],[51,-19],[52,-19],[53,-26],[54,-24],[55,-23],[56,-23],[57,-23],[58,-22],[59,-20],[60,-20],[61,-20],[62,-20],[63,-20],[64,-19],[65,-19],[66,-19],[67,-19],[68,-19],[69,-17],[70,-16],[71,-16],[72,-16],[73,-16],[74,-16],[75,-16],[76,-16],[77,-16],[78,-14],[79,-14],[80,-13],[81,-11],[82,-7],[83,-16],[84,-11],[85,-10],[86,-12],[87,-12],[88,-10],[89,-9],[90,-9],[91,-8],[92,-8],[93,-7],[94,-7],[95,-7],[96,-7],[97,-7],[98,-7],[99,-3],[100,-3],[101,-3],[102,-3],[103,-3],[104,-3],[105,-2],[106,-2],[107,-5],[108,-17],[109,-16],[110,-16],[111,-15],[112,-14],[113,-14],[114,-14],[115,-14],[116,-14],[117,-14],[118,-14],[119,-14],[120,-14],[121,-13],[122,-14],[123,-14],[124,-14],[125,-14],[126,-14],[127,-14],[128,-14],[129,-14],[130,-13],[131,-13],[132,-13],[133,-12],[134,-11],[135,-11],[136,-11],[137,-11],[138,-8],[139,-7],[140,-5],[141,-11],[142,-8],[143,-8],[144,-8],[145,-8],[146,-9],[147,-9],[148,-9],[149,-8],[150,-8],[151,-8],[152,-8],[153,-8],[154,-8],[155,-8],[156,-8],[157,-8],[158,-8],[159,-8],[160,-7],[161,-7]]},
    "R.Kelly/T.Kelly": {label: "R.Kelly/T.Kelly",data:[[1,-13],[2,-13],[3,-12],[4,-16],[5,-31],[6,-27],[7,-15],[8,-4],[9,-4],[10,-4],[11,-4],[12,-4],[13,-4],[14,-4],[15,-4],[16,-4],[17,-5],[18,-5],[19,-5],[20,-5],[21,-5],[22,-6],[23,-6],[24,-6],[25,-6],[26,-6],[27,-8],[28,-20],[29,-19],[30,-17],[31,-13],[32,-11],[33,-8],[34,-5],[35,-5],[36,-5],[37,-5],[38,-5],[39,-5],[40,-5],[41,-5],[42,-5],[43,-5],[44,-5],[45,-5],[46,-6],[47,-7],[48,-17],[49,-17],[50,-16],[51,-15],[52,-14],[53,-14],[54,-11],[55,-8],[56,-8],[57,-8],[58,-5],[59,-4],[60,-4],[61,-3],[62,-3],[63,-3],[64,-3],[65,-3],[66,-3],[67,-3],[68,-3],[69,-3],[70,-5],[71,-5],[72,-5],[73,-5],[74,-5],[75,-5],[76,-5],[77,-5],[78,-5],[79,-5],[80,-7],[81,-5],[82,-13],[83,-12],[84,-7],[85,-5],[86,-3],[87,-3],[88,-3],[89,-3],[90,-3],[91,-13],[92,-13],[93,-12],[94,-12],[95,-12],[96,-12],[97,-12],[98,-12],[99,-14],[100,-15],[101,-15],[102,-16],[103,-15],[104,-15],[105,-13],[106,-8],[107,-8],[108,-7],[109,-5],[110,-2],[111,-2],[112,-2],[113,-2],[114,-2],[115,-2],[116,-2],[117,-2],[118,-2],[119,-2],[120,-2],[121,-2],[122,-3],[123,-3],[124,-3],[125,-2],[126,-2],[127,-3],[128,-3],[129,-4],[130,-4],[131,-4],[132,-4],[133,-4],[134,-5],[135,-5],[136,-5],[137,-4],[138,-4],[139,-10],[140,-8],[141,-5],[142,-2],[143,-2],[144,-2],[145,-2],[146,-2],[147,-2],[148,-2],[149,-2],[150,-2],[151,-2],[152,-2],[153,-2],[154,-2],[155,-2],[156,-2],[157,-2],[158,-2],[159,-5],[160,-8],[161,-8]]},
    "D.Besnard/G.Ritter": {label: "D.Besnard/G.Ritter",data:[[1,-15],[2,-15],[3,-15],[4,-17],[5,-15],[6,-16],[7,-22],[8,-15],[9,-13],[10,-13],[11,-13],[12,-13],[13,-12],[14,-12],[15,-12],[16,-12],[17,-12],[18,-12],[19,-11],[20,-11],[21,-11],[22,-11],[23,-11],[24,-12],[25,-12],[26,-12],[27,-12],[28,-11],[29,-11],[30,-11],[31,-18],[32,-16],[33,-16],[34,-14],[35,-13],[36,-13],[37,-13],[38,-13],[39,-13],[40,-13],[41,-12],[42,-11],[43,-11],[44,-11],[45,-11],[46,-11],[47,-11],[48,-10],[49,-10],[50,-9],[51,-9],[52,-8],[53,-9],[54,-17],[55,-16],[56,-15],[57,-14],[58,-12],[59,-11],[60,-11],[61,-11],[62,-10],[63,-9],[64,-9],[65,-9],[66,-9],[67,-9],[68,-9],[69,-9],[70,-10],[71,-9],[72,-9],[73,-9],[74,-9],[75,-9],[76,-9],[77,-9],[78,-9],[79,-9],[80,-9],[81,-7],[82,-4],[83,-5],[84,-1],[85,-16],[86,-17],[87,-17],[88,-17],[89,-16],[90,-15],[91,-15],[92,-15],[93,-15],[94,-15],[95,-15],[96,-15],[97,-15],[98,-15],[99,-15],[100,-13],[101,-13],[102,-13],[103,-13],[104,-11],[105,-7],[106,-7],[107,-7],[108,-5],[109,-1],[110,-1],[111,-1],[112,-1],[113,-1],[114,-1],[115,-1],[116,-1],[117,-1],[118,-1],[119,-1],[120,-1],[121,-1],[122,-2],[123,-2],[124,-2],[125,-1],[126,-1],[127,-1],[128,-1],[129,-1],[130,-1],[131,-1],[132,-1],[133,-1],[134,-1],[135,-1],[136,-1],[137,-1],[138,-1],[139,-1],[140,-1],[141,-1],[142,-13],[143,-12],[144,-12],[145,-12],[146,-12],[147,-11],[148,-11],[149,-10],[150,-10],[151,-10],[152,-10],[153,-10],[154,-10],[155,-10],[156,-10],[157,-10],[158,-10],[159,-9],[160,-9],[161,-9]]},
    "T.D'Alberto/A.Thompson": {label: "T.D'Alberto/A.Thompson",data:[[1,-23],[2,-23],[3,-24],[4,-24],[5,-22],[6,-22],[7,-27],[8,-24],[9,-24],[10,-24],[11,-23],[12,-23],[13,-23],[14,-23],[15,-23],[16,-22],[17,-22],[18,-21],[19,-20],[20,-20],[21,-19],[22,-19],[23,-18],[24,-17],[25,-17],[26,-16],[27,-16],[28,-15],[29,-14],[30,-14],[31,-24],[32,-21],[33,-20],[34,-18],[35,-18],[36,-18],[37,-18],[38,-18],[39,-18],[40,-18],[41,-18],[42,-18],[43,-17],[44,-17],[45,-17],[46,-17],[47,-17],[48,-15],[49,-15],[50,-14],[51,-14],[52,-13],[53,-13],[54,-10],[55,-19],[56,-18],[57,-17],[58,-17],[59,-16],[60,-16],[61,-15],[62,-14],[63,-14],[64,-13],[65,-13],[66,-13],[67,-13],[68,-11],[69,-11],[70,-14],[71,-13],[72,-13],[73,-13],[74,-14],[75,-14],[76,-14],[77,-14],[78,-12],[79,-12],[80,-11],[81,-10],[82,-3],[83,-3],[84,-15],[85,-15],[86,-15],[87,-15],[88,-14],[89,-13],[90,-13],[91,-12],[92,-12],[93,-13],[94,-13],[95,-13],[96,-13],[97,-13],[98,-13],[99,-8],[100,-8],[101,-8],[102,-8],[103,-8],[104,-14],[105,-15],[106,-10],[107,-11],[108,-10],[109,-12],[110,-13],[111,-17],[112,-17],[113,-17],[114,-17],[115,-17],[116,-17],[117,-17],[118,-17],[119,-17],[120,-17],[121,-17],[122,-17],[123,-16],[124,-16],[125,-16],[126,-16],[127,-16],[128,-16],[129,-16],[130,-16],[131,-15],[132,-15],[133,-15],[134,-14],[135,-13],[136,-13],[137,-13],[138,-10],[139,-15],[140,-14],[141,-13],[142,-9],[143,-9],[144,-10],[145,-10],[146,-10],[147,-10],[148,-10],[149,-9],[150,-9],[151,-9],[152,-9],[153,-9],[154,-9],[155,-9],[156,-9],[157,-9],[158,-9],[159,-10],[160,-10],[161,-10]]},
    "J.Bright/K.Reindler": {label: "J.Bright/K.Reindler",data:[[1,-32],[2,-32],[3,-32],[4,-32],[5,-32],[6,-32],[7,-31],[8,-31],[9,-31],[10,-31],[11,-31],[12,-31],[13,-31],[14,-31],[15,-31],[16,-31],[17,-31],[18,-31],[19,-31],[20,-31],[21,-31],[22,-31],[23,-31],[24,-30],[25,-30],[26,-30],[27,-30],[28,-30],[29,-29],[30,-28],[31,-26],[32,-24],[33,-23],[34,-30],[35,-30],[36,-30],[37,-30],[38,-30],[39,-30],[40,-29],[41,-29],[42,-29],[43,-29],[44,-29],[45,-29],[46,-29],[47,-29],[48,-29],[49,-29],[50,-28],[51,-28],[52,-28],[53,-27],[54,-25],[55,-24],[56,-24],[57,-24],[58,-23],[59,-22],[60,-27],[61,-27],[62,-27],[63,-27],[64,-27],[65,-26],[66,-26],[67,-26],[68,-26],[69,-26],[70,-24],[71,-23],[72,-22],[73,-22],[74,-22],[75,-22],[76,-22],[77,-20],[78,-25],[79,-24],[80,-21],[81,-20],[82,-19],[83,-20],[84,-24],[85,-23],[86,-23],[87,-22],[88,-21],[89,-20],[90,-20],[91,-20],[92,-20],[93,-20],[94,-20],[95,-20],[96,-20],[97,-20],[98,-20],[99,-21],[100,-21],[101,-21],[102,-21],[103,-21],[104,-21],[105,-20],[106,-20],[107,-20],[108,-19],[109,-19],[110,-19],[111,-18],[112,-18],[113,-18],[114,-18],[115,-18],[116,-18],[117,-18],[118,-18],[119,-18],[120,-18],[121,-16],[122,-15],[123,-17],[124,-17],[125,-17],[126,-17],[127,-17],[128,-17],[129,-17],[130,-17],[131,-17],[132,-17],[133,-17],[134,-17],[135,-15],[136,-15],[137,-15],[138,-15],[139,-14],[140,-13],[141,-12],[142,-14],[143,-14],[144,-14],[145,-14],[146,-13],[147,-12],[148,-12],[149,-11],[150,-11],[151,-11],[152,-11],[153,-11],[154,-11],[155,-11],[156,-11],[157,-11],[158,-11],[159,-11],[160,-11],[161,-11]]},
    "A.Priaulx/D.Reynolds": {label: "A.Priaulx/D.Reynolds",data:[[1,-25],[2,-24],[3,-22],[4,-22],[5,-20],[6,-17],[7,-8],[8,-23],[9,-23],[10,-23],[11,-24],[12,-24],[13,-24],[14,-24],[15,-24],[16,-24],[17,-23],[18,-23],[19,-22],[20,-22],[21,-22],[22,-22],[23,-21],[24,-20],[25,-19],[26,-18],[27,-18],[28,-17],[29,-16],[30,-15],[31,-9],[32,-22],[33,-21],[34,-20],[35,-20],[36,-20],[37,-20],[38,-20],[39,-20],[40,-20],[41,-20],[42,-20],[43,-19],[44,-19],[45,-19],[46,-19],[47,-19],[48,-19],[49,-19],[50,-17],[51,-16],[52,-15],[53,-15],[54,-12],[55,-11],[56,-22],[57,-20],[58,-19],[59,-18],[60,-18],[61,-18],[62,-17],[63,-17],[64,-16],[65,-16],[66,-16],[67,-16],[68,-16],[69,-13],[70,-17],[71,-17],[72,-17],[73,-17],[74,-17],[75,-17],[76,-17],[77,-17],[78,-15],[79,-15],[80,-14],[81,-12],[82,-6],[83,-4],[84,-14],[85,-14],[86,-13],[87,-13],[88,-12],[89,-12],[90,-12],[91,-11],[92,-11],[93,-11],[94,-11],[95,-11],[96,-10],[97,-10],[98,-10],[99,-6],[100,-6],[101,-6],[102,-6],[103,-7],[104,-6],[105,-6],[106,-6],[107,-6],[108,-6],[109,-6],[110,-6],[111,-6],[112,-16],[113,-16],[114,-16],[115,-16],[116,-16],[117,-16],[118,-16],[119,-16],[120,-16],[121,-15],[122,-16],[123,-15],[124,-15],[125,-15],[126,-15],[127,-15],[128,-15],[129,-15],[130,-14],[131,-12],[132,-12],[133,-13],[134,-12],[135,-12],[136,-12],[137,-12],[138,-9],[139,-8],[140,-6],[141,-10],[142,-7],[143,-7],[144,-7],[145,-7],[146,-7],[147,-7],[148,-7],[149,-13],[150,-13],[151,-12],[152,-12],[153,-12],[154,-12],[155,-12],[156,-12],[157,-12],[158,-12],[159,-12],[160,-12],[161,-12]]},
    "A.Davison/S.Van Gisbergen": {label: "A.Davison/S.Van Gisbergen",data:[[1,-7],[2,-7],[3,-6],[4,-6],[5,-6],[6,-8],[7,-19],[8,-9],[9,-8],[10,-8],[11,-8],[12,-8],[13,-8],[14,-8],[15,-8],[16,-8],[17,-8],[18,-8],[19,-8],[20,-8],[21,-8],[22,-8],[23,-8],[24,-8],[25,-8],[26,-8],[27,-7],[28,-7],[29,-6],[30,-6],[31,-2],[32,-1],[33,-7],[34,-6],[35,-6],[36,-6],[37,-6],[38,-6],[39,-6],[40,-6],[41,-6],[42,-6],[43,-6],[44,-6],[45,-6],[46,-5],[47,-5],[48,-5],[49,-5],[50,-4],[51,-4],[52,-4],[53,-4],[54,-3],[55,-2],[56,-1],[57,-1],[58,-7],[59,-6],[60,-6],[61,-6],[62,-6],[63,-6],[64,-6],[65,-6],[66,-6],[67,-6],[68,-6],[69,-6],[70,-2],[71,-2],[72,-2],[73,-2],[74,-2],[75,-2],[76,-2],[77,-2],[78,-2],[79,-2],[80,-1],[81,-3],[82,-16],[83,-15],[84,-10],[85,-7],[86,-6],[87,-5],[88,-5],[89,-6],[90,-6],[91,-4],[92,-4],[93,-4],[94,-4],[95,-4],[96,-4],[97,-3],[98,-3],[99,-1],[100,-1],[101,-1],[102,-1],[103,-1],[104,-1],[105,-1],[106,-1],[107,-1],[108,-1],[109,-17],[110,-17],[111,-16],[112,-15],[113,-15],[114,-15],[115,-15],[116,-15],[117,-15],[118,-15],[119,-15],[120,-15],[121,-14],[122,-9],[123,-9],[124,-9],[125,-9],[126,-9],[127,-9],[128,-9],[129,-10],[130,-11],[131,-16],[132,-16],[133,-16],[134,-16],[135,-14],[136,-14],[137,-14],[138,-14],[139,-13],[140,-12],[141,-14],[142,-10],[143,-13],[144,-13],[145,-13],[146,-14],[147,-13],[148,-13],[149,-12],[150,-12],[151,-13],[152,-13],[153,-14],[154,-14],[155,-14],[156,-13],[157,-13],[158,-13],[159,-13],[160,-13],[161,-13]]},
    "J.Perkins/D.Wood": {label: "J.Perkins/D.Wood",data:[[1,-22],[2,-22],[3,-21],[4,-20],[5,-21],[6,-29],[7,-21],[8,-13],[9,-14],[10,-15],[11,-15],[12,-15],[13,-15],[14,-15],[15,-15],[16,-15],[17,-16],[18,-17],[19,-16],[20,-16],[21,-16],[22,-16],[23,-29],[24,-28],[25,-28],[26,-28],[27,-28],[28,-28],[29,-27],[30,-25],[31,-23],[32,-27],[33,-27],[34,-26],[35,-26],[36,-26],[37,-26],[38,-26],[39,-26],[40,-26],[41,-26],[42,-26],[43,-25],[44,-25],[45,-25],[46,-25],[47,-25],[48,-25],[49,-25],[50,-24],[51,-24],[52,-24],[53,-23],[54,-22],[55,-22],[56,-21],[57,-21],[58,-25],[59,-25],[60,-24],[61,-24],[62,-24],[63,-24],[64,-24],[65,-24],[66,-24],[67,-24],[68,-24],[69,-23],[70,-22],[71,-22],[72,-23],[73,-23],[74,-23],[75,-23],[76,-23],[77,-23],[78,-21],[79,-20],[80,-22],[81,-24],[82,-23],[83,-22],[84,-21],[85,-20],[86,-20],[87,-20],[88,-20],[89,-19],[90,-18],[91,-18],[92,-18],[93,-18],[94,-18],[95,-18],[96,-18],[97,-18],[98,-18],[99,-18],[100,-18],[101,-18],[102,-18],[103,-18],[104,-18],[105,-18],[106,-18],[107,-18],[108,-18],[109,-18],[110,-18],[111,-19],[112,-19],[113,-19],[114,-19],[115,-19],[116,-19],[117,-20],[118,-20],[119,-20],[120,-20],[121,-19],[122,-18],[123,-18],[124,-18],[125,-18],[126,-18],[127,-18],[128,-18],[129,-18],[130,-19],[131,-19],[132,-19],[133,-19],[134,-19],[135,-20],[136,-20],[137,-20],[138,-20],[139,-20],[140,-19],[141,-18],[142,-18],[143,-18],[144,-17],[145,-17],[146,-17],[147,-16],[148,-16],[149,-16],[150,-16],[151,-16],[152,-16],[153,-16],[154,-16],[155,-16],[156,-15],[157,-15],[158,-14],[159,-14],[160,-14]]},
    "R.Ingall/O.Kelly": {label: "R.Ingall/O.Kelly",data:[[1,-8],[2,-8],[3,-8],[4,-7],[5,-7],[6,-7],[7,-18],[8,-8],[9,-7],[10,-7],[11,-7],[12,-7],[13,-7],[14,-7],[15,-7],[16,-7],[17,-6],[18,-6],[19,-6],[20,-6],[21,-6],[22,-5],[23,-5],[24,-5],[25,-5],[26,-5],[27,-5],[28,-5],[29,-5],[30,-5],[31,-17],[32,-15],[33,-13],[34,-8],[35,-8],[36,-8],[37,-8],[38,-8],[39,-8],[40,-8],[41,-8],[42,-8],[43,-8],[44,-8],[45,-9],[46,-9],[47,-9],[48,-8],[49,-8],[50,-7],[51,-7],[52,-7],[53,-7],[54,-15],[55,-14],[56,-13],[57,-12],[58,-10],[59,-9],[60,-9],[61,-9],[62,-8],[63,-8],[64,-8],[65,-8],[66,-8],[67,-8],[68,-8],[69,-8],[70,-9],[71,-8],[72,-8],[73,-8],[74,-8],[75,-8],[76,-8],[77,-8],[78,-8],[79,-8],[80,-8],[81,-6],[82,-26],[83,-26],[84,-25],[85,-24],[86,-24],[87,-24],[88,-23],[89,-23],[90,-22],[91,-22],[92,-21],[93,-21],[94,-21],[95,-21],[96,-21],[97,-21],[98,-21],[99,-20],[100,-20],[101,-20],[102,-20],[103,-20],[104,-20],[105,-23],[106,-22],[107,-22],[108,-22],[109,-21],[110,-21],[111,-21],[112,-21],[113,-21],[114,-20],[115,-20],[116,-20],[117,-19],[118,-19],[119,-19],[120,-19],[121,-18],[122,-22],[123,-20],[124,-20],[125,-20],[126,-20],[127,-19],[128,-19],[129,-19],[130,-18],[131,-18],[132,-18],[133,-18],[134,-18],[135,-16],[136,-16],[137,-16],[138,-16],[139,-16],[140,-16],[141,-15],[142,-15],[143,-15],[144,-15],[145,-15],[146,-15],[147,-19],[148,-18],[149,-18],[150,-18],[151,-18],[152,-18],[153,-18],[154,-18],[155,-18],[156,-17],[157,-17],[158,-15],[159,-15],[160,-15]]},
    "S.Owen/S.Price": {label: "S.Owen/S.Price",data:[[1,-18],[2,-18],[3,-18],[4,-18],[5,-17],[6,-18],[7,-25],[8,-22],[9,-22],[10,-22],[11,-22],[12,-21],[13,-21],[14,-21],[15,-21],[16,-21],[17,-21],[18,-22],[19,-21],[20,-21],[21,-21],[22,-21],[23,-20],[24,-19],[25,-20],[26,-19],[27,-19],[28,-18],[29,-17],[30,-27],[31,-25],[32,-23],[33,-22],[34,-21],[35,-21],[36,-21],[37,-21],[38,-21],[39,-21],[40,-21],[41,-21],[42,-21],[43,-20],[44,-22],[45,-22],[46,-23],[47,-23],[48,-23],[49,-23],[50,-22],[51,-21],[52,-21],[53,-20],[54,-26],[55,-25],[56,-25],[57,-25],[58,-24],[59,-23],[60,-22],[61,-22],[62,-22],[63,-22],[64,-22],[65,-21],[66,-21],[67,-21],[68,-21],[69,-18],[70,-23],[71,-24],[72,-24],[73,-24],[74,-24],[75,-24],[76,-24],[77,-25],[78,-23],[79,-22],[80,-23],[81,-25],[82,-24],[83,-24],[84,-22],[85,-21],[86,-21],[87,-21],[88,-22],[89,-21],[90,-21],[91,-21],[92,-22],[93,-22],[94,-22],[95,-22],[96,-22],[97,-22],[98,-22],[99,-22],[100,-22],[101,-23],[102,-23],[103,-23],[104,-23],[105,-22],[106,-21],[107,-21],[108,-21],[109,-20],[110,-20],[111,-20],[112,-20],[113,-20],[114,-21],[115,-21],[116,-21],[117,-21],[118,-22],[119,-23],[120,-23],[121,-22],[122,-21],[123,-22],[124,-22],[125,-22],[126,-22],[127,-22],[128,-22],[129,-22],[130,-22],[131,-21],[132,-21],[133,-21],[134,-21],[135,-19],[136,-19],[137,-19],[138,-19],[139,-19],[140,-18],[141,-17],[142,-17],[143,-17],[144,-18],[145,-18],[146,-18],[147,-17],[148,-17],[149,-17],[150,-17],[151,-17],[152,-17],[153,-17],[154,-17],[155,-17],[156,-16],[157,-16],[158,-16],[159,-16],[160,-16]]},
    "M.McNally/T.Ricciardello": {label: "M.McNally/T.Ricciardello",data:[[1,-24],[2,-31],[3,-31],[4,-30],[5,-28],[6,-24],[7,-26],[8,-25],[9,-25],[10,-25],[11,-25],[12,-25],[13,-25],[14,-25],[15,-27],[16,-27],[17,-27],[18,-27],[19,-26],[20,-26],[21,-26],[22,-26],[23,-25],[24,-25],[25,-25],[26,-24],[27,-26],[28,-25],[29,-25],[30,-24],[31,-29],[32,-28],[33,-28],[34,-27],[35,-27],[36,-27],[37,-27],[38,-27],[39,-27],[40,-27],[41,-27],[42,-27],[43,-27],[44,-27],[45,-27],[46,-27],[47,-27],[48,-27],[49,-27],[50,-26],[51,-26],[52,-26],[53,-24],[54,-23],[55,-27],[56,-27],[57,-27],[58,-27],[59,-27],[60,-26],[61,-26],[62,-26],[63,-26],[64,-26],[65,-25],[66,-25],[67,-25],[68,-25],[69,-24],[70,-26],[71,-26],[72,-26],[73,-26],[74,-26],[75,-26],[76,-26],[77,-24],[78,-26],[79,-23],[80,-19],[81,-19],[82,-18],[83,-17],[84,-17],[85,-17],[86,-16],[87,-16],[88,-16],[89,-15],[90,-16],[91,-16],[92,-16],[93,-16],[94,-16],[95,-16],[96,-16],[97,-16],[98,-16],[99,-16],[100,-17],[101,-17],[102,-17],[103,-17],[104,-17],[105,-16],[106,-11],[107,-10],[108,-9],[109,-8],[110,-7],[111,-7],[112,-4],[113,-4],[114,-4],[115,-6],[116,-6],[117,-6],[118,-6],[119,-6],[120,-6],[121,-7],[122,-11],[123,-11],[124,-12],[125,-12],[126,-12],[127,-12],[128,-12],[129,-12],[130,-12],[131,-11],[132,-11],[133,-11],[134,-10],[135,-10],[136,-10],[137,-10],[138,-7],[139,-6],[140,-4],[141,-3],[142,-12],[143,-11],[144,-11],[145,-11],[146,-11],[147,-14],[148,-14],[149,-14],[150,-14],[151,-14],[152,-14],[153,-13],[154,-13],[155,-13],[156,-18],[157,-18],[158,-17],[159,-17],[160,-17]]},
    "L.Tander/D.Wall": {label: "L.Tander/D.Wall",data:[[1,-27],[2,-26],[3,-28],[4,-28],[5,-24],[6,-20],[7,-9],[8,-26],[9,-26],[10,-26],[11,-26],[12,-26],[13,-26],[14,-26],[15,-25],[16,-25],[17,-25],[18,-25],[19,-24],[20,-24],[21,-24],[22,-24],[23,-24],[24,-24],[25,-24],[26,-23],[27,-23],[28,-23],[29,-21],[30,-20],[31,-28],[32,-26],[33,-26],[34,-25],[35,-25],[36,-25],[37,-25],[38,-25],[39,-25],[40,-25],[41,-25],[42,-25],[43,-26],[44,-26],[45,-26],[46,-26],[47,-26],[48,-26],[49,-26],[50,-25],[51,-25],[52,-25],[53,-25],[54,-27],[55,-26],[56,-26],[57,-26],[58,-26],[59,-26],[60,-25],[61,-25],[62,-25],[63,-25],[64,-25],[65,-23],[66,-23],[67,-23],[68,-23],[69,-21],[70,-25],[71,-25],[72,-25],[73,-25],[74,-25],[75,-25],[76,-25],[77,-26],[78,-24],[79,-25],[80,-24],[81,-26],[82,-25],[83,-25],[84,-23],[85,-22],[86,-22],[87,-23],[88,-24],[89,-22],[90,-23],[91,-23],[92,-23],[93,-23],[94,-23],[95,-23],[96,-23],[97,-23],[98,-23],[99,-23],[100,-23],[101,-22],[102,-22],[103,-22],[104,-22],[105,-21],[106,-23],[107,-23],[108,-23],[109,-23],[110,-23],[111,-23],[112,-23],[113,-22],[114,-22],[115,-22],[116,-22],[117,-22],[118,-21],[119,-21],[120,-21],[121,-21],[122,-20],[123,-21],[124,-21],[125,-21],[126,-21],[127,-21],[128,-21],[129,-21],[130,-20],[131,-20],[132,-20],[133,-20],[134,-20],[135,-18],[136,-18],[137,-18],[138,-18],[139,-18],[140,-15],[141,-19],[142,-19],[143,-19],[144,-19],[145,-19],[146,-19],[147,-18],[148,-19],[149,-19],[150,-19],[151,-19],[152,-19],[153,-19],[154,-19],[155,-19],[156,-19],[157,-19],[158,-18],[159,-18],[160,-18]]},
    "D.Gaunt/J.McIntyre": {label: "D.Gaunt/J.McIntyre",data:[[1,-19],[2,-19],[3,-19],[4,-19],[5,-18],[6,-15],[7,-6],[8,-19],[9,-18],[10,-18],[11,-19],[12,-19],[13,-19],[14,-19],[15,-19],[16,-19],[17,-20],[18,-20],[19,-19],[20,-19],[21,-20],[22,-20],[23,-19],[24,-21],[25,-21],[26,-20],[27,-20],[28,-19],[29,-18],[30,-16],[31,-12],[32,-10],[33,-9],[34,-22],[35,-22],[36,-22],[37,-22],[38,-22],[39,-22],[40,-22],[41,-22],[42,-22],[43,-21],[44,-20],[45,-20],[46,-20],[47,-20],[48,-20],[49,-22],[50,-21],[51,-20],[52,-18],[53,-18],[54,-16],[55,-15],[56,-14],[57,-13],[58,-14],[59,-21],[60,-21],[61,-21],[62,-21],[63,-21],[64,-21],[65,-20],[66,-20],[67,-20],[68,-20],[69,-22],[70,-20],[71,-20],[72,-20],[73,-20],[74,-20],[75,-20],[76,-20],[77,-21],[78,-20],[79,-21],[80,-26],[81,-23],[82,-22],[83,-21],[84,-20],[85,-19],[86,-19],[87,-19],[88,-18],[89,-17],[90,-17],[91,-17],[92,-17],[93,-17],[94,-17],[95,-17],[96,-17],[97,-17],[98,-17],[99,-17],[100,-16],[101,-16],[102,-14],[103,-14],[104,-12],[105,-11],[106,-17],[107,-17],[108,-16],[109,-15],[110,-14],[111,-13],[112,-11],[113,-11],[114,-11],[115,-11],[116,-12],[117,-12],[118,-12],[119,-12],[120,-12],[121,-11],[122,-5],[123,-5],[124,-6],[125,-6],[126,-6],[127,-6],[128,-8],[129,-8],[130,-8],[131,-8],[132,-9],[133,-10],[134,-13],[135,-17],[136,-17],[137,-17],[138,-17],[139,-17],[140,-17],[141,-16],[142,-16],[143,-16],[144,-16],[145,-16],[146,-16],[147,-15],[148,-15],[149,-15],[150,-15],[151,-15],[152,-15],[153,-15],[154,-15],[155,-15],[156,-14],[157,-14],[158,-19],[159,-19],[160,-19]]},
    "B.Collins/N.Pretty": {label: "B.Collins/N.Pretty",data:[[1,-21],[2,-21],[3,-23],[4,-23],[5,-26],[6,-31],[7,-24],[8,-20],[9,-19],[10,-20],[11,-21],[12,-22],[13,-22],[14,-22],[15,-22],[16,-23],[17,-24],[18,-24],[19,-23],[20,-23],[21,-23],[22,-23],[23,-22],[24,-22],[25,-22],[26,-21],[27,-21],[28,-21],[29,-20],[30,-18],[31,-14],[32,-14],[33,-25],[34,-24],[35,-24],[36,-24],[37,-24],[38,-24],[39,-24],[40,-24],[41,-24],[42,-24],[43,-24],[44,-24],[45,-24],[46,-24],[47,-24],[48,-24],[49,-24],[50,-23],[51,-23],[52,-23],[53,-22],[54,-21],[55,-21],[56,-20],[57,-19],[58,-20],[59,-24],[60,-23],[61,-23],[62,-23],[63,-23],[64,-23],[65,-22],[66,-22],[67,-22],[68,-22],[69,-25],[70,-21],[71,-21],[72,-21],[73,-21],[74,-21],[75,-21],[76,-21],[77,-22],[78,-22],[79,-26],[80,-25],[81,-22],[82,-21],[83,-19],[84,-19],[85,-18],[86,-18],[87,-18],[88,-19],[89,-18],[90,-19],[91,-19],[92,-19],[93,-19],[94,-19],[95,-19],[96,-19],[97,-19],[98,-19],[99,-19],[100,-19],[101,-19],[102,-19],[103,-19],[104,-19],[105,-19],[106,-19],[107,-19],[108,-20],[109,-22],[110,-22],[111,-22],[112,-22],[113,-23],[114,-23],[115,-23],[116,-23],[117,-23],[118,-23],[119,-22],[120,-22],[121,-20],[122,-19],[123,-19],[124,-19],[125,-19],[126,-19],[127,-20],[128,-20],[129,-20],[130,-21],[131,-22],[132,-22],[133,-22],[134,-22],[135,-21],[136,-21],[137,-21],[138,-21],[139,-22],[140,-20],[141,-20],[142,-20],[143,-20],[144,-20],[145,-20],[146,-20],[147,-20],[148,-21],[149,-21],[150,-21],[151,-21],[152,-21],[153,-20],[154,-20],[155,-20],[156,-20]]},
    "C.Baird/P.Dumbrell": {label: "C.Baird/P.Dumbrell",data:[[1,-4],[2,-4],[3,-4],[4,-4],[5,-4],[6,-2],[7,-1],[8,-10],[9,-9],[10,-9],[11,-9],[12,-12],[13,-13],[14,-13],[15,-13],[16,-13],[17,-13],[18,-13],[19,-12],[20,-12],[21,-12],[22,-12],[23,-12],[24,-11],[25,-11],[26,-11],[27,-11],[28,-10],[29,-10],[30,-9],[31,-4],[32,-3],[33,-14],[34,-11],[35,-11],[36,-12],[37,-12],[38,-11],[39,-10],[40,-10],[41,-10],[42,-10],[43,-10],[44,-10],[45,-10],[46,-10],[47,-10],[48,-9],[49,-9],[50,-8],[51,-8],[52,-9],[53,-8],[54,-7],[55,-4],[56,-3],[57,-3],[58,-11],[59,-10],[60,-10],[61,-10],[62,-9],[63,-11],[64,-20],[65,-27],[66,-27],[67,-27],[68,-27],[69,-27],[70,-27],[71,-27],[72,-27],[73,-27],[74,-27],[75,-27],[76,-27],[77,-27],[78,-27],[79,-27],[80,-27],[81,-27],[82,-27],[83,-27],[84,-27],[85,-26],[86,-26],[87,-26],[88,-26],[89,-25],[90,-25],[91,-25],[92,-25],[93,-25],[94,-24],[95,-24],[96,-24],[97,-24],[98,-24],[99,-24],[100,-24],[101,-24],[102,-25],[103,-25],[104,-25],[105,-25],[106,-25],[107,-25],[108,-25],[109,-25],[110,-25],[111,-25],[112,-25],[113,-25],[114,-25],[115,-25],[116,-25],[117,-25],[118,-25],[119,-25],[120,-25],[121,-24],[122,-24],[123,-24],[124,-24],[125,-24],[126,-24],[127,-24],[128,-24],[129,-24],[130,-24],[131,-24],[132,-24],[133,-24],[134,-24],[135,-23],[136,-23],[137,-22],[138,-22],[139,-21],[140,-22],[141,-22],[142,-22],[143,-22],[144,-22],[145,-22],[146,-22],[147,-22],[148,-22],[149,-22],[150,-22],[151,-22],[152,-22],[153,-21]]},
    "D.Assaillit/B.Lowe": {label: "D.Assaillit/B.Lowe",data:[[1,-26],[2,-25],[3,-25],[4,-26],[5,-23],[6,-21],[7,-10],[8,-29],[9,-29],[10,-29],[11,-29],[12,-29],[13,-29],[14,-29],[15,-29],[16,-29],[17,-29],[18,-29],[19,-28],[20,-28],[21,-28],[22,-28],[23,-28],[24,-31],[25,-31],[26,-31],[27,-31],[28,-31],[29,-31],[30,-31],[31,-31],[32,-31],[33,-31],[34,-31],[35,-31],[36,-31],[37,-31],[38,-31],[39,-31],[40,-31],[41,-31],[42,-30],[43,-30],[44,-30],[45,-30],[46,-30],[47,-30],[48,-30],[49,-30],[50,-29],[51,-29],[52,-29],[53,-29],[54,-28],[55,-28],[56,-28],[57,-28],[58,-28],[59,-28],[60,-28],[61,-28],[62,-28],[63,-28],[64,-28],[65,-28],[66,-28],[67,-28],[68,-28],[69,-28],[70,-28],[71,-28],[72,-28],[73,-28],[74,-28],[75,-28],[76,-28],[77,-28],[78,-28],[79,-28],[80,-28],[81,-28],[82,-28],[83,-28],[84,-28],[85,-27],[86,-27],[87,-27],[88,-27],[89,-26],[90,-26],[91,-26],[92,-26],[93,-26],[94,-26],[95,-26],[96,-26],[97,-26],[98,-26],[99,-26],[100,-26],[101,-26],[102,-26],[103,-26],[104,-26],[105,-26],[106,-26],[107,-26],[108,-26],[109,-26],[110,-26],[111,-26],[112,-26],[113,-26],[114,-26],[115,-26],[116,-26],[117,-26],[118,-26],[119,-26],[120,-26],[121,-25],[122,-25],[123,-25],[124,-25],[125,-25],[126,-25],[127,-25],[128,-25],[129,-25],[130,-25],[131,-25],[132,-25],[133,-25],[134,-25],[135,-24],[136,-24],[137,-24],[138,-24],[139,-24],[140,-23],[141,-23],[142,-23],[143,-23],[144,-23],[145,-23],[146,-23],[147,-23],[148,-23],[149,-23],[150,-23],[151,-23]]},
    "A.Jones/B.Jones": {label: "A.Jones/B.Jones",data:[[1,-17],[2,-17],[3,-17],[4,-15],[5,-16],[6,-14],[7,-7],[8,-21],[9,-21],[10,-21],[11,-20],[12,-20],[13,-20],[14,-20],[15,-20],[16,-20],[17,-19],[18,-19],[19,-18],[20,-18],[21,-18],[22,-18],[23,-17],[24,-18],[25,-18],[26,-17],[27,-17],[28,-16],[29,-15],[30,-13],[31,-8],[32,-20],[33,-19],[34,-19],[35,-19],[36,-19],[37,-19],[38,-19],[39,-19],[40,-19],[41,-19],[42,-19],[43,-18],[44,-18],[45,-18],[46,-18],[47,-18],[48,-18],[49,-18],[50,-18],[51,-17],[52,-16],[53,-16],[54,-13],[55,-12],[56,-12],[57,-22],[58,-21],[59,-19],[60,-19],[61,-19],[62,-18],[63,-18],[64,-17],[65,-17],[66,-17],[67,-17],[68,-17],[69,-14],[70,-7],[71,-15],[72,-15],[73,-15],[74,-15],[75,-15],[76,-15],[77,-15],[78,-13],[79,-13],[80,-15],[81,-17],[82,-11],[83,-8],[84,-3],[85,-2],[86,-4],[87,-4],[88,-4],[89,-4],[90,-4],[91,-3],[92,-3],[93,-3],[94,-3],[95,-3],[96,-3],[97,-4],[98,-4],[99,-11],[100,-11],[101,-11],[102,-10],[103,-10],[104,-10],[105,-17],[106,-14],[107,-14],[108,-13],[109,-11],[110,-10],[111,-10],[112,-7],[113,-8],[114,-8],[115,-8],[116,-8],[117,-8],[118,-8],[119,-11],[120,-11],[121,-10],[122,-13],[123,-13],[124,-13],[125,-13],[126,-13],[127,-13],[128,-13],[129,-13],[130,-15],[131,-14],[132,-14],[133,-14],[134,-15],[135,-25],[136,-25],[137,-25],[138,-25],[139,-25],[140,-24],[141,-24],[142,-24],[143,-24],[144,-24],[145,-24]]},
    "J.Courtney/S.Johnson": {label: "J.Courtney/S.Johnson",data:[[1,-10],[2,-10],[3,-9],[4,-9],[5,-13],[6,-26],[7,-14],[8,-3],[9,-3],[10,-3],[11,-3],[12,-3],[13,-3],[14,-3],[15,-3],[16,-3],[17,-3],[18,-3],[19,-3],[20,-3],[21,-3],[22,-3],[23,-3],[24,-3],[25,-3],[26,-3],[27,-3],[28,-3],[29,-3],[30,-3],[31,-11],[32,-9],[33,-6],[34,-4],[35,-4],[36,-4],[37,-4],[38,-4],[39,-4],[40,-4],[41,-4],[42,-4],[43,-4],[44,-4],[45,-4],[46,-4],[47,-4],[48,-4],[49,-3],[50,-3],[51,-3],[52,-3],[53,-3],[54,-4],[55,-10],[56,-10],[57,-10],[58,-8],[59,-7],[60,-7],[61,-7],[62,-7],[63,-7],[64,-7],[65,-7],[66,-7],[67,-7],[68,-7],[69,-7],[70,-6],[71,-6],[72,-6],[73,-6],[74,-6],[75,-6],[76,-6],[77,-6],[78,-6],[79,-6],[80,-4],[81,-15],[82,-10],[83,-7],[84,-16],[85,-12],[86,-11],[87,-9],[88,-15],[89,-27],[90,-27],[91,-27],[92,-27],[93,-27],[94,-27],[95,-27],[96,-27],[97,-27],[98,-27],[99,-27],[100,-27],[101,-27],[102,-27],[103,-27],[104,-27],[105,-27],[106,-27],[107,-27],[108,-27],[109,-27],[110,-27],[111,-27],[112,-27],[113,-27],[114,-27],[115,-27],[116,-27],[117,-27],[118,-27],[119,-27],[120,-27],[121,-26],[122,-26],[123,-26],[124,-26],[125,-26],[126,-26],[127,-26],[128,-26],[129,-26],[130,-26],[131,-26]]},
    "A.Simonsen/J.Thompson": {label: "A.Simonsen/J.Thompson",data:[[1,-12],[2,-12],[3,-11],[4,-11],[5,-10],[6,-6],[7,-3],[8,-18],[9,-17],[10,-17],[11,-17],[12,-17],[13,-17],[14,-17],[15,-16],[16,-16],[17,-15],[18,-15],[19,-14],[20,-15],[21,-15],[22,-15],[23,-15],[24,-15],[25,-15],[26,-27],[27,-27],[28,-27],[29,-26],[30,-23],[31,-20],[32,-18],[33,-17],[34,-16],[35,-17],[36,-17],[37,-17],[38,-17],[39,-17],[40,-17],[41,-17],[42,-17],[43,-16],[44,-16],[45,-16],[46,-16],[47,-16],[48,-16],[49,-16],[50,-15],[51,-22],[52,-22],[53,-21],[54,-20],[55,-20],[56,-19],[57,-18],[58,-18],[59,-17],[60,-17],[61,-17],[62,-16],[63,-16],[64,-15],[65,-15],[66,-15],[67,-15],[68,-15],[69,-20],[70,-19],[71,-19],[72,-19],[73,-19],[74,-19],[75,-19],[76,-19],[77,-19],[78,-19],[79,-19],[80,-20],[81,-21],[82,-20],[83,-23],[84,-26],[85,-25],[86,-25],[87,-25],[88,-25],[89,-24],[90,-24],[91,-24],[92,-24],[93,-24],[94,-25],[95,-25],[96,-25],[97,-25],[98,-25],[99,-25],[100,-25],[101,-25],[102,-24],[103,-24],[104,-24],[105,-24],[106,-24],[107,-24],[108,-24],[109,-24],[110,-24],[111,-24],[112,-24],[113,-24],[114,-24],[115,-24],[116,-24],[117,-24],[118,-24],[119,-24],[120,-24],[121,-23],[122,-23],[123,-23],[124,-23],[125,-23],[126,-23],[127,-23],[128,-23],[129,-23],[130,-23],[131,-23],[132,-23],[133,-23],[134,-23],[135,-22],[136,-22],[137,-23],[138,-23],[139,-23],[140,-21],[141,-21],[142,-21],[143,-21],[144,-21],[145,-21],[146,-21],[147,-21],[148,-20],[149,-20],[150,-20],[151,-20],[152,-20]]},
    "D.Canto/L.Youlden": {label: "D.Canto/L.Youlden",data:[[1,-16],[2,-16],[3,-16],[4,-14],[5,-14],[6,-10],[7,-5],[8,-17],[9,-16],[10,-16],[11,-16],[12,-16],[13,-16],[14,-16],[15,-17],[16,-18],[17,-18],[18,-18],[19,-17],[20,-17],[21,-17],[22,-17],[23,-16],[24,-16],[25,-16],[26,-15],[27,-15],[28,-14],[29,-13],[30,-12],[31,-6],[32,-5],[33,-2],[34,-15],[35,-15],[36,-15],[37,-16],[38,-16],[39,-16],[40,-16],[41,-16],[42,-16],[43,-15],[44,-15],[45,-15],[46,-15],[47,-15],[48,-14],[49,-14],[50,-13],[51,-12],[52,-12],[53,-11],[54,-8],[55,-5],[56,-5],[57,-5],[58,-3],[59,-13],[60,-13],[61,-13],[62,-12],[63,-12],[64,-11],[65,-11],[66,-11],[67,-11],[68,-12],[69,-15],[70,-12],[71,-11],[72,-11],[73,-12],[74,-12],[75,-12],[76,-12],[77,-13],[78,-16],[79,-16],[80,-17],[81,-14],[82,-15],[83,-11],[84,-6],[85,-6],[86,-7],[87,-7],[88,-11],[89,-11],[90,-10],[91,-9],[92,-9],[93,-9],[94,-9],[95,-9],[96,-9],[97,-9],[98,-9],[99,-13],[100,-12],[101,-12],[102,-11],[103,-11],[104,-9],[105,-10],[106,-13],[107,-13],[108,-12],[109,-10],[110,-9],[111,-9],[112,-6],[113,-6],[114,-6],[115,-5],[116,-5],[117,-5],[118,-5],[119,-5],[120,-5],[121,-5],[122,-10],[123,-10],[124,-10],[125,-10],[126,-10],[127,-10],[128,-10],[129,-11],[130,-10],[131,-10],[132,-10],[133,-9],[134,-9],[135,-9],[136,-9],[137,-9],[138,-6],[139,-5]]},
    "F.Coulthard/M.Patrizi": {label: "F.Coulthard/M.Patrizi",data:[[1,-9],[2,-9],[3,-10],[4,-10],[5,-9],[6,-12],[7,-17],[8,-7],[9,-6],[10,-6],[11,-6],[12,-6],[13,-6],[14,-6],[15,-6],[16,-6],[17,-7],[18,-7],[19,-7],[20,-7],[21,-7],[22,-7],[23,-7],[24,-7],[25,-7],[26,-7],[27,-6],[28,-6],[29,-7],[30,-19],[31,-16],[32,-13],[33,-11],[34,-9],[35,-9],[36,-9],[37,-9],[38,-10],[39,-11],[40,-11],[41,-11],[42,-12],[43,-12],[44,-12],[45,-12],[46,-12],[47,-12],[48,-11],[49,-11],[50,-10],[51,-10],[52,-10],[53,-10],[54,-18],[55,-17],[56,-16],[57,-15],[58,-13],[59,-12],[60,-12],[61,-12],[62,-11],[63,-10],[64,-10],[65,-10],[66,-10],[67,-10],[68,-10],[69,-10],[70,-15],[71,-14],[72,-14],[73,-14],[74,-13],[75,-13],[76,-13],[77,-12],[78,-11],[79,-11],[80,-12],[81,-9],[82,-8],[83,-14],[84,-9],[85,-9],[86,-9],[87,-11],[88,-9],[89,-8],[90,-8],[91,-7],[92,-7],[93,-8],[94,-8],[95,-8],[96,-8],[97,-8],[98,-8],[99,-4],[100,-4],[101,-4],[102,-5],[103,-5],[104,-8],[105,-9],[106,-16],[107,-16],[108,-14],[109,-13],[110,-11],[111,-11],[112,-8],[113,-7],[114,-7],[115,-7],[116,-7],[117,-7],[118,-7],[119,-7],[120,-7]]},
    "W.Luff/J.Webb": {label: "W.Luff/J.Webb",data:[[1,-29],[2,-28],[3,-27],[4,-25],[5,-27],[6,-30],[7,-23],[8,-16],[9,-15],[10,-14],[11,-14],[12,-14],[13,-14],[14,-14],[15,-14],[16,-14],[17,-14],[18,-14],[19,-13],[20,-13],[21,-13],[22,-13],[23,-13],[24,-13],[25,-13],[26,-13],[27,-13],[28,-13],[29,-24],[30,-22],[31,-19],[32,-17],[33,-15],[34,-13],[35,-14],[36,-14],[37,-14],[38,-14],[39,-15],[40,-15],[41,-15],[42,-15],[43,-14],[44,-14],[45,-14],[46,-14],[47,-14],[48,-13],[49,-13],[50,-12],[51,-13],[52,-20],[53,-19],[54,-19],[55,-18],[56,-17],[57,-16],[58,-16],[59,-14],[60,-14],[61,-14],[62,-13],[63,-13],[64,-12],[65,-12],[66,-12],[67,-12],[68,-13],[69,-19],[70,-18],[71,-18],[72,-18],[73,-18],[74,-18],[75,-18],[76,-18],[77,-18],[78,-18],[79,-18],[80,-18],[81,-18],[82,-17],[83,-18],[84,-18]]},
    "T.Douglas/S.Walter": {label: "T.Douglas/S.Walter",data:[[1,-31],[2,-30],[3,-30],[4,-31],[5,-29],[6,-25],[7,-30],[8,-30],[9,-30],[10,-30],[11,-30],[12,-30],[13,-30],[14,-30],[15,-30],[16,-30],[17,-30],[18,-30],[19,-30],[20,-29],[21,-29],[22,-29],[23,-27],[24,-27],[25,-27],[26,-25],[27,-24],[28,-26],[29,-30],[30,-30],[31,-30],[32,-29],[33,-29],[34,-28],[35,-28],[36,-28],[37,-28],[38,-28],[39,-29],[40,-30],[41,-30],[42,-31],[43,-31],[44,-31],[45,-31],[46,-31],[47,-31],[48,-31],[49,-31],[50,-30],[51,-30],[52,-30],[53,-30],[54,-29],[55,-29],[56,-29],[57,-29],[58,-29],[59,-29],[60,-29],[61,-29],[62,-29],[63,-29],[64,-29],[65,-29],[66,-29],[67,-29],[68,-29],[69,-29],[70,-29],[71,-29],[72,-29],[73,-29],[74,-29],[75,-29],[76,-29],[77,-29],[78,-29],[79,-29],[80,-29],[81,-29],[82,-29],[83,-29],[84,-29]]},
    "T.Bayliss/D.Fiore": {label: "T.Bayliss/D.Fiore",data:[[1,-30],[2,-29],[3,-29],[4,-29],[5,-25],[6,-23],[7,-29],[8,-28],[9,-28],[10,-27],[11,-27],[12,-27],[13,-27],[14,-28],[15,-28],[16,-28],[17,-28],[18,-28],[19,-27],[20,-27],[21,-27],[22,-27],[23,-26],[24,-26],[25,-26],[26,-26],[27,-25],[28,-24],[29,-23],[30,-21],[31,-21],[32,-30],[33,-30],[34,-29],[35,-29],[36,-29],[37,-29],[38,-29],[39,-28],[40,-28],[41,-28],[42,-28],[43,-28],[44,-28],[45,-28],[46,-28],[47,-28],[48,-28],[49,-28],[50,-27],[51,-27],[52,-27],[53,-28],[54,-30],[55,-30],[56,-30],[57,-30],[58,-30],[59,-30]]},
    "S.Richards/M.Winterbottom": {label: "S.Richards/M.Winterbottom",data:[[1,-2],[2,-2],[3,-2],[4,-2],[5,-2],[6,-3],[7,-13],[8,-2],[9,-2],[10,-2],[11,-2],[12,-2],[13,-2],[14,-2],[15,-2],[16,-2],[17,-2],[18,-2],[19,-2],[20,-2],[21,-2],[22,-2],[23,-2],[24,-2],[25,-2],[26,-2],[27,-2],[28,-2],[29,-2],[30,-2],[31,-1],[32,-7],[33,-4],[34,-2],[35,-2],[36,-2],[37,-2],[38,-2],[39,-2],[40,-2],[41,-2],[42,-3],[43,-3],[44,-3],[45,-3],[46,-3],[47,-3],[48,-3],[49,-4]]},
    "D. Sieders/A. Fisher": {label: "D. Sieders/A. Fisher",data:[[1,-28],[2,-27],[3,-26],[4,-27],[5,-30],[6,-28],[7,-32],[8,-32],[9,-32],[10,-32],[11,-32],[12,-32],[13,-32],[14,-32],[15,-32],[16,-32],[17,-32],[18,-32],[19,-32],[20,-32],[21,-32],[22,-32]]}
    };

    // hard-code color indices to prevent them from shifting as
    // countries are turned on/off
    var i = 0;
    $.each(datasets, function(key, val) {
	val.color = "#393939";
	++i;
    });
	
    var graph = $("#graph");
    graph.append('<div id="laps" style="position:absolute;left:375px;top:600px;font-size:smaller;font-weight:bold">Laps</div>');
    graph.append('<div id="ranking" style="position:absolute;left:10px;top:300px;font-size:smaller;font-weight:bold">Ranking</div>');
	
    // insert checkboxes 
    var choiceContainer = $("#choices");
    $.each(datasets, function(key, val) {
	choiceContainer.append('<div style="float:left;width:240px;"><input type="checkbox" class="drivers" name="' + key +
			       '" checked="checked" id="id' + key + '">' +
			       '<label class="drivers" for="id' + key + '">'
				+ val.label + '</label></div>');
    });
	
    choiceContainer.find("input").click(plotAccordingToChoices);

        
    function safetyCars(axes) {
	var markings = [];
	var i = axes.xaxis.min;
	
	var s = false;
	var f = 0;
	
	do {
	    var e = false;
	    e = (i >= 2 && i <= 2)?true:e;
	    e = (i >= 31 && i <= 31)?true:e;
	    e = (i >= 57 && i <= 57)?true:e;
	    e = (i >= 69 && i <= 70)?true:e;
	    //e = (i >= 78 && i <= 79)?true:e;
	    e = (i >= 99 && i <= 100)?true:e;
	    e = (i >= 121 && i <= 122)?true:e;
	    e = (i >= 141 && i <= 142)?true:e;
	    e = (i >= 157 && i <= 158)?true:e;

	    if(e == true && s == false){ // start
		f = i;
		s = true;
	    }else if(e == s){
		//do nothing
	    }else if(e == false && s == true){ //end
		markings.push({ xaxis: { from: f, to:  i}, color: "#FFFF00" });
		s = false;
	    }
	    i++;
	} while (i < axes.xaxis.max);
	return markings;
    }

    
    function plotAccordingToChoices() {
	var d = [];

	choiceContainer.find("input:checked").each(function () {
	    var key = $(this).attr("name");
	    if (key && datasets[key]){
		d.push(datasets[key]);
	    }
	});
	
	var options = {
		grid: {borderWidth: 0, show:false, hoverable: true, clickable: true,markings: safetyCars },
		shadowSize: 0,
		lines: { show: true, lineWidth: 1},
		color: "#cc0000",
		yaxis: { min: -34, max: -1,tickSize: 1, tickFormatter: (function formatter(val, axis) { return -val; }) },
		xaxis: { min: 1, max: 161, tickDecimals: 0 },
		legend: { show:false } 
	};

	if (d.length == 0){
	    d = [{label: "",data:[[0,0]]}];
	}
	
	
	var placeholder = $("#placeholder");
	var plot = $.plot(placeholder, d, options);
	var previousSeries = null;
	var previousPoint = null;

	$("#placeholder").bind("plothover", function (event, pos, item) {
	    if (d.length > 0){
		if (item) {
		    if (previousSeries != item.series) {
			if(previousSeries != null){
			    previousSeries.lines.lineWidth = 1;
			    previousSeries.color = "#393939";
			}
			previousSeries = item.series;
			item.series.lines.lineWidth = 3;
			item.series.color = "#cc0000";
			plot.draw();
		    }
			
		    if (previousPoint != item.datapoint) {
			    previousPoint = item.datapoint;
			    $("#tooltip").remove();
			    var x = item.datapoint[0].toFixed(0), y = -item.datapoint[1].toFixed(0);
			    showTooltip(item.pageX, item.pageY, item.series.label + ": Ranked " + y + ", Lap " + x);
		    }
		}else{
		    $("#tooltip").remove();
		    previousPoint = null;    
		    if(previousSeries != null){
			previousSeries.lines.lineWidth = 1;
			previousSeries.color = "#393939";
		    }
		    plot.draw();
		}
	    }
	});
	    
	function showTooltip(x, y, contents) {
	    $('<div id="tooltip">' + contents + '</div>').css( {
		position: 'absolute',
		display: 'none',
		top: y + 5,
		left: x + 5,
		border: '1px solid #4169E1',
		padding: '2px',
		'background-color': '#F0F8FF'
	    }).appendTo("body").fadeIn(200);
	}

    }
    plotAccordingToChoices();
    
    
    $("#checkall").click(
	function(){
	    $("input.drivers").each(function () {
		this.checked = true;
	    });
	    plotAccordingToChoices();
	}
    )
    
    $("#uncheckall").click(
	function(){
	    $("input.drivers").each(function () {
		this.checked = false;
	    });
	    plotAccordingToChoices()
	}
    )
});

