function checkWallpaper() {
  if (typeof(adtype) != 'undefined') {
    if (adtype == 'wallpaper') {
      lboard = document.getElementById('anzeige-top');
      sky = document.getElementById('anzeige-sky');
      lboard.style.textAlign = "right";
      sky.style.top = "0px";
      sky.style.left = "1010px";
    }
    if (adtype == 'expwallpaper') {
      lboard = document.getElementById('anzeige-top');
      sky = document.getElementById('anzeige-sky');
      lboard.style.textAlign = "left";
      lboard.style.width = 1010 + sky.offsetWidth + "px";
      sky.style.top = "90px";
      sky.style.left = "1010px";
    }
  }
  if (typeof(bgcolor) != 'undefined' && bgcolor != null) {
    document.body.style.backgroundColor = bgcolor;
  }
  if (typeof(bgimage) != 'undefined' && bgimage != null) {
    document.body.style.backgroundImage = "url(" + bgimage + ")";
  }
  if (typeof(adclick) != 'undefined' && adclick != null) {
    lboard = document.getElementById('anzeige-top');
    sky = document.getElementById('anzeige-sky');
    sky.style.textAlign = "left";
    sky.style.width = "400px";
    sky.style.height = "2000px";
    lboard.onclick = function() { window.open(adclick, "dcad", "width=800, height=600, scrollbars=yes, status=yes, toolbar=yes, location=yes, menubar=yes"); };
    sky.onclick = function() { window.open(adclick, "dcad", "width=800, height=600, scrollbars=yes, status=yes, toolbar=yes, location=yes, menubar=yes"); };
    }
}


