function FensterOeffnen (datei) {
  var id="sr_id" + datei;
  var Para="";
  var Breite = 1020;
  var Hoehe = 750; 
  var links = screen.availWidth/2-560;
  var oben = screen.availHeight/2-430; 
  if (links < 10) links = 10;
  if (oben < 10) oben = 10;
  Para = "width=" + Breite;
  Para = Para + ", height=" + Hoehe;
  Para = Para + ", left=" + links;
  Para = Para + ", top=" + oben;
  Para = Para + ", locationbar = yes";
  Para = Para + ", menubar = yes";
  Para = Para + ", resizable = no";
  Para = Para + ", scrollbars = no";
  Para = Para + ", status = no";
  Para = Para + ", toolbar = no";

  datei = "sr_infos/sr_info" + datei + ".html";
  
  SRFenster = window.open(datei, id, Para);
  SRFenster.resizeTo(Breite + 10, Hoehe + 60);
  SRFenster.focus();
}

function PodFensterOeffnen (datei, Breite, Hoehe) {
  var id="Podcast";
  var Para="";
//  var Breite = 800;
//  var Hoehe = 680;
  var links = screen.availWidth/2-600;
  var oben = screen.availHeight/2-450;
  if (links < 10) links = 10;
  if (oben < 10) oben = 10;
  Para = "width=" + Breite;
  Para = Para + ", height=" + Hoehe;
  Para = Para + ", left=" + links;
  Para = Para + ", top=" + oben;
  Para = Para + ", locationbar = yes";
  Para = Para + ", menubar = yes";
  Para = Para + ", resizable = no";
  Para = Para + ", scrollbars = no";
  Para = Para + ", status = no";
  Para = Para + ", toolbar = no";

//  datei = "sr_infos/sr_info" + datei + ".html";

  SRFenster = window.open(datei, id, Para);
  SRFenster.resizeTo(Breite + 10, Hoehe + 60);
  SRFenster.focus();
}



function zeige(){
  zeige_aktiv = 1;
  verstecke_aktiv = 0;
  obj_logo = document.getElementById("wpa_logo").style;
  blende_auf();
}

function blende_auf(){
  if (obj_logo.opacity){    //FF und Co
    if ((parseFloat(obj_logo.opacity) < 0.99) && (zeige_aktiv == 1)){
      aktiv_blende_auf = window.setTimeout ("blende_auf()", 20);
    }else{
      clearTimeout(aktiv_blende_auf);
    }
  }else{      //IE
   if ((neu_alpha < 90) && (zeige_aktiv == 1)){
      aktiv_blende_zu = window.setTimeout ("blende_auf()", 20);
    }else{
      clearTimeout(aktiv_blende_auf);
    }
  }
  neu_alpha = neu_alpha + 3;
  if (neu_alpha > 90){neu_alpha=100}
  obj_logo.filter = "alpha(opacity=" + neu_alpha + ")";     // IE
  obj_logo.opacity = parseFloat(obj_logo.opacity) + 0.015;  //andere
}


function verstecke(){
  zeige_aktiv = 0;
  verstecke_aktiv = 1;
  obj_logo = document.getElementById("wpa_logo").style;
  if (aktiv_blende_auf){
    clearTimeout(aktiv_blende_auf);
  }
    blende_zu();
}

function blende_zu(){
  if (obj_logo.opacity){
    if ((parseFloat(obj_logo.opacity) > 0) && (verstecke_aktiv == 1)){
      aktiv_blende_zu = window.setTimeout ("blende_zu()", 15);
    }else{
      clearTimeout(aktiv_blende_zu);
    }
  }else{
   if ((neu_alpha > 0) && (verstecke_aktiv == 1)){
      aktiv_blende_zu = window.setTimeout ("blende_zu()", 15);
    }else{
      clearTimeout(aktiv_blende_zu);
    }
  }
  neu_alpha = neu_alpha - 3;
  if (neu_alpha <10){neu_alpha=0}
  obj_logo.filter = "alpha(opacity=" + neu_alpha + ")";       // IE
  obj_logo.opacity = parseFloat(obj_logo.opacity) - 0.015;    //andere
}




function init(){
  neu_alpha = 0;

  document.getElementById("wpa_logo").style.opacity = 0;
  document.getElementById("wpa_logo").style.filter = "alpha(opacity=0)";
}


