function adjustLayout()
		{
			var cHeight = xHeight("featureimg");
			var lHeight = xHeight("left");
			var rHeight = xHeight("news");
			var maxHeight = Math.max(cHeight, Math.max(lHeight, rHeight));
                         if(maxHeight <800)
                         {
                         maxHeight=800;
                         }

                         //alert ("Max height: " + maxHeight + " lHeight: " + lHeight + " rHeight: " + rHeight + " cheight: " + cHeight);

            xHeight("featureimg", maxHeight);
			xHeight("left", maxHeight);
			xHeight("news", maxHeight);

			xShow("footer");
			e_menu=xGetElementById('SlideInMenu');
			if(xVisibility(e_menu)==false)
			{
			xMoveTo(e_menu,50,39-xHeight(e_menu));
			xVisibility(e_menu,true);
			}
		}
function slideOut()
{
	//alert("slideIn");
	var e, x, y, uTime;
	e=xGetElementById('SlideInMenu');
	x=xLeft(e);
	y=xTop(e)+xHeight(e)-40;
	
	document.images['SlidePic'].onclick=function(){slideIn();};
	xSlideTo(e, x, y, xHeight(e)*5.5);
	document.images['SlidePic'].src="http://www.thieme-tueren.de/bin/slideinPic.png";
	//xSlideTo(e, 330, 300, 10000);
	
	
	
	
	
}
function slideIn()
{
	//alert("slideIn");
	var e, x, y, uTime;
	e=xGetElementById('SlideInMenu');
	x=xLeft(e);
	y=39-xHeight(e);
	
	document.images['SlidePic'].onclick=function(){slideOut();};
	//alert(document.images['SlidePic'].src);
	xSlideTo(e, x, y, xHeight(e)*5.5);
	document.images['SlidePic'].src="http://www.thieme-tueren.de/bin/slideoutPic.png";
	//xSlideTo(e, 330, 300, 10000);
	
	

	
	
}


		window.onload = function()
		{

                         xAddEventListener(window, "resize", adjustLayout, false);
			adjustLayout();
		}
