window.defaultStatus='radio hbw - Radio für Harz und Börde';

function setStatus()
  {
    window.Status='radio hbw - Radio für Harz und Börde';
  }

document.onmouseover=setStatus;

if (document.layers)
  {
    window.captureEvents(Event.MOUSEDOWN);
    window.captureEvents(Event.MOUSEOVER);
  }
window.onmouseover=setStatus;

function rightClick(e)
  {
    if (navigator.appName=='Netscape' && ((e.which==3) || (e.which==2)))
      return false;
    else
      if (navigator.appName=='Microsoft Internet Explorer' && ((event.button==2) || (event.button==3)))
        {
          alert('radio hbw\nHarz-Börde-Welle\nHerrenbreite 9\n06449 Aschersleben\n\nwww.radio-hbw.de\ninfo@radio-hbw.de');
          return false;
        }
      return true;
  }

document.onmousedown=rightClick;
if (document.layers)
  window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=rightClick;

function windowOpen(url,filename,parameter)
  {
    if (win!=0)
      win.close();
    win=window.open(url,filename,parameter);
    win.focus();
  }

var popupwin=0;

function popUp(href,height)
  {
    if (popupwin!=0)
      popupwin.close();
    if (height==null)
      height=405;
    popupwin=window.open(href,'PopUp','left=200,top=80,width=430,height='+height+',scrollbars=no,resizable=no,status=no');
    left=screen.width/2-popupwin.outerWidth/2;
    top=screen.height/2-popupwin.outerHeight/2;
    popupwin.moveTo(left,top);
    popupwin.focus();
  }

var popupwin2=0;

function popUp2(href,width,height)
  {
    if (popupwin2!=0)
      popupwin2.close();
    if (width==null)
      width=800;
    if (height==null)
      height=536;
    popupwin2=window.open(href,'PopUp','left=100,top=50,width='+width+',height='+height+',scrollbars=no,resizable=no,status=no');
    left=screen.width/2-popupwin2.outerWidth/2;
    top=screen.height/2-popupwin2.outerHeight/2;
    popupwin2.moveTo(left,top);
    popupwin2.focus();
  }

var livestreamwin=0;

function liveStream(href)
  {
    if (livestreamwin!=0)
      livestream.focus();
    else
      {
        livestreamwin=window.open(href,'LiveStream','left=180,top=120,width=660,height=510,scrollbars=no,resizable=no,status=no');
        left=screen.width/2-livestreamwin.outerWidth/2;
        top=screen.height/2-livestreamwin.outerHeight/2;
        livestreamwin.moveTo(left,top);
        livestreamwin.focus();
      }
  }
