/*
 * Program/File: Jahn-TV-Homepage/resize_contentarea.js
 * Author: M. Petersen
 * Date: 2007-10-21
 * Last modified: 2009-08-31
 *
 */






<!--
	/*
	 * sets the height of the ground space
	 * and the margin of the information-tag
	 *
	 */
	function set_height()
	{
		/*
		 * local variables
		 *
		 */
		var content_h = 0;
		var tmp_h = 0;

		/*
		 * the right command for each browser
		 * to get the current height
		 *
		 */
		if(window.getComputedStyle) //Firefox, Opera, Netscape Navigator
		{
   			content_h = window.getComputedStyle(document.getElementById('contentarea'), '').getPropertyValue("height");
		}
 		else if(document.getElementById('contentarea')) //Internet Explorer, Konqueror
		{
   			content_h = document.getElementById('contentarea').offsetHeight;
		}

		/*
		 * fetches the ground space
		 * and the information tag
		 *
		 */
		var ground = document.getElementById('ground');
		var info = document.getElementById('information_tag');

		/*
		 * changes the values only,
		 * if the content is too big
		 *
		 */
		tmp_h = parseInt(content_h);
		if(tmp_h > 666)
		{
			/* 
			 * sets the new ground height
			 *
			 */
			ground.style.height = (tmp_h + 130) + 'px';

			/* 
			 * updates the margin of
			 * the information tag
			 *
			 */
			info.style.position = 'absolute';
			info.style.Float = 'none';
			info.style.cssFloat = 'none';
			info.style.marginTop =  (tmp_h - 664) + 'px';
			info.style.marginLeft = 310 + 'px';
		}
  	}
//-->
