var maxWidth = 0;
var maxHeight = 0;
var Bild = new Array();
Bild[Bild.length] = new Banner('http://servedby.advertising.com/click/site=695912/mnum=290091','_blank','http://servedby.advertising.com/site=695912/mnum=290091/bins=1',468,60);
Bild[Bild.length] = new Banner('http://www.newstroll.de/link.php?id=3774&link=2106','_blank','http://www.kostenlose-zeitschriften.de/images/spiegel.gif',468,60);
Bild[Bild.length] = new Banner('http://www.zanox-affiliate.de/ppc/?1444239C177150584T','_blank','http://www.zanox-affiliate.de/ppv/?1444239C177150584',468,60);
Bild[Bild.length] = new Banner('http://ad.zanox.com/ppc/?2963633C2127556117T','_blank','http://ad.zanox.com/ppv/?2963633C2127556117',468,60);
Bild[Bild.length] = new Banner('http://james.adbutler.de/click.php?pid=6357&tid=10609&bid=41374','_blank','http://james.adbutler.de/view.php?pid=6357&bid=41374&tid=10609&b=468&h=60&inv=img',468,60);
Bild[Bild.length] = new Banner('http://ad.zanox.com/ppc/?2963627C895239963T','_blank','http://ad.zanox.com/ppv/?2963627C895239963',468,60);
Bild[Bild.length] = new Banner('http://james.adbutler.de/click.php?pid=8628&tid=10609&bid=37340','_blank','http://james.adbutler.de/view.php?pid=8628&bid=37340&tid=10609&b=468&h=60&inv=img',468,60);
Bild[Bild.length] = new Banner('http://james.adbutler.de/click.php?pid=5528&tid=10609&bid=19962','_blank','http://james.adbutler.de/view.php?pid=5528&bid=19962&tid=10609&b=468&h=60&inv=img',468,60);
Bild[Bild.length] = new Banner('http://james.adbutler.de/click.php?pid=5528&tid=10609&bid=42329','_blank','http://james.adbutler.de/view.php?pid=5528&bid=42329&tid=10609&b=468&h=60&inv=img',468,60);
Bild[Bild.length] = new Banner('http://james.adbutler.de/click.php?pid=5528&tid=10609&bid=42328','_blank','http://james.adbutler.de/view.php?pid=5528&bid=42328&tid=10609&b=468&h=60&inv=img',468,60);
Bild[Bild.length] = new Banner('http://james.adbutler.de/click.php?pid=7303&tid=10609&bid=27599','_blank','http://james.adbutler.de/view.php?pid=7303&bid=27599&tid=10609&b=468&h=60&inv=img',468,60);
for (var i=0; i < Bild.length; i++) 
 {
  if (Bild[i].Width > maxWidth)
    maxWidth = Bild[i].Width;
     if (Bild[i].Height > maxHeight)
      maxHeight = Bild[i].Height;
  }
  document.write('<a name="Pos"><img src="spacer.gif" width="'+maxWidth+'" height="'+maxHeight+'" name="imgPos" alt="Unser Tipp..."></a>');
  window.onload = initBanner;

function Banner(Link,Target,Src,Width,Height)
{
  this.Link = Link;
  this.Target = Target;
  this.Src = Src;
  this.Width = Width;
  this.Height = Height;
}

var aktuell = 0;
var spn = null;
var ie = document.all ? 1 : 0;
var dom = document.getElementById ? 1 : 0;
var ns = document.layers ? 1 : 0;

function showBanner()
{
  aktuell++;
  if (aktuell == Bild.length)
    aktuell = 0;
  if (ie)
    document.all.Banner.innerHTML = aktBanner();
  else if (dom) {
    spn.removeChild(spn.firstChild);
    spn.appendChild(aktBanner());
  }
  else if (ns) {
    with (Banner.document) {
      open();
      write(aktBanner());
      close();
    }
  }
  setTimeout('showBanner()',10000);
}

function getLeft(obj)
{
  if (obj.offsetParent&&obj.offsetParent.tagName!='HTML')
    return (obj.offsetLeft + getLeft(obj.offsetParent));
  else
    return (obj.offsetLeft);
}

function getTop(obj)
{
  if (obj.offsetParent&&obj.offsetParent.tagName!='HTML')
    return (obj.offsetTop + getTop(obj.offsetParent));
  else
    return (obj.offsetTop);
}

function initBanner()
{
  if (ie)
    document.body.insertAdjacentHTML('AfterBegin','<span id="Banner" style="position: absolute; left: '+getLeft(document.all.Pos)+'; top: '+getTop(document.all.Pos)+'; width: 1;">'+aktBanner()+'</span>');
  else if (dom) {
    spn=document.createElement('span');
    spn.appendChild(aktBanner());
    document.body.appendChild(spn);
    spn.style.position='absolute';spn.style.left=getLeft(document.getElementById('imgPos'));spn.style.top=getTop(document.getElementById('imgPos'));
  }
  else if (ns) {
    Banner = new Layer(maxWidth);
    Banner.pageX = document.anchors.Pos.x;
    Banner.pageY = document.anchors.Pos.y;
    Banner.visibility = 'show';
    with(Banner.document) {
      open();
      write(aktBanner());
      close();
    }
  }
  setTimeout('showBanner()',10000);
}

function aktBanner()
{
  if (ie || ns)
    return ('<a href="'+Bild[aktuell].Link+'" target="'+Bild[aktuell].Target+'"><img src="'+Bild[aktuell].Src+'" width="'+Bild[aktuell].Width+'" height="'+Bild[aktuell].Height+'" alt="Werbebanner" border="0"></a>');
  else {
    var lnk=document.createElement('A');lnk.href=Bild[aktuell].Link;lnk.target=Bild[aktuell].Target;
    var img=document.createElement('IMG');img.src=Bild[aktuell].Src;img.width=Bild[aktuell].Width;img.height=Bild[aktuell].Height;img.alt='Werbebanner';img.border=0;
    lnk.appendChild(img);
    return (lnk)
  }
  return;
}
