var dist = [
['Killarney', [], []],
['Little Current', [19], [0]],
['Kagawong', [35,15], [0,0]],
['Gore Bay', [43,15,24], [0,0,0]],
['Meldrum Bay', [70,51,43,32], [0,0,0,0]],
['Spanish', [45,27,23,19,37], [0,0,0,0,0]],
['Spragge', [55,36,30,29,25,20], [0,0,0,0,0,0]],
['Blind River', [68,49,38,27,17,29,9], [0,0,0,0,0,0,0]],
['Thessalon', [74,55,64,52,27,63,35,27], [0,0,0,0,0,0,0,0]],
['Bruce Mines', [85,70,78,58,36,63,43,34,10], [0,0,0,0,0,0,0,0,0]],
['St Joseph Island', [90,71,80,68,43,69,52,43,16,6], [0,0,0,0,0,0,0,0,0,0]],
['Desbarats', [98,79,88,56,51,77,60,51,34,14,12], [0,0,0,0,0,0,0,0,0,0,0]],
['Drummond Island', [90,71,80,68,43,75,52,43,16,15,21,43], [0,0,0,0,0,0,0,0,0,0,0,0]],
['Sault Ste Marie', [122,103,112,100,75,101,84,75,48,38,32,19,80], [0,0,0,0,0,0,0,0,0,0,0,0,0]],
['Manitowaning', [21,17,31,39,66,42,53,64,70,85,86,94,86,118], [0,0,0,0,0,0,0,0,0,0,0,0,0,0]]
];


// Distance Calculator with Times
// copyright 27th April 2006, by Stephen Chapman
// permission to use this Javascript on your web page is granted
// provided that all of the code below in this script (including these
// comments) is used without any alteration
function reverse(a, b){if (a>b) return -1;if (a <b) return 1;return 0;}function setOptions(id) {var selbox = document.getElementById(id);selbox.options.length = 0;var ct = []; for (var i = dist.length - 1; i >= 0; i--) {ct[i] = dist[i][0]+','+i;} ct.sort(reverse); for (var i = dist.length - 1; i >= 0; i--) {var c = ct[i].split(','); selbox.options[selbox.options.length] = new Option(c[0],c[1]);}}function calc() {var v1 = document.getElementById('ca').value;var v2 = document.getElementById('cb').value;var dst = 0;if (v1 != v2) {dst = dist[Math.max(v1,v2)][1][Math.min(v1,v2)];tme = dist[Math.max(v1,v2)][2][Math.min(v1,v2)];}document.getElementById('m').value = dst;document.getElementById('t').value = tme;}function start() {setOptions('ca');setOptions('cb');}window.onload=start;

