lg = new Array() ; loaded = 'yes' ; lg[1] = [ {winner:''}, [ { totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:'Crokey Dokey'},'', '', '2-4', '', '4-2', '1-4', '', '' ], [ {totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:'The Old Chesnuts'},'','', '3-4', '4-2', '4-2', '3-4', '2-4', '' ], [ {totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:'The Black Pearls'},'','','', '4-1', '4-0', '2-4', '4-3', '' ], [ {totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:'EMANON'},'','','','', '4-2', '3-4', '', '' ], [ {totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:'MOODYS'},'','','','','', '2-4', '4-0', '' ], [ {totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:'Cucumber Sandwiches'},'','','','','','', '4-0', '' ], [ {totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:'Croquet Monsieur’s'},'','','','','','','', '' ], [ {totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:''},'','','','','','','',''] ] ; fillArray(1) ; lg[2] = [ {winner:''}, [ { totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:'Super Hoopers'},'', '', '', '1-4', '4-2', '3-4', '', '1-4' ], [ {totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:'Masters of the Hoops'},'','', '', '4-1', '', '0-4', '', '' ], [ {totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:'Legal Eagles'},'','','', '0-4', '0-4', '', '', '' ], [ {totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:'FIELDINGS'},'','','','', '3-4', '2-4', '', '' ], [ {totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:'RBI Rockets'},'','','','','', '4-1', '', '' ], [ {totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:'Pathetic Sharks'},'','','','','','', '', '' ], [ {totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:'The Wronguns'},'','','','','','','', '' ], [ {totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:''},'','','','','','','',''] ] ; fillArray(2) ; lg[3] = [ {winner:''}, [ { totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:'Monkey Pig Pirates'},'', '0-4', '4-3', '4-3', '', '4-0', '', '' ], [ {totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:'FABROS'},'','', '4-1', '4-3', '4-0', '4-0', '4-1', '' ], [ {totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:'HULA HOOPS'},'','','', '1-4', '4-0', '4-0', '4-1', '' ], [ {totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:'The Lawn Supremacy'},'','','','', '4-0', '4-0', '', '' ], [ {totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:'Lawndrettes'},'','','','','', '4-0', '4-3', '' ], [ {totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:'Lawn Order'},'','','','','','', '0-4', '' ], [ {totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:'Seemed A Good Idea At The Time'},'','','','','','','', '' ], [ {totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:''},'','','','','','','',''] ] ; fillArray(3) ; lg[4] = [ {winner:''}, [ { totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:'On The Grass'},'', '', '4-1', '2-4', '1-4', '', '', '' ], [ {totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:'SXP'},'','', '0-4', '1-4', '0-4', '4-3', '0-4', '' ], [ {totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:'The Roquet Girls'},'','','', '', '0-4', '1-4', '0-4', '' ], [ {totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:'Lloyds Losers'},'','','','', '1-4', '2-4', '2-4', '' ], [ {totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:'Belly Of The Beast'},'','','','','', '4-2', '0-4', '' ], [ {totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:'Toad In the Hole Gang'},'','','','','','', '3-4', '' ], [ {totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:'Balls to Monty'},'','','','','','','', '' ], [ {totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:''},'','','','','','','',''] ] ; fillArray(4) ; lg[5] = [ {winner:''}, [ { totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:'Out Of The Shadows'},'', '1-4', '', '', '', '0-4', '', '' ], [ {totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:'Riffraff Of Traf'},'','', '2-4', '', '', '4-1', '2-4', '' ], [ {totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:'Marvellous Mallets'},'','','', '', '2-4', '4-2', '4-3', '' ], [ {totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:'Vernon Thomas'},'','','','', '', '', '', '' ], [ {totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:'Broadgate Estates'},'','','','','', '4-1', '2-4', '' ], [ {totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:'Hoop De Hoop'},'','','','','','', '2-4', '' ], [ {totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:'ML Energy & Power'},'','','','','','','', '' ], [ {totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:''},'','','','','','','',''] ] ; fillArray(5) ; lg[6] = [ {winner:''}, [ { totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:'The Bent Hoops'},'', '', '', '', '', '', '', '' ], [ {totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:'Clydes'},'','', '', '', '', '', '', '' ], [ {totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:'Rotten Mallets'},'','','', '', '', '', '', '' ], [ {totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:'The Big Mallets'},'','','','', '', '', '', '' ], [ {totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:'Bodgit + Scarpa Too'},'','','','','', '', '', '' ], [ {totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:'Steam Train'},'','','','','','', '', '' ], [ {totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:'Scratchers'},'','','','','','','', '' ], [ {totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:''},'','','','','','','',''] ] ; fillArray(6) ; lg[7] = [ {winner:''}, [ { totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:'RANDM People'},'', '', '4-0', '4-0', '4-0', '', '2-4', '4-1' ], [ {totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:'The Cheetahs'},'','', '', '', '', '', '4-2', '' ], [ {totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:'Baxters Bandits'},'','','', '', '', '', '0-4', '0-4' ], [ {totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:'Shipping Scoundrels'},'','','','', '', '', '0-4', '0-4' ], [ {totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:'NEWPEAK'},'','','','','', '', '3-4', '' ], [ {totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:'Haven’t got Scabies – Nick Does'},'','','','','','', '', '' ], [ {totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:'Roll Hedgehog Roll'},'','','','','','','', '0-4' ], [ {totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:'Jugheads'},'','','','','','','',''] ] ; fillArray(7) ; lg[8] = [ {winner:''}, [ { totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:'Kenyan Olympics'},'', '4-3', '', '', '3-4', '', '2-4', '' ], [ {totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:'Tawny Owl and Percy Pig'},'','', '', '', '1-4', '', '4-2', '' ], [ {totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:'Leviathan Facility'},'','','', '', '', '', '2-4', '' ], [ {totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:'Yesterdaysheros.com'},'','','','', '', '', '', '' ], [ {totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:'The Wedgwood-Bunbury Sports Club'},'','','','','', '', '1-4', '' ], [ {totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:'The Flashing Hoops'},'','','','','','', '', '' ], [ {totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:'The Wing Men'},'','','','','','','', '' ], [ {totA:[0,0,0,0,0,0,0,0,0],totB:[0,0,0,0,0,0,0,0,0],name:''},'','','','','','','',''] ] ; fillArray(8) ; function fillArray(f) { if (lg[f][1][2] != "") lg[f][2][1] = lg[f][1][2].substr(2,1)+"-"+lg[f][1][2].substr(0,1); if (lg[f][1][3] != "") lg[f][3][1] = lg[f][1][3].substr(2,1)+"-"+lg[f][1][3].substr(0,1); if (lg[f][2][3] != "") lg[f][3][2] = lg[f][2][3].substr(2,1)+"-"+lg[f][2][3].substr(0,1); if (lg[f][1][4] != "") lg[f][4][1] = lg[f][1][4].substr(2,1)+"-"+lg[f][1][4].substr(0,1); if (lg[f][2][4] != "") lg[f][4][2] = lg[f][2][4].substr(2,1)+"-"+lg[f][2][4].substr(0,1); if (lg[f][3][4] != "") lg[f][4][3] = lg[f][3][4].substr(2,1)+"-"+lg[f][3][4].substr(0,1); if (lg[f][1][5] != "") lg[f][5][1] = lg[f][1][5].substr(2,1)+"-"+lg[f][1][5].substr(0,1); if (lg[f][2][5] != "") lg[f][5][2] = lg[f][2][5].substr(2,1)+"-"+lg[f][2][5].substr(0,1); if (lg[f][3][5] != "") lg[f][5][3] = lg[f][3][5].substr(2,1)+"-"+lg[f][3][5].substr(0,1); if (lg[f][4][5] != "") lg[f][5][4] = lg[f][4][5].substr(2,1)+"-"+lg[f][4][5].substr(0,1); if (lg[f][1][6] != "") lg[f][6][1] = lg[f][1][6].substr(2,1)+"-"+lg[f][1][6].substr(0,1); if (lg[f][2][6] != "") lg[f][6][2] = lg[f][2][6].substr(2,1)+"-"+lg[f][2][6].substr(0,1); if (lg[f][3][6] != "") lg[f][6][3] = lg[f][3][6].substr(2,1)+"-"+lg[f][3][6].substr(0,1); if (lg[f][4][6] != "") lg[f][6][4] = lg[f][4][6].substr(2,1)+"-"+lg[f][4][6].substr(0,1); if (lg[f][5][6] != "") lg[f][6][5] = lg[f][5][6].substr(2,1)+"-"+lg[f][5][6].substr(0,1); if (lg[f][1][7] != "") lg[f][7][1] = lg[f][1][7].substr(2,1)+"-"+lg[f][1][7].substr(0,1); if (lg[f][2][7] != "") lg[f][7][2] = lg[f][2][7].substr(2,1)+"-"+lg[f][2][7].substr(0,1); if (lg[f][3][7] != "") lg[f][7][3] = lg[f][3][7].substr(2,1)+"-"+lg[f][3][7].substr(0,1); if (lg[f][4][7] != "") lg[f][7][4] = lg[f][4][7].substr(2,1)+"-"+lg[f][4][7].substr(0,1); if (lg[f][5][7] != "") lg[f][7][5] = lg[f][5][7].substr(2,1)+"-"+lg[f][5][7].substr(0,1); if (lg[f][6][7] != "") lg[f][7][6] = lg[f][6][7].substr(2,1)+"-"+lg[f][6][7].substr(0,1); if (lg[f][1][8] != "") lg[f][8][1] = lg[f][1][8].substr(2,1)+"-"+lg[f][1][8].substr(0,1); if (lg[f][2][8] != "") lg[f][8][2] = lg[f][2][8].substr(2,1)+"-"+lg[f][2][8].substr(0,1); if (lg[f][3][8] != "") lg[f][8][3] = lg[f][3][8].substr(2,1)+"-"+lg[f][3][8].substr(0,1); if (lg[f][4][8] != "") lg[f][8][4] = lg[f][4][8].substr(2,1)+"-"+lg[f][4][8].substr(0,1); if (lg[f][5][8] != "") lg[f][8][5] = lg[f][5][8].substr(2,1)+"-"+lg[f][5][8].substr(0,1); if (lg[f][6][8] != "") lg[f][8][6] = lg[f][6][8].substr(2,1)+"-"+lg[f][6][8].substr(0,1); if (lg[f][7][8] != "") lg[f][8][7] = lg[f][7][8].substr(2,1)+"-"+lg[f][7][8].substr(0,1); for(g=1;g<=8;g++) { lg[f][g][0].totA = 0 lg[f][g][0].totB = 0 for(h=1;h<=8;h++) { if (g != h) { pts = ''; if (lg[f][g][h].substr(0,1) == "4") pts = '2' ; if (lg[f][g][h].substr(0,1) == "W") pts = '2' ; if (lg[f][g][h].substr(2,1) == "4") pts = '1' ; if (lg[f][g][h].substr(2,1) == "W") pts = '0' ; if (lg[f][g][h].substr(2,1) <= "4" && lg[f][g][h].substr(2,1) >= "0") lg[f][g][0].totB = lg[f][g][0].totB - -lg[f][g][h].substr(0,1) - lg[f][g][h].substr(2,1) ; if (pts != '') lg[f][g][h] = pts+"
("+lg[f][g][h]+")"; else lg[f][g][h]=' '; lg[f][g][0].totA = lg[f][g][0].totA - pts ; } } } }