// JavaScript Document
// Zusammenschieben zu einem Hockeystick und Einfärbung
// Script von Ströer Interactive (www.stroeer-interactive.de)
// Version: 1.1
// Datum: 23. Februar 2009 (1.1)
//        07. Januar 2009 (1.0)

function checkWallpaper() {
  if (typeof(adtype) != 'undefined') {
    if (adtype == 'wallpaper') {
      lboard = document.getElementById('ad_fullbigsize');
      sky = document.getElementById('ad_skyscraper');
      lboard.style.textAlign = 'right';
      lboard.style.width = '955px';
      sky.style.top = '5px';     
    }
    if (adtype == 'expwallpaper') {
      lboard = document.getElementById('ad_fullbigsize');
      sky = document.getElementById('ad_skyscraper');
      alert(sky.offsetWidth);
      lboard.style.textAlign = 'right';
      lboard.style.width = 955 + sky.offsetWidth + 'px';
      sky.style.top = '95px';     
    }
  }
  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('ad_fullbigsize');
      sky = document.getElementById('ad_skyscraper');
      sky.style.width = "300px";
      sky.style.height = "1000px";
      lboard.style.cursor = "pointer";
      sky.style.cursor = "pointer";
      lboard.onclick = function() { window.open(adclick); };
      sky.onclick = function() { window.open(adclick); };
  }
}