var ride_data = {
    title: "Tour de Gruene 2009 Time Trial", 
    ride_count: 2, 
    ride_type: "road",
    filebase: "Tour-de-Gruene-2009-race"};

var parking = [
  
  {html: "<span class=\'parking-title\'>Parking</span><p />There is parking at the Rockin-R parking lot at the start line of the individual time trial. There is a fee to park there.",
  lat: 29.764386,
  lon: -98.141729}
  ,
  {html: "<span class=\'parking-title\'>Parking</span><p />Gruene has plenty of parking. Most of it is behind the shops on the corner of Gruene Rd. and Hunter Rd. on the south side of Hunter Rd. The earlier in the day you get there, the better your chances of finding a good spot.",
  lat: 29.737931,
  lon: -98.103585}
];

var ride_bounds = [
  
  {min_lat: 29.747267,
  min_lon: -98.175648,
  max_lat: 29.848415,
  max_lon: -98.141603}
  ,
  {min_lat: 29.734395,
  min_lon: -98.175657,
  max_lat: 29.862346,
  max_lon: -98.097777}
];

var stops = [
   
   [
   
   {html: "<span class=\'stop-title\'>Stop</span><p />The River Rd. Icehouse is at the corner of River Rd. and Hueco Springs Loop Rd.<p /><span class=\'stop-label\'>Type:</span> bar<br /><span class=\'stop-label\'>Ride Distance:</span> 0.0 (1.2 off route)<br />",
   lat: 29.747267,
   lon: -98.145209}
   ,
   {html: "<span class=\'stop-title\'>Stop</span><p />There are several campgrounds and tubing companies with stores before you get to the first crossing. This is not an exact stop distance.<p /><span class=\'stop-label\'>Type:</span> stores<br /><span class=\'stop-label\'>Ride Distance:</span> 0.0<br />",
   lat: 29.764621,
   lon: -98.141897}
   ,
   {html: "<span class=\'stop-title\'>Stop</span><p />There are many campgrounds and tubing companies with stores between the first and second crossings. This is not an exact stop distance.<p /><span class=\'stop-label\'>Type:</span> stores<br /><span class=\'stop-label\'>Ride Distance:</span> 1.6, 14.3<br />",
   lat: 29.771681,
   lon: -98.158337}
   ,
   {html: "<span class=\'stop-title\'>Stop</span><p />There are many campgrounds and tubing companies with stores between the second and third crossings. This is not an exact stop distance.<p /><span class=\'stop-label\'>Type:</span> stores<br /><span class=\'stop-label\'>Ride Distance:</span> 3.6, 12.3<br />",
   lat: 29.795614,
   lon: -98.150138}
   ,
   {html: "<span class=\'stop-title\'>Stop</span><p />There are a few campgrounds and tubing companies with stores between the third and fourth crossings. This is not an exact stop distance.<p /><span class=\'stop-label\'>Type:</span> stores<br /><span class=\'stop-label\'>Ride Distance:</span> 7.4, 8.5<br />",
   lat: 29.822266,
   lon: -98.166435}
   ,
   {html: "<span class=\'stop-title\'>Stop</span><p />There is a convenience store at the corner of River Rd. and FM 2673.<p /><span class=\'stop-label\'>Type:</span> conv. store<br /><span class=\'stop-label\'>Ride Distance:</span> 7.9 (1.4 off route)<br />",
   lat: 29.848415,
   lon: -98.174645}
   ,
   {html: "<span class=\'stop-title\'>Stop</span><p />There are a few campgrounds and tubing companies with stores between the third and fourth crossings. This is not an exact stop distance.<p /><span class=\'stop-label\'>Type:</span> stores<br /><span class=\'stop-label\'>Ride Distance:</span> 7.4, 8.5<br />",
   lat: 29.822266,
   lon: -98.166435}
   ,
   {html: "<span class=\'stop-title\'>Stop</span><p />There are many campgrounds and tubing companies with stores between the second and third crossings. This is not an exact stop distance.<p /><span class=\'stop-label\'>Type:</span> stores<br /><span class=\'stop-label\'>Ride Distance:</span> 3.6, 12.3<br />",
   lat: 29.795614,
   lon: -98.150138}
   ,
   {html: "<span class=\'stop-title\'>Stop</span><p />There are many campgrounds and tubing companies with stores between the first and second crossings. This is not an exact stop distance.<p /><span class=\'stop-label\'>Type:</span> stores<br /><span class=\'stop-label\'>Ride Distance:</span> 1.6, 14.3<br />",
   lat: 29.771681,
   lon: -98.158337}
   ]
   ,
   [
   
   {html: "<span class=\'stop-title\'>Stop</span><p />There are many bars and restaurants in and surrounding Gruene.<p /><span class=\'stop-label\'>Type:</span> conv. store<br /><span class=\'stop-label\'>Ride Distance:</span> 0.0<br />",
   lat: 29.738416,
   lon: -98.10415}
   ,
   {html: "<span class=\'stop-title\'>Stop</span><p />The River Rd. Icehouse is at the corner of River Rd. and Hueco Springs Loop Rd.<p /><span class=\'stop-label\'>Type:</span> bar<br /><span class=\'stop-label\'>Ride Distance:</span> 3.6<br />",
   lat: 29.747267,
   lon: -98.145209}
   ,
   {html: "<span class=\'stop-title\'>Stop</span><p />There are several campgrounds and tubing companies with stores before you get to the first crossing. This is not an exact stop distance.<p /><span class=\'stop-label\'>Type:</span> stores<br /><span class=\'stop-label\'>Ride Distance:</span> 5.0<br />",
   lat: 29.764621,
   lon: -98.141897}
   ,
   {html: "<span class=\'stop-title\'>Stop</span><p />There are many campgrounds and tubing companies with stores between the first and second crossings. This is not an exact stop distance.<p /><span class=\'stop-label\'>Type:</span> stores<br /><span class=\'stop-label\'>Ride Distance:</span> 6.6<br />",
   lat: 29.771681,
   lon: -98.158337}
   ,
   {html: "<span class=\'stop-title\'>Stop</span><p />There are many campgrounds and tubing companies with stores between the second and third crossings. This is not an exact stop distance.<p /><span class=\'stop-label\'>Type:</span> stores<br /><span class=\'stop-label\'>Ride Distance:</span> 8.5<br />",
   lat: 29.795614,
   lon: -98.150138}
   ,
   {html: "<span class=\'stop-title\'>Stop</span><p />There are a few campgrounds and tubing companies with stores between the third and fourth crossings. This is not an exact stop distance.<p /><span class=\'stop-label\'>Type:</span> stores<br /><span class=\'stop-label\'>Ride Distance:</span> 12.4<br />",
   lat: 29.822266,
   lon: -98.166435}
   ,
   {html: "<span class=\'stop-title\'>Stop</span><p />There is a convenience store at the corner of River Rd. and FM 2673.<p /><span class=\'stop-label\'>Type:</span> conv. store<br /><span class=\'stop-label\'>Ride Distance:</span> 14.3 (0.2 off route)<br />",
   lat: 29.848415,
   lon: -98.174645}
   ,
   {html: "<span class=\'stop-title\'>Stop</span><p />There are convenience stores and tubing companies on the corner of FM 2673 and FM 306.<p /><span class=\'stop-label\'>Type:</span> conv. stores<br /><span class=\'stop-label\'>Ride Distance:</span> 15.8<br />",
   lat: 29.862226,
   lon: -98.160216}
   ,
   {html: "<span class=\'stop-title\'>Stop</span><p />There is a convenience store at the corner of FM 306 and Purgatory Rd.<p /><span class=\'stop-label\'>Type:</span> conv. store<br /><span class=\'stop-label\'>Ride Distance:</span> 18.6<br />",
   lat: 29.847666667,
   lon: -98.1192}
   ,
   {html: "<span class=\'stop-title\'>Stop</span><p />There are convenience stores on the corner of FM 306 and Hunter Rd.<p /><span class=\'stop-label\'>Type:</span> conv. stores<br /><span class=\'stop-label\'>Ride Distance:</span> 26.2 (0.1 off route)<br />",
   lat: 29.744149,
   lon: -98.097777}
   ]
];

