<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="accueil.xsl.php"?><d routeversion="">
	<e titre="Vidéo" wi="25"   color="#000000" video="1">
			<msg>
								<script type="text/javascript">
					function chg_vid_dm(n,k) {
						$("#vid_lab_current").html(n);
						$("#vid_webcam").attr("src", "//www.dailymotion.com/embed/video/"+k+"?autoPlay=1");
					}
					function chg_vid_yt(n,k) {
						$("#vid_lab_current").html(n);
						$("#vid_webcam").attr("src", "//www.youtube.com/embed/"+k+"?autoplay=1");
					}
					function chg_vid(o) {
						var opt=null;
						if($(o).is("select")) opt=$(o).find(":selected");
						else opt=$(o);
						if(opt.hasClass("off")) return;
						var t=opt.data("t");
						var n=opt.data("n");
						var k=opt.data("k");
						if(t=='yt') chg_vid_yt(n,k);
						else if(t=='dm') chg_vid_dm(n,k);
						else {
							$("#vid_lab_current").html("-");
							$("#vid_webcam").attr("src", "im/nocam.html");
						}
					}
					$(function() {
						var w=$("#cont_video").width();
						$("#cont_video").height(w*9/16 + 14);
					});
				</script>
				<div class="webcams" style="width:100%;padding:5px 0;text-align:left;">
					<div id="cont_video" style="margin-right:10px;width:100%;">
						<span id="vid_lab_current" style="font-weight:bold;">&#160;</span><br/>
						<iframe frameborder="0" width="100%" height="100%" id="vid_webcam" src="im/nocam.html" scrolling="no" allowfullscreen="allowfullscreen" mozallowfullscreen="mozallowfullscreen" msallowfullscreen="msallowfullscreen" oallowfullscreen="oallowfullscreen" webkitallowfullscreen="webkitallowfullscreen"></iframe>
					</div>
					<div id="webcamslst" style="margin-top:24px;text-align:center">
													<img src="im/camip.png" style="height:20px;" align="absmiddle"/> &#160; Webcams :
							<select onchange="chg_vid(this)">
								<option>-</option>
								<option value="8" data-t="dm" data-n="Sommet Grand Ballon" data-k="x4xs9ci">Sommet Grand Ballon</option>
																	</select>
							<a href="javascript:checkStreams();" style="font-size:1.5em;">↺</a>						<script type="text/javascript">
							var nbCam=1;
							$(function() {
								checkStreams();
							});
							function checkStreams() {
								nbCam=1;
								$("#webcamslst select option, #webcamslst a").each(function(){
									var me=$(this);
									if(me.data("t")=="dm") {
										var flux=me.data("k");
										var dailyAPI = "https://api.dailymotion.com/video/"+flux+"?fields=mode,record_start_time,record_end_time,recurrence,onair,live_airing_time,live_video_bitrate,live_audio_bitrate,live_video_width,live_video_height,live_video_fps,live_video_keyframe_interval,live_publish_url,audience,audience_total";
										$.getJSON(dailyAPI, function (json) {
											// Set the variables from the results array
											var live = json.onair || json.live_video_bitrate!=null;
											if (live){
												me.removeClass("off");
												me.attr("disabled",false);
											} else {
												me.addClass("off");
												me.attr("disabled",true);
											}
										}).error(function(){
											if (me.val()!="") {
												me.addClass("off");
												me.attr("disabled",true);
											}
										}).always(function() {
											nbCam--;
											if (nbCam==0) setFirstCam();
									  });
								  }
								});
							}
							function setFirstCam(){
								$("#webcamslst select option, #webcamslst a").each(function(){
									if(!$(this).hasClass("off") &amp;&amp; $(this).html()!="-"){
										if($("#webcamslst select").length &gt; 0) {
											$(this).prop("selected", true);
											$("#webcamslst select").change();
										} else {
											$(this).click();
										}
										return false;
									}
								});
								if($("#webcamslst select option:selected").hasClass("off")) {
									$("#webcamslst select option:first").prop("selected", true);
									$("#webcamslst select").change();
								}
							}
						</script>
					</div>
				</div>
				<p style="clear:both;">&#160;</p>
			</msg>
		</e>
		
<!-- courses.3Ba2J.home_width = 100 / 100 -->
<e/><e/><e/><e id="3Ba2J"  wi="100"  titre="Les 3 Ballons - 2 jours (avec ou sans option)" sstitre="208km / 4150m+" routeVersion="" darkenColor="" color="#f5ae13" >
							<info nomdep="Pfaffenheim - Pfaff - Depart" dtdep="2024-06-22 10:39:20" tz="1" launched="1" finish="1" />
							<hasFinisher v="1"/>
			<points font="10" wi="100" l="5.8823529411765" b="10" f="1"><p id="0" name="Pfaff" km="0" x="5.882" y="76.5" lat="47.98107" lon="7.29165" nb="0"  /><p id="2" name="BallonS" km="73.77" x="38.471" y="41" lat="47.80590" lon="6.85796" nb="0"  /><p id="4" name="MauriceD" km="87.15" x="44.353" y="62" lat="47.85981" lon="6.82299" nb="0"  /><p id="6" name="ColAmic" km="134.71" x="65.412" y="50.5" lat="47.87547" lon="7.12736" nb="0"  /><p id="8" name="G-Bal" km="141.26" x="68.235" y="29" lat="47.90368" lon="7.10326" nb="0" wc="dm|x4xs9ci" /><p id="10" name="P-Bal" km="173.03" x="82.353" y="36.5" lat="47.98517" lon="7.12103" nb="0"  /><p id="12" name="Hohland" km="199.36" x="93.882" y="60" lat="48.05112" lon="7.26477" nb="0"  /><p id="14" name="Arrivee" km="210.45" x="98.824" y="76.5" lat="47.98119" lon="7.29161" nb="200"  /></points>		</e>
      
