var theOffset = 195;
var theWidth = '628px';
var theShopWidth = '522px';

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;
 try {
  $('theiframe').setStyle({
   'width' : theWidth
  });
 } catch(err) {
  void(0);
 }
 try {
  $('theShopiframe').setStyle({
   'height' : fhoehe + 'px',
   'width' : theShopWidth
  });
 } catch(err) {
  void(0);
 }
}

/**
 *Ja, wo laufen sie denn...?
*/

function bgcenter() {
  var theLaufband = $('laufband1');
  var theOffset = Math.floor(($('body').getWidth() - 852) / 2);

  theLaufband.setStyle({
      'left' : theOffset + 'px'
    });
}

/* eventhandler installieren */
document.observe("dom:loaded", function() {
	/* init scroller */
	initScroller($('wslider'));
	bgcenter();
});
Event.observe(window, "resize", bgcenter);

function setCanvasHeight() {
	if($('container').getHeight() < document.viewport.getHeight()) {
		$('container').setStyle({
			'height' : document.viewport.getHeight() + 'px'
		});
	}
}


