function route_hope_valley_mtb_challenge_09()
{
osMap.setCenter(new OpenSpace.MapPoint(416645,383460),1);

if (route_hope_valley_mtb_challenge_09_loaded == 0) {
route_hope_valley_mtb_challenge_09_loaded = 1;

linestyle = routelinestyle1;
length = 0;

//Shatton to Aston
mappointstoadd=new Array("420070,382300","420220,382260","420450,382130","420730,381985","421075,381700","421245,381460","421285,381460","421320,381320","421345,381265","421325,381050","421270,381020","421025,381085","420580,381355","420365,381400","420100,381470","419765,381300","419570,381335","419380,381315","419105,380950","419130,380590","419275,380550","419200,380425","418945,380195","418755,380100","418505,380095","418410,380155","418240,380505","418215,380920","418245,381200","418260,381395","418390,381645","418335,382080","418355,382215","418430,382425","418285,382475","418245,382540","418360,382595","418415,382780","418365,382815","418490,383070","418555,383410","418545,383580","418495,383645","418525,383915","418280,384000","418180,383935","418140,384075","418150,384245","418130,384315");
newline (mappointstoadd,linestyle)

length += Aston.length;

//Aston to Edale
mappointstoadd=new Array("417265,385650","417190,386065","417055,386250","416845,386450","416680,386570","416500,386750","416280,387165","415980,387620","415725,387385","415575,387350","415465,387275","415360,387335","415330,387330","415390,387160","415165,386975","415000,386850","414900,386820","414720,386640","414590,386620","414615,386570","414555,386395","414300,386225","414050,385905","413805,385790","413775,385640","413655,385550","413455,385520","413325,385440","413240,385355","412780,385205","412585,385250","412385,385255");
newline (mappointstoadd,linestyle)
lengthshortloop = length;  // The length of the first section

// Red Loop (Drawn in reverse.)
linestyle = routelinestyle2;
mappointstoadd=new Array("412385,385255","412310,385180","412130,385115","411955,385000","411755,384910","411415,384765","411325,384645");
newline (mappointstoadd,linestyle)

// Bottom of JL to bottom of Chapel Gate
mappointstoadd=new Array("408820,386130","408890,386080","409055,385985","409255,385840","409595,385555","409645,385505","410135,385405","410205,385320","410265,385305","410405,385050","410365,384955","410660,384705","410900,384745","411075,384680","411315,384650","411320,384620","411305,384245");
newline (mappointstoadd,linestyle)
length += ChapelGate.length;
// Top of Chapel Gate to top of JL
mappointstoadd=new Array("409850,383120","409910,382905","409360,382605","409315,382550","409155,382510","409025,382595","408980,382670","408910,382640","408475,382820","408415,382930","408195,382905","407770,383210","407720,383300","407620,383340","407610,383460","407665,383640","407660,383665","407690,383755","407615,383845","407485,383835","407245,383765","406915,384005","406725,384105","406595,384300","406250,384600","406175,384655","405645,384635","405240,384925","405155,384965","405005,385345","404930,385495","404650,385830","404600,385860","404555,385855","404350,386160","404130,386410","403920,386535","403770,386790","403870,386725","404050,386705","404275,386655","404485,386675","404895,386630","405090,386510","405195,386505","405275,386360","405345,386265","405330,386105","405510,385840","405580,385805","405840,385900","406185,386030","406465,386085","406635,386065","406765,386045","407255,386225","407385,386225","407685,386065","407860,386050","408040,386085");
newline (mappointstoadd,linestyle)
length += JacobsLadder.length;

lengthshortloop = length - lengthshortloop; // The length of the red loop

linestyle = routelinestyle1;
//Edale to Hope
mappointstoadd=new Array("412310,385180","412365,385070","412430,384765","412380,384645","412395,384555","412525,384500","412525,384470","412895,384525","413030,384535","413225,384565","413495,384540","413575,384500","413805,384500","414005,384390","414065,384315","414075,384145","414210,384015","414350,383855","414350,383815","414440,383725","414480,383710","414595,383610","414645,383600","414960,383270","415045,383095","415060,383010","415220,383045","415365,383125","415440,383295","415725,383405","415980,383410","416110,383370","416295,383470","416645,383460");
newline (mappointstoadd,linestyle)

lengthshortloop = length - lengthshortloop; // Total length - The length of the red loop
lengthshortloop = Math.round(lengthshortloop);
lengthshortloop_km = ((Math.round(lengthshortloop/100))/10);
lengthshortloop_mi = (Math.round((lengthshortloop*0.6214)/100))/10;

length = Math.round(length);
length_km = ((Math.round(length/100))/10);
length_mi = (Math.round((length*0.6214)/100))/10;

//Marker: Start
routedesription = "<b>9th Hope Valley Mountain Bike Challenge 2009<br />Start Point</b><br />Shatton<br />Calculated Short (Green) Distance: " + lengthshortloop_km + "km / " + lengthshortloop_mi + "mi" + "<br />Calculated Full (Green+Red) Distance: " + length_km + "km / " + length_mi + "mi" + "<br /><a href=''>More Info</a>";
	marker = osMap.createMarker(new OpenSpace.MapPoint(420070,382300),null,routedesription,new OpenLayers.Size(450, 180));

//Marker: Length Junction
routedesription = "<b>9th Hope Valley Mountain Bike Challenge 2009</b><br />Length Route Junction - The short route turns left, the full goes straight on UP Jacob's Ladder.";
	marker = osMap.createMarker(new OpenSpace.MapPoint(412400,385245),null,routedesription,new OpenLayers.Size(450, 150));

//Marker: Finish
routedesription = "<b>9th Hope Valley Mountain Bike Challenge 2009<br />Finish Point</b><br />Car Parking and Registration<br />Hope Valley College - S33 6SD";
	marker = osMap.createMarker(new OpenSpace.MapPoint(416645,383460),null,routedesription,new OpenLayers.Size(450, 150));

}
}

