<!--

function popup(breite,hoehe) {

 // Anzeigen mittig auf dem Monitor - funktioniert nur mit Netscape
 var aufloesungx = screen.width;
 var aufloesungy = screen.height;

 var abstandlinks = (aufloesungx / 2) - (breite / 2);
 var abstandoben = (aufloesungy / 2) - (hoehe / 2);

 var optionstring = 'width=' + breite + ',height=' + hoehe + ',screenX=' + abstandlinks + ',screenY=' + abstandoben + ',status=0,menubar=0,resizable=0,scrollbars=1,toolbar=0';

 window.open('','popup',optionstring);
}

function popup_weiterempfehlen(Dateiname,Weite,Hoehe)
{
 var vHoehe = Hoehe;
 var vWeite = Weite;
 var Fenster = window.open(Dateiname,'weiterempfehlen','status=no,toolbar=no,locationbar=no,menubar=no,scrollbars=no,copyhistory=no,width=' + vWeite + ',height=' + vHoehe + ',resizable=no');
 if(Fenster != null)
 {
   if(Fenster.opener == null)
   {
     Fenster.opener = self;
     Fenster.focus();
   }
   else
   {
     Fenster.resizeTo(Weite, Hoehe);
     Fenster.focus();
   }
 }
}

var popupLinkConfig = new Array;

// popupLinkConfig["classname"] = new Array ( "targetname", "width=550,height=350,scrollbars=yes,resizable=yes,status=yes,toolbar=yes,location=yes,menubar=yes");
popupLinkConfig["popup"]    = new Array ( "", "width=350,height=450,scrollbar=yes,menubar=yes");
popupLinkConfig["video"] = new Array ( "video", "width=420,height=345,scrollbars=no,resizable=no,status=no,toolbar=no,location=no,menubar=no");
popupLinkConfig["weiterempfehlen"] = new Array ( "weiterempfehlen", "width=440,height=730,scrollbars=no,resizable=no,status=no,toolbar=no,location=no,menubar=no");
popupLinkConfig["merken"] = new Array ( "merken", "width=440,height=450,scrollbars=no,resizable=no,status=no,toolbar=no,location=no,menubar=no");
popupLinkConfig["ical"] = new Array ( "ical", "width=440,height=450,scrollbars=no,resizable=no,status=no,toolbar=no,location=no,menubar=no");
popupLinkConfig["defekt"]    = new Array ( "", "width=420,height=240,scrollbar=yes,menubar=yes");



// ==========================================================================
window.onload = initPage;
// Note: Make sure that no other javscripts assign a fuction to window.onload
// There can be only one function tied to window.onload at a time.

function initPage() {
  initPopupLinks();
  // place here any other code you wish to run when the page loads.
}

function initPopupLinks()
{
  if (!document.getElementsByTagName) return true;
  var pageLinks = document.getElementsByTagName("a");
  for (var i = 0; i < pageLinks.length; i++)
  {
    if (((pageLinks[i].className != null) &&
         (pageLinks[i].className != "")) ||
        ((pageLinks[i].parentNode.className != null) &&
         (pageLinks[i].parentNode.className != "")))
    {
      var linkClass = " " + pageLinks[i].className + " ";
      if ((linkClass == "  ") && (pageLinks[i].parentNode.className != ""))
      {
        linkClass = " " + pageLinks[i].parentNode.className + " ";
      }
      for (var theKey in popupLinkConfig)
      {
        if (linkClass.indexOf(" " + theKey + " ") > -1)
        {
          if ((pageLinks[i].target == "") || (pageLinks[i].target == null))
          {
            pageLinks[i].target = (popupLinkConfig[theKey][0] != "") ? popupLinkConfig[theKey][0] : theKey;
          }
          pageLinks[i].settings = popupLinkConfig[theKey][1];
          pageLinks[i].onclick = popUp;
        }
      }
    }
  }
  return true;
}

function popUp()
{
  newWin = window.open(this.href, this.target, this.settings);
  newWin.focus();
  return false;
}

// -->