<!-- courses.2Ballon.home_width = 100 / 100 -->
<e/><e/><e/><e id="2Ballon"  wi="100"  titre="Les 2 Ballons (avec ou sans option)" sstitre="110km / 2280m+" routeVersion="" darkenColor="" color="#2828db" >
							<info nomdep="Pfaffenheim - Pfaff - Depart" dtdep="2024-06-23 06:14:45" tz="1" launched="1" finish="1" />
							<hasFinisher v="1"/>
			<points font="10" wi="100" l="5.8823529411765" b="10" f="1"><p id="0" name="Pfaff" km="0" x="5.882" y="76.5" lat="47.98117" lon="7.29168" nb="0"  /><p id="6" name="ColAmic" km="37.81" x="36.824" y="50.5" lat="47.87547" lon="7.12736" nb="0"  /><p id="8" name="G-Bal" km="44.36" x="42.235" y="29" lat="47.90368" lon="7.10326" nb="0" wc="dm|x4xs9ci" /><p id="10" name="P-Bal" km="76.13" x="68.235" y="37" lat="47.98517" lon="7.12103" nb="0"  /><p id="12" name="Hohland" km="102.48" x="89.765" y="60" lat="48.05117" lon="7.26471" nb="0"  /><p id="14" name="Arrivee" km="113.57" x="98.824" y="76.5" lat="47.98133" lon="7.29155" nb="126"  /></points>		</e>
      
<!-- courses.3Ba1J.home_width = 100 / 100 -->
<e/><e/><e/><e id="3Ba1J"  wi="100"  titre="Les 3 Ballons 1 jours  (avec ou sans option)" sstitre="208km / 4150m+" routeVersion="" darkenColor="" color="#1ded15" >
							<info nomdep="Pfaffenheim - Pfaff - Depart" dtdep="2024-06-23 04:06:36" tz="1" launched="1" finish="1" />
							<hasFinisher v="1"/>
			<points font="10" wi="100" l="5.8823529411765" b="10" f="1"><p id="0" name="Pfaff" km="0" x="5.882" y="76.5" lat="47.98107" lon="7.29165" nb="0"  /><p id="3" name="BallonD" km="77.62" x="40.118" y="36" lat="47.82087" lon="6.83717" nb="0"  /><p id="4" name="MauriceD" km="87.15" x="44.353" y="62" lat="47.85981" lon="6.82299" nb="0"  /><p id="6" name="ColAmic" km="134.71" x="65.412" y="50.5" lat="47.87547" lon="7.12736" nb="0"  /><p id="8" name="G-Bal" km="141.26" x="68.235" y="29" lat="47.90368" lon="7.10326" nb="0" wc="dm|x4xs9ci" /><p id="10" name="P-Bal" km="173.03" x="82.353" y="36.5" lat="47.98517" lon="7.12103" nb="0"  /><p id="12" name="Hohland" km="199.36" x="93.882" y="60" lat="48.05112" lon="7.26477" nb="0"  /><p id="14" name="Arrivee" km="210.45" x="98.824" y="76.5" lat="47.98119" lon="7.29161" nb="89"  /></points>		</e>
      
<!-- courses.PetitBa.home_width = 100 / 100 -->
<e/><e/><e/><e id="PetitBa"  wi="100"  titre="Le Petit Ballon 1 jour (avec ou sans option)" sstitre="104km / 1340m+" routeVersion="" darkenColor="" color="#a502ba" >
							<info nomdep="Pfaffenheim - Pfaff - Depart" dtdep="2024-06-23 06:54:57" tz="1" launched="1" finish="1" />
							<hasFinisher v="1"/>
			<points font="10" wi="100" l="5.8823529411765" b="10" f="1"><p id="0" name="Pfaff" km="0" x="5.882" y="77" lat="47.98011" lon="7.29153" nb="0"  /><p id="10" name="P-Bal" km="69.83" x="66.235" y="37" lat="47.98529" lon="7.12097" nb="0"  /><p id="12" name="Hohland" km="96.21" x="89.059" y="60" lat="48.05105" lon="7.26477" nb="0"  /><p id="14" name="Arrivee" km="107.49" x="98.824" y="77" lat="47.97983" lon="7.29202" nb="41"  /></points>		</e>
      <e/><e/><e/><e titre="Historique" wi="25"   sstitre="" color="#000000">
			<msg><p>Accédez aux résultats et aux fiches coureurs des éditions <a style='color: #222222; text-decoration-line: none;' href='http://livetrail.net/histo/cmv_2016' target='_blank'>2016</a><span style='color: #222222;'>, </span><a style='color: #222222; text-decoration-line: none;' href='http://livetrail.net/histo/cmv_2018' target='_blank'>2018</a><span style='color: #222222;'>, </span><a style='color: #222222; text-decoration-line: none;' href='http://livetrail.net/histo/cmv_2022' target='_blank'>2022</a></p></msg>
		</e>
		</d>
