var theOffset = 195;
var theWidth = '628px';
 
function trueheight() {
 if (window.innerHeight) {
  return window.innerHeight;
 } else if (document.body && document.documentElement.clientHeight) {
  return document.documentElement.clientHeight;
 } else {
  return 0;
 }
}
 
function anpassen() {
 var fhoehe = trueheight() - theOffset;
 //alert(fhoehe);
 try {
  $('theiframe').setStyle({
   'height' : fhoehe + 'px',
   'width' : theWidth
  });
 } catch(err) {
  void(0);
 }
}

function bgcenter() {
  var theLaufband = $('laufband1');
  var theOffset = Math.floor(($('body').getWidth() - 960) / 2);
  theLaufband.setStyle({
      'left' : theOffset + 'px'
    });
}

document.observe("dom:loaded", function() {
	/* init scroller */
	initScroller($('wslider'));
	bgcenter();
});

Event.observe(window, "resize", bgcenter);
