/***********************
* Adobe Edge Composition Actions
*
* Edit this file with caution, being careful to preserve 
* function signatures and comments starting with 'Edge' to maintain the 
* ability to interact with these actions from within Adobe Edge
*
***********************/
(function($, Edge, compId){
var Composition = Edge.Composition, Symbol = Edge.Symbol; // aliases for commonly used Edge classes

   //Edge symbol: 'stage'
   (function(symbolName) {
      
      
      Symbol.bindElementAction(compId, symbolName, "document", "compositionReady", function(sym, e) {
var stages=[811243,811244,811245,811246,811247,811248,811249,811250,811251,811253,811254,811255,811256,811257,811258,811260,811261,811262,811263,811264,811265];
//var stages=[633696,633697,633698,633699,633700,633701,633702,633703,633704,633706,633707,633708,633709,633710,633711,633713,633714,633715,633716,633717,633718];
var todayStage=0;
         var headline;
         var headlinetxt = sym.getSymbol("styleMc").$("headlineTxt").css("pointer-events","none");
         var source;
         var sourcetxt = sym.getSymbol("baseBar").$("sourceTxt").css("pointer-events","none");
         var menuIcon0;
         var menuIcon0txt = sym.getSymbol("styleMc").getSymbol("menuBtn0").$("txt").css("pointer-events","none");
         var menuIcon1;
         var menuIcon1txt = sym.getSymbol("styleMc").getSymbol("menuBtn1").$("txt").css("pointer-events","none");
         var menuIcon2;
         var menuIcon2txt = sym.getSymbol("styleMc").getSymbol("menuBtn2").$("txt").css("pointer-events","none");
         var menuIcon3;
         var menuIcon3txt = sym.getSymbol("styleMc").getSymbol("menuBtn3").$("txt").css("pointer-events","none");
         var menuTxt0;
         var menuTxt0txt = sym.getSymbol("styleMc").$("menuTxt0").css("pointer-events","none");
         var menuTxt1;
         var menuTxt1txt = sym.getSymbol("styleMc").$("menuTxt1").css("pointer-events","none");
         var menuTxt2;
         var menuTxt2txt = sym.getSymbol("styleMc").$("menuTxt2").css("pointer-events","none");
         var menuTxt3;
         var menuTxt3txt = sym.getSymbol("styleMc").$("menuTxt3").css("pointer-events","none");
         var nameShort0;
         var nameShort0txt = sym.getSymbol("teamsMc").getSymbol("teamsSlider").getSymbol("teamsSlideClip").getSymbol("teams1Mc").$("nameShort0").css("pointer-events","none");
         var nameShort1;
         var nameShort1txt = sym.getSymbol("teamsMc").getSymbol("teamsSlider").getSymbol("teamsSlideClip").getSymbol("teams1Mc").$("nameShort1").css("pointer-events","none");
         var nameShort2;
         var nameShort2txt = sym.getSymbol("teamsMc").getSymbol("teamsSlider").getSymbol("teamsSlideClip").getSymbol("teams1Mc").$("nameShort2").css("pointer-events","none");
         var nameShort3;
         var nameShort3txt = sym.getSymbol("teamsMc").getSymbol("teamsSlider").getSymbol("teamsSlideClip").getSymbol("teams1Mc").$("nameShort3").css("pointer-events","none");
         var nameShort4;
         var nameShort4txt = sym.getSymbol("teamsMc").getSymbol("teamsSlider").getSymbol("teamsSlideClip").getSymbol("teams1Mc").$("nameShort4").css("pointer-events","none");
         var nameShort5;
         var nameShort5txt = sym.getSymbol("teamsMc").getSymbol("teamsSlider").getSymbol("teamsSlideClip").getSymbol("teams2Mc").$("nameShort5").css("pointer-events","none");
         var nameShort6;
         var nameShort6txt = sym.getSymbol("teamsMc").getSymbol("teamsSlider").getSymbol("teamsSlideClip").getSymbol("teams2Mc").$("nameShort6").css("pointer-events","none");
         var nameShort7;
         var nameShort7txt = sym.getSymbol("teamsMc").getSymbol("teamsSlider").getSymbol("teamsSlideClip").getSymbol("teams2Mc").$("nameShort7").css("pointer-events","none");
         var nameShort8;
         var nameShort8txt = sym.getSymbol("teamsMc").getSymbol("teamsSlider").getSymbol("teamsSlideClip").getSymbol("teams2Mc").$("nameShort8").css("pointer-events","none");
         var nameShort9;
         var nameShort9txt = sym.getSymbol("teamsMc").getSymbol("teamsSlider").getSymbol("teamsSlideClip").getSymbol("teams2Mc").$("nameShort9").css("pointer-events","none");
         var nameShort10;
         var nameShort10txt = sym.getSymbol("teamsMc").getSymbol("teamsSlider").getSymbol("teamsSlideClip").getSymbol("teams3Mc").$("nameShort10").css("pointer-events","none");
         var nameShort11;
         var nameShort11txt = sym.getSymbol("teamsMc").getSymbol("teamsSlider").getSymbol("teamsSlideClip").getSymbol("teams3Mc").$("nameShort11").css("pointer-events","none");
         var nameShort12;
         var nameShort12txt = sym.getSymbol("teamsMc").getSymbol("teamsSlider").getSymbol("teamsSlideClip").getSymbol("teams3Mc").$("nameShort12").css("pointer-events","none");
         var nameShort13;
         var nameShort13txt = sym.getSymbol("teamsMc").getSymbol("teamsSlider").getSymbol("teamsSlideClip").getSymbol("teams3Mc").$("nameShort13").css("pointer-events","none");
         var nameShort14;
         var nameShort14txt = sym.getSymbol("teamsMc").getSymbol("teamsSlider").getSymbol("teamsSlideClip").getSymbol("teams3Mc").$("nameShort14").css("pointer-events","none");
         var nameShort15;
         var nameShort15txt = sym.getSymbol("teamsMc").getSymbol("teamsSlider").getSymbol("teamsSlideClip").getSymbol("teams4Mc").$("nameShort15").css("pointer-events","none");
         var nameShort16;
         var nameShort16txt = sym.getSymbol("teamsMc").getSymbol("teamsSlider").getSymbol("teamsSlideClip").getSymbol("teams4Mc").$("nameShort16").css("pointer-events","none");
         var nameShort17;
         var nameShort17txt = sym.getSymbol("teamsMc").getSymbol("teamsSlider").getSymbol("teamsSlideClip").getSymbol("teams4Mc").$("nameShort17").css("pointer-events","none");
         var nameShort18;
         var nameShort18txt = sym.getSymbol("teamsMc").getSymbol("teamsSlider").getSymbol("teamsSlideClip").getSymbol("teams4Mc").$("nameShort18").css("pointer-events","none");
         var nameShort19;
         var nameShort19txt = sym.getSymbol("teamsMc").getSymbol("teamsSlider").getSymbol("teamsSlideClip").getSymbol("teams4Mc").$("nameShort19").css("pointer-events","none");
         var nameShort20;
         var nameShort20txt = sym.getSymbol("teamsMc").getSymbol("teamsSlider").getSymbol("teamsSlideClip").getSymbol("teams5Mc").$("nameShort20").css("pointer-events","none");
         var nameShort21;
         var nameShort21txt = sym.getSymbol("teamsMc").getSymbol("teamsSlider").getSymbol("teamsSlideClip").getSymbol("teams5Mc").$("nameShort21").css("pointer-events","none");
         var nameShort22;
         var nameShort22txt = sym.getSymbol("teamsMc").getSymbol("teamsSlider").getSymbol("teamsSlideClip").getSymbol("teams5Mc").$("nameShort22").css("pointer-events","none");
         var name;
         var nametxt = sym.getSymbol("teamsMc").$("name").css("pointer-events","none");
         var country;
         var countrytxt = sym.getSymbol("teamsMc").$("country").css("pointer-events","none");
         var riders;
         var riderstxt = sym.getSymbol("teamsMc").$("riders").css("pointer-events","none");

         var txt1;
         var txt1txt = sym.getSymbol("routeMc").$("txt1").css("pointer-events","none");
         var txt2;
         var txt2txt = sym.getSymbol("routeMc").$("txt2").css("pointer-events","none");
         var txt3;
         var txt3txt = sym.getSymbol("routeMc").$("txt3").css("pointer-events","none");
         var txt4;
         var txt4txt = sym.getSymbol("routeMc").$("txt4").css("pointer-events","none");
         var txt5;
         var txt5txt = sym.getSymbol("routeMc").$("txt5").css("pointer-events","none");
         var txt6;
         var txt6txt = sym.getSymbol("teamsMc").$("txt6").css("pointer-events","none");

         var txt8;
         var txt8txt = sym.$("txt8").css("pointer-events","none");
         var txt9;
         var txt9txt = sym.$("txt9").css("pointer-events","none");
         var txt10;
         var txt10txt = sym.$("txt10").css("pointer-events","none");
         var txt11;
         var txt11txt = sym.$("txt11").css("pointer-events","none");
         var txt12;
         var txt12txt = sym.$("txt12").css("pointer-events","none");
         var txt13;
         var txt13txt = sym.$("txt13").css("pointer-events","none");
         var txt14;
         var txt14txt = sym.$("txt14").css("pointer-events","none");
			var txt15;
         var stagetxt0 = sym.getSymbol("stageMc").getSymbol("stagesHead").$("stageTxt0").css("pointer-events","none");
         var stagetxt1 = sym.getSymbol("stageMc").getSymbol("stagesHead").$("stageTxt1").css("pointer-events","none");        
         var stagetxt2 = sym.getSymbol("stageMc").getSymbol("stagesHead").$("stageTxt2").css("pointer-events","none");
         var txt16;
         var classtxt= sym.getSymbol("results").getSymbol("classificationsBtn").$("phaseTxt").css("pointer-events","none");
			var txt17;
         var txt17txt = sym.getSymbol("results").$("txt17").css("pointer-events","none");
         var txt18;
         var txt18txt = sym.getSymbol("results").$("txt18").css("pointer-events","none");         
			var txt19;
			var classtxt0=sym.getSymbol("results").getSymbol("classBtn0").$("classTxt").css("pointer-events","none");
			var classtxt1=sym.getSymbol("results").getSymbol("classBtn1").$("classTxt").css("pointer-events","none");
			var classtxt2=sym.getSymbol("results").getSymbol("classBtn2").$("classTxt").css("pointer-events","none");
			var classtxt3=sym.getSymbol("results").getSymbol("classBtn3").$("classTxt").css("pointer-events","none");
			var classtxt4=sym.getSymbol("results").getSymbol("classBtn4").$("classTxt").css("pointer-events","none");
			var txt20;
         var stagetxt3 = sym.getSymbol("stageMc").getSymbol("stagesHead").$("stageTxt3").css("pointer-events","none");
			var string0;
			var string1;
			var string2;
			var string3;
			var string4;
			var string5;
			var stagestring;
			var datestring;
			var tablestring;
			var resultstring0;
			var resultstring1;
			var resultstring2;
			var keystring;
			var profilekey;
			var distance;
			var stage0_distance;
			var distancestring0;
			var stage0_route;
			var routestring0;
			var stage0_key0 = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc0").$("stage0key0").css("pointer-events","none");
			var stage0_key1 = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc0").$("stage0key1").css("pointer-events","none");
			var stage0_key2 = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc0").$("stage0key2").css("pointer-events","none");
         var stage0_txt2;
         var stage0_txt2txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc0").$("stage0_txt2").css("pointer-events","none");
         var stage0_txt3;
         var stage0_txt3txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc0").$("stage0_txt3").css("pointer-events","none");
         var stage0_txt4;
         var stage0_txt4txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc0").$("stage0_txt4").css("pointer-events","none");
         var stage0_txt5;
         var stage0_txt5txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc0").$("stage0_txt5").css("pointer-events","none");
         var stage0_txt6txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc0").$("stage0_txt6").css("pointer-events","none");
         var stage0_txt7txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc0").$("d1").css("pointer-events","none");
         var stage0_txt8txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc0").$("d2").css("pointer-events","none");
         var stage0_txt9txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc0").$("d3").css("pointer-events","none");
         var stage0_txt10txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc0").$("d4").css("pointer-events","none");

			var stage1_distance;
			var distancestring1;
			var stage1_route;
			var routestring1;
			var stage1_key0= sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc1").$("stage1_key0").css("pointer-events","none");
			var stage1_key1= sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc1").$("stage1_key1").css("pointer-events","none");
         var stage1_txt1;
         var stage1_txt1txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc1").$("stage1_txt1").css("pointer-events","none");
         var stage1_txt2;
         var stage1_txt2txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc1").$("stage1_txt2").css("pointer-events","none");
         var stage1_txt3;
         var stage1_txt3txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc1").$("stage1_txt3").css("pointer-events","none");
         var stage1_txt4;
         var stage1_txt4txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc1").$("stage1_txt4").css("pointer-events","none");
         var stage1_txt5;
         var stage1_txt5txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc1").$("stage1_txt5").css("pointer-events","none");
         var stage1_txt6txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc1").$("stage1_txt6").css("pointer-events","none");
         var stage1_txt7txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc1").$("stage1_txt7").css("pointer-events","none");
         var stage1_txt8txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc1").$("stage1_txt8").css("pointer-events","none");
			var stage2_distance;
			var distancestring2;
			var stage2_route;
			var routestring2;
			var stage2_key0= sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc2").$("stage2_key0").css("pointer-events","none");
			var stage2_key1= sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc2").$("stage2_key1").css("pointer-events","none");
			var stage2_key2= sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc2").$("stage2_key2").css("pointer-events","none");
         var stage2_txt1;
         var stage2_txt1txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc2").$("stage2_txt1").css("pointer-events","none");
         var stage2_txt2;
         var stage2_txt2txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc2").$("stage2_txt2").css("pointer-events","none");
         var stage2_txt3;
         var stage2_txt3txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc2").$("stage2_txt3").css("pointer-events","none");
         var stage2_txt4;
         var stage2_txt4txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc2").$("stage2_txt4").css("pointer-events","none");
         var stage2_txt5;
         var stage2_txt5txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc2").$("stage2_txt5").css("pointer-events","none");
         var stage2_txt6txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc2").$("stage2_txt6").css("pointer-events","none");
         var stage2_txt7txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc2").$("stage2_txt7").css("pointer-events","none");
         var stage2_txt8txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc2").$("stage2_txt8").css("pointer-events","none");
         var stage2_txt9txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc2").$("stage2_txt9").css("pointer-events","none");
         var stage2_txt10txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc2").$("stage2_txt10").css("pointer-events","none");
         var stage2_txt11txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc2").$("stage2_txt11").css("pointer-events","none");
         var stage2_txt12txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc2").$("stage2_txt12").css("pointer-events","none");

 			var stage3_distance;
			var distancestring3;
			var stage3_route;
			var routestring3;
			var stage3_key0= sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc3").$("stage3_key0").css("pointer-events","none");
			var stage3_key1= sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc3").$("stage3_key1").css("pointer-events","none");
			var stage3_key2= sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc3").$("stage3_key2").css("pointer-events","none");
         var stage3_txt1;
         var stage3_txt1txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc3").$("stage3_txt1").css("pointer-events","none");
         var stage3_txt2;
         var stage3_txt2txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc3").$("stage3_txt2").css("pointer-events","none");
         var stage3_txt3;
         var stage3_txt3txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc3").$("stage3_txt3").css("pointer-events","none");
         var stage3_txt4;
         var stage3_txt4txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc3").$("stage3_txt4").css("pointer-events","none");
         var stage3_txt5;
         var stage3_txt5txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc3").$("stage3_txt5").css("pointer-events","none");
         var stage3_txt6txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc3").$("stage3_txt6").css("pointer-events","none");
         var stage3_txt7txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc3").$("stage3_txt7").css("pointer-events","none");
         var stage3_txt8txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc3").$("stage3_txt8").css("pointer-events","none");
         var stage3_txt9txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc3").$("stage3_txt9").css("pointer-events","none");
         var stage3_txt10txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc3").$("stage3_txt10").css("pointer-events","none");
         var stage3_txt11txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc3").$("stage3_txt11").css("pointer-events","none");

			var stage4_distance;
			var distancestring4;
			var stage4_route;
			var routestring4;
			var stage4_key0= sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc4").$("stage4_key0").css("pointer-events","none");
			var stage4_key1= sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc4").$("stage4_key1").css("pointer-events","none");
			var stage4_key2= sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc4").$("stage4_key2").css("pointer-events","none");
         var stage4_txt1;
         var stage4_txt1txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc4").$("stage4_txt1").css("pointer-events","none");
         var stage4_txt2;
         var stage4_txt2txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc4").$("stage4_txt2").css("pointer-events","none");
         var stage4_txt3;
         var stage4_txt3txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc4").$("stage4_txt3").css("pointer-events","none");
         var stage4_txt4;
         var stage4_txt4txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc4").$("stage4_txt4").css("pointer-events","none");
         var stage4_txt5;
         var stage4_txt5txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc4").$("stage4_txt5").css("pointer-events","none");
         var stage4_txt6txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc4").$("stage4_txt6").css("pointer-events","none");
         var stage4_txt7txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc4").$("stage4_txt7").css("pointer-events","none");
         var stage4_txt8txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc4").$("stage4_txt8").css("pointer-events","none");
         var stage4_txt9txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc4").$("stage4_txt9").css("pointer-events","none");
         var stage4_txt10txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc4").$("stage4_txt10").css("pointer-events","none");
         var stage4_txt11txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc4").$("stage4_txt11").css("pointer-events","none");
         var stage4_txt12txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc4").$("stage4_txt12").css("pointer-events","none");
			var stage5_distance;
			var distancestring5;
			var stage5_route;
			var routestring5;
			var stage5_key0= sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc5").$("stage5_key0").css("pointer-events","none");
			var stage5_key1= sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc5").$("stage5_key1").css("pointer-events","none");
			var stage5_key2= sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc5").$("stage5_key2").css("pointer-events","none");
         var stage5_txt1;
         var stage5_txt1txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc5").$("stage5_txt1").css("pointer-events","none");
         var stage5_txt2;
         var stage5_txt2txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc5").$("stage5_txt2").css("pointer-events","none");
         var stage5_txt3;
         var stage5_txt3txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc5").$("stage5_txt3").css("pointer-events","none");
         var stage5_txt4txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc5").$("stage5_txt4").css("pointer-events","none");
         var stage5_txt5txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc5").$("stage5_txt5").css("pointer-events","none");
         var stage5_txt6txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc5").$("stage5_txt6").css("pointer-events","none");
         var stage5_txt7txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc5").$("stage5_txt7").css("pointer-events","none");
         var stage5_txt8txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc5").$("stage5_txt8").css("pointer-events","none");
			var stage6_distance;
			var distancestring6;
			var stage6_route;
			var routestring6;
			var stage6_key0= sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc6").$("stage6_key0").css("pointer-events","none");
			var stage6_key1= sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc6").$("stage6_key1").css("pointer-events","none");
			var stage6_key2= sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc6").$("stage6_key2").css("pointer-events","none");
			var stage6_txt1;
         var stage6_txt1txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc6").$("stage6_txt1").css("pointer-events","none");
         var stage6_txt2;
         var stage6_txt2txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc6").$("stage6_txt2").css("pointer-events","none");
         var stage6_txt3;
         var stage6_txt3txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc6").$("stage6_txt3").css("pointer-events","none");
         var stage6_txt4;
         var stage6_txt4txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc6").$("stage6_txt4").css("pointer-events","none");
         var stage6_txt5;
         var stage6_txt5txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc6").$("stage6_txt5").css("pointer-events","none");
         var stage6_txt6;
         var stage6_txt6txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc6").$("stage6_txt6").css("pointer-events","none");
         var stage6_txt7;
         var stage6_txt7txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc6").$("stage6_txt7").css("pointer-events","none");
         var stage6_txt8txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc6").$("stage6_txt8").css("pointer-events","none");
         var stage6_txt9txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc6").$("stage6_txt9").css("pointer-events","none");
         var stage6_txt10txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc6").$("stage6_txt10").css("pointer-events","none");
         var stage6_txt11txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc6").$("stage6_txt11").css("pointer-events","none");
         var stage6_txt12txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc6").$("stage6_txt12").css("pointer-events","none");
         var stage6_txt13txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc6").$("stage6_txt13").css("pointer-events","none");

			var stage7_distance;
			var distancestring7;
			var stage7_route;
			var routestring7;
			var stage7_key0= sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc7").$("stage7_key0").css("pointer-events","none");
			var stage7_key1= sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc7").$("stage7_key1").css("pointer-events","none");
			var stage7_key2= sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc7").$("stage7_key2").css("pointer-events","none");
         var stage7_txt3;
         var stage7_txt3txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc7").$("stage7_txt3").css("pointer-events","none");
         var stage7_txt4;
         var stage7_txt4txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc7").$("stage7_txt4").css("pointer-events","none");
         var stage7_txt5;
         var stage7_txt5txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc7").$("stage7_txt5").css("pointer-events","none");
         var stage7_txt6;
         var stage7_txt6txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc7").$("stage7_txt6").css("pointer-events","none");
         var stage7_txt7txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc7").$("stage7_txt7").css("pointer-events","none");
         var stage7_txt8txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc7").$("stage7_txt8").css("pointer-events","none");
         var stage7_txt9txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc7").$("stage7_txt9").css("pointer-events","none");
         var stage7_txt10txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc7").$("stage7_txt10").css("pointer-events","none");
         var stage7_txt11txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc7").$("stage7_txt11").css("pointer-events","none");

			var stage8_distance;
			var distancestring8;
			var stage8_route;
			var routestring8;
			var stage8_key0= sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc8").$("stage8_key0").css("pointer-events","none");
			var stage8_key1= sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc8").$("stage8_key1").css("pointer-events","none");
			var stage8_key2= sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc8").$("stage8_key2").css("pointer-events","none");
         var stage8_txt1;
         var stage8_txt1txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc8").$("stage8_txt1").css("pointer-events","none");
         var stage8_txt2;
         var stage8_txt2txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc8").$("stage8_txt2").css("pointer-events","none");
         var stage8_txt3;
         var stage8_txt3txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc8").$("stage8_txt3").css("pointer-events","none");
         var stage8_txt4;
         var stage8_txt4txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc8").$("stage8_txt4").css("pointer-events","none");
         var stage8_txt5;
         var stage8_txt5txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc8").$("stage8_txt5").css("pointer-events","none");
         var stage8_txt6;
         var stage8_txt6txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc8").$("stage8_txt6").css("pointer-events","none");
         var stage8_txt7;
         var stage8_txt7txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc8").$("stage8_txt7").css("pointer-events","none");
         var stage8_txt8txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc8").$("stage8_txt8").css("pointer-events","none");
         var stage8_txt9txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc8").$("stage8_txt9").css("pointer-events","none");
         var stage8_txt10txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc8").$("stage8_txt10").css("pointer-events","none");
         var stage8_txt11txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc8").$("stage8_txt11").css("pointer-events","none");
         var stage8_txt12txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc8").$("stage8_txt12").css("pointer-events","none");
         var stage8_txt13txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc8").$("stage8_txt13").css("pointer-events","none");
         var stage8_txt14txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc8").$("stage8_txt14").css("pointer-events","none");
         var stage8_txt15txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc8").$("stage8_txt15").css("pointer-events","none");

			var stage9_distance;
			var distancestring9;
			var stage9_route;
			var routestring9;
			var stage9_key0= sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc9").$("stage9_key0").css("pointer-events","none");
			var stage9_key1= sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc9").$("stage9_key1").css("pointer-events","none");
			var stage9_key2= sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc9").$("stage9_key2").css("pointer-events","none");
         var stage9_txt1;
         var stage9_txt1txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc9").$("stage9_txt1").css("pointer-events","none");
         var stage9_txt2;
         var stage9_txt2txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc9").$("stage9_txt2").css("pointer-events","none");
         var stage9_txt3;
         var stage9_txt3txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc9").$("stage9_txt3").css("pointer-events","none");
         var stage9_txt4;
         var stage9_txt4txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc9").$("stage9_txt4").css("pointer-events","none");
         var stage9_txt5txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc9").$("stage9_txt5").css("pointer-events","none");
         var stage9_txt6txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc9").$("stage9_txt6").css("pointer-events","none");
         var stage9_txt7txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc9").$("stage9_txt7").css("pointer-events","none");
         var stage9_txt8txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc9").$("stage9_txt8").css("pointer-events","none");
         var stage9_txt9txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc9").$("stage9_txt9").css("pointer-events","none");
			var stage10_distance;
			var distancestring10;
			var stage10_route;
			var routestring10;
			var stage10_key0= sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc10").$("stage10_key0").css("pointer-events","none");
			var stage10_key1= sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc10").$("stage10_key1").css("pointer-events","none");
			var stage10_key2= sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc10").$("stage10_key2").css("pointer-events","none");
			var stage10_txt1;
         var stage10_txt1txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc10").$("stage10_txt1").css("pointer-events","none");
         var stage10_txt2;
         var stage10_txt2txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc10").$("stage10_txt2").css("pointer-events","none");
         var stage10_txt3;
         var stage10_txt3txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc10").$("stage10_txt3").css("pointer-events","none");
         var stage10_txt4;
         var stage10_txt4txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc10").$("stage10_txt4").css("pointer-events","none");
         var stage10_txt5txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc10").$("stage10_txt5").css("pointer-events","none");
         var stage10_txt6txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc10").$("stage10_txt6").css("pointer-events","none");
         var stage10_txt7txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc10").$("stage10_txt7").css("pointer-events","none");
         var stage10_txt8txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc10").$("stage10_txt8").css("pointer-events","none");
         var stage10_txt9txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc10").$("stage10_txt9").css("pointer-events","none");
         var stage10_txt10txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc10").$("stage10_txt10").css("pointer-events","none");
			var stage11_distance;
			var distancestring11;
			var stage11_route;
			var routestring11;
			var stage11_key0= sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc11").$("stage11_key0").css("pointer-events","none");
			var stage11_key1= sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc11").$("stage11_key1").css("pointer-events","none");
			var stage11_key2= sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc11").$("stage11_key2").css("pointer-events","none");
			var stage11_txt1;
         var stage11_txt1txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc11").$("stage11_txt1").css("pointer-events","none");
         var stage11_txt2;
         var stage11_txt2txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc11").$("stage11_txt2").css("pointer-events","none");
         var stage11_txt3;
         var stage11_txt3txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc11").$("stage11_txt3").css("pointer-events","none");
         var stage11_txt4;
         var stage11_txt4txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc11").$("stage11_txt4").css("pointer-events","none");
         var stage11_txt5;
         var stage11_txt5txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc11").$("stage11_txt5").css("pointer-events","none");
         var stage11_txt6txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc11").$("stage11_txt6").css("pointer-events","none");
         var stage11_txt7txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc11").$("stage11_txt7").css("pointer-events","none");
         var stage11_txt8txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc11").$("stage11_txt8").css("pointer-events","none");
         var stage11_txt9txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc11").$("stage11_txt9").css("pointer-events","none");
         var stage11_txt10txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc11").$("stage11_txt10").css("pointer-events","none");
         var stage11_txt11txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc11").$("stage11_txt11").css("pointer-events","none");

			var stage12_distance;
			var distancestring12;
			var stage12_route;
			var routestring12;
			var stage12_key0= sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc12").$("stage12_key0").css("pointer-events","none");
			var stage12_key1= sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc12").$("stage12_key1").css("pointer-events","none");
			var stage12_key2= sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc12").$("stage12_key2").css("pointer-events","none");
         var stage12_txt1;
         var stage12_txt1txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc12").$("stage12_txt1").css("pointer-events","none");
         var stage12_txt2;
         var stage12_txt2txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc12").$("stage12_txt2").css("pointer-events","none");
         var stage12_txt3;
         var stage12_txt3txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc12").$("stage12_txt3").css("pointer-events","none");
         var stage12_txt4;
         var stage12_txt4txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc12").$("stage12_txt4").css("pointer-events","none");
         var stage12_txt5txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc12").$("stage12_txt5").css("pointer-events","none");
         var stage12_txt6txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc12").$("stage12_txt6").css("pointer-events","none");
         var stage12_txt7txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc12").$("stage12_txt7").css("pointer-events","none");
         var stage12_txt8txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc12").$("stage12_txt8").css("pointer-events","none");
         var stage12_txt9txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc12").$("stage12_txt9").css("pointer-events","none");
         var stage12_txt10txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc12").$("stage12_txt10").css("pointer-events","none");
			var stage13_distance;
			var distancestring13;
			var stage13_route;
			var routestring13;
			var stage13_key0= sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc13").$("stage13_key0").css("pointer-events","none");
			var stage13_key1= sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc13").$("stage13_key1").css("pointer-events","none");
			var stage13_key2= sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc13").$("stage13_key2").css("pointer-events","none");
         var stage13_txt1;
         var stage13_txt1txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc13").$("stage13_txt1").css("pointer-events","none");
         var stage13_txt2;
         var stage13_txt2txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc13").$("stage13_txt2").css("pointer-events","none");
         var stage13_txt3;
         var stage13_txt3txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc13").$("stage13_txt3").css("pointer-events","none");
         var stage13_txt4;
         var stage13_txt4txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc13").$("stage13_txt4").css("pointer-events","none");
         var stage13_txt5txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc13").$("stage13_txt5").css("pointer-events","none");
         var stage13_txt6txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc13").$("stage13_txt6").css("pointer-events","none");
         var stage13_txt7txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc13").$("stage13_txt7").css("pointer-events","none");
         var stage13_txt8txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc13").$("stage13_txt8").css("pointer-events","none");
         var stage13_txt9txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc13").$("stage13_txt9").css("pointer-events","none");
         var stage13_txt10txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc13").$("stage13_txt10").css("pointer-events","none");
			var stage14_distance;
			var distancestring14;
			var stage14_route;
			var routestring14;
			var stage14_key0= sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc14").$("stage14_key0").css("pointer-events","none");
			var stage14_key1= sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc14").$("stage14_key1").css("pointer-events","none");
			var stage14_key2= sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc14").$("stage14_key2").css("pointer-events","none");
			var stage14_txt1;
         var stage14_txt1txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc14").$("stage14_txt1").css("pointer-events","none");
         var stage14_txt2;
         var stage14_txt2txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc14").$("stage14_txt2").css("pointer-events","none");
         var stage14_txt3;
         var stage14_txt3txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc14").$("stage14_txt3").css("pointer-events","none");
         var stage14_txt4;
         var stage14_txt4txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc14").$("stage14_txt4").css("pointer-events","none");
         var stage14_txt5;
         var stage14_txt5txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc14").$("stage14_txt5").css("pointer-events","none");
         var stage14_txt6txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc14").$("stage14_txt6").css("pointer-events","none");
         var stage14_txt7txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc14").$("stage14_txt7").css("pointer-events","none");
         var stage14_txt8txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc14").$("stage14_txt8").css("pointer-events","none");
         var stage14_txt9txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc14").$("stage14_txt9").css("pointer-events","none");
         var stage14_txt10txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc14").$("stage14_txt10").css("pointer-events","none");
			var stage15_distance;
			var distancestring15;
			var stage15_route;
			var routestring15;
			var stage15_key0= sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc15").$("stage15_key0").css("pointer-events","none");
			var stage15_key1= sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc15").$("stage15_key1").css("pointer-events","none");
			var stage15_key2= sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc15").$("stage15_key2").css("pointer-events","none");
         var stage15_txt1;
         var stage15_txt1txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc15").$("stage15_txt1").css("pointer-events","none");
         var stage15_txt2;
         var stage15_txt2txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc15").$("stage15_txt2").css("pointer-events","none");
         var stage15_txt3;
         var stage15_txt3txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc15").$("stage15_txt3").css("pointer-events","none");
         var stage15_txt4;
         var stage15_txt4txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc15").$("stage15_txt4").css("pointer-events","none");
         var stage15_txt5;
         var stage15_txt5txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc15").$("stage15_txt5").css("pointer-events","none");
         var stage15_txt6txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc15").$("stage15_txt6").css("pointer-events","none");
         var stage15_txt7txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc15").$("stage15_txt7").css("pointer-events","none");
         var stage15_txt8txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc15").$("stage15_txt8").css("pointer-events","none");
         var stage15_txt9txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc15").$("stage15_txt9").css("pointer-events","none");
         var stage15_txt10txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc15").$("stage15_txt10").css("pointer-events","none");
         var stage15_txt11txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc15").$("stage15_txt11").css("pointer-events","none");
         var stage15_txt12txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc15").$("stage15_txt12").css("pointer-events","none");
			var stage16_distance;
			var distancestring16;
			var stage16_route;
			var routestring16;
			var stage16_key0= sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc16").$("stage16_key0").css("pointer-events","none");
			var stage16_key1= sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc16").$("stage16_key1").css("pointer-events","none");
			var stage16_key2= sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc16").$("stage16_key2").css("pointer-events","none");
         var stage16_txt1;
         var stage16_txt1txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc16").$("stage16_txt1").css("pointer-events","none");
         var stage16_txt2;
         var stage16_txt2txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc16").$("stage16_txt2").css("pointer-events","none");
         var stage16_txt3;
         var stage16_txt3txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc16").$("stage16_txt3").css("pointer-events","none");
         var stage16_txt4;
         var stage16_txt4txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc16").$("stage16_txt4").css("pointer-events","none");
         var stage16_txt5txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc16").$("stage16_txt5").css("pointer-events","none");
         var stage16_txt6txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc16").$("stage16_txt6").css("pointer-events","none");
         var stage16_txt7txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc16").$("stage16_txt7").css("pointer-events","none");
         var stage16_txt8txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc16").$("stage16_txt8").css("pointer-events","none");
         var stage16_txt9txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc16").$("stage16_txt9").css("pointer-events","none");
         var stage16_txt10txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc16").$("stage16_txt10").css("pointer-events","none");
			var stage17_distance;
			var distancestring17;
			var stage17_route;
			var routestring17;
			var stage17_key0= sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc17").$("stage10_key0").css("pointer-events","none");
			var stage17_key1= sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc17").$("stage10_key1").css("pointer-events","none");
			var stage17_txt1;
         var stage17_txt1txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc17").$("stage17_txt1").css("pointer-events","none");
         var stage17_txt2;
         var stage17_txt2txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc17").$("stage17_txt2").css("pointer-events","none");
         var stage17_txt3;
         var stage17_txt3txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc17").$("stage17_txt3").css("pointer-events","none");
         var stage17_txt4;
         var stage17_txt4txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc17").$("stage17_txt4").css("pointer-events","none");
         var stage17_txt5;
         var stage17_txt5txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc17").$("stage17_txt5").css("pointer-events","none");
         var stage17_txt6;
         var stage17_txt6txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc17").$("stage17_txt6").css("pointer-events","none");
         var stage17_txt7;
         var stage17_txt7txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc17").$("stage17_txt7").css("pointer-events","none");
         var stage17_txt8;
         var stage17_txt8txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc17").$("stage17_txt8").css("pointer-events","none");
         var stage17_txt9txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc17").$("stage17_txt9").css("pointer-events","none");
         var stage17_txt10txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc17").$("stage17_txt10").css("pointer-events","none");
			var stage17_txt11txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc17").$("stage17_txt11").css("pointer-events","none");
         var stage17_txt12txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc17").$("stage17_txt12").css("pointer-events","none");
			var stage18_distance;
			var distancestring18;
			var stage18_route;
			var routestring18;
			var stage18_key0= sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc18").$("stage18_key0").css("pointer-events","none");
			var stage18_key1= sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc18").$("stage18_key1").css("pointer-events","none");
			var stage18_key2= sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc18").$("stage18_key2").css("pointer-events","none");
         var stage18_txt1;
         var stage18_txt1txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc18").$("stage18_txt1").css("pointer-events","none");
         var stage18_txt2;
         var stage18_txt2txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc18").$("stage18_txt2").css("pointer-events","none");
         var stage18_txt3;
         var stage18_txt3txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc18").$("stage18_txt3").css("pointer-events","none");
         var stage18_txt4;
         var stage18_txt4txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc18").$("stage18_txt4").css("pointer-events","none");
         var stage18_txt5;
         var stage18_txt5txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc18").$("stage18_txt5").css("pointer-events","none");
         var stage18_txt6txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc18").$("stage18_txt6").css("pointer-events","none");
         var stage18_txt7txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc18").$("stage18_txt7").css("pointer-events","none");
         var stage18_txt8txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc18").$("stage18_txt8").css("pointer-events","none");
         var stage18_txt9txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc18").$("stage18_txt9").css("pointer-events","none");
         var stage18_txt10txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc18").$("stage18_txt10").css("pointer-events","none");
         var stage18_txt11txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc18").$("stage18_txt11").css("pointer-events","none");

			var stage19_distance;
			var distancestring19;
			var stage19_route;
			var routestring19;
			var stage19_key0= sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc19").$("stage19_key0").css("pointer-events","none");
			var stage19_key1= sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc19").$("stage19_key1").css("pointer-events","none");
			var stage19_key2= sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc19").$("stage19_key2").css("pointer-events","none");
			var stage19_txt1;
         var stage19_txt1txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc19").$("stage19_txt1").css("pointer-events","none");
         var stage19_txt2;
         var stage19_txt2txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc19").$("stage19_txt2").css("pointer-events","none");
         var stage19_txt3;
         var stage19_txt3txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc19").$("stage19_txt3").css("pointer-events","none");
         var stage19_txt4;
         var stage19_txt4txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc19").$("stage19_txt4").css("pointer-events","none");
         var stage19_txt5;
         var stage19_txt5txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc19").$("stage19_txt5").css("pointer-events","none");
         var stage19_txt6;
         var stage19_txt6txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc19").$("stage19_txt6").css("pointer-events","none");
         var stage19_txt7;
         var stage19_txt7txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc19").$("stage19_txt7").css("pointer-events","none");
         var stage19_txt8txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc19").$("stage19_txt8").css("pointer-events","none");
         var stage19_txt9txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc19").$("stage19_txt9").css("pointer-events","none");
         var stage19_txt10txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc19").$("stage19_txt10").css("pointer-events","none");
         var stage19_txt11txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc19").$("stage19_txt11").css("pointer-events","none");
         var stage19_txt12txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc19").$("stage19_txt12").css("pointer-events","none");
         var stage19_txt13txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc19").$("stage19_txt13").css("pointer-events","none");
         var stage19_txt14txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc19").$("stage19_txt14").css("pointer-events","none");
         var stage19_txt15txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc19").$("stage19_txt15").css("pointer-events","none");
			var stage20_distance;
			var distancestring20;
			var stage20_route;
			var routestring20;
			var stage20_key0= sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc20").$("stage20_key0").css("pointer-events","none");
			var stage20_key1= sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc20").$("stage20_key1").css("pointer-events","none");
			var stage20_key2= sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc20").$("stage20_key2").css("pointer-events","none");
         var stage20_txt1;
         var stage20_txt1txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc20").$("stage20_txt1").css("pointer-events","none");
         var stage20_txt2;
         var stage20_txt2txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc20").$("stage20_txt2").css("pointer-events","none");
         var stage20_txt3;
         var stage20_txt3txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc20").$("stage20_txt3").css("pointer-events","none");
         var stage20_txt4txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc20").$("stage20_txt4").css("pointer-events","none");
         var stage20_txt5txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc20").$("stage20_txt5").css("pointer-events","none");
         var stage20_txt6txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc20").$("stage20_txt6").css("pointer-events","none");
         var stage20_txt7txt = sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").getSymbol("profileMc20").$("stage20_txt7").css("pointer-events","none");

			var mapStart;
			var mapFinish;
			var mapStart0txt = sym.getSymbol("stageMc").getSymbol("mapsSliderMc").getSymbol("stageMapMc").getSymbol("mapMc0").$("mapStart").css("pointer-events","none");
			var mapFinish0txt = sym.getSymbol("stageMc").getSymbol("mapsSliderMc").getSymbol("stageMapMc").getSymbol("mapMc0").$("mapFinish").css("pointer-events","none");
			var mapStart1txt = sym.getSymbol("stageMc").getSymbol("mapsSliderMc").getSymbol("stageMapMc").getSymbol("mapMc1").$("mapStart").css("pointer-events","none");
			var mapFinish1txt = sym.getSymbol("stageMc").getSymbol("mapsSliderMc").getSymbol("stageMapMc").getSymbol("mapMc1").$("mapFinish").css("pointer-events","none");
			var mapStart2txt = sym.getSymbol("stageMc").getSymbol("mapsSliderMc").getSymbol("stageMapMc").getSymbol("mapMc2").$("mapStart").css("pointer-events","none");
			var mapFinish2txt = sym.getSymbol("stageMc").getSymbol("mapsSliderMc").getSymbol("stageMapMc").getSymbol("mapMc2").$("mapFinish").css("pointer-events","none");
			var mapStart3txt = sym.getSymbol("stageMc").getSymbol("mapsSliderMc").getSymbol("stageMapMc").getSymbol("mapMc3").$("mapStart").css("pointer-events","none");
			var mapFinish3txt = sym.getSymbol("stageMc").getSymbol("mapsSliderMc").getSymbol("stageMapMc").getSymbol("mapMc3").$("mapFinish").css("pointer-events","none");
			var mapStart4txt = sym.getSymbol("stageMc").getSymbol("mapsSliderMc").getSymbol("stageMapMc").getSymbol("mapMc4").$("mapStart").css("pointer-events","none");
			var mapFinish4txt = sym.getSymbol("stageMc").getSymbol("mapsSliderMc").getSymbol("stageMapMc").getSymbol("mapMc4").$("mapFinish").css("pointer-events","none");
			var mapStart5txt = sym.getSymbol("stageMc").getSymbol("mapsSliderMc").getSymbol("stageMapMc").getSymbol("mapMc5").$("mapStart").css("pointer-events","none");
			var mapFinish5txt = sym.getSymbol("stageMc").getSymbol("mapsSliderMc").getSymbol("stageMapMc").getSymbol("mapMc5").$("mapFinish").css("pointer-events","none");
			var mapStart6txt = sym.getSymbol("stageMc").getSymbol("mapsSliderMc").getSymbol("stageMapMc").getSymbol("mapMc6").$("mapStart").css("pointer-events","none");
			var mapFinish6txt = sym.getSymbol("stageMc").getSymbol("mapsSliderMc").getSymbol("stageMapMc").getSymbol("mapMc6").$("mapFinish").css("pointer-events","none");
			var mapStart7txt = sym.getSymbol("stageMc").getSymbol("mapsSliderMc").getSymbol("stageMapMc").getSymbol("mapMc7").$("mapStart").css("pointer-events","none");
			var mapFinish7txt = sym.getSymbol("stageMc").getSymbol("mapsSliderMc").getSymbol("stageMapMc").getSymbol("mapMc7").$("mapFinish").css("pointer-events","none");
			var mapStart8txt = sym.getSymbol("stageMc").getSymbol("mapsSliderMc").getSymbol("stageMapMc").getSymbol("mapMc8").$("mapStart").css("pointer-events","none");
			var mapFinish8txt = sym.getSymbol("stageMc").getSymbol("mapsSliderMc").getSymbol("stageMapMc").getSymbol("mapMc8").$("mapFinish").css("pointer-events","none");
			var mapStart9txt = sym.getSymbol("stageMc").getSymbol("mapsSliderMc").getSymbol("stageMapMc").getSymbol("mapMc9").$("mapStart").css("pointer-events","none");
			var mapFinish9txt = sym.getSymbol("stageMc").getSymbol("mapsSliderMc").getSymbol("stageMapMc").getSymbol("mapMc9").$("mapFinish").css("pointer-events","none");
			var mapStart10txt = sym.getSymbol("stageMc").getSymbol("mapsSliderMc").getSymbol("stageMapMc").getSymbol("mapMc10").$("mapStart").css("pointer-events","none");
			var mapFinish10txt = sym.getSymbol("stageMc").getSymbol("mapsSliderMc").getSymbol("stageMapMc").getSymbol("mapMc10").$("mapFinish").css("pointer-events","none");
			var mapStart11txt = sym.getSymbol("stageMc").getSymbol("mapsSliderMc").getSymbol("stageMapMc").getSymbol("mapMc11").$("mapStart").css("pointer-events","none");
			var mapFinish11txt = sym.getSymbol("stageMc").getSymbol("mapsSliderMc").getSymbol("stageMapMc").getSymbol("mapMc11").$("mapFinish").css("pointer-events","none");
			var mapStart12txt = sym.getSymbol("stageMc").getSymbol("mapsSliderMc").getSymbol("stageMapMc").getSymbol("mapMc12").$("mapStart").css("pointer-events","none");
			var mapFinish12txt = sym.getSymbol("stageMc").getSymbol("mapsSliderMc").getSymbol("stageMapMc").getSymbol("mapMc12").$("mapFinish").css("pointer-events","none");
			var mapStart13txt = sym.getSymbol("stageMc").getSymbol("mapsSliderMc").getSymbol("stageMapMc").getSymbol("mapMc13").$("mapStart").css("pointer-events","none");
			var mapFinish13txt = sym.getSymbol("stageMc").getSymbol("mapsSliderMc").getSymbol("stageMapMc").getSymbol("mapMc13").$("mapFinish").css("pointer-events","none");
			var mapStart14txt = sym.getSymbol("stageMc").getSymbol("mapsSliderMc").getSymbol("stageMapMc").getSymbol("mapMc14").$("mapStart").css("pointer-events","none");
			var mapFinish14txt = sym.getSymbol("stageMc").getSymbol("mapsSliderMc").getSymbol("stageMapMc").getSymbol("mapMc14").$("mapFinish").css("pointer-events","none");
			var mapStart15txt = sym.getSymbol("stageMc").getSymbol("mapsSliderMc").getSymbol("stageMapMc").getSymbol("mapMc15").$("mapStart").css("pointer-events","none");
			var mapFinish15txt = sym.getSymbol("stageMc").getSymbol("mapsSliderMc").getSymbol("stageMapMc").getSymbol("mapMc15").$("mapFinish").css("pointer-events","none");
			var mapStart16txt = sym.getSymbol("stageMc").getSymbol("mapsSliderMc").getSymbol("stageMapMc").getSymbol("mapMc16").$("mapStart").css("pointer-events","none");
			var mapFinish16txt = sym.getSymbol("stageMc").getSymbol("mapsSliderMc").getSymbol("stageMapMc").getSymbol("mapMc16").$("mapFinish").css("pointer-events","none");
			var mapStart17txt = sym.getSymbol("stageMc").getSymbol("mapsSliderMc").getSymbol("stageMapMc").getSymbol("mapMc17").$("mapStart").css("pointer-events","none");
			var mapFinish17txt = sym.getSymbol("stageMc").getSymbol("mapsSliderMc").getSymbol("stageMapMc").getSymbol("mapMc17").$("mapFinish").css("pointer-events","none");
			var mapStart18txt = sym.getSymbol("stageMc").getSymbol("mapsSliderMc").getSymbol("stageMapMc").getSymbol("mapMc18").$("mapStart").css("pointer-events","none");
			var mapFinish18txt = sym.getSymbol("stageMc").getSymbol("mapsSliderMc").getSymbol("stageMapMc").getSymbol("mapMc18").$("mapFinish").css("pointer-events","none");
			var mapStart19txt = sym.getSymbol("stageMc").getSymbol("mapsSliderMc").getSymbol("stageMapMc").getSymbol("mapMc19").$("mapStart").css("pointer-events","none");
			var mapFinish19txt = sym.getSymbol("stageMc").getSymbol("mapsSliderMc").getSymbol("stageMapMc").getSymbol("mapMc19").$("mapFinish").css("pointer-events","none");
			var mapStart20txt = sym.getSymbol("stageMc").getSymbol("mapsSliderMc").getSymbol("stageMapMc").getSymbol("mapMc20").$("mapStart").css("pointer-events","none");
			var mapFinish20txt = sym.getSymbol("stageMc").getSymbol("mapsSliderMc").getSymbol("stageMapMc").getSymbol("mapMc20").$("mapFinish").css("pointer-events","none");

           //AJAX retrieves data from xml source specified in url, maps xml variable to DOM object variable
           $.ajax({	
         	type: "GET",
         	url: "GN30489.xml",
         	dataType: "xml",
         	success: function(xml) {
					headline = $(xml).find('headline').text();
         		headlinetxt.html(headline);
         		source = $(xml).find('source').text();
         		sourcetxt.html(source);
         		menuIcon0 = $(xml).find('menuIcon0').text();
         		menuIcon0txt.html(menuIcon0);
         		menuIcon1 = $(xml).find('menuIcon1').text();
         		menuIcon1txt.html(menuIcon1);  
         		menuIcon2 = $(xml).find('menuIcon2').text();
         		menuIcon2txt.html(menuIcon2);
         		menuIcon3 = $(xml).find('menuIcon3').text();
         		menuIcon3txt.html(menuIcon3);
         		menuTxt0 = $(xml).find('menuTxt0').text();
         		menuTxt0txt.html(menuTxt0);  
         		menuTxt1 = $(xml).find('menuTxt1').text();
         		menuTxt1txt.html(menuTxt1);  
         		menuTxt2 = $(xml).find('menuTxt2').text();
         		menuTxt2txt.html(menuTxt2);
         		menuTxt3 = $(xml).find('menuTxt3').text();
         		menuTxt3txt.html(menuTxt3);
         		nameShort0 = $(xml).find('nameShort0').text();
         		nameShort0txt.html(nameShort0);
         		nameShort1 = $(xml).find('nameShort1').text();
         		nameShort1txt.html(nameShort1);
         		nameShort2 = $(xml).find('nameShort2').text();
         		nameShort2txt.html(nameShort2);
         		nameShort3 = $(xml).find('nameShort3').text();
         		nameShort3txt.html(nameShort3);
         		nameShort4 = $(xml).find('nameShort4').text();
         		nameShort4txt.html(nameShort4);
         		nameShort5 = $(xml).find('nameShort5').text();
         		nameShort5txt.html(nameShort5);
         		nameShort6 = $(xml).find('nameShort6').text();
         		nameShort6txt.html(nameShort6);
         		nameShort7 = $(xml).find('nameShort7').text();
         		nameShort7txt.html(nameShort7);
         		nameShort8 = $(xml).find('nameShort8').text();
         		nameShort8txt.html(nameShort8);
         		nameShort9 = $(xml).find('nameShort9').text();
         		nameShort9txt.html(nameShort9);
         		nameShort10 = $(xml).find('nameShort10').text();
         		nameShort10txt.html(nameShort10);
         		nameShort11 = $(xml).find('nameShort11').text();
         		nameShort11txt.html(nameShort11);
         		nameShort12 = $(xml).find('nameShort12').text();
         		nameShort12txt.html(nameShort12);
         		nameShort13 = $(xml).find('nameShort13').text();
         		nameShort13txt.html(nameShort13);
         		nameShort14 = $(xml).find('nameShort14').text();
         		nameShort14txt.html(nameShort14);
         		nameShort15 = $(xml).find('nameShort15').text();
         		nameShort15txt.html(nameShort15);
         		nameShort16 = $(xml).find('nameShort16').text();
         		nameShort16txt.html(nameShort16);
         		nameShort17 = $(xml).find('nameShort17').text();
         		nameShort17txt.html(nameShort17);
         		nameShort18 = $(xml).find('nameShort18').text();
         		nameShort18txt.html(nameShort18);
         		nameShort19 = $(xml).find('nameShort19').text();
         		nameShort19txt.html(nameShort19);
         		nameShort20 = $(xml).find('nameShort20').text();
         		nameShort20txt.html(nameShort20);
         		nameShort21 = $(xml).find('nameShort21').text();
         		nameShort21txt.html(nameShort21);
         		nameShort22 = $(xml).find('nameShort22').text();
         		nameShort22txt.html(nameShort22);
         		country = $(xml).find('country1').text();
         		countrytxt.html(country);
         		name = $(xml).find('name1').text();
         		nametxt.html(name + country);
         		riders = $(xml).find('riders1').text();
         		riderstxt.html(riders);
         		txt1 = $(xml).find('txt1').text();
         		txt1txt.html(txt1);
         		txt2 = $(xml).find('txt2').text();
         		txt2txt.html(txt2);
         		txt3 = $(xml).find('txt3').text();
         		txt3txt.html(txt3);
         		txt4 = $(xml).find('txt4').text();
         		txt4txt.html(txt4)
         		txt5 = $(xml).find('txt5').text();
         		txt5txt.html(txt5);
         		txt6 = $(xml).find('txt6').text();
         		txt6txt.html(txt6);

         		txt8 = $(xml).find('txt8').text();
         		txt8txt.html(txt8);
         		txt9 = $(xml).find('txt9').text();
         		txt9txt.html(txt9);
         		string0 = $(xml).find('txt8').text(); 
         		stagestring=string0.split("<br>");
         		string1 = $(xml).find('txt9').text(); 
         		datestring=string1.split("<br>");         		
         		txt10 = $(xml).find('txt10').text();
         		txt10txt.html(txt10);
         		txt11 = $(xml).find('txt11').text();
         		txt11txt.html(txt11);
         		txt12 = $(xml).find('txt12').text();
         		txt12txt.html(txt12);
         		txt13 = $(xml).find('txt13').text();
         		txt13txt.html(txt13);
         		txt14 = $(xml).find('txt14').text();
         		txt14txt.html(txt14);       		
         		string2 = $(xml).find('txt15').text(); 
         		tablestring=string2.split(",");   		
         		stagetxt0.text(stagestring[0]+" "+stagestring[1]+" - "+datestring[0]+" "+datestring[1]);
         		stagetxt1.text(tablestring[0]);
         		stagetxt2.text(tablestring[1]);
         		//stagetxt3.text(tablestring[1]);
         		profilekey= $(xml).find('profilekey').text();
         		keystring=profilekey.split(",");

         		txt16 = $(xml).find('txt16').text();
					classtxt.html(txt16);
         		string3 = $(xml).find('txt17').text(); 
         		resultstring0=string3.split(",");
					txt17txt.text(resultstring0[0]+stagestring[1]);

         		string4 = $(xml).find('txt18').text(); 
         		resultstring1=string4.split(","); 
         		txt18txt.html(resultstring1[0]);
         		txt20 = $(xml).find('txt20').text();
         		stagetxt3.text(txt20+" "+datestring[0]+" "+datestring[1]);
					string5 = $(xml).find('txt19').text(); 
         		resultstring1=string5.split(",");   
					classtxt0.text(resultstring1[0]);
					classtxt1.text(resultstring1[1]);
					classtxt2.text(resultstring1[2]);
					classtxt3.text(resultstring1[3]);
					classtxt4.text(resultstring1[4]);

					distance = $(xml).find('distance').text();

         		stage0_route = $(xml).find('stage0_route').text();
         		routestring0 = stage0_route.split(",");
         		stage0_key0.text(keystring[0]);
         		stage0_key1.text(keystring[1]);
         		stage0_key2.text(keystring[2]);
         		stage0_txt2 = $(xml).find('stage0_txt2').text();
         		stage0_txt2txt.html(stage0_txt2);
         		stage0_txt3 = $(xml).find('stage0_txt3').text();
         		stage0_txt3txt.html(stage0_txt3);
         		stage0_txt4 = $(xml).find('stage0_txt4').text();
         		stage0_txt4txt.html(stage0_txt4);
         		stage0_txt5 = $(xml).find('stage0_txt5').text();
         		stage0_txt5txt.html(stage0_txt5);
         		stage0_distance = $(xml).find('stage0_distance').text();
         		distancestring0 = stage0_distance.split(",");
         		stage0_txt6txt.html(distance);
         		stage0_txt7txt.html(distancestring0[0]);
         		stage0_txt8txt.html(distancestring0[1]);
         		stage0_txt9txt.html(distancestring0[2]);
         		stage0_txt10txt.html(distancestring0[3]);


         		stage1_distance = $(xml).find('stage1_distance').text();
         		distancestring1 = stage1_distance.split("/");
         		stage1_route = $(xml).find('stage1_route').text();
         		routestring1 = stage1_route.split(",");
         		stage1_key0.html(keystring[3]);
         		stage1_key1.html(keystring[2]);
         		stage1_txt2 = $(xml).find('stage1_txt2').text();
         		stage1_txt2txt.html(stage1_txt2);
         		stage1_txt3 = $(xml).find('stage1_txt3').text();
         		stage1_txt3txt.html(stage1_txt3);
         		stage1_txt4 = $(xml).find('stage1_txt4').text();
         		stage1_txt4txt.html(stage1_txt4);
         		stage1_txt5 = $(xml).find('stage1_txt5').text();
         		stage1_txt5txt.html(stage1_txt5);
         		stage1_txt6txt.html(distance);
         		stage1_txt7txt.html(distancestring1[0]);
         		stage1_txt8txt.html(distancestring1[1]);

					stage2_distance = $(xml).find('stage2_distance').text();
         		distancestring2 = stage2_distance.split(",");
         		stage2_route = $(xml).find('stage2_route').text();
         		routestring2 = stage2_route.split(",");
         		stage2_key0.html(keystring[0]);
         		stage2_key1.html(keystring[1]);
         		stage2_key2.html(keystring[2]);
         		stage2_txt2 = $(xml).find('stage2_txt2').text();
         		stage2_txt2txt.html(stage2_txt2);
         		stage2_txt3 = $(xml).find('stage2_txt3').text();
         		stage2_txt3txt.html(stage2_txt3);
         		stage2_txt4 = $(xml).find('stage2_txt4').text();
         		stage2_txt4txt.html(stage2_txt4);
         		stage2_txt5 = $(xml).find('stage2_txt5').text();
         		stage2_txt5txt.html(stage2_txt5);
         		stage2_txt6txt.html(distance);
         		stage2_txt7txt.html(distancestring2[0]);
         		stage2_txt8txt.html(distancestring2[1]);
         		stage2_txt9txt.html(distancestring2[2]);
         		stage2_txt10txt.html(distancestring2[3]);
         		stage2_txt11txt.html(distancestring2[4]);
         		stage2_txt12txt.html(distancestring2[5]);

         		stage3_distance = $(xml).find('stage3_distance').text();
         		distancestring3 = stage3_distance.split(",");
         		stage3_route = $(xml).find('stage3_route').text();
         		routestring3 = stage3_route.split(",");
         		stage3_key0.html(keystring[0]);
         		stage3_key1.html(keystring[1]);
         		stage3_key2.html(keystring[2]);
         		stage3_txt2 = $(xml).find('stage3_txt2').text();
         		stage3_txt2txt.html(stage3_txt2);
         		stage3_txt3 = $(xml).find('stage3_txt3').text();
         		stage3_txt3txt.html(stage3_txt3);
         		stage3_txt4 = $(xml).find('stage3_txt4').text();
         		stage3_txt4txt.html(stage3_txt4);
         		stage3_txt5 = $(xml).find('stage3_txt5').text();
         		stage3_txt5txt.html(stage3_txt5);
         		stage3_txt6txt.html(distance);
         		stage3_txt7txt.html(distancestring3[0]);
         		stage3_txt8txt.html(distancestring3[1]);
         		stage3_txt9txt.html(distancestring3[2]);
         		stage3_txt10txt.html(distancestring3[3]);
         		stage3_txt11txt.html(distancestring3[4]);

         		stage4_distance = $(xml).find('stage4_distance').text();
         		distancestring4 = stage4_distance.split(",");
         		stage4_route = $(xml).find('stage4_route').text();
         		routestring4 = stage4_route.split(",");
         		stage4_key0.html(keystring[0]);
         		stage4_key1.html(keystring[1]);
         		stage4_key2.html(keystring[2]);
         		stage4_txt2 = $(xml).find('stage4_txt2').text();
         		stage4_txt2txt.html(stage4_txt2);
         		stage4_txt3 = $(xml).find('stage4_txt3').text();
         		stage4_txt3txt.html(stage4_txt3);
         		stage4_txt4 = $(xml).find('stage4_txt4').text();
         		stage4_txt4txt.html(stage4_txt4);
         		stage4_txt5 = $(xml).find('stage4_txt5').text();
         		stage4_txt5txt.html(stage4_txt5);
         		stage4_txt6txt.html(distance);
         		stage4_txt7txt.html(distancestring4[0]);
         		stage4_txt8txt.html(distancestring4[1]);
         		stage4_txt9txt.html(distancestring4[2]);
         		stage4_txt10txt.html(distancestring4[3]);
         		stage4_txt11txt.html(distancestring4[4]);
         		stage4_txt12txt.html(distancestring4[5]);

         		stage5_distance = $(xml).find('stage5_distance').text();
         		distancestring5 = stage5_distance.split(",");
         		stage5_route = $(xml).find('stage5_route').text();
         		routestring5 = stage5_route.split(",");
         		stage5_key0.html(keystring[0]);
         		stage5_key1.html(keystring[1]);
         		stage5_key2.html(keystring[2]);
         		stage5_txt1 = $(xml).find('stage5_txt1').text();
         		stage5_txt1txt.html(stage5_txt1);
         		stage5_txt2 = $(xml).find('stage5_txt2').text();
         		stage5_txt2txt.html(stage5_txt2);
         		stage5_txt3 = $(xml).find('stage5_txt3').text();
         		stage5_txt3txt.html(stage5_txt3);
         		stage5_txt4txt.html(distance);
         		stage5_txt5txt.html(distancestring5[0]);
         		stage5_txt6txt.html(distancestring5[1]);
         		stage5_txt7txt.html(distancestring5[2]);
         		stage5_txt8txt.html(distancestring5[3]);


         		stage6_distance = $(xml).find('stage6_distance').text();
         		distancestring6 = stage6_distance.split(",");
         		stage6_route = $(xml).find('stage6_route').text();
         		routestring6 = stage6_route.split(",");
         		stage6_key0.html(keystring[0]);
         		stage6_key1.html(keystring[1]);
         		stage6_key2.html(keystring[2]);
         		stage6_txt2 = $(xml).find('stage6_txt2').text();
         		stage6_txt2txt.html(stage6_txt2);
         		stage6_txt3 = $(xml).find('stage6_txt3').text();
         		stage6_txt3txt.html(stage6_txt3);
         		stage6_txt4 = $(xml).find('stage6_txt4').text();
         		stage6_txt4txt.html(stage6_txt4);
         		stage6_txt5 = $(xml).find('stage6_txt5').text();
         		stage6_txt5txt.html(stage6_txt5);
         		stage6_txt6 = $(xml).find('stage6_txt6').text();
         		stage6_txt6txt.html(stage6_txt6);
         		stage6_txt7 = $(xml).find('stage6_txt7').text();
         		stage6_txt7txt.html(stage6_txt7);
         		stage6_txt8txt.html(distance);
         		stage6_txt9txt.html(distancestring6[0]);
         		stage6_txt10txt.html(distancestring6[1]);
         		stage6_txt11txt.html(distancestring6[2]);
         		stage6_txt12txt.html(distancestring6[3]);
         		stage6_txt13txt.html(distancestring6[4]);

         		stage7_distance = $(xml).find('stage7_distance').text();
         		distancestring7 = stage7_distance.split(",");
         		stage7_route = $(xml).find('stage7_route').text();
         		routestring7 = stage7_route.split(",");
         		stage7_key0.html(keystring[0]);
         		stage7_key1.html(keystring[4]);
         		stage7_key2.html(keystring[2]);
         		stage7_txt3 = $(xml).find('stage7_txt3').text();
         		stage7_txt3txt.html(stage7_txt3);
         		stage7_txt4 = $(xml).find('stage7_txt4').text();
         		stage7_txt4txt.html(stage7_txt4);
         		stage7_txt5 = $(xml).find('stage7_txt5').text();
         		stage7_txt5txt.html(stage7_txt5);
         		stage7_txt6 = $(xml).find('stage7_txt6').text();
         		stage7_txt6txt.html(stage7_txt6);
         		stage7_txt7txt.html(distance);
         		stage7_txt8txt.html(distancestring7[0]);
         		stage7_txt9txt.html(distancestring7[1]);
         		stage7_txt10txt.html(distancestring7[2]);
         		stage7_txt11txt.html(distancestring7[3]);

         		stage8_distance = $(xml).find('stage8_distance').text();
         		distancestring8 = stage8_distance.split(",");
         		stage8_route = $(xml).find('stage8_route').text();
         		routestring8 = stage8_route.split(",");
         		stage8_key0.html(keystring[0]);
         		stage8_key1.html(keystring[1]);
         		stage8_key2.html(keystring[2]);
         		stage8_txt2 = $(xml).find('stage8_txt2').text();
         		stage8_txt2txt.html(stage8_txt2);
         		stage8_txt3 = $(xml).find('stage8_txt3').text();
         		stage8_txt3txt.html(stage8_txt3);
         		stage8_txt4 = $(xml).find('stage8_txt4').text();
         		stage8_txt4txt.html(stage8_txt4);
         		stage8_txt5 = $(xml).find('stage8_txt5').text();
         		stage8_txt5txt.html(stage8_txt5);
         		stage8_txt6 = $(xml).find('stage8_txt6').text();
         		stage8_txt6txt.html(stage8_txt6);
         		stage8_txt7 = $(xml).find('stage8_txt7').text();
         		stage8_txt7txt.html(stage8_txt7);
         		stage8_txt8txt.html(distance);
         		stage8_txt9txt.html(distancestring8[0]);
         		stage8_txt10txt.html(distancestring8[1]);
         		stage8_txt11txt.html(distancestring8[2]);
         		stage8_txt12txt.html(distancestring8[3]);
         		stage8_txt13txt.html(distancestring8[4]);
         		stage8_txt14txt.html(distancestring8[5]);
         		stage8_txt15txt.html(distancestring8[6]);

         		stage9_distance = $(xml).find('stage9_distance').text();
         		distancestring9 = stage9_distance.split(",");
         		stage9_route = $(xml).find('stage9_route').text();
         		routestring9 = stage9_route.split(",");
         		stage9_key0.html(keystring[0]);
         		stage9_key1.html(keystring[1]);
         		stage9_key2.html(keystring[2]);
         		stage9_txt2 = $(xml).find('stage9_txt2').text();
         		stage9_txt2txt.html(stage9_txt2);
         		stage9_txt3 = $(xml).find('stage9_txt3').text();
         		stage9_txt3txt.html(stage9_txt3);
         		stage9_txt4 = $(xml).find('stage9_txt4').text();
         		stage9_txt4txt.html(stage9_txt4);
         		stage9_txt5txt.html(distance);
         		stage9_txt6txt.html(distancestring9[0]);
         		stage9_txt7txt.html(distancestring9[1]);
         		stage9_txt8txt.html(distancestring9[2]);
         		stage9_txt9txt.html(distancestring9[3]);

         		stage10_distance = $(xml).find('stage10_distance').text();
         		distancestring10 = stage10_distance.split(",");
         		stage10_route = $(xml).find('stage10_route').text();
         		routestring10 = stage10_route.split(",");
         		stage10_key0.html(keystring[0]);
         		stage10_key1.html(keystring[1]);
         		stage10_key2.html(keystring[2]);
         		stage10_txt2 = $(xml).find('stage10_txt2').text();
         		stage10_txt2txt.html(stage10_txt2);
         		stage10_txt3 = $(xml).find('stage10_txt3').text();
         		stage10_txt3txt.html(stage10_txt3);
         		stage10_txt4 = $(xml).find('stage10_txt4').text();
         		stage10_txt4txt.html(stage10_txt4);
         		stage10_txt5txt.html(distance);
         		stage10_txt6txt.html(distancestring10[0]);
         		stage10_txt7txt.html(distancestring10[1]);
         		stage10_txt8txt.html(distancestring10[2]);
         		stage10_txt9txt.html(distancestring10[3]);
         		stage10_txt10txt.html(distancestring10[4]);

         		stage11_distance = $(xml).find('stage11_distance').text();
         		distancestring11 = stage11_distance.split(",");
         		stage11_route = $(xml).find('stage11_route').text();
         		routestring11 = stage11_route.split(",");
         		stage11_key0.html(keystring[0]);
         		stage11_key1.html(keystring[1]);
         		stage11_key2.html(keystring[2]);
         		stage11_txt2 = $(xml).find('stage11_txt2').text();
         		stage11_txt2txt.html(stage11_txt2);
         		stage11_txt3 = $(xml).find('stage11_txt3').text();
         		stage11_txt3txt.html(stage11_txt3);
         		stage11_txt4 = $(xml).find('stage11_txt4').text();
         		stage11_txt4txt.html(stage11_txt4);
         		stage11_txt5 = $(xml).find('stage11_txt5').text();
         		stage11_txt5txt.html(stage11_txt5);
         		stage11_txt6txt.html(distance);
         		stage11_txt7txt.html(distancestring11[0]);
         		stage11_txt8txt.html(distancestring11[1]);
         		stage11_txt9txt.html(distancestring11[2]);
         		stage11_txt10txt.html(distancestring11[3]);
         		stage11_txt11txt.html(distancestring11[4]);

         		stage12_distance = $(xml).find('stage12_distance').text();
         		distancestring12 = stage12_distance.split(",");
         		stage12_route = $(xml).find('stage12_route').text();
         		routestring12 = stage12_route.split(",");
         		stage12_key0.html(keystring[0]);
         		stage12_key1.html(keystring[1]);
         		stage12_key2.html(keystring[2]);
         		stage12_txt2 = $(xml).find('stage12_txt2').text();
         		stage12_txt2txt.html(stage12_txt2);
         		stage12_txt3 = $(xml).find('stage12_txt3').text();
         		stage12_txt3txt.html(stage12_txt3);
         		stage12_txt4 = $(xml).find('stage12_txt4').text();
         		stage12_txt4txt.html(stage12_txt4);
         		stage12_txt5txt.html(distance);
         		stage12_txt6txt.html(distancestring12[0]);
         		stage12_txt7txt.html(distancestring12[1]);
         		stage12_txt8txt.html(distancestring12[2]);
         		stage12_txt9txt.html(distancestring12[3]);
         		stage12_txt10txt.html(distancestring12[4]);

         		stage13_distance = $(xml).find('stage13_distance').text();
         		distancestring13 = stage13_distance.split(",");
         		stage13_route = $(xml).find('stage13_route').text();
         		routestring13 = stage13_route.split(",");
         		stage13_key0.html(keystring[0]);
         		stage13_key1.html(keystring[1]);
         		stage13_key2.html(keystring[2]);
         		stage13_txt2 = $(xml).find('stage13_txt2').text();
         		stage13_txt2txt.html(stage13_txt2);
         		stage13_txt3 = $(xml).find('stage13_txt3').text();
         		stage13_txt3txt.html(stage13_txt3);
         		stage13_txt4 = $(xml).find('stage13_txt4').text();
         		stage13_txt4txt.html(stage13_txt4);
         		stage13_txt5txt.html(distance);
         		stage13_txt6txt.html(distancestring13[0]);
         		stage13_txt7txt.html(distancestring13[1]);
         		stage13_txt8txt.html(distancestring13[2]);
         		stage13_txt9txt.html(distancestring13[3]);
         		stage13_txt10txt.html(distancestring13[4]);

         		stage14_distance = $(xml).find('stage14_distance').text();
         		distancestring14 = stage14_distance.split(",");
         		stage14_route = $(xml).find('stage14_route').text();
         		routestring14 = stage14_route.split(",");
         		stage14_key0.html(keystring[0]);
         		stage14_key1.html(keystring[1]);
         		stage14_key2.html(keystring[2]);
         		stage14_txt2 = $(xml).find('stage14_txt2').text();
         		stage14_txt2txt.html(stage14_txt2);
         		stage14_txt3 = $(xml).find('stage14_txt3').text();
         		stage14_txt3txt.html(stage14_txt3);
         		stage14_txt4 = $(xml).find('stage14_txt4').text();
         		stage14_txt4txt.html(stage14_txt4);
         		stage14_txt5 = $(xml).find('stage14_txt5').text();
         		stage14_txt5txt.html(stage14_txt5);
         		stage14_txt6txt.html(distance);
         		stage14_txt7txt.html(distancestring14[0]);
         		stage14_txt8txt.html(distancestring14[1]);
         		stage14_txt9txt.html(distancestring14[2]);
         		stage14_txt10txt.html(distancestring14[3]);

         		stage15_distance = $(xml).find('stage15_distance').text();
         		distancestring15 = stage15_distance.split(",");
         		stage15_route = $(xml).find('stage15_route').text();
         		routestring15 = stage15_route.split(",");
         		stage15_key0.html(keystring[0]);
         		stage15_key1.html(keystring[1]);
         		stage15_key2.html(keystring[2]);        		
         		stage15_txt2 = $(xml).find('stage15_txt2').text();
         		stage15_txt2txt.html(stage15_txt2);
         		stage15_txt3 = $(xml).find('stage15_txt3').text();
         		stage15_txt3txt.html(stage15_txt3);
         		stage15_txt4 = $(xml).find('stage15_txt4').text();
         		stage15_txt4txt.html(stage15_txt4);
         		stage15_txt5 = $(xml).find('stage15_txt5').text();
         		stage15_txt5txt.html(stage15_txt5);
         		stage15_txt6txt.html(distance);
         		stage15_txt7txt.html(distancestring15[0]);
         		stage15_txt8txt.html(distancestring15[1]);
         		stage15_txt9txt.html(distancestring15[2]);
         		stage15_txt10txt.html(distancestring15[3]);
         		stage15_txt11txt.html(distancestring15[4]);
         		stage15_txt12txt.html(distancestring15[5]);

         		stage16_distance = $(xml).find('stage16_distance').text();
         		distancestring16 = stage16_distance.split(",");
         		stage16_route = $(xml).find('stage16_route').text();
         		routestring16 = stage16_route.split(",");
         		stage16_key0.html(keystring[0]);
         		stage16_key1.html(keystring[1]);
         		stage16_key2.html(keystring[2]);
         		stage16_txt2 = $(xml).find('stage16_txt2').text();
         		stage16_txt2txt.html(stage16_txt2);
         		stage16_txt3 = $(xml).find('stage16_txt3').text();
         		stage16_txt3txt.html(stage16_txt3);
         		stage16_txt4 = $(xml).find('stage16_txt4').text();
         		stage16_txt4txt.html(stage16_txt4);
         		stage16_txt5txt.html(distance);
         		stage16_txt6txt.html(distancestring16[0]);
         		stage16_txt7txt.html(distancestring16[1]);
         		stage16_txt8txt.html(distancestring16[2]);
         		stage16_txt9txt.html(distancestring16[3]);
         		stage16_txt10txt.html(distancestring16[4]);

         		stage17_distance = $(xml).find('stage17_distance').text();
         		distancestring17 = stage17_distance.split("/");
         		stage17_route = $(xml).find('stage17_route').text();
         		routestring17 = stage17_route.split(",");
         		stage17_key0.html(keystring[4]);
         		stage17_key1.html(keystring[2]);
         		stage17_txt2 = $(xml).find('stage17_txt2').text();
         		stage17_txt2txt.html(stage17_txt2);
         		stage17_txt3 = $(xml).find('stage17_txt3').text();
         		stage17_txt3txt.html(stage17_txt3);
         		stage17_txt4 = $(xml).find('stage17_txt4').text();
         		stage17_txt4txt.html(stage17_txt4);
         		stage17_txt5 = $(xml).find('stage17_txt5').text();
         		stage17_txt5txt.html(stage17_txt5);
         		stage17_txt6 = $(xml).find('stage17_txt6').text();
         		stage17_txt6txt.html(stage17_txt6);
         		stage17_txt7 = $(xml).find('stage17_txt7').text();
         		stage17_txt7txt.html(stage17_txt7);
         		stage17_txt8 = $(xml).find('stage17_txt8').text();
         		stage17_txt8txt.html(stage17_txt8);
         		stage17_txt9txt.html(distance);
         		stage17_txt10txt.html(distancestring17[0]);
         		stage17_txt11txt.html(distancestring17[1]);
         		stage17_txt12txt.html(distancestring17[2]);

         		stage18_distance = $(xml).find('stage18_distance').text();
         		distancestring18 = stage18_distance.split(",");
         		stage18_route = $(xml).find('stage18_route').text();
         		routestring18 = stage18_route.split(",");
         		stage18_key0.html(keystring[0]);
         		stage18_key1.html(keystring[1]);
         		stage18_key2.html(keystring[2]);
         		stage18_txt2 = $(xml).find('stage18_txt2').text();
         		stage18_txt2txt.html(stage18_txt2);
         		stage18_txt3 = $(xml).find('stage18_txt3').text();
         		stage18_txt3txt.html(stage18_txt3);
         		stage18_txt4 = $(xml).find('stage18_txt4').text();
         		stage18_txt4txt.html(stage18_txt4);
         		stage18_txt5 = $(xml).find('stage18_txt5').text();
         		stage18_txt5txt.html(stage18_txt5);
         		stage18_txt6txt.html(distance);
         		stage18_txt7txt.html(distancestring18[0]);
         		stage18_txt8txt.html(distancestring18[1]);
         		stage18_txt9txt.html(distancestring18[2]);
         		stage18_txt10txt.html(distancestring18[3]);
         		stage18_txt11txt.html(distancestring18[4]);

         		stage19_distance = $(xml).find('stage19_distance').text();
         		distancestring19 = stage19_distance.split(",");
         		stage19_route = $(xml).find('stage19_route').text();
         		routestring19 = stage19_route.split(",");
           		stage19_key0.html(keystring[0]);
         		stage19_key1.html(keystring[1]);
         		stage19_key2.html(keystring[2]);
         		stage19_txt2 = $(xml).find('stage19_txt2').text();
         		stage19_txt2txt.html(stage19_txt2);
         		stage19_txt3 = $(xml).find('stage19_txt3').text();
         		stage19_txt3txt.html(stage19_txt3);
         		stage19_txt4 = $(xml).find('stage19_txt4').text();
         		stage19_txt4txt.html(stage19_txt4);
         		stage19_txt5 = $(xml).find('stage19_txt5').text();
         		stage19_txt5txt.html(stage19_txt5);
         		stage19_txt6 = $(xml).find('stage19_txt6').text();
         		stage19_txt6txt.html(stage19_txt6);
         		stage19_txt7 = $(xml).find('stage19_txt7').text();
         		stage19_txt7txt.html(stage19_txt7);
         		stage19_txt8txt.html(distance);
         		stage19_txt9txt.html(distancestring19[0]);
         		stage19_txt10txt.html(distancestring19[1]);
         		stage19_txt11txt.html(distancestring19[2]);
         		stage19_txt12txt.html(distancestring19[3]);
         		stage19_txt13txt.html(distancestring19[4]);
         		stage19_txt14txt.html(distancestring19[5]);
         		stage19_txt15txt.html(distancestring19[6]);

          		stage20_distance = $(xml).find('stage20_distance').text();
         		distancestring20 = stage20_distance.split(",");
         		stage20_route = $(xml).find('stage20_route').text();
         		routestring20 = stage20_route.split(",");
         		stage20_key0.html(keystring[0]);
         		stage20_key1.html(keystring[1]);
         		stage20_key2.html(keystring[2]);
         		stage20_txt2 = $(xml).find('stage20_txt2').text();
         		stage20_txt2txt.html(stage20_txt2);
         		stage20_txt3 = $(xml).find('stage20_txt3').text();
         		stage20_txt3txt.html(stage20_txt3);
         		stage20_txt4txt.html(distance);
         		stage20_txt5txt.html(distancestring20[0]);
         		stage20_txt6txt.html(distancestring20[1]);
         		stage20_txt7txt.html(distancestring20[2]);

					mapStart = $(xml).find('mapStart').text();
					mapStart0txt.html(mapStart + stage0_txt2);
					mapFinish = $(xml).find('mapFinish').text();
					mapFinish0txt.html(mapFinish + stage0_txt5);
					mapStart1txt.html(mapStart + stage1_txt3);
					mapFinish1txt.html(mapFinish + stage1_txt5);
					mapStart2txt.html(mapStart + stage2_txt2);
					mapFinish2txt.html(mapFinish + stage2_txt5);
					mapStart3txt.html(mapStart + stage3_txt2);
					mapFinish3txt.html(mapFinish + stage3_txt5);
					mapStart4txt.html(mapStart + stage4_txt2);
					mapFinish4txt.html(mapFinish + stage4_txt5);
					mapStart5txt.html(mapStart + stage5_txt2);
					mapFinish5txt.html(mapFinish + stage5_txt3);
					mapStart6txt.html(mapStart + stage6_txt2);
					mapFinish6txt.html(mapFinish + stage6_txt7);
					mapStart7txt.html(mapStart + stage7_txt3);
					mapFinish7txt.html(mapFinish + stage7_txt6);
					mapStart8txt.html(mapStart + stage8_txt2);
					mapFinish8txt.html(mapFinish + stage8_txt7);
					mapStart9txt.html(mapStart + stage9_txt2);
					mapFinish9txt.html(mapFinish + stage9_txt4);
					mapStart10txt.html(mapStart + stage10_txt2);
					mapFinish10txt.html(mapFinish + stage10_txt4);
					mapStart11txt.html(mapStart + stage11_txt2);
					mapFinish11txt.html(mapFinish + stage11_txt5);
					mapStart12txt.html(mapStart + stage12_txt2);
					mapFinish12txt.html(mapFinish + stage12_txt4);
					mapStart13txt.html(mapStart + stage13_txt2);
					mapFinish13txt.html(mapFinish + stage13_txt4);
					mapStart14txt.html(mapStart + stage14_txt2);
					mapFinish14txt.html(mapFinish + stage14_txt5);
					mapStart15txt.html(mapStart + stage15_txt2);
					mapFinish15txt.html(mapFinish + stage15_txt5);
					mapStart16txt.html(mapStart + stage16_txt2);
					mapFinish16txt.html(mapFinish + stage16_txt4);
					mapStart17txt.html(mapStart + stage17_txt2);
					mapFinish17txt.html(mapFinish + stage17_txt5);
					mapStart18txt.html(mapStart + stage18_txt2);
					mapFinish18txt.html(mapFinish + stage18_txt5);
					mapStart19txt.html(mapStart + stage19_txt2);
					mapFinish19txt.html(mapFinish + stage19_txt7);
					mapStart20txt.html(mapStart + stage20_txt2);
					mapFinish20txt.html(mapFinish + stage20_txt3);

					$(".hrule hr").css({'color':'#CCCCCC','background-color':'#CCCCCC'});
         		}
         	}); // END XML

// MENU BUTTONS --------------------------------------------	
sym.$("results").css ({top:-585});
var todayDate = new Date();
var startDate= Date.UTC(2013,04,04,06,00,01);
if (todayDate<startDate){
sym.$("stageMc").css({left:455});

}
var clicked =0;
menuArray = []; //the array that will hold references to the buttons.

for (var h = 0; h < 4; h++){
	var menuBtnSymbols = sym.getSymbol("styleMc").getSymbol("menuBtn" +h); // Create an instance element of a symbol as a child of the given parent element
	menuBtnSymbols.setVariable("menuId", h); //set the value of a Symbol variable
	menuArray.push(menuBtnSymbols); //push it into the array
}

$.each(menuArray, function( count, menuInTheArray ){ //a 'for each' loop through the newly populated array
	var menuBtnItem = $(menuInTheArray); //create jQuery reference to the item
	var menuBtnElement = menuInTheArray.getSymbolElement(); //create a jQuery reference to the DIV element inside the symbol
	//now you can bind interactivity to the menu items' DIVs
	menuBtnElement.bind ("click", {menuId:count}, menuBtnClick);
	menuBtnElement.bind ("mouseover", {menuId:count}, menuShow);
	menuBtnElement.bind ("mouseout", {menuId:count}, menuHide);
})
sym.getSymbol("styleMc").$("menuBtn3").unbind("click");


function resetmenu(){
	for (var h=0; h<menuArray.length; h++){
		var resetmenu_arr = ["menuTxt0","menuTxt1","menuTxt2","menuTxt3"];
		$.each(resetmenu_arr, function(index, value) {
			sym.getSymbol("styleMc").$(value).fadeOut(0);
		});
		menuArray[h].$("btnClick").fadeOut(0);
		menuArray[h].$("btnOver").fadeOut(0);
	}
}
resetmenu();

function menuBtnClick (e){
		var menuMenu_id = (e.data.menuId); //get the id of the clicked item
		resetmenu(); //set them all back to normal state	
		sym.getSymbol("styleMc").getSymbol("menuBtn" + menuMenu_id).$("btnClick").fadeIn(0);
		sym.getSymbol("styleMc").$("menuTxt" + menuMenu_id).fadeIn(0);
		if (clicked!=menuMenu_id){
		sym.$("teamsMc").animate ({left:0}, {duration:400, complete:  function() { resetTeams(); }});
		sym.$("stageMc").animate ({left:455}, 400, 'easeOutCubic');
		sym.$("upBtn").animate ({top:0}, 0, 'easeOutCubic');
		sym.$("downBtn").animate ({top:0}, 0, 'easeOutCubic');
		sym.$("results").animate ({top:-550}, 400, 'easeOutCubic');
		}
		if (menuMenu_id==0) {
		clicked=0;
			sym.$("stageMc").animate ({left:0}, 400, 'easeOutCubic');
		}else if (menuMenu_id==1) {
			sym.$("teamsMc").animate ({left:-310}, 400, 'easeOutCubic');
			sym.$("upBtn").delay(600).animate ({top:-44}, 0, 'easeOutCubic');
			sym.$("downBtn").delay(600).animate ({top:-44}, 0, 'easeOutCubic');
			sym.getSymbol("downBtn").$("btnOver").fadeOut(0);
			clicked=1;
		}else if (menuMenu_id==2) {
			clicked=2;
		}else if (menuMenu_id==3) {
			sym.$("results").animate ({top:0}, 400, 'easeOutCubic');
			clicked=3;
		}
	}
	function menuShow (e){
         	var menuMenu_id = (e.data.menuId); //get the id of the over button
         	sym.$('handMc').hide();
				sym.getSymbol("styleMc").getSymbol("menuBtn" + menuMenu_id).$("btnOver").fadeIn(0);
				sym.getSymbol("styleMc").$("menuTxt" + menuMenu_id).fadeIn(0);
	}
	function menuHide (e){
         	var menuMenu_id = (e.data.menuId); //get the id of the out button
				sym.getSymbol("styleMc").getSymbol("menuBtn" + menuMenu_id).$("btnOver").fadeOut(0);
				sym.getSymbol("styleMc").$("menuTxt" + menuMenu_id).fadeOut(0);
	}
	sym.getSymbol("styleMc").getSymbol("menuBtn0").$("btnOver").fadeIn(0);

// STAGE BUTTONS --------------------------------------------	
// MAP BUTTON START
	sym.getSymbol("stageMc").getSymbol("stagesHead").getSymbol("mapBtn").$("btnOver").fadeOut(0);
	sym.getSymbol("stageMc").$("profileSliderMc").animate ({top:-300}, 0);
	sym.getSymbol("stageMc").$("profileBgMc").animate ({top:-300}, 0);
	sym.getSymbol("stageMc").$("stagesHead").animate ({top:107}, 0, 'easeOutCubic');
	sym.getSymbol("stageMc").$("graph").animate ({top:328, height:235}, 0, 'easeOutCubic');

	sym.getSymbol("stageMc").getSymbol("stagesHead").$("mapBtn").click(function(){
	sym.getSymbol("stageMc").getSymbol("stagesHead").getSymbol("mapBtn").$("btnClick").fadeIn(0);
	sym.getSymbol("stageMc").getSymbol("stagesHead").getSymbol("profBtn").$("btnClick").fadeOut(0);
	sym.getSymbol("stageMc").$("stagesHead").animate ({top:107}, 600, 'easeOutCubic');
	sym.getSymbol("stageMc").$("graph").animate ({top:328, height:235}, 600, 'easeOutCubic');
	sym.getSymbol("stageMc").$("profileSliderMc").animate ({top:-180}, 600, 'easeOutCubic');
	sym.getSymbol("stageMc").$("profileBgMc").animate ({top:-180}, 600, 'easeOutCubic');
	});
	sym.getSymbol("stageMc").getSymbol("stagesHead").$("mapBtn").mouseover(function(){
	sym.getSymbol("stageMc").getSymbol("stagesHead").getSymbol("mapBtn").$("btnOver").fadeIn(0);
	});
	sym.getSymbol("stageMc").getSymbol("stagesHead").$("mapBtn").mouseout(function(){
	sym.getSymbol("stageMc").getSymbol("stagesHead").getSymbol("mapBtn").$("btnOver").fadeOut(0);
	});

// PROFILE BUTTON START
	sym.getSymbol("stageMc").getSymbol("stagesHead").getSymbol("profBtn").$("btnClick").fadeOut(0);
	sym.getSymbol("stageMc").getSymbol("stagesHead").getSymbol("profBtn").$("btnOver").fadeOut(0);

	sym.getSymbol("stageMc").getSymbol("stagesHead").$("profBtn").click(function(){
	sym.getSymbol("stageMc").getSymbol("stagesHead").getSymbol("profBtn").$("btnClick").fadeIn(0);
	sym.getSymbol("stageMc").getSymbol("stagesHead").getSymbol("mapBtn").$("btnClick").fadeOut(0);
	sym.getSymbol("stageMc").$("stagesHead").animate ({top:0}, 600, 'easeOutCubic');
	sym.getSymbol("stageMc").$("graph").animate ({top:220, height:340}, 600, 'easeOutCubic');
	//sym.getSymbol("stageMc").$("stageProfileMc").animate ({top:0}, 600, 'easeOutCubic');
	sym.getSymbol("stageMc").$("profileSliderMc").animate ({top:-4}, 600, 'easeOutCubic');
	sym.getSymbol("stageMc").$("profileBgMc").animate ({top:-4}, 600, 'easeOutCubic');
	});
	sym.getSymbol("stageMc").getSymbol("stagesHead").$("profBtn").mouseover(function(){
	sym.getSymbol("stageMc").getSymbol("stagesHead").getSymbol("profBtn").$("btnOver").fadeIn(0);
	});
	sym.getSymbol("stageMc").getSymbol("stagesHead").$("profBtn").mouseout(function(){
	sym.getSymbol("stageMc").getSymbol("stagesHead").getSymbol("profBtn").$("btnOver").fadeOut(0);
	});
// PROFILE BUTTON END

// ADD NUMBERS
	for (var x=0; x<21; x++){
		sym.getSymbol("routeMc").getSymbol("stageBtn"+x).$("txt").html(x+1)
	}
// SET STAGE PROFILE POSITIONS
	for (var p=0; p<21; p++){
		sym.getSymbol("stageMc").getSymbol("profileSliderMc").getSymbol("stageProfileMc").$("profileMc"+p).css({left:p*455});
	}

// SET STAGE MAP POSITIONS
	for (var m=0; m<21; m++){
		sym.getSymbol("stageMc").getSymbol("mapsSliderMc").getSymbol("stageMapMc").$("mapMc"+m).css({left:m*300});
	}

var resultChanger = function(stage){ //to handle lexical scope
							return function (e) {
							getClassification(stage);
						};
};

stageBtnArray = []; //the array that will hold references to the buttons.
         for (var s = 0; s < 21; s++){
         	 var stageBtnSymbols = sym.getSymbol("routeMc").getSymbol("stageBtn" +s); // Create an instance element of a symbol as a child of the given parent element
         	 stageBtnSymbols.setVariable("stageBtnId", s); //set the value of a Symbol variable
         	 stageBtnArray.push(stageBtnSymbols); //push it into the array
         }

         $.each(stageBtnArray, function( count, stageBtnInTheArray ){ //a 'for each' loop through the newly populated array
         	 var stageBtnItem = $(stageBtnInTheArray); //create jQuery reference to the item
         	 var stageBtnElement = stageBtnInTheArray.getSymbolElement(); //create a jQuery reference to the DIV element inside the symbol
         	 //now you can bind interactivity to the stageBtn items' DIVs
         	 stageBtnElement.bind ("click", {stageBtnId:count}, stageBtnClick);
         	 stageBtnElement.bind ("mouseover", {stageBtnId:count}, stageBtnShow);
         	 stageBtnElement.bind ("mouseout", {stageBtnId:count}, stageBtnHide);
         	})

	function resetstageBtn(){
		for (var s=0; s<stageBtnArray.length; s++){
         stageBtnArray[s].$("btnClick").fadeOut(0);
         stageBtnArray[s].$("btnOver").fadeOut(0);
         stageBtnArray[s].$("btnStart").fadeOut(0);
		}
	}
	resetstageBtn();

	function stageBtnClick (e){
		resetstageBtn(); //set them all back to normal state
		var stageBtn_id = (e.data.stageBtnId); //get the id of the clicked item
		sym.getSymbol("routeMc").getSymbol("stageBtn" + stageBtn_id).$("btnClick").fadeIn(0);
		sym.getSymbol("routeMc").$("stageBtnTxt" + stageBtn_id).fadeIn(0);

		resetmenu(); //set menu back to normal state	
		sym.getSymbol("styleMc").getSymbol("menuBtn0").$("btnClick").fadeIn(0);
		if (clicked!=0){
		sym.$("txt13").fadeIn(500);
		sym.$("teamsMc").animate ({left:0}, {duration:600, complete:  function() { resetTeams(); }});
		sym.$("stageMc").animate ({left:455}, 600, 'easeOutCubic');
		sym.$("upBtn").animate ({top:0}, 0, 'easeOutCubic');
		sym.$("downBtn").animate ({top:0}, 0, 'easeOutCubic');
		sym.$("results").animate ({top:-550}, 600, 'easeOutCubic');
		}
		sym.$("stageMc").animate ({left:0}, 600, 'easeOutCubic');
		clicked=0;
		for (var i=0; i<21; i++){
			if(i==stageBtn_id){
				stagetxt0.text(stagestring[0]+" "+stagestring[i+1]+" - "+datestring[0]+" "+datestring[i+1]);
         	stagetxt1.text(tablestring[2]);
         	stagetxt3.text(txt20+" "+datestring[0]+" "+datestring[i+1]);
         	sym.getSymbol("stageMc").getSymbol("mapsSliderMc").$("stageMapMc").animate ({left:i*-300}, 900, 'easeOutCubic');
				sym.getSymbol("stageMc").getSymbol("profileSliderMc").$("stageProfileMc").animate ({left:i*-455}, 900, 'easeOutCubic');
				todayStage=i;	
         	getClassification(stages[i]);
				}
		}
		if (stageBtn_id==0) {
		}
		if (stageBtn_id==1) {
		}
		if (stageBtn_id==2) {
		}
	}
	function stageBtnShow (e){
         	var stageBtn_id = (e.data.stageBtnId); //get the id of the over button
         	sym.$('handMc').hide();
				sym.getSymbol("routeMc").getSymbol("stageBtn" + stageBtn_id).$("btnOver").fadeIn(0);
	}
	function stageBtnHide (e){
         	var stageBtn_id = (e.data.stageBtnId); //get the id of the out button
				sym.getSymbol("routeMc").getSymbol("stageBtn" + stageBtn_id).$("btnOver").fadeOut(0);
	}

//----------------- TEAM BUTTONS ------------------------
teamBtnArray = []; //the array that will hold references to the buttons.
for (var h = 0; h < 5; h++){
         	 var teamBtnSymbols = sym.getSymbol("teamsMc").getSymbol("teamBtn" +h); // Create an instance element of a symbol as a child of the given parent element
         	 teamBtnSymbols.setVariable("teamBtnId", h); //set the value of a Symbol variable
         	 teamBtnArray.push(teamBtnSymbols); //push it into the array
         }

$.each(teamBtnArray, function( count, teamBtnInTheArray ){ //a 'for each' loop through the newly populated array
         	 var teamBtnItem = $(teamBtnInTheArray); //create jQuery reference to the item
         	 var teamBtnElement = teamBtnInTheArray.getSymbolElement(); //create a jQuery reference to the DIV element inside the symbol
         	 //now you can bind interactivity to the teamBtn items' DIVs
         	 teamBtnElement.bind ("click", {teamBtnId:count}, teamBtnClick);
         	 teamBtnElement.bind ("mouseover", {teamBtnId:count}, teamBtnShow);
         	 teamBtnElement.bind ("mouseout", {teamBtnId:count}, teamBtnHide);
         	})

	function resetteamBtn(){
		for (var h=0; h<teamBtnArray.length; h++){
      		teamBtnArray[h].$("btnClick").fadeOut(0);
		teamBtnArray[h].$("btnOver").fadeOut(0);
		}
	}
	resetteamBtn();

	function teamBtnClick (e){
		resetteamBtn(); //set them all back to normal state
		var teamBtn_id = (e.data.teamBtnId); //get the id of the clicked item
		sym.getSymbol("teamsMc").getSymbol("teamBtn" + teamBtn_id).$("btnClick").fadeIn(0);
		teamCount = teamBtn_id; // 
		teamClick();
		}
	function teamBtnShow (e){
         	var teamBtn_id = (e.data.teamBtnId); //get the id of the over button
         	sym.$('handMc').hide();
				sym.getSymbol("teamsMc").getSymbol("teamBtn" + teamBtn_id).$("btnOver").fadeIn(0);
	}
	function teamBtnHide (e){
         	var teamBtn_id = (e.data.teamBtnId); //get the id of the out button
				sym.getSymbol("teamsMc").getSymbol("teamBtn" + teamBtn_id).$("btnOver").fadeOut(0);
	}

// SET COUNTER	
	var panelCal = 0;
	var teamCount = 0;
	var teamPanel = 0;
	var boxCount = 17;
	var teamSlide = -510;

// TEAM UP/DOWN BTNS
	Symbol.bindElementAction(compId, symbolName, "${_downBtn}", "click", function(sym, e) {
	sym.$("handMc").fadeOut(0);
	teamPanel++;
	slideClick();
	sym.getSymbol("upBtn").$("btnOver").fadeOut(0);
	});
	Symbol.bindElementAction(compId, symbolName, "${_downBtn}", "mouseover", function(sym, e) {
	sym.getSymbol("downBtn").$("btnOver").fadeIn(200);
	});
	Symbol.bindElementAction(compId, symbolName, "${_downBtn}", "mouseout", function(sym, e) {
	sym.getSymbol("downBtn").$("btnOver").fadeOut(200);
	});

	Symbol.bindElementAction(compId, symbolName, "${_upBtn}", "click", function(sym, e) {
	sym.$("handMc").fadeOut(0);
	teamPanel--;
	slideClick();
	sym.getSymbol("downBtn").$("btnOver").fadeOut(0);
	});
	Symbol.bindElementAction(compId, symbolName, "${_upBtn}", "mouseover", function(sym, e) {
	sym.getSymbol("upBtn").$("btnOver").fadeIn(200);
	});
	Symbol.bindElementAction(compId, symbolName, "${_upBtn}", "mouseout", function(sym, e) {
	sym.getSymbol("upBtn").$("btnOver").fadeOut(200);
	});

	function slideClick(){
	resetteamBtn();
	sym.getSymbol("teamsMc").getSymbol("teamsSlider").$("teamsSlideClip").animate ({top:teamPanel*teamSlide}, 600, 'easeOutCubic');
	sym.getSymbol("teamsMc").$("numbersBox").animate ({left:teamPanel*boxCount}, 500, 'easeOutCubic');
	if (teamPanel == 0) {
			panelCal=0;
			sym.$("upBtn").fadeOut(0);
			sym.$("downBtn").fadeIn(0);
	}
	if (teamPanel == 1) {
			panelCal = 5;
			sym.$("upBtn").fadeIn(0);
			sym.$("downBtn").fadeIn(0);
	}
	if (teamPanel == 2) {
			panelCal = 10;
			sym.$("upBtn").fadeIn(0);
			sym.$("downBtn").fadeIn(0);
	}
	if (teamPanel == 3) {
			panelCal = 15;
			sym.$("upBtn").fadeIn(0);
			sym.$("downBtn").fadeIn(0);
	}
	if (teamPanel == 4) {
			panelCal = 20;
			sym.$("upBtn").fadeIn(0);
			sym.$("downBtn").fadeOut(0);
			sym.getSymbol("teamsMc").$("teamBtn3").fadeOut(0);
			sym.getSymbol("teamsMc").$("teamBtn4").fadeOut(0);
	}else{
			sym.getSymbol("teamsMc").$("teamBtn3").fadeIn(0);
			sym.getSymbol("teamsMc").$("teamBtn4").fadeIn(0);
	}
	}
	slideClick();

// ACTIONS FOR BUTTON CLICKS
	function teamClick(){
		$.ajax({	
         	type: "GET",
         	url: "GN30489.xml",
         	dataType: "xml",
         	success: function(xml) {
				country = $(xml).find('country' + (teamCount+panelCal)).text();
				countrytxt.html(country);
				name = $(xml).find('name' + (teamCount+panelCal)).text();
				nametxt.html(name + country);
				riders = $(xml).find('riders' + (teamCount+panelCal)).text();
				riderstxt.html(riders);
				}
		});
		var team_arr = ["GRS","ALM","AND","AST","BAR","BLA","BMC","CAN","COL","EUS","FDJ","KAT","LAM","LTB","MOV","OPQ","OGE","RSL","SKY","ARG","STB","VCD","FAR",];// HIDE/SHOW TEAM IMAGES + TEXT		
		sym.getSymbol("teamsMc").$("teamJersey").fadeOut(0);
		sym.getSymbol("teamsMc").$("teamJersey").attr('src','teams/'+team_arr[teamCount+panelCal]+'.jpg');
		sym.getSymbol("teamsMc").$("teamJersey").fadeIn(500);
	}
	teamClick();

	// RESET TEAMS
		function resetTeams(){
		panelCal = 0;
		teamCount = 0;
		teamPanel = 0;
		slideClick();
		teamClick();
		sym.getSymbol("teamsMc").getSymbol("teamBtn0").$("btnClick").fadeIn(0);
		sym.getSymbol("downBtn").$("btnOver").fadeOut(0);
		}

//LIVE DATA
function resetPhases(){
	for (var i=0;i<21;i++){
		sym.getSymbol("results").getSymbol("phaseBtn"+i).$("phaseTxt").fadeOut(0);
	}
	sym.getSymbol("results").getSymbol("classificationsBtn").$("tab").css({'background-color':'rgb(206,206,206)'});
	sym.getSymbol("results").getSymbol("classificationsBtn").$("phaseTxt").css({'color':'rgb(100,100,100)'});
}
resetPhases();
var phaseClicker = function(stage,number){ //to handle lexical scope
							return function (e) {
							getPhase(stage);
							for (var i=0;i<21;i++){
								if (i==number){
									sym.getSymbol("results").getSymbol("phaseBtn"+i).$("tab").css({'background-color':'rgb(255,255,255)'});
									sym.getSymbol("results").getSymbol("phaseBtn"+i).$("phaseTxt").css({'color':'rgb(0,0,0)'});
									txt17txt.text(resultstring0[0]+" "+stagestring[i+1]);
								}else{
									sym.getSymbol("results").getSymbol("phaseBtn"+i).$("tab").css({'background-color':'rgb(206,206,206)'});
									sym.getSymbol("results").getSymbol("phaseBtn"+i).$("phaseTxt").css({'color':'rgb(100,100,100)'});
								}
							}
							sym.getSymbol("results").$("leadTeam").fadeIn(0);
							sym.getSymbol("results").getSymbol("classificationsBtn").$("tab").css({'background-color':'rgb(206,206,206)'});
							sym.getSymbol("results").getSymbol("classificationsBtn").$("phaseTxt").css({'color':'rgb(100,100,100)'});
						};
};
var classClicker = function(stage,id){ //to handle lexical scope
							return function (e) {
							getPhase(stage,id);
							sym.getSymbol("results").$("leadTeam").fadeOut(0);
							for (var i=0;i<21;i++){
									sym.getSymbol("results").getSymbol("phaseBtn"+i).$("tab").css({'background-color':'rgb(206,206,206)'});
									sym.getSymbol("results").getSymbol("phaseBtn"+i).$("phaseTxt").css({'color':'rgb(100,100,100)'});								
							}
							for (i=0;i<5;i++){
									if (i==id){
										sym.getSymbol("results").getSymbol("classBtn"+i).$("classTxt").css({'font-weight':700,'color':'rgb(0,0,0)'});
										sym.getSymbol("results").$("classBtn"+i).css({'border':'solid 1px rgb(255,0,0)'});
										txt17txt.text(resultstring0[i+1]);

									}else{
										sym.getSymbol("results").getSymbol("classBtn"+i).$("classTxt").css({'font-weight':400,'color':'rgb(100,100,100)'});
										sym.getSymbol("results").$("classBtn"+i).css({'border':'solid 1px rgb(255,255,255)'});
									}								
							}
							sym.getSymbol("results").getSymbol("classificationsBtn").$("tab").css({'background-color':'rgb(255,255,255)'});
							sym.getSymbol("results").getSymbol("classificationsBtn").$("phaseTxt").css({'color':'rgb(0,0,0)'});
						};
};
var thisStage;
//var classifications=[456955,588981,589001,589000,588983];
var classifications=[800970,856741,856742,856744,856746];
var dataURL = ('http:'==document.location.protocol?"http://www2.graphicnews.com/":"https://www.graphicnews.org/")+ "infostradasports/api.php";
//GET race stage list data
function getRace(){
	$.ajax({ type: "GET", 
					url: dataURL,
               data: "gn=30489&type=cycling&yr=2013&q=stages",
               contentType: "text/plain", dataType: "jsonp", jsonp: "callback",
               async: true,
               crossDomain: true,
               success: function (data) {
               sym.getSymbol("styleMc").$("menuBtn3").unbind('click');
					sym.getSymbol("results").$("classificationsBtn").unbind();
					for (var c=0;c<5;c++){
					sym.getSymbol("results").$("classBtn"+c).unbind();
					}
               for (var i=0; i<21; i++){
							sym.getSymbol("results").$("phaseBtn"+i).unbind();											
							thisStage=data[i].n_PhaseID;
							if(data[i].b_Started==true&&data[i].b_Finished==true){ //if any phases have finished
								sym.getSymbol("results").$("phaseBtn"+i).click(phaseClicker(thisStage,i)); //bind to stage button
								sym.getSymbol("results").$("phaseBtn"+i).css({'cursor':'pointer'});
								sym.getSymbol("results").getSymbol("phaseBtn"+i).$("phaseTxt").fadeIn(0);
								sym.getSymbol("results").getSymbol("phaseBtn"+i).$("phaseTxt").css({'color':'rgb(100,100,100)'});
							}
							if(data[i].b_Current==true&&data[i].b_Finished==true){ //if any phases are current
									//fill in this stage data in graph	
									getPhase(thisStage);
									todayStage=i;
									sym.getSymbol("results").getSymbol("phaseBtn"+i).$("tab").css({'background-color':'rgb(255,255,255)'});
									sym.getSymbol("results").getSymbol("phaseBtn"+i).$("phaseTxt").css({'color':'rgb(0,0,0)'});
									getClassification(800970);
									sym.getSymbol("styleMc").$("menuBtn3").bind ("click", {menuId:3}, menuBtnClick);
									sym.getSymbol("results").$("classificationsBtn").click(classClicker(classifications[0],0));//bind classification buttons
									sym.getSymbol("results").$("classificationsBtn").css({'cursor':'pointer'});
									sym.getSymbol("results").$("classBtn0").click(classClicker(classifications[0],0));
									sym.getSymbol("results").$("classBtn3").click(classClicker(classifications[3],3));
									sym.getSymbol("results").$("classBtn4").click(classClicker(classifications[4],4));
									if(data[i].n_PointsClassificationID>0){ //if any points have been awarded									
										sym.getSymbol("results").$("classBtn1").click(classClicker(classifications[1],1));							  
									}
									if(data[i].n_MountainClassificationID>0){ //if any mountain points have been awarded
										sym.getSymbol("results").$("classBtn2").click(classClicker(classifications[2],2));	
									}
								stagetxt0.text(stagestring[0]+" "+stagestring[i+1]+" - "+datestring[0]+" "+datestring[i+1]);
								txt17txt.text(resultstring0[0]+" "+stagestring[i+1]);
		sym.getSymbol("routeMc").getSymbol("stageBtn" + (i)).$("btnClick").fadeIn(0);
		sym.getSymbol("stageMc").getSymbol("mapsSliderMc").$("stageMapMc").animate ({left:i*-300}, 900, 'easeOutCubic');
		sym.getSymbol("stageMc").getSymbol("profileSliderMc").$("stageProfileMc").animate ({left:i*-455}, 900, 'easeOutCubic');

							}
						}
					}
       });
}
getRace();
intervalId = setInterval(getRace,300000);

function getClassification(stageID){
$.ajax({ type: "GET", 
					url: dataURL,
               data: "gn=30489&yr=2013&stage="+stageID,
               contentType: "text/plain", dataType: "jsonp", jsonp: "callback",
               async: true,
               crossDomain: true,
               success: function (data) {
						var classData = data;
						sym.getSymbol("stageMc").$("graph").empty();					
						for (var i = 0; i < classData.length; i++) {
							//create graph for each rider and for final results
							var tableText ="<div class='race'><div id='riderdata"+i+"'><table style='width:100%; border:none; border-collapse:collapse; padding:0; margin:0'><tr><td id='rank"+i+"' width='30px'></td><td id='rider"+i+"'width='110px'></td><td id='team"+i+"' style='font-style:italic' width='50px'></td><td id='time"+i+"'></td></tr></table></div></div>";
							sym.getSymbol("stageMc").$("graph").append(tableText);
							$('#rank' + i).text(classData[i].c_Rank);
							$('#rider' + i).text(classData[i].c_ParticipantShort);
							$('#team' + i).text(classData[i].c_TeamShort);
							if(classData[i].c_Result!=null){
							$('#time' + i).text(classData[i].c_Result);
							}else{
							$('#time' + i).text("");
							}
						$(".race").css({'font-size':'13px', 'font-family':'pragmatica-web, sans-serif', 'width':'98%'});
						if (i==0){
						$('#rider' + i).css({'font-weight':'bold'});
						}
						if (i%2==0){
								$("#riderdata" + i).css({'background-color':'rgb(213,218,224)','padding-left':'3px', 'border-top':'solid 1px rgb(255,255,255)','border-bottom':'solid 1px rgb(150,150,150)'});
						}else{
								$("#riderdata" + i).css({'background-color':'rgb(239,239,239)','padding-left':'3px', 'border-top':'solid 1px rgb(255,255,255)','border-bottom':'solid 1px rgb(150,150,150)'});							
						}
						$("#team" + i).css({'text-align':'center','background-color':'rgb(255,255,255)'});
						$("#time" + i).css({'text-align':'right', 'padding-right':'5px'});
						}
						},
						error: function(){
						sym.getSymbol("stageMc").$("graph").empty();					
						}
	});
}
function getPhase(stageID,classID){
$.ajax({ type: "GET", 
					url: dataURL,
               data: "gn=30489&yr=2013&stage="+stageID,
               contentType: "text/plain", dataType: "jsonp", jsonp: "callback",
               async: true,
               crossDomain: true,
               success: function (data) {                
						var raceStage = data;
						var scale;
						if (classID==1||classID==2){
							var max = raceStage[0].n_Points;
							var minTime = (max!=null) ? max : 0;
								for (var n=0; n<raceStage.length; n++) {
									if (raceStage[n].n_Points!=null && raceStage[n].n_Points<minTime) {
									minTime = raceStage[n].n_Points;
									}
									if (raceStage[n].n_Points!=null && raceStage[n].n_Points>max) {
									max = raceStage[n].n_Points;									
									}
								}								
						}else{
							var minTime = raceStage[0].n_TimeAbs;
							var max = (minTime!=null) ? minTime : 0;
								for (var n=0; n<raceStage.length; n++) {
									if (raceStage[n].n_TimeAbs!=null && raceStage[n].n_TimeAbs>max) {
									max = raceStage[n].n_TimeAbs;
									}
									if (raceStage[n].n_TimeAbs!=null && raceStage[n].n_TimeAbs<minTime) {
									minTime = raceStage[n].n_TimeAbs;									
									}
								}						
						}
						sym.getSymbol("results").$("table").empty();
							for (var i = 0; i < raceStage.length; i++) {
								var stageText ="<div class='stg'><div id='stgdata"+i+"'><table style='width:100%; border:none; border-collapse:collapse; padding:0; margin:0'><tr><td id='stgrank"+i+"' width='35px'></td><td id='stgrider"+i+"' width='180px'></td><td id='stgflag"+i+"' width='30px'></td><td id='stgteam"+i+"' style='font-style:italic' width='50px'></td><td id='stgtime"+i+"'></td></tr></table></div></div>";
								if (classID==1||classID==2){								
									if (max==minTime && raceStage[i].n_Points==max) {
										scale=100;
									}else if(raceStage[i].n_Points==null){
										scale=59;
									}else{
										scale = 59+((raceStage[i].n_Points-minTime)*41/(max-minTime));
									}
								}else{
								if (minTime==max && raceStage[i].n_TimeAbs==max) {	//if minTime=mxm=item Time that means that there is just 1 item with valid time. show this graph as max
										scale=100;
									}else if(raceStage[i].n_TimeAbs==null){
										scale=59;
									}else{
										scale = 100-((raceStage[i].n_TimeAbs-minTime)*41/(max-minTime));
									}
								}
								sym.getSymbol("results").$("table").append(stageText);
								$('#stgrank' + i).text(raceStage[i].c_Rank);
								$('#stgrider' + i).text(raceStage[i].c_Participant);
								$('#stgteam' + i).text(raceStage[i].c_TeamShort);
								$('#stgflag' + i).text(raceStage[i].c_NOCShort);
								if(raceStage[i].c_Result!=null){
									$('#stgtime' + i).text(raceStage[i].c_Result);
								}else{
									$('#stgtime' + i).text("");
								}
								$(".stg").css({'font-size':'13px', 'font-family':'pragmatica-web, sans-serif', 'width':'99%'});
								if (i==0){
									$('#stgrider' + i).css({'font-weight':'bold'});
								}
								if (i%2==0){
									$("#stgdata" + i).css({'width':scale+'%','background-color':'rgb(213,218,224)','padding-left':'3px', 'border-top':'solid 1px rgb(255,255,255)','border-bottom':'solid 1px rgb(150,150,150)'});
								}else{
									$("#stgdata" + i).css({'width':scale+'%','background-color':'rgb(239,239,239)','padding-left':'3px', 'border-top':'solid 1px rgb(255,255,255)','border-bottom':'solid 1px rgb(150,150,150)'});							
								}
								$("#stgteam" + i).css({'text-align':'center','background-color':'rgb(255,255,255)'});
								$("#stgtime" + i).css({'text-align':'right', 'padding-right':'5px'});

						}
						var leadTeamShort=raceStage[0].c_TeamShort;
						var leadTeam=raceStage[0].c_Team;
						sym.getSymbol("results").getSymbol("leadTeam").$("leadJersey").attr('src','teams/'+leadTeamShort+'.jpg');
						sym.getSymbol("results").getSymbol("leadTeam").$("leadTeamTxt").text(leadTeam);
               }
			});
}
//LEFT RIGHT STAGE BUTTONS
function changeStage(){
		stagetxt0.text(stagestring[0]+" "+stagestring[todayStage+1]+" - "+datestring[0]+" "+datestring[todayStage+1]);
      stagetxt1.text(tablestring[2]);
      stagetxt3.text(txt20+" "+datestring[0]+" "+datestring[todayStage+1]);
      resetstageBtn();
		sym.getSymbol("routeMc").getSymbol("stageBtn" + (todayStage)).$("btnClick").fadeIn(0);
      sym.getSymbol("stageMc").getSymbol("mapsSliderMc").$("stageMapMc").animate ({left:todayStage*-300}, 900, 'easeOutCubic');
		sym.getSymbol("stageMc").getSymbol("profileSliderMc").$("stageProfileMc").animate ({left:todayStage*-455}, 900, 'easeOutCubic');
		setTimeout(function() { getClassification(stages[todayStage]); }, 2000);

}
sym.getSymbol("stageMc").getSymbol("stagesHead").$("stageRight").click(function(){
		if (todayStage<20){
		todayStage++;
		changeStage();
      }
	});
sym.getSymbol("stageMc").getSymbol("stagesHead").$("stageRight").mouseover(function(){
	sym.getSymbol("stageMc").getSymbol("stagesHead").getSymbol("stageRight").$("btnOver").fadeIn(0);
	});
sym.getSymbol("stageMc").getSymbol("stagesHead").$("stageRight").mouseout(function(){
	sym.getSymbol("stageMc").getSymbol("stagesHead").getSymbol("stageRight").$("btnOver").fadeOut(0);
	});	
sym.getSymbol("stageMc").getSymbol("stagesHead").$("stageLeft").click(function(){
		if (todayStage>0){		
			todayStage--;
			changeStage();
			}
		});
sym.getSymbol("stageMc").getSymbol("stagesHead").$("stageLeft").mouseover(function(){
	sym.getSymbol("stageMc").getSymbol("stagesHead").getSymbol("stageLeft").$("btnOver").fadeIn(0);
	});
sym.getSymbol("stageMc").getSymbol("stagesHead").$("stageLeft").mouseout(function(){
	sym.getSymbol("stageMc").getSymbol("stagesHead").getSymbol("stageLeft").$("btnOver").fadeOut(0);
	});
sym.getSymbol("stageMc").getSymbol("stagesHead").getSymbol("stageLeft").$("btnOver").fadeOut(0);
sym.getSymbol("stageMc").getSymbol("stagesHead").getSymbol("stageRight").$("btnOver").fadeOut(0);


         	});//Edge binding end	
		
		// VIDEO BTN 1 =========================================================
         	
			
         	
         		
         	
			
			
         	// VIDEO BTN 2 =========================================================
         	
         	
         	
         		
         	
         	


   })("stage");
   //Edge symbol end:'stage'

//=========================================================
   //Edge symbol: 'handMc'
   (function(symbolName) {

   })("handMc");
   //Edge symbol end:'handMc'

   //=========================================================
   
   //Edge symbol: 'styleMc'
   (function(symbolName) {   
   
   })("styleMc");
   //Edge symbol end:'styleMc'

   //=========================================================
   
   //Edge symbol: 'menuBtn'
   (function(symbolName) {   
   
   })("menuBtn");
   //Edge symbol end:'menuBtn'

   //=========================================================
   
   //Edge symbol: 'rollBtn'
   (function(symbolName) {   
   
   })("rollBtn");
   //Edge symbol end:'rollBtn'

   //=========================================================
   
   //Edge symbol: 'rollBtn_1'
   (function(symbolName) {   
   
   })("rollBtn_1");
   //Edge symbol end:'rollBtn_1'

   //=========================================================
   
   //Edge symbol: 'routeMc'
   (function(symbolName) {   
   
   })("routeMc");
   //Edge symbol end:'routeMc'

   //=========================================================
   
   //Edge symbol: 'menuBtn_1'
   (function(symbolName) {   
   
      })("stageBtn");
   //Edge symbol end:'stageBtn'

   //=========================================================
   
   //Edge symbol: 'baseBar'
   (function(symbolName) {   
   
   })("baseBar");
   //Edge symbol end:'baseBar'

   //=========================================================
   
   //Edge symbol: 'teamsMc'
   (function(symbolName) {   
   
   })("teamsMc");
   //Edge symbol end:'teamsMc'

   //=========================================================
   
   //Edge symbol: 'numbersTop'
   (function(symbolName) {   
   
   })("numbersTop");
   //Edge symbol end:'numbersTop'

   //=========================================================
   
   //Edge symbol: 'teams5Mc'
   (function(symbolName) {   
   
   })("teams5Mc");
   //Edge symbol end:'teams5Mc'

   //=========================================================
   
   //Edge symbol: 'team4Mc'
   (function(symbolName) {   
   
   })("team4Mc");
   //Edge symbol end:'team4Mc'

   //=========================================================
   
   //Edge symbol: 'teams3Mc'
   (function(symbolName) {   
   
   })("teams3Mc");
   //Edge symbol end:'teams3Mc'

   //=========================================================
   
   //Edge symbol: 'teams2Mc'
   (function(symbolName) {   
   
   })("teams2Mc");
   //Edge symbol end:'teams2Mc'

   //=========================================================
   
   //Edge symbol: 'teams1Mc'
   (function(symbolName) {   
   
   })("teams1Mc");
   //Edge symbol end:'teams1Mc'

   //=========================================================
   
   //Edge symbol: 'menuBtn_1'
   (function(symbolName) {   
   
      })("teamBtn");
   //Edge symbol end:'teamBtn'

   //=========================================================
   
   //Edge symbol: 'teamsSlider'
   (function(symbolName) {   
   
   })("teamsSlider");
   //Edge symbol end:'teamsSlider'

   //=========================================================
   
   //Edge symbol: 'teamSlideBtn'
   (function(symbolName) {   
   
   })("teamSlideBtn");
   //Edge symbol end:'teamSlideBtn'

   //=========================================================
   
   //Edge symbol: 'teamsSlideClip'
   (function(symbolName) {   
   
   })("teamsSlideClip");
   //Edge symbol end:'teamsSlideClip'

   //=========================================================
   
   //Edge symbol: 'ResultsMc'
   (function(symbolName) {   
   
   })("ResultsMc");
   //Edge symbol end:'ResultsMc'

   //=========================================================
   
   //Edge symbol: 'phaseBtn1'
   (function(symbolName) {   
   
   })("phaseBtn1");
   //Edge symbol end:'phaseBtn1'

   //=========================================================
   
   //Edge symbol: 'phaseBtn2'
   (function(symbolName) {   
   
   })("phaseBtn2");
   //Edge symbol end:'phaseBtn2'

   //=========================================================
   
   //Edge symbol: 'phaseBtn3'
   (function(symbolName) {   
   
   })("phaseBtn3");
   //Edge symbol end:'phaseBtn3'

   //=========================================================
   
   //Edge symbol: 'phaseBtn4'
   (function(symbolName) {   
   
   })("phaseBtn4");
   //Edge symbol end:'phaseBtn4'

   //=========================================================
   
   //Edge symbol: 'phaseBtn5'
   (function(symbolName) {   
   
   })("phaseBtn5");
   //Edge symbol end:'phaseBtn5'

   //=========================================================
   
   //Edge symbol: 'phaseBtn6'
   (function(symbolName) {   
   
   })("phaseBtn6");
   //Edge symbol end:'phaseBtn6'

   //=========================================================
   
   //Edge symbol: 'phaseBtn7'
   (function(symbolName) {   
   
   })("phaseBtn7");
   //Edge symbol end:'phaseBtn7'

   //=========================================================
   
   //Edge symbol: 'phaseBtn8'
   (function(symbolName) {   
   
   })("phaseBtn8");
   //Edge symbol end:'phaseBtn8'

   //=========================================================
   
   //Edge symbol: 'phaseBtn9'
   (function(symbolName) {   
   
   })("phaseBtn9");
   //Edge symbol end:'phaseBtn9'

   //=========================================================
   
   //Edge symbol: 'phaseBtn10'
   (function(symbolName) {   
   
   })("phaseBtn10");
   //Edge symbol end:'phaseBtn10'

   //=========================================================
   
   //Edge symbol: 'phaseBtn11'
   (function(symbolName) {   
   
   })("phaseBtn11");
   //Edge symbol end:'phaseBtn11'

   //=========================================================
   
   //Edge symbol: 'phaseBtn12'
   (function(symbolName) {   
   
   })("phaseBtn12");
   //Edge symbol end:'phaseBtn12'

   //=========================================================
   
   //Edge symbol: 'phaseBtn13'
   (function(symbolName) {   
   
   })("phaseBtn13");
   //Edge symbol end:'phaseBtn13'

   //=========================================================
   
   //Edge symbol: 'phaseBtn14'
   (function(symbolName) {   
   
   })("phaseBtn14");
   //Edge symbol end:'phaseBtn14'

   //=========================================================
   
   //Edge symbol: 'phaseBtn15'
   (function(symbolName) {   
   
   })("phaseBtn15");
   //Edge symbol end:'phaseBtn15'

   //=========================================================
   
   //Edge symbol: 'phaseBtn16'
   (function(symbolName) {   
   
   })("phaseBtn16");
   //Edge symbol end:'phaseBtn16'

   //=========================================================
   
   //Edge symbol: 'phaseBtn17'
   (function(symbolName) {   
   
   })("phaseBtn17");
   //Edge symbol end:'phaseBtn17'

   //=========================================================
   
   //Edge symbol: 'phaseBtn18'
   (function(symbolName) {   
   
   })("phaseBtn18");
   //Edge symbol end:'phaseBtn18'

   //=========================================================
   
   //Edge symbol: 'phaseBtn19'
   (function(symbolName) {   
   
   })("phaseBtn19");
   //Edge symbol end:'phaseBtn19'

   //=========================================================
   
   //Edge symbol: 'phaseBtn20'
   (function(symbolName) {   
   
   })("phaseBtn20");
   //Edge symbol end:'phaseBtn20'

   //=========================================================
   
   //Edge symbol: 'phaseBtn21'
   (function(symbolName) {   
   
   })("phaseBtn21");
   //Edge symbol end:'phaseBtn21'

   //=========================================================
   
   //Edge symbol: 'ClassificationsBtn'
   (function(symbolName) {   
   
   })("ClassificationsBtn");
   //Edge symbol end:'ClassificationsBtn'

   //=========================================================
   
   //Edge symbol: 'GeneralBtn'
   (function(symbolName) {   
   
   })("GeneralBtn");
   //Edge symbol end:'GeneralBtn'

   //=========================================================
   
   //Edge symbol: 'PointsBtn'
   (function(symbolName) {   
   
   })("PointsBtn");
   //Edge symbol end:'PointsBtn'

   //=========================================================
   
   //Edge symbol: 'MountainBtn'
   (function(symbolName) {   
   
   })("MountainBtn");
   //Edge symbol end:'MountainBtn'

   //=========================================================
   
   //Edge symbol: 'YouthBtn'
   (function(symbolName) {   
   
   })("YouthBtn");
   //Edge symbol end:'YouthBtn'

   //=========================================================
   
   //Edge symbol: 'TeamBtn'
   (function(symbolName) {   
   
   })("TeamBtn");
   //Edge symbol end:'TeamBtn'

   //=========================================================
   
   //Edge symbol: 'Preloader'
   (function(symbolName) {   
   
   })("Preloader");
   //Edge symbol end:'Preloader'

   //=========================================================
   
   //Edge symbol: 'leadTeam'
   (function(symbolName) {   
   
   })("LeadTeam");
   //Edge symbol end:'LeadTeam'

   //=========================================================

   //=========================================================
   
   //Edge symbol: 'profBtn'
   (function(symbolName) {   
   
   })("profBtn");
   //Edge symbol end:'profBtn'

   //=========================================================
   
   //Edge symbol: 'stagesHead'
   (function(symbolName) {   
   
   })("stagesHead");
   //Edge symbol end:'stagesHead'

   //=========================================================
   
   //Edge symbol: 'mapBtn'
   (function(symbolName) {   
   
   })("mapBtn");
   //Edge symbol end:'mapBtn'

   //=========================================================
   
   //Edge symbol: 'StageMc'
   (function(symbolName) {   
   
   })("StageMc");
   //Edge symbol end:'StageMc'

   //=========================================================
   
   //Edge symbol: 'profileMc'
   (function(symbolName) {   
   
   })("profileMc");
   //Edge symbol end:'profileMc'

   //=========================================================
   
   //Edge symbol: 'stageMapMc'
   (function(symbolName) {   
   
   })("stageMapMc");
   //Edge symbol end:'stageMapMc'

   //=========================================================

   //=========================================================
   
   //Edge symbol: 'teamSlideBtn'
   (function(symbolName) {   
   
   })("teamSlideBtn1");
   //Edge symbol end:'teamSlideBtn1'

   //=========================================================

   //=========================================================
   
   //Edge symbol: 'teamSlideBtn_2'
   (function(symbolName) {   
   
      })("teamSlideBtn2");
   //Edge symbol end:'teamSlideBtn2'

   //=========================================================

   //=========================================================
   
   //Edge symbol: 'mapMc9_8'
   (function(symbolName) {   
   
      })("mapMc18");
   //Edge symbol end:'mapMc18'

   //=========================================================
   
   //Edge symbol: 'mapMc2_1'
   (function(symbolName) {   
   
      })("mapMc3");
   //Edge symbol end:'mapMc3'

   //=========================================================
   
   //Edge symbol: 'mapMc8_1'
   (function(symbolName) {   
   
      })("mapMc9");
   //Edge symbol end:'mapMc9'

   //=========================================================
   
   //Edge symbol: 'mapMc4_1'
   (function(symbolName) {   
   
      })("mapMc5");
   //Edge symbol end:'mapMc5'

   //=========================================================
   
   //Edge symbol: 'mapMc9_6'
   (function(symbolName) {   
   
      })("mapMc16");
   //Edge symbol end:'mapMc16'

   //=========================================================
   
   //Edge symbol: 'mapMc9_4'
   (function(symbolName) {   
   
      })("mapMc14");
   //Edge symbol end:'mapMc14'

   //=========================================================
   
   //Edge symbol: 'mapMc5_1'
   (function(symbolName) {   
   
      })("mapMc6");
   //Edge symbol end:'mapMc6'

   //=========================================================
   
   //Edge symbol: 'stageMapMc'
   (function(symbolName) {   
   
   })("stageMapMc_1");
   //Edge symbol end:'stageMapMc_1'

   //=========================================================
   
   //Edge symbol: 'mapMc3_1'
   (function(symbolName) {   
   
      })("mapMc4");
   //Edge symbol end:'mapMc4'

   //=========================================================
   
   //Edge symbol: 'mapMc1_1'
   (function(symbolName) {   
   
      })("mapMc1");
   //Edge symbol end:'mapMc1'

   //=========================================================
   
   //Edge symbol: 'mapsSliderMc'
   (function(symbolName) {   
   
   })("mapsSliderMc");
   //Edge symbol end:'mapsSliderMc'

   //=========================================================
   
   //Edge symbol: 'mapMc9_5'
   (function(symbolName) {   
   
      })("mapMc15");
   //Edge symbol end:'mapMc15'

   //=========================================================
   
   //Edge symbol: 'mapMc6_1'
   (function(symbolName) {   
   
      })("mapMc7");
   //Edge symbol end:'mapMc7'

   //=========================================================
   
   //Edge symbol: 'mapMc1_1'
   (function(symbolName) {   
   
      })("mapMc2");
   //Edge symbol end:'mapMc2'

   //=========================================================
   
   //Edge symbol: 'mapMc7_1'
   (function(symbolName) {   
   
      })("mapMc8");
   //Edge symbol end:'mapMc8'

   //=========================================================
   
   //Edge symbol: 'mapMc9_2'
   (function(symbolName) {   
   
      })("mapMc12");
   //Edge symbol end:'mapMc12'

   //=========================================================
   
   //Edge symbol: 'mapMc19_1'
   (function(symbolName) {   
   
      })("mapMc20");
   //Edge symbol end:'mapMc20'

   //=========================================================
   
   //Edge symbol: 'mapMc9_7'
   (function(symbolName) {   
   
      })("mapMc17");
   //Edge symbol end:'mapMc17'

   //=========================================================
   
   //Edge symbol: 'mapMc9_10'
   (function(symbolName) {   
   
      })("mapMc11");
   //Edge symbol end:'mapMc11'

   //=========================================================
   
   //Edge symbol: 'mapMc9_3'
   (function(symbolName) {   
   
      })("mapMc13");
   //Edge symbol end:'mapMc13'

   //=========================================================
   
   //Edge symbol: 'map1Mc'
   (function(symbolName) {   
   
   })("mapMc0");
   //Edge symbol end:'mapMc0'

   //=========================================================
   
   //Edge symbol: 'mapMc9_9'
   (function(symbolName) {   
   
      })("mapMc19");
   //Edge symbol end:'mapMc19'

   //=========================================================
   
   //Edge symbol: 'mapMc9_1'
   (function(symbolName) {   
   
      })("mapMc10");
   //Edge symbol end:'mapMc10'

   //=========================================================

   //=========================================================
   
   //Edge symbol: 'profileMc2_1'
   (function(symbolName) {   
   
      })("profileMc3");
   //Edge symbol end:'profileMc3'

   //=========================================================
   
   //Edge symbol: 'profileMc3_1'
   (function(symbolName) {   
   
      })("profileMc4");
   //Edge symbol end:'profileMc4'

   //=========================================================
   
   //Edge symbol: 'profileMc4_1'
   (function(symbolName) {   
   
      })("profileMc5");
   //Edge symbol end:'profileMc5'

   //=========================================================
   
   //Edge symbol: 'profileMc5_9'
   (function(symbolName) {   
   
      })("profileMc8");
   //Edge symbol end:'profileMc8'

   //=========================================================
   
   //Edge symbol: 'profileMc1'
   (function(symbolName) {   
   
   })("profileMc0");
   //Edge symbol end:'profileMc0'

   //=========================================================
   
   //Edge symbol: 'profileMc15_3'
   (function(symbolName) {   
   
      })("profileMc18");
   //Edge symbol end:'profileMc18'

   //=========================================================
   
   //Edge symbol: 'profileMc'
   (function(symbolName) {   
   
   })("profileMc_1");
   //Edge symbol end:'profileMc_1'

   //=========================================================
   
   //Edge symbol: 'profileMc5_10'
   (function(symbolName) {   
   
      })("profileMc7");
   //Edge symbol end:'profileMc7'

   //=========================================================
   
   //Edge symbol: 'profileMc5_6'
   (function(symbolName) {   
   
      })("profileMc13");
   //Edge symbol end:'profileMc13'

   //=========================================================
   
   //Edge symbol: 'profileMc5_5'
   (function(symbolName) {   
   
      })("profileMc12");
   //Edge symbol end:'profileMc12'

   //=========================================================
   
   //Edge symbol: 'profileMc1_1'
   (function(symbolName) {   
   
   })("profileMc1");
   //Edge symbol end:'profileMc1'

   //=========================================================
   
   //Edge symbol: 'profileMc5_8'
   (function(symbolName) {   
   
      })("profileMc15");
   //Edge symbol end:'profileMc15'

   //=========================================================
   
   //Edge symbol: 'profileMc15_4'
   (function(symbolName) {   
   
      })("profileMc20");
   //Edge symbol end:'profileMc20'

   //=========================================================
   
   //Edge symbol: 'profileMc5_1'
   (function(symbolName) {   
   
      })("profileMc6");
   //Edge symbol end:'profileMc6'

   //=========================================================
   
   //Edge symbol: 'profileMc5_4'
   (function(symbolName) {   
   
      })("profileMc10");
   //Edge symbol end:'profileMc10'

   //=========================================================
   
   //Edge symbol: 'profileSliderMc'
   (function(symbolName) {   
   
   })("profileSliderMc");
   //Edge symbol end:'profileSliderMc'

   //=========================================================
   
   //Edge symbol: 'profileMc5_2'
   (function(symbolName) {   
   
      })("profileMc9");
   //Edge symbol end:'profileMc9'

   //=========================================================
   
   //Edge symbol: 'profileMc15_5'
   (function(symbolName) {   
   
      })("profileMc19");
   //Edge symbol end:'profileMc19'

   //=========================================================
   
   //Edge symbol: 'profileMc1_1'
   (function(symbolName) {   
   
   })("profileMc2");
   //Edge symbol end:'profileMc2'

   //=========================================================
   
   //Edge symbol: 'profileMc5_7'
   (function(symbolName) {   
   
      })("profileMc14");
   //Edge symbol end:'profileMc14'

   //=========================================================
   
   //Edge symbol: 'profileMc15_2'
   (function(symbolName) {   
   
      })("profileMc17");
   //Edge symbol end:'profileMc17'

   //=========================================================
   
   //Edge symbol: 'profileMc5_3'
   (function(symbolName) {   
   
      })("profileMc11");
   //Edge symbol end:'profileMc11'

   //=========================================================
   
   //Edge symbol: 'profileMc15_1'
   (function(symbolName) {   
   
      })("profileMc16");
   //Edge symbol end:'profileMc16'

})(jQuery, AdobeEdge, "GraphicNews30489");