function getBrowserHeight()
{
	if(window.innerHeight)
	{
		return window.innerHeight;
	}
	else if(document.documentElement && document.documentElement.clientHeight != 0)
	{
		return document.documentElement.clientHeight;
	}
	else if(document.body)
	{
		return document.body.clientHeight;
	}
	return 0;
}
function dynamicHeight()
{
	var browserHeight = getBrowserHeight();
	var inhalt = document.getElementById("content");
	var inhalt2 = document.getElementById("middle");
	
	//alert("Höhe = " + browserHeight);
	if(browserHeight < 600)
	{
		inhalt.style.height = "330px";
		inhalt.style.overflow = "auto";
		inhalt2.style.height = "340px";
	}
	if(browserHeight >= 600)
	{
		inhalt.style.height = "auto";
		inhalt.style.overflow = "visible";
		inhalt2.style.height = "auto";
	}
}
function addEvent( obj, type, fn )
{
   if(obj.addEventListener)
   {
	  obj.addEventListener( type, fn, false );
   }
   else if(obj.attachEvent)
   {
	  obj["e"+type+fn] = fn;
	  obj[type+fn] = function(){ obj["e"+type+fn]( window.event ); }
	  obj.attachEvent( "on"+type, obj[type+fn] );
   }
}

addEvent(window, 'load', dynamicHeight);
addEvent(window, 'resize', dynamicHeight);