var pois = [
   
   [
   
   {html: "<span class=\'poi-title\'>Point of Interest</span><p />First crossing.<p /><br /><span class=\'poi-label\'>Ride Distance:</span> 0.1, 15.7<br />",
   lat: 29.765916667,
   lon: -98.141883333}
   ,
   {html: "<span class=\'poi-title\'>Point of Interest</span><p />Second crossing.<p /><br /><span class=\'poi-label\'>Ride Distance:</span> 2.1, 13.8<br />",
   lat: 29.77895,
   lon: -98.159733333}
   ,
   {html: "<span class=\'poi-title\'>Point of Interest</span><p />Third crossing.<p /><br /><span class=\'poi-label\'>Ride Distance:</span> 5.1, 10.7<br />",
   lat: 29.803733333,
   lon: -98.164083333}
   ,
   {html: "<span class=\'poi-title\'>Point of Interest</span><p />Fourth crossing.<p /><br /><span class=\'poi-label\'>Ride Distance:</span> 7.9 (0.9 off route)<br />",
   lat: 29.84275,
   lon: -98.168066667}
   ,
   {html: "<span class=\'poi-title\'>Point of Interest</span><p />Third crossing.<p /><br /><span class=\'poi-label\'>Ride Distance:</span> 5.1, 10.7<br />",
   lat: 29.803733333,
   lon: -98.164083333}
   ,
   {html: "<span class=\'poi-title\'>Point of Interest</span><p />Second crossing.<p /><br /><span class=\'poi-label\'>Ride Distance:</span> 2.1, 13.8<br />",
   lat: 29.77895,
   lon: -98.159733333}
   ,
   {html: "<span class=\'poi-title\'>Point of Interest</span><p />First crossing.<p /><br /><span class=\'poi-label\'>Ride Distance:</span> 0.1, 15.7<br />",
   lat: 29.765916667,
   lon: -98.141883333}
   ]
   ,
   [
   
   {html: "<span class=\'poi-title\'>Point of Interest</span><p />First crossing.<p /><br /><span class=\'poi-label\'>Ride Distance:</span> 5.1<br />",
   lat: 29.765916667,
   lon: -98.141883333}
   ,
   {html: "<span class=\'poi-title\'>Point of Interest</span><p />Second crossing.<p /><br /><span class=\'poi-label\'>Ride Distance:</span> 7.0<br />",
   lat: 29.77895,
   lon: -98.159733333}
   ,
   {html: "<span class=\'poi-title\'>Point of Interest</span><p />Third crossing.<p /><br /><span class=\'poi-label\'>Ride Distance:</span> 10.1<br />",
   lat: 29.803733333,
   lon: -98.164083333}
   ,
   {html: "<span class=\'poi-title\'>Point of Interest</span><p />Fourth crossing.<p /><br /><span class=\'poi-label\'>Ride Distance:</span> 14.0<br />",
   lat: 29.84275,
   lon: -98.168066667}
   ,
   {html: "<span class=\'poi-title\'>Point of Interest</span><p />Bottom of big climb on FM 306.<p /><br /><span class=\'poi-label\'>Ride Distance:</span> 16.9<br />",
   lat: 29.853966667,
   lon: -98.14385}
   ,
   {html: "<span class=\'poi-title\'>Point of Interest</span><p />Top of big climb on FM 306.<p /><br /><span class=\'poi-label\'>Ride Distance:</span> 17.7<br />",
   lat: 29.850816667,
   lon: -98.1336}
   ]
];

