
// embedding funktion m�glichst f�r alle flashinhalte verwenden, vermeidet EOLAS rahmen bei ie

function EmbedFlash(name, src, width, height, bgcolor)
{
   if (AC_FL_RunContent == 0) {
      alert("Diese Seite erfordert die Datei \"AC_RunActiveContent.js\". F�hren Sie in Flash im Men� \"Befehle\" den Befehl \"Aktualisierung f�r aktiven Inhalt anwenden\" aus, um \"AC_RunActiveContent.js\" in den HTML-Ausgabeordner zu kopieren.");
   } else {
      AC_FL_RunContent(
         'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
         'width', width,
         'height', height,
         'src', src,
         'quality', 'high',
         'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
         'align', 'left',
         'play', 'true',
         'loop', 'true',
         'scale', 'showall',
         'wmode', 'window',
         'devicefont', 'false',
         'id', name,
         'bgcolor', bgcolor,
         'name', name,
         'menu', 'true',
         'allowScriptAccess','sameDomain',
         'movie', src,
         'salign', ''
         );
   }
}

// rollover buttons

function mouseoversub(i)
{
   var src = document.getElementById("sub"+i).src.replace(/_norm/, "_roll");
   document.getElementById("sub"+i).src = src;
   return true;
}

function mouseoutsub(i)
{
   var src = document.getElementById("sub"+i).src.replace(/_roll/, "_norm");
   document.getElementById("sub"+i).src = src;
   return true;
}
//-----------------------------------POPUPS-------------------------------------
window.onload = initPage;  
// Make sure that no other javscripts assign a fuction to window.onload
// There can be only one 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;
}

//--------------------POPUP KONFIGURATION
var popupLinkConfig = new Array;
popupLinkConfig["playerPopNormal"] = new Array ( "_blank", "width=370,height=320,resizable=no,scrollbar=no,menubar=no");
popupLinkConfig["playerPopNeutral"] = new Array ( "_blank", "width=316,height=200,resizable=no,scrollbar=no,menubar=no");
popupLinkConfig["playerPopMyspace"] = new Array ( "_blank", "width=370,height=360,resizable=no,scrollbar=no,menubar=no");

//-------------Normale PopUps
function openPopUp (url, w, h) {
 fenster=window.open(url, "_blank", "width=w,height=h,status=yes,scrollbars=yes,resizable=yes");
 fenster.focus();
 return false;
}
