function Start (datei)
{
  LadeSeite (datei);
}

function LadeSeite (ref)
{
  parent.main.location.href = "" + ref;
}

function Motiv (myUrl)
{
   newwin = window.open (myUrl, "MOTIV", "width=500,height=580,scrollbars=yes");
   newwin.focus();
}

function BildGross (myNummer, myUrl, myFormat)
{
   newwin = window.open (myUrl, "BILD"+myNummer, myFormat);
   newwin.focus();
}

function Info (target)
{
  myUrl = "../../../infos/" + target;
  newwin = window.open (myUrl, "INFO", "width=400,height=400,scrollbars=yes");
  newwin.focus();
}


var maploaded = 0;
var www = "";
var iconRed;
var iconBlue;
var iconYellow;
var point;
var marker;
var map;

function showInfo()
{
  document.getElementById('infoblock').style.display = 'block';
  document.getElementById('mapblock').style.display = 'none';
  
  var markers = document.getElementsByTagName("span");

  for (var i=0; i<markers.length; i++)
  {
    if ((markers[i].getAttribute("title") != null) && (markers[i].getAttribute("title").indexOf("marker") >= 0))
    {
      markers[i].style.display = "none";
    }
  }
}


function mapinit()
{
  www = 'http://www.juergen-reichmann.de/';

  iconRed = new GIcon();
  iconRed.image = www + "pics/icons/mm_20_red.png";
  iconRed.shadow = www + "pics/icons/mm_20_shadow.png";
  iconRed.iconSize = new GSize(12, 20);
  iconRed.shadowSize = new GSize(22, 20);
  iconRed.iconAnchor = new GPoint(6, 20);
  iconRed.infoWindowAnchor = new GPoint(5, 1);

  iconBlue = new GIcon();
  iconBlue.image = www + "pics/icons/mm_20_blue.png";
  iconBlue.shadow = www + "pics/icons/mm_20_shadow.png";
  iconBlue.iconSize = new GSize(12, 20);
  iconBlue.shadowSize = new GSize(22, 20);
  iconBlue.iconAnchor = new GPoint(6, 20);
  iconBlue.infoWindowAnchor = new GPoint(5, 1);

  iconYellow = new GIcon();
  iconYellow.image = www + "pics/icons/mm_20_yellow.png";
  iconYellow.shadow = www + "pics/icons/mm_20_shadow.png";
  iconYellow.iconSize = new GSize(12, 20);
  iconYellow.shadowSize = new GSize(22, 20);
  iconYellow.iconAnchor = new GPoint(6, 20);
  iconYellow.infoWindowAnchor = new GPoint(5, 1);
}


function showKarte()
{
  document.getElementById('infoblock').style.display = 'none';
  document.getElementById('mapblock').style.display = 'block';
  
  if (maploaded == 0)
  {
    mapinit();
    mapload();
    maploaded = 1;
  }
  
  var markers = document.getElementsByTagName("span");

  for (var i=0; i<markers.length; i++)
  {
    if ((markers[i].getAttribute("title") != null) && (markers[i].getAttribute("title").indexOf("marker") >= 0))
    {
      markers[i].style.display = "inline";
    }
  }
}