var segments = [
   
   [
     
     {
     turnHtml : "<span class=\'turn-title\'>starting line to River Rd.</span><p /><span class=\'turn-subtitle\'>NORTH on River Rd.</span><p /><p /><span class=\'turn-label\'>turn-at distance</span>: 0.00 miles",
     roadHtml: "<span class=\'seg-title\'>River Rd.</span><p />River Rd. follows along the Guadalupe River, crossing over it several times. The road undulates, but isn't really rolling.<p /><span class=\'seg-label\'>distance</span>: 7.92 miles<br /><span class=\'seg-label\'>lanes</span>: 2<br /><span class=\'seg-label\'>shoulder</span>: 0<br /><span class=\'seg-label\'>traffic</span>: Moderate<br /><span class=\'seg-label\'>speed</span>: 30",
     profileHtml: "<img src=\'Tour-de-Gruene-2009-race_prof_small_0_0.png\' />",
     polyline : {
       color: "#FF0000",
       weight: 3,
       points: "kjttDvh_vQo@`@w@NkDGk@ZKXk@hC{AhHQhAGj@J~LLjBl@bF|A~GpC~KhBnIb@tCDnBYzGKv@e@dAaAtAmA|@cBl@gBVyBF{BC}CUqCMaFCcBE}B?{BLiDVqBV_GfA_Cf@{FvAaCf@gBFwBEk@Mq@NcAnBa@\\_@EmDmBkCaBo@g@iAiAwAaBy@mAmAyD_D{La@}Bk@{AeAkBsAiBaBuAuBoA}Aq@kB[uAA_CT_B^iD|@mAToBLoA@cBGgAI{AWqGsAkAi@cCyAaEkD}BeBsAu@eBo@yAa@yBa@c@Cm@BqB\\K?o@Io@a@aAqAw@o@iA_@sAI_BH_B\\mAn@}@r@]`@m@rAsA`Ea@zA]`BWxBc@hFOpFK|BMlBUrE_@tCi@tAq@pBEjAFd@fB`G\\hBBhCLnB`@vBr@pB`@r@TbA@jDPxAj@|A\\t@jDvGdAhBp@tAPf@b@pBXbCLlFCtA_@lASVgHpFgAp@wAl@e@J}B\\}AH_BAiGs@eBc@iAOeBNiAj@eAt@s@VwJnByAh@_IfEuB`AcABsAWwAo@aCsAwB_BwAyAcAkAgAw@_CiAk@e@Y{@CeC_@wBc@gAu@qCo@yCw@{Cs@{AWq@m@eAo@u@mAs@kA]oIgBgGuAkKoC}AImAPcAReAIiAWgBW{AOiAa@gAu@SU",
       levels: "B???@????@??@????@??@???A????????@????@???@??@????@????@???@??@???????@?@??????@?????@???@???A?????@?????????@??????????@??????@??@????A???@???@??????@?@???????@??????????@????@???@?????B",
       zoomFactor: 32,
       numLevels: 4
       },
     mid_lat: 29.803198,
     mid_lon: -98.149131
     }
     ,
     {
     turnHtml : "<span class=\'turn-title\'>River Rd. to River Rd.</span><p /><span class=\'turn-subtitle\'>TURN AROUND at Pecan Creek Rd.</span><p />Pecan Creek Rd. is a loop and hits River Rd. twice in quick succession. The turn-around is at the second intersection.<p /><span class=\'turn-label\'>turn-at distance</span>: 7.92 miles",
     roadHtml: "<span class=\'seg-title\'>River Rd.</span><p />The run back to the finish line is predominately downhill, which makes sense since you're following the Guadalupe River downstream.<p /><span class=\'seg-label\'>distance</span>: 7.94 miles<br /><span class=\'seg-label\'>lanes</span>: 2<br /><span class=\'seg-label\'>shoulder</span>: 0<br /><span class=\'seg-label\'>traffic</span>: Moderate<br /><span class=\'seg-label\'>speed</span>: 30",
     profileHtml: "<img src=\'Tour-de-Gruene-2009-race_prof_small_0_1.png\' />",
     polyline : {
       color: "#FF0000",
       weight: 3,
       points: "{cauD|ucvQnBrAlA\\tBN`Cf@l@HbAIt@W~@Ev@B~@NfHnBbEbAxLfCxA^lAl@r@v@f@t@r@tAHRr@tC~A~GjAjDJ^Jv@@nADfADT^p@LJxAn@~A|@`AbAt@z@t@t@~AnA~ClB|Ar@\\HfANlAOxK{FjBs@zA[bF}@x@Sf@S~AiAd@U|AOdAH`B`@tATvCXhBJ~AGzAOpAUrAc@t@_@x@k@hHoFPSZiA@[OeGS_Cm@qCk@uAmC{EkCaFo@_BQk@OkBCgDQo@q@mAk@iBa@qCG_A?_BGuAcCwI?sAp@}Bh@kATgATwBf@qHJmCL_Fr@qHZiBv@cDbA{Cp@uAv@w@nAu@hA_@fBOxA?jAVx@b@hAtAf@f@~@XZ@t@IpAWvAF~Bd@n@PhBr@jAj@pB|A~DhDl@b@|BpAjAb@dJ`BbDNlA?lAGbBWhEaAjC_@tBKlAJvA\\`Ad@~CjBhAhAdAtAzApC^pAj@vCpDfNj@`Bp@bAz@dApBlBnCfB`E~Bx@N\\MVy@Zu@j@]`@B^JrBDzAIfAOlEkAjImBfCg@jC_@rFW~CEvHNlBFfCP|BH~BC`CM~A_@zAq@bA}@v@kAb@qALoAPuEA}BWqBeB}HcDmMkB}Ha@qDSsCKmMn@{DvAwGVgA`@m@d@ChDB`@KtAw@",
       levels: "B????@????@????@???@????????@?????????@?????????@????????A??????@?@?????@?????????@?????????@???A???@????@????@??????@?@????????@????@????@????@???@???@????@???????A???@???@???@??@???@???B",
       zoomFactor: 32,
       numLevels: 4
       },
     mid_lat: 29.803344,
     mid_lon: -98.149491
     }
   ]
   ,
   [
     
     {
     turnHtml : "<span class=\'turn-title\'>starting line to parking lot</span><p /><span class=\'turn-subtitle\'>STRAIGHT into the parking lot.</span><p /><p /><span class=\'turn-label\'>turn-at distance</span>: 0.00 miles",
     roadHtml: "<span class=\'seg-title\'>Buck Pottery parking lot</span><p />The time trial starts in the Buck Pottery parking lot across from Gruene Hall and the water tower.<p /><span class=\'seg-label\'>distance</span>: 0.03 miles<br /><span class=\'seg-label\'>lanes</span>: 0<br /><span class=\'seg-label\'>shoulder</span>: 0<br /><span class=\'seg-label\'>traffic</span>: None<br /><span class=\'seg-label\'>speed</span>: 5",
     profileHtml: "<img src=\'Tour-de-Gruene-2009-race_prof_small_1_0.png\' />",
     polyline : {
       color: "#FF0000",
       weight: 3,
       points: "{kotDj`xuQs@h@I@AH",
       levels: "B??B",
       zoomFactor: 32,
       numLevels: 4
       },
     mid_lat: 29.739282,
     mid_lon: -98.104752
     }
     ,
     {
     turnHtml : "<span class=\'turn-title\'>parking lot to New Braunfels St.</span><p /><span class=\'turn-subtitle\'>LEFT onto New Braunfels St.</span><p />The parking lot empties onto New Braunfels St.<p /><span class=\'turn-label\'>turn-at distance</span>: 0.03 miles",
     roadHtml: "<span class=\'seg-title\'>New Braunfels St.</span><p />Short connector between parking lot and Gruene Rd.<p /><span class=\'seg-label\'>distance</span>: 0.02 miles<br /><span class=\'seg-label\'>lanes</span>: 0<br /><span class=\'seg-label\'>shoulder</span>: 0<br /><span class=\'seg-label\'>traffic</span>: None<br /><span class=\'seg-label\'>speed</span>: 5",
     profileHtml: "<img src=\'Tour-de-Gruene-2009-race_prof_small_1_1.png\' />",
     polyline : {
       color: "#FF0000",
       weight: 3,
       points: "{motD`bxuQb@\\L?",
       levels: "B?B",
       zoomFactor: 32,
       numLevels: 4
       },
     mid_lat: 29.739222,
     mid_lon: -98.104906
     }
     ,
     {
     turnHtml : "<span class=\'turn-title\'>New Braunfels St. to Gruene Rd.</span><p /><span class=\'turn-subtitle\'>STRAIGHT onto Gruene Rd.</span><p />Head down the hill towards the river.<p /><span class=\'turn-label\'>turn-at distance</span>: 0.05 miles",
     roadHtml: "<span class=\'seg-title\'>Gruene Rd.</span><p />Go down the hill and across the river, then climb a bit before turning.<p /><span class=\'seg-label\'>distance</span>: 0.31 miles<br /><span class=\'seg-label\'>lanes</span>: 2<br /><span class=\'seg-label\'>shoulder</span>: 0<br /><span class=\'seg-label\'>traffic</span>: Light<br /><span class=\'seg-label\'>speed</span>: 20",
     profileHtml: "<img src=\'Tour-de-Gruene-2009-race_prof_small_1_2.png\' />",
     polyline : {
       color: "#FF0000",
       weight: 3,
       points: "ilotD~bxuQD\\^zAz@tAj@\\pAj@x@|@nEzHv@vAJ^",
       levels: "B????????B",
       zoomFactor: 32,
       numLevels: 4
       },
     mid_lat: 29.737682,
     mid_lon: -98.106687
     }
     ,
     {
     turnHtml : "<span class=\'turn-title\'>Gruene Rd. to Ervenberg Ave.</span><p /><span class=\'turn-subtitle\'>RIGHT onto Ervenberg Ave.</span><p />Ervenberg Ave. T's in on the right.<p /><span class=\'turn-label\'>turn-at distance</span>: 0.36 miles",
     roadHtml: "<span class=\'seg-title\'>Ervenberg Ave.</span><p />Go through the S-turn, then under the railroad tracks.<p /><span class=\'seg-label\'>distance</span>: 0.65 miles<br /><span class=\'seg-label\'>lanes</span>: 2<br /><span class=\'seg-label\'>shoulder</span>: 0<br /><span class=\'seg-label\'>traffic</span>: Light<br /><span class=\'seg-label\'>speed</span>: 30",
     profileHtml: "<img src=\'Tour-de-Gruene-2009-race_prof_small_1_3.png\' />",
     polyline : {
       color: "#FF0000",
       weight: 3,
       points: "{zntDj{xuQSVmLhAc@XKb@WvEQb@GBgAJgIb@wAFyFzAiHtBWd@",
       levels: "B??@???@??@??B",
       zoomFactor: 32,
       numLevels: 4
       },
     mid_lat: 29.739044,
     mid_lon: -98.110947
     }
     ,
     {
     turnHtml : "<span class=\'turn-title\'>Ervenberg Ave. to Edwards Blvd.</span><p /><span class=\'turn-subtitle\'>LEFT onto Edwards Blvd.</span><p />Ervenberg Ave. dead-ends into Edwards Blvd.<p /><span class=\'turn-label\'>turn-at distance</span>: 1.01 miles",
     roadHtml: "<span class=\'seg-title\'>Edwards Blvd.</span><p />This goes through a nice, older rural neighborhood.<p /><span class=\'seg-label\'>distance</span>: 1.19 miles<br /><span class=\'seg-label\'>lanes</span>: 1<br /><span class=\'seg-label\'>shoulder</span>: 0<br /><span class=\'seg-label\'>traffic</span>: Light<br /><span class=\'seg-label\'>speed</span>: 30",
     profileHtml: "<img src=\'Tour-de-Gruene-2009-race_prof_small_1_4.png\' />",
     polyline : {
       color: "#FF0000",
       weight: 3,
       points: "cmptDzqyuQZjB^bBb@|ArDpKxSn]lOvVbJhO`C~D\\n@DN",
       levels: "B???@?????B",
       zoomFactor: 32,
       numLevels: 4
       },
     mid_lat: 29.739204,
     mid_lon: -98.12149
     }
     ,
     {
     turnHtml : "<span class=\'turn-title\'>Edwards Blvd. to River Rd.</span><p /><span class=\'turn-subtitle\'>RIGHT onto River Rd.</span><p />Edwards Blvd. dead-ends into River Rd.<p /><span class=\'turn-label\'>turn-at distance</span>: 2.20 miles",
     roadHtml: "<span class=\'seg-title\'>River Rd.</span><p />Go through open fields and brush.<p /><span class=\'seg-label\'>distance</span>: 1.39 miles<br /><span class=\'seg-label\'>lanes</span>: 2<br /><span class=\'seg-label\'>shoulder</span>: 0<br /><span class=\'seg-label\'>traffic</span>: Moderate<br /><span class=\'seg-label\'>speed</span>: 40",
     profileHtml: "<img src=\'Tour-de-Gruene-2009-race_prof_small_1_5.png\' />",
     polyline : {
       color: "#FF0000",
       weight: 3,
       points: "}nntDlv|uQQV{EdDqC|AuF|B{HzCgB|@_BnAyAdBgAjBs@`BmOj^wDvI}@bCi@pBaDhNi@pBm@|@_Ar@y@F",
       levels: "B???????@???@???@??B",
       zoomFactor: 32,
       numLevels: 4
       },
     mid_lat: 29.741553,
     mid_lon: -98.134315
     }
     ,
     {
     turnHtml : "<span class=\'turn-title\'>River Rd. to River Rd.</span><p /><span class=\'turn-subtitle\'>RIGHT onto River Rd.</span><p />Right at the Y. River Road Icehouse is on the corner.<p /><span class=\'turn-label\'>turn-at distance</span>: 3.59 miles",
     roadHtml: "<span class=\'seg-title\'>River Rd.</span><p />This is the prettiest part of this loop. You'll wind past campgrounds and tubing companies.<p /><span class=\'seg-label\'>distance</span>: 10.76 miles<br /><span class=\'seg-label\'>lanes</span>: 2<br /><span class=\'seg-label\'>shoulder</span>: 0<br /><span class=\'seg-label\'>traffic</span>: Moderate<br /><span class=\'seg-label\'>speed</span>: 30",
     profileHtml: "<img src=\'Tour-de-Gruene-2009-race_prof_small_1_6.png\' />",
     polyline : {
       color: "#FF0000",
       weight: 3,
       points: "o~ptDt~_vQq@[gBoAgBy@yA]wAFeFb@gBJqA?_AKmA_@sBeAuBmAmA}AaAwAmB_CqDoDc@g@m@aBUsB]iAi@Wk@Ai@NcCdAkErA{ANiBGwBS{BM{ARiGhAmA`@aBt@qB`AcDnBy@JsCEq@ROXg@|BaAvEa@xBQlBDtHFrDt@nGzBtJtDrOt@jDXpBDfB[jHGd@k@|A{@hAoA`AwAh@iBZkCHwCAwCSyDQiHGcDDgDRuCXwE|@wBd@wKjCaALyBDa@AcAO{@JUXo@rAi@`@e@I}A{@oBmAwByAkCmC_AgAq@oAuCmKuBcJs@aBqAyBoAuAaBoA{A_AwAq@_B]{AEyBRmGzAuAXwALmBBeCImBW}HaBqAs@iBeAqEwDuB_BkAm@_C}@{A_@{BYeAHaBVYAw@WSO}@kAu@q@UOcAYkBGyBTgA\\cBlAa@b@e@hAi@zAqAfFUdAUfBg@nFO`HOdCUrCKbC_@rCsAlDMd@ChAF`@zAdFf@|BHtEZ~Bl@pBr@tAVvA@dBJtBd@~Ab@`AzGjMr@zB^xBJjBFjC@jCANg@lAIJsHtF_B~@e@P_B\\mBToBHmAGcFk@}Ac@}AU}ALw@X{AdAeA`@oDt@qDn@{Aj@iExB}EjCcALwAQi@QuAs@oAu@uBuAyAuAaAiAmAiAaB{@iAi@g@k@McACoCi@uBu@qByAsG}@gDc@gAc@w@o@y@{@o@uAg@mB_@iIgBwFuAuGgB_BYa@Ay@@qBb@}@GcAUsAU}AKgAWiAm@cIiGiBgAq@MiAJIDqAz@_D~CaBrAaBdAqAf@yAVW?{A[sBo@mAUmABsATsA`Ao@`A_ClF_B~Cy@hAeBdBoBlAuAHy@YOKuAmAy@Ua@PeA~@[p@IlAI\\Wb@{@h@kEdBwAn@yDlC{Ax@kB|@",
       levels: "B???@???@??@?????@???@????@???@????@??A????@?@????@???@???@???????@??@????@??A?????@???@????@?@??????@@?????@????@?????@??A?????@?????????@?????????@???@???@??????A??????@???????@?@?????????@?????@???@?????@???????@???@??????@??????@?????@?@???@?????@?????B",
       zoomFactor: 32,
       numLevels: 4
       },
     mid_lat: 29.804075,
     mid_lon: -98.152127
     }
     ,
     {
     turnHtml : "<span class=\'turn-title\'>River Rd. to Right Angle Dr.</span><p /><span class=\'turn-subtitle\'>RIGHT onto Right Angle Dr.</span><p />This is a Y turn.<p /><span class=\'turn-label\'>turn-at distance</span>: 14.35 miles",
     roadHtml: "<span class=\'seg-title\'>Right Angle Dr.</span><p />This is a short connector street.<p /><span class=\'seg-label\'>distance</span>: 0.12 miles<br /><span class=\'seg-label\'>lanes</span>: 2<br /><span class=\'seg-label\'>shoulder</span>: 0<br /><span class=\'seg-label\'>traffic</span>: Light<br /><span class=\'seg-label\'>speed</span>: 30",
     profileHtml: "<img src=\'Tour-de-Gruene-2009-race_prof_small_1_7.png\' />",
     polyline : {
       color: "#FF0000",
       weight: 3,
       points: "ioduDvcevQuB|@eD`Bi@A",
       levels: "B??B",
       zoomFactor: 32,
       numLevels: 4
       },
     mid_lat: 29.848203,
     mid_lon: -98.17226
     }
     ,
     {
     turnHtml : "<span class=\'turn-title\'>Right Angle Dr. to Sattler Rd.</span><p /><span class=\'turn-subtitle\'>RIGHT onto Sattler Rd.</span><p />Right Angle Dr. dead-ends into Sattler Rd.<p /><span class=\'turn-label\'>turn-at distance</span>: 14.48 miles",
     roadHtml: "<span class=\'seg-title\'>Sattler Rd.</span><p />This road takes you behind the businesses on FM 2673.<p /><span class=\'seg-label\'>distance</span>: 0.73 miles<br /><span class=\'seg-label\'>lanes</span>: 2<br /><span class=\'seg-label\'>shoulder</span>: 0<br /><span class=\'seg-label\'>traffic</span>: Light<br /><span class=\'seg-label\'>speed</span>: 30",
     profileHtml: "<img src=\'Tour-de-Gruene-2009-race_prof_small_1_8.png\' />",
     polyline : {
       color: "#FF0000",
       weight: 3,
       points: "oyduDthevQKU}B}GeM{`@mFgPc@c@c@?UFcAn@g@@",
       levels: "B???@????B",
       zoomFactor: 32,
       numLevels: 4
       },
     mid_lat: 29.850825,
     mid_lon: -98.167511
     }
     ,
     {
     turnHtml : "<span class=\'turn-title\'>Sattler Rd. to FM 2673</span><p /><span class=\'turn-subtitle\'>RIGHT onto FM 2673</span><p />Sattler Rd. dead-ends into FM 2673.<p /><span class=\'turn-label\'>turn-at distance</span>: 15.20 miles",
     roadHtml: "<span class=\'seg-title\'>FM 2673</span><p />This road has nice, wide shoulders.<p /><span class=\'seg-label\'>distance</span>: 0.62 miles<br /><span class=\'seg-label\'>lanes</span>: 2<br /><span class=\'seg-label\'>shoulder</span>: 1.5<br /><span class=\'seg-label\'>traffic</span>: Moderate<br /><span class=\'seg-label\'>speed</span>: 50",
     profileHtml: "<img src=\'Tour-de-Gruene-2009-race_prof_small_1_9.png\' />",
     polyline : {
       color: "#FF0000",
       weight: 3,
       points: "wyeuDrlcvQoBaBkAm@oAa@_BWsD_@kC_@}GcBuAYcRaCWa@",
       levels: "B??@??????B",
       zoomFactor: 32,
       numLevels: 4
       },
     mid_lat: 29.857927,
     mid_lon: -98.161273
     }
     ,
     {
     turnHtml : "<span class=\'turn-title\'>FM 2673 to FM 306</span><p /><span class=\'turn-subtitle\'>RIGHT onto FM 306</span><p />FM 2673 dead-ends into FM 306.<p /><span class=\'turn-label\'>turn-at distance</span>: 15.82 miles",
     roadHtml: "<span class=\'seg-title\'>FM 306</span><p />You'll hit the big hill pretty soon after turning onto this road. This section of FM 306 has a nice shoulder.<p /><span class=\'seg-label\'>distance</span>: 2.86 miles<br /><span class=\'seg-label\'>lanes</span>: 2<br /><span class=\'seg-label\'>shoulder</span>: 1.5<br /><span class=\'seg-label\'>traffic</span>: Moderate<br /><span class=\'seg-label\'>speed</span>: 55",
     profileHtml: "<img src=\'Tour-de-Gruene-2009-race_prof_small_1_10.png\' />",
     polyline : {
       color: "#FF0000",
       weight: 3,
       points: "snguDf{bvQH[fJ{PfCaFr@kBrCqLz@iCjXyo@pAiC~@uA|AcBj@g@z@m@xDaCt@i@v@s@t@{@r@gAh@iAr@oBXgAN}@JgAHeA@eACoBMyAi@eE{Fka@U}BE_B@yALeB`@gCt@eCbSoi@|@aBdAoA|@y@bAu@",
       levels: "B??@????@??????@???@?????@??????@??@???B",
       zoomFactor: 32,
       numLevels: 4
       },
     mid_lat: 29.850341,
     mid_lon: -98.140158
     }
     ,
     {
     turnHtml : "<span class=\'turn-title\'>FM 306 to FM 306</span><p /><span class=\'turn-subtitle\'>STRAIGHT on FM 306</span><p />This is at the corner of FM 306 and Purgatory Rd. This is where the shoulder narrows.<p /><span class=\'turn-label\'>turn-at distance</span>: 18.67 miles",
     roadHtml: "<span class=\'seg-title\'>FM 306</span><p />This section of FM 306 has narrower shoulders and heavy traffic. I hate riding this section of road.<p /><span class=\'seg-label\'>distance</span>: 7.31 miles<br /><span class=\'seg-label\'>lanes</span>: 2<br /><span class=\'seg-label\'>shoulder</span>: 1<br /><span class=\'seg-label\'>traffic</span>: Heavy<br /><span class=\'seg-label\'>speed</span>: 55",
     profileHtml: "<img src=\'Tour-de-Gruene-2009-race_prof_small_1_11.png\' />",
     polyline : {
       color: "#FF0000",
       weight: 3,
       points: "alduD~zzuQfAk@xAg@nA[rAMrKo@hBIhBEhBF`AHdBXxSbEjBVhBDj@AlBOdCm@r@YbBaAxAqA|MuPl[e`@jBeB~ByA`C}@~A_@pCYdd@}A`LYhDQrYiAxc@oCr]aBtRw@|GU`[m@nIGnN[rj@}@xXeAdIQ~DAtDBpXp@`DLzCH~CB|ACfEOrTaArHYhS_AxDc@|Be@vBo@pa@wNrCcA~BgA|AeAlAgARI",
       levels: "B??????@????@???@????@???@????????@?????@??????@???@???@????B",
       zoomFactor: 32,
       numLevels: 4
       },
     mid_lat: 29.802213,
     mid_lon: -98.106553
     }
     ,
     {
     turnHtml : "<span class=\'turn-title\'>FM 306 to Old FM 306</span><p /><span class=\'turn-subtitle\'>RIGHT onto Old FM 306</span><p />Old FM 306 T's into FM 306 just after crossing the railroad tracks.<p /><span class=\'turn-label\'>turn-at distance</span>: 25.99 miles",
     roadHtml: "<span class=\'seg-title\'>Old FM 306</span><p />Shortcut from FM 306 to Hunter Rd.<p /><span class=\'seg-label\'>distance</span>: 0.19 miles<br /><span class=\'seg-label\'>lanes</span>: 1<br /><span class=\'seg-label\'>shoulder</span>: 0<br /><span class=\'seg-label\'>traffic</span>: Light<br /><span class=\'seg-label\'>speed</span>: 30",
     profileHtml: "<img src=\'Tour-de-Gruene-2009-race_prof_small_1_12.png\' />",
     polyline : {
       color: "#FF0000",
       weight: 3,
       points: "atptDzawuQTBNLpA`Bh@Pb@Iz@c@dDcCXA",
       levels: "B???@???B",
       zoomFactor: 32,
       numLevels: 4
       },
     mid_lat: 29.744648,
     mid_lon: -98.100331
     }
     ,
     {
     turnHtml : "<span class=\'turn-title\'>Old FM 306 to Hunter Rd.</span><p /><span class=\'turn-subtitle\'>RIGHT onto Hunter Rd.</span><p /><p /><span class=\'turn-label\'>turn-at distance</span>: 26.17 miles",
     roadHtml: "<span class=\'seg-title\'>Hunter Rd.</span><p />Head back into Gruene.<p /><span class=\'seg-label\'>distance</span>: 0.31 miles<br /><span class=\'seg-label\'>lanes</span>: 2<br /><span class=\'seg-label\'>shoulder</span>: 0<br /><span class=\'seg-label\'>traffic</span>: Light<br /><span class=\'seg-label\'>speed</span>: 30",
     profileHtml: "<img src=\'Tour-de-Gruene-2009-race_prof_small_1_13.png\' />",
     polyline : {
       color: "#FF0000",
       weight: 3,
       points: "_fptDl`wuQXVj@jAhCvEhAnAvA|@zEdCzA|@",
       levels: "B???@??B",
       zoomFactor: 32,
       numLevels: 4
       },
     mid_lat: 29.741798,
     mid_lon: -98.101412
     }
     ,
     {
     turnHtml : "<span class=\'turn-title\'>Hunter Rd. to New Braunfels St.</span><p /><span class=\'turn-subtitle\'>RIGHT onto New Braunfels St.</span><p />New Braunfels St. angles off to the right as you enter Gruene.<p /><span class=\'turn-label\'>turn-at distance</span>: 26.49 miles",
     roadHtml: "<span class=\'seg-title\'>New Braunfels St.</span><p />The time trial ends at the flag pole in front of Body Werks.<p /><span class=\'seg-label\'>distance</span>: 0.06 miles<br /><span class=\'seg-label\'>lanes</span>: 0<br /><span class=\'seg-label\'>shoulder</span>: 0<br /><span class=\'seg-label\'>traffic</span>: None<br /><span class=\'seg-label\'>speed</span>: 5",
     profileHtml: "<img src=\'Tour-de-Gruene-2009-race_prof_small_1_14.png\' />",
     polyline : {
       color: "#FF0000",
       weight: 3,
       points: "upotDztwuQDd@@pANrA",
       levels: "B??B",
       zoomFactor: 32,
       numLevels: 4
       },
     mid_lat: 29.73977,
     mid_lon: -98.102918
     }
   ]
];

