');
var picture = new Image();
var richtung = +1;
var maxheight=1000;
var intervall=0;
function initialisierung ()
{
neuesbild.value=0;
if (bild_id > 0) neuesbild.value = bild_id;
else if (document.cookie) neuesbild.value=Cookie_lesen ();
akttour=neuesbild.value*1;
goto_bild(neuesbild.value*1);
document.getElementById("foto").height = window.innerHeight - 150;
document.getElementById("foto").width = document.getElementById("foto").height * 4 / 3;
document.getElementById("profil").height = window.innerHeight - 520 - 200; // Kartenhöhe fest auf 520px
document.getElementById("data").height = window.innerHeight - 520 - 242; // Kartenhöhe fest auf 520px
var elem=document.getElementById("foto");
if (elem.addEventListener) elem.addEventListener('mousemove', getMausPosition, false);
else elem.attachEvent('onmousemove', getMausPosition);
}
function Cookie_lesen ()
{
var Wert = "";
if (document.cookie)
{
var cwert = document.cookie;
cwert = cwert.substring(cwert.indexOf("Tournummer=")+11,cwert.length);
var Wertende = cwert.indexOf(";");
if (Wertende == -1) Wertende = cwert.length;
Wert = cwert.substring(0, Wertende);
}
return Wert;
}
function Cookie_schreiben (Bezeichner, Wert, Verfall)
{
var jetzt = new Date();
var Auszeit = new Date(jetzt.getTime() + Verfall);
document.cookie = Bezeichner + "=" + Wert + "; expires=" + Auszeit.toGMTString() + ";";
}
function getMausPosition(e)
{
richtung = e.clientX < document.getElementById("foto").width / 2 ? -1 : +1;
if (richtung == +1) document.getElementById("foto").style.cursor="url('pfeil_rechts.cur'), auto";
else document.getElementById("foto").style.cursor="url('pfeil_links.cur'), auto";
}
function bildwechsel (weiter)
{
akttour = akttour + weiter;
if (akttour>anztour) akttour=1;
if (akttour==0) akttour=anztour;
neuesbild.value=akttour;
seite_aktualisieren ();
}
function goto_bild (gobild)
{
akttour = gobild;
if (akttour==0) akttour=anztour;
neuesbild.value=akttour;
seite_aktualisieren ();
}
function seite_aktualisieren ()
{
document.getElementById("ziel").firstChild.nodeValue = ziel[akttour].substr (0, 200) + " (" + tour[akttour].substr (12, 10) + ")";
document.getElementById("bildtext").firstChild.nodeValue = bild[akttour].substr (20, 200);
document.getElementById("foto").src = "https://www.alpine-wandergruppe.de/" + tour[akttour].substr (49, 200) + bild[akttour].substr (0, 15);
Tv.url = "https://www.alpine-wandergruppe.de/" + gpx[akttour].substr (0, 200);
Tv.request();
document.getElementById("profil").src = "https://www.alpine-wandergruppe.de/" + profil[akttour].substr (0, 200);
document.getElementById("tage").firstChild.nodeValue = tour[akttour].substr (23, 1) + " Tage";
document.getElementById("dauer").hidden = tour[akttour].substr (23, 1) == '1';
document.getElementById("tage").hidden = tour[akttour].substr (23, 1) == '1';
document.getElementById("gehzeit").firstChild.nodeValue = tour[akttour].substr (43, 5) + " std";
document.getElementById("abstieg").hidden = true;
document.getElementById("runter").hidden = true;
document.getElementById("anstieg").firstChild.nodeValue = "Höhe:";
document.getElementById("hoehe").firstChild.nodeValue = tour[akttour].substr (25, 4) + " hm";
if (tour[akttour].substr (25, 4) == 0)
{
document.getElementById("anstieg").firstChild.nodeValue = "Abstieg:";
document.getElementById("hoehe").firstChild.nodeValue = tour[akttour].substr (30, 4) + " hm";
}
else if (tour[akttour].substr (30, 4) == 0)
{
document.getElementById("anstieg").firstChild.nodeValue = "Anstieg:";
document.getElementById("hoehe").firstChild.nodeValue = tour[akttour].substr (25, 4) + " hm";
}
else if (tour[akttour].substr (30, 4) != tour[akttour].substr (25, 4))
{
document.getElementById("anstieg").firstChild.nodeValue = "Anstieg:";
document.getElementById("hoehe").firstChild.nodeValue = tour[akttour].substr (25, 4) + " hm";
document.getElementById("abstieg").firstChild.nodeValue = "Abstieg:";
document.getElementById("runter").firstChild.nodeValue = tour[akttour].substr (30, 4) + " hm";
document.getElementById("abstieg").hidden = false;
document.getElementById("runter").hidden = false;
}
document.getElementById("distanz").firstChild.nodeValue = tour[akttour].substr (40, 2) + " km";
document.getElementById("spitze").firstChild.nodeValue = tour[akttour].substr (35, 4);
Cookie_schreiben ("Tournummer",akttour, 1000 * 60 * 60 * 24 * 365);
}
function search ()
{
if (neuesbild.value==0) neuesbild.value=1;
if (neuesbild.value>anztour) neuesbild.value=anztour;
goto_bild(neuesbild.value*1);
}
function start_diashow ()
{
if (intervall==0)
{
intervall=3000;
diashow ();
}
else intervall=0;
}
function diashow ()
{
setTimeout (function ()
{
bildwechsel (-1);
if (intervall > 0) diashow ();
}, 3000);
}
function navigation(evt)
{
var tastencode = (window.event)?event.keyCode:evt.which;
switch (tastencode)
{
case 13: search (); break; // Enter
case 37: bildwechsel (-1); break; // Cursor rechts
case 39: bildwechsel (+1); break; // Cursor links
case 32: bildwechsel (+1); break; // Leertaste
case 38: bildwechsel (+1); break; // Cursor oben
case 40: bildwechsel (-1); break; // Cursor unten
case 33: bildwechsel (+1); break; // Page Up
case 34: bildwechsel (-1); break; // Page Down
case 187: bildwechsel (+1); break; // Plus
case 189: bildwechsel (-1); break; // Minus
case 36: akttour=1; bildwechsel (0); break; // Home
case 35: akttour=anztour; bildwechsel (0); break; // End
}
}
function info_anzeigen ()
{
var breite = 600;
var hoehe = 500;
var links = (screen.width - breite) / 2;
var oben = (screen.height - hoehe) / 4;
window.open ('info_navigation.htm','info','resizable=1,scrollbars=1,menubar=0,toolbar=0,status=0,width=' + breite + ',height=' + hoehe + ',left=' + links + ', top=' + oben);
info.focus();
}
function menue_anzeigen ()
{
alert ("Hier soll ein Menü abgezeigt werden");
}
function thumbnails_anzeigen ()
{
window.open ('https://www.alpine-wandergruppe.de/thumbnails.htm?' + tour[akttour].substr (49, 200));
}
function einzelbilder_anzeigen ()
{
window.open ('https://www.alpine-wandergruppe.de/einzelbild/einzelbild.htm?' + tour[akttour].substr (49, 200));
}
function tabletbilder_anzeigen ()
{
window.open ('https://www.alpine-wandergruppe.de/einzelbild/tablet_bild.htm?' + tour[akttour].substr (49, 200));
}
function download_gpsdaten ()
{
var zipfile = "https://www.alpine-wandergruppe.de/gps/" + gpx[akttour].substr (4, gpx[akttour].indexOf(".gpx") - 4) + ".zip";
window.location.href = zipfile;
}
document.onkeydown=navigation;
//-->
 
 |
  |
|
   |
|
|
Dauer:
Gehzeit:
Höhe:
Abstieg:
Top:
Distanz:
|
m
|
|
|
|
|
|