Event.observe( window, 'load', function() {
	setContentHeight();
	new PeriodicalExecuter(setContentHeight, 1);
  //Effect.SlideDown('body_content');
  //$('body_content').show();
});

function setContentHeight() {
	var dims = getWinSize();
	var cur_hoehe = $('marq_body').getStyle('height').replace(/px/,'');
  var new_hoehe = (dims.height - 160) + "px";
  if(cur_hoehe != new_hoehe) $('marq_body').setStyle({height: new_hoehe});
}
 
function getWinSize(win){
	if(!win) win = window;
	var pos = {x:0,y:0};
	if(typeof win.innerWidth != 'undefined') {
		pos.width = win.innerWidth;
		pos.height = win.innerHeight;
	} else if(win.document.body){
		pos.width = parseInt(win.document.body.clientWidth);
		pos.height = parseInt(win.document.body.clientHeight);
	}
	return pos;
}

