function showDownload(url, title) {
  w = 400;
  h = 250;
  x = (screen.width - w)/2;
  y = (screen.height - h)/2;
  newwin = window.open(url, title,'width='+w+' +,height='+h+', top='+y+', left='+x+', scrollbars=0, resizable=0');
  newwin.focus();
  return false;
}

function showPopUp(url) {
  w = 600;
  h = 600;
  x = (screen.width - w)/2;
  y = (screen.height - h)/2;
  newwin = window.open(url,'popup','width='+w+' +,height='+h+', top='+y+', left='+x+', scrollbars=1, resizable=0');
  newwin.focus();
  return false;
}

function showIndiecatorFM(url) {
  w = 230;
  h = 310;
  x = (screen.width - w)/2;
  y = (screen.height - h)/2;
  newwin = window.open(url,'fm','width='+w+' +,height='+h+', top='+y+', left='+x+', scrollbars=0, resizable=0');
  newwin.focus();
  return false;
}

function showPodcast(url) {
  w = 514;
  h = 450;
  x = (screen.width - w)/2;
  y = (screen.height - h)/2;
  newwin = window.open(url,'podcast','width='+w+' +,height='+h+', top='+y+', left='+x+', scrollbars=0, resizable=0');
  newwin.focus();
  return false;
}

function toggleDownloadsong(selectedrecord) {
  if (selectedrecord == 0) {
    document.getElementById("song").style.display = 'inline';
    document.getElementById("songtext").style.display = 'inline';
    document.getElementById("songdesc").style.display = 'inline';
    document.getElementById("textgema").style.display = 'none';
  } else {
    document.getElementById("song").style.display = 'none';
    document.getElementById("songtext").style.display = 'none';
    document.getElementById("songdesc").style.display = 'none';
    document.getElementById("textgema").style.display = 'inline';
  }
}

function showdelinfo(id) {
  document.getElementById(id).style.visibility = 'visible';
}

function hidedelinfo(id) {
  document.getElementById(id).style.visibility = 'hidden';
}



/* relaunch functions */
var oldimg = '';

function changeImagesOn(imagenummer) {
    oldimg = document['teil'+imagenummer].src;
    if (!oldimg.match(/_c\.jpg$/))
        document['teil'+imagenummer].src="/html/images/_layout/navi_"+imagenummer+"_b.jpg"; 
}

function changeImagesOff(imagenummer) {
    document['teil'+imagenummer].src=oldimg; 
}