var turns = [
   
   [
     
     {
     html : "<span class=\'turn-title\'>starting line to River Rd.</span><p /><span class=\'turn-subtitle\'>NORTH on River Rd.</span><p /><p /><span class=\'turn-label\'>turn-at distance</span>: 0.00 miles",
     icon: "0.0.png",
     min_zoom: 0,
     lat: 29.764386,
     lon: -98.141729
     }
     ,
     {
     html : "<span class=\'turn-title\'>River Rd. to River Rd.</span><p /><span class=\'turn-subtitle\'>TURN AROUND at Pecan Creek Rd.</span><p />Pecan Creek Rd. is a loop and hits River Rd. twice in quick succession. The turn-around is at the second intersection.<p /><span class=\'turn-label\'>turn-at distance</span>: 7.92 miles",
     icon: "7.9.png",
     min_zoom: 10,
     lat: 29.829909,
     lon: -98.164313
     }
   ]
   ,
   [
     
     {
     html : "<span class=\'turn-title\'>starting line to parking lot</span><p /><span class=\'turn-subtitle\'>STRAIGHT into the parking lot.</span><p /><p /><span class=\'turn-label\'>turn-at distance</span>: 0.00 miles",
     icon: "0.0.png",
     min_zoom: 0,
     lat: 29.739021,
     lon: -98.104548
     }
     ,
     {
     html : "<span class=\'turn-title\'>parking lot to New Braunfels St.</span><p /><span class=\'turn-subtitle\'>LEFT onto New Braunfels St.</span><p />The parking lot empties onto New Braunfels St.<p /><span class=\'turn-label\'>turn-at distance</span>: 0.03 miles",
     icon: "0.0.png",
     min_zoom: 17,
     lat: 29.739341,
     lon: -98.104816
     }
     ,
     {
     html : "<span class=\'turn-title\'>New Braunfels St. to Gruene Rd.</span><p /><span class=\'turn-subtitle\'>STRAIGHT onto Gruene Rd.</span><p />Head down the hill towards the river.<p /><span class=\'turn-label\'>turn-at distance</span>: 0.05 miles",
     icon: "0.0.png",
     min_zoom: 18,
     lat: 29.739092,
     lon: -98.104964
     }
     ,
     {
     html : "<span class=\'turn-title\'>Gruene Rd. to Ervenberg Ave.</span><p /><span class=\'turn-subtitle\'>RIGHT onto Ervenberg Ave.</span><p />Ervenberg Ave. T's in on the right.<p /><span class=\'turn-label\'>turn-at distance</span>: 0.36 miles",
     icon: "0.4.png",
     min_zoom: 14,
     lat: 29.736301,
     lon: -98.108864
     }
     ,
     {
     html : "<span class=\'turn-title\'>Ervenberg Ave. to Edwards Blvd.</span><p /><span class=\'turn-subtitle\'>LEFT onto Edwards Blvd.</span><p />Ervenberg Ave. dead-ends into Edwards Blvd.<p /><span class=\'turn-label\'>turn-at distance</span>: 1.01 miles",
     icon: "1.0.png",
     min_zoom: 13,
     lat: 29.744344,
     lon: -98.112467
     }
     ,
     {
     html : "<span class=\'turn-title\'>Edwards Blvd. to River Rd.</span><p /><span class=\'turn-subtitle\'>RIGHT onto River Rd.</span><p />Edwards Blvd. dead-ends into River Rd.<p /><span class=\'turn-label\'>turn-at distance</span>: 2.20 miles",
     icon: "2.2.png",
     min_zoom: 12,
     lat: 29.734395,
     lon: -98.128555
     }
     ,
     {
     html : "<span class=\'turn-title\'>River Rd. to River Rd.</span><p /><span class=\'turn-subtitle\'>RIGHT onto River Rd.</span><p />Right at the Y. River Road Icehouse is on the corner.<p /><span class=\'turn-label\'>turn-at distance</span>: 3.59 miles",
     icon: "3.6.png",
     min_zoom: 11,
     lat: 29.747125,
     lon: -98.145237
     }
     ,
     {
     html : "<span class=\'turn-title\'>River Rd. to Right Angle Dr.</span><p /><span class=\'turn-subtitle\'>RIGHT onto Right Angle Dr.</span><p />This is a Y turn.<p /><span class=\'turn-label\'>turn-at distance</span>: 14.35 miles",
     icon: "14.4.png",
     min_zoom: 9,
     lat: 29.847093,
     lon: -98.17164
     }
     ,
     {
     html : "<span class=\'turn-title\'>Right Angle Dr. to Sattler Rd.</span><p /><span class=\'turn-subtitle\'>RIGHT onto Sattler Rd.</span><p />Right Angle Dr. dead-ends into Sattler Rd.<p /><span class=\'turn-label\'>turn-at distance</span>: 14.48 miles",
     icon: "14.5.png",
     min_zoom: 15,
     lat: 29.848725,
     lon: -98.172431
     }
     ,
     {
     html : "<span class=\'turn-title\'>Sattler Rd. to FM 2673</span><p /><span class=\'turn-subtitle\'>RIGHT onto FM 2673</span><p />Sattler Rd. dead-ends into FM 2673.<p /><span class=\'turn-label\'>turn-at distance</span>: 15.20 miles",
     icon: "15.2.png",
     min_zoom: 12,
     lat: 29.853888,
     lon: -98.162826
     }
     ,
     {
     html : "<span class=\'turn-title\'>FM 2673 to FM 306</span><p /><span class=\'turn-subtitle\'>RIGHT onto FM 306</span><p />FM 2673 dead-ends into FM 306.<p /><span class=\'turn-label\'>turn-at distance</span>: 15.82 miles",
     icon: "15.8.png",
     min_zoom: 13,
     lat: 29.862346,
     lon: -98.160046
     }
     ,
     {
     html : "<span class=\'turn-title\'>FM 306 to FM 306</span><p /><span class=\'turn-subtitle\'>STRAIGHT on FM 306</span><p />This is at the corner of FM 306 and Purgatory Rd. This is where the shoulder narrows.<p /><span class=\'turn-label\'>turn-at distance</span>: 18.67 miles",
     icon: "18.7.png",
     min_zoom: 10,
     lat: 29.846576,
     lon: -98.119044
     }
     ,
     {
     html : "<span class=\'turn-title\'>FM 306 to Old FM 306</span><p /><span class=\'turn-subtitle\'>RIGHT onto Old FM 306</span><p />Old FM 306 T's into FM 306 just after crossing the railroad tracks.<p /><span class=\'turn-label\'>turn-at distance</span>: 25.99 miles",
     icon: "26.0.png",
     min_zoom: 13,
     lat: 29.74545,
     lon: -98.09966
     }
     ,
     {
     html : "<span class=\'turn-title\'>Old FM 306 to Hunter Rd.</span><p /><span class=\'turn-subtitle\'>RIGHT onto Hunter Rd.</span><p /><p /><span class=\'turn-label\'>turn-at distance</span>: 26.17 miles",
     icon: "26.2.png",
     min_zoom: 15,
     lat: 29.7432,
     lon: -98.09943
     }
     ,
     {
     html : "<span class=\'turn-title\'>Hunter Rd. to New Braunfels St.</span><p /><span class=\'turn-subtitle\'>RIGHT onto New Braunfels St.</span><p />New Braunfels St. angles off to the right as you enter Gruene.<p /><span class=\'turn-label\'>turn-at distance</span>: 26.49 miles",
     icon: "26.5.png",
     min_zoom: 15,
     lat: 29.739798,
     lon: -98.1027
     }
   ]
];