/*
 * courses.js
 * JavaScript for defining golf courses for the GolfScorecard web site.
 * This file must be included after the scorecard.js file.
 *
 * Copyright (c) 2015 Jim & Joel Kottas.  All rights reserved.
 */

// The 0-based index for the default course to show in a new scorecard
var defCourse = 0;

// The 0-based index of the special course called "Other" that the user could
// define dynamically.
var otherCourse = -1;

// Define pre-defined courses; the default one will be set once the DOM has 
// loaded.

addCourse({
    name: "The General",
    city: "Devens",
    state: "MA",
    pars: {
        out: [3, 3, 3, 3, 4, 3, 3, 3, 3],
        in: [3, 4, 3, 3, 3, 3, 3, 3, 3],
    }
});

addCourse({
    name: "The Hill",
    city: "Devens",
    state: "MA",
    pars: {
        out: [3, 3, 3, 3, 3, 3, 3, 3, 3],
        in: [3, 3, 3, 3, 3, 3, 3, 3, 3]
    }
});

addCourse({
    name: "Muldoon Park",
    city: "Pelham",
    state: "NH",
    pars: {
        out: [3, 3, 3, 3, 3, 4, 3, 3, 3],
        in: [3, 3, 3, 3, 3, 3, 3, 4, 3]
    }
});

addCourse({
    name: "Coggshall Park",
    city: "Fitchburg",
    state: "MA",
    pars: {
        out: [3, 3, 3, 3, 3, 3, 4, 3, 3],
        in: [3, 3, 3, 3, 3, 3, 3, 4, 3]
    }
});

addCourse({
    name: "Pyramids - Silver",
    city: "Leicester",
    state: "MA",
    pars: {
        out: [3, 3, 3, 3, 3, 3, 3, 3, 3],
        in: [3, 3, 4, 4, 3, 3, 3, 3, 3]
    }
});

addCourse({
    name: "Pyramids - Gold",
    city: "Leicester",
    state: "MA",
    pars: {
        out: [4, 3, 3, 4, 4, 3, 4, 4, 4],
        in: [3, 3, 4, 5, 4, 3, 3, 3, 4]
    }
});

addCourse({
    name: "Maple Hill - Red",
    city: "Leicester",
    state: "MA",
    pars: {
        out: [3, 3, 3, 3, 3, 3, 3, 3, 3],
        in: [3, 3, 3, 3, 3, 3, 3, 3, 4]
    }
});

addCourse({
    name: "Maple Hill - White",
    city: "Leicester",
    state: "MA",
    pars: {
        out: [3, 3, 3, 3, 3, 3, 3, 3, 3],
        in: [4, 3, 3, 3, 3, 3, 3, 3, 4]
    }
});

addCourse({
    name: "Maple Hill - Blue",
    city: "Leicester",
    state: "MA",
    pars: {
        out: [4, 3, 3, 3, 3, 3, 4, 3, 4],
        in: [3, 4, 4, 3, 3, 3, 3, 3, 4]
    }
});

addCourse({
    name: "Maple Hill - Gold",
    city: "Leicester",
    state: "MA",
    pars: {
        out: [4, 3, 3, 3, 3, 3, 3, 3, 4],
        in: [4, 4, 4, 3, 3, 3, 3, 4, 4]
    }
});

addCourse({
    name: "Simonds Park",
    city: "Burlington",
    state: "MA",
    pars: {
        out: [3, 3, 3, 3, 3, 3, 3, 4, 3],
        in: []
    }
});

addCourse({
    name: "Typical Disc Golf Course",
    city: "",
    state: "",
    pars: {
        out: [3, 3, 3, 3, 3, 3, 3, 3, 3],
        in: [3, 3, 3, 3, 3, 3, 3, 3, 3]
    }
});

addCourse({
    name: "Typical Minigolf Course",
    city: "",
    state: "",
    pars: {
        out: [2, 2, 2, 2, 2, 2, 2, 2, 2],
        in: [2, 2, 2, 2, 2, 2, 2, 2, 2]
    }
});

@@ -679,25 +679,24 @@
  3, 3, 3, 3%5D
-,
 %0A    %7D%0A%7D);%0A%0A

Remove extra comma (for consistency)