// JavaScript Document
// Anpassen der Höhe von 3 Spalten, jenachdem welche am längsten ist. 
	function anpassen()
	{
		var middle = document.getElementById("middle").offsetHeight;
		var left = document.getElementById("left").offsetHeight;
		var right = document.getElementById("right").offsetHeight;
		
		if(middle > left && middle > right)
		{
			document.getElementById("left").style.height = middle + "px"; // -110
			document.getElementById("right").style.height = middle-110 + "px";
		} else {

			if(middle < left || middle < right)
			{
				if(left > right)
				{
					document.getElementById("right").style.height = left + "px";
				} else {
					if(left <= right)
					{
						document.getElementById("left").style.height = right + "px";
					}
				}
			}
		}
	}
	// -->
	
	
	
	function googlemap()
	{
		path = '../popups/googlemap.html';
//		window.open(file+php,"Zoom","width=100,height=100,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no")
		window.open(path,"IKOMEAnfahrt","width=600,height=500,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no");
	}
	
	function ovr()
	{
		path = '../popups/ovr.html';
		window.open(path,"Medienauftritt","width=430,height=389,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no");
	}
	
	function ovr2()
	{
		path = '../popups/ovr2.html';
		window.open(path,"Medienauftritt","width=430,height=389,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no");
	}
	
	function ovs()
	{
		path = '../popups/ovs.html';
		window.open(path,"Medienauftritt","width=430,height=389,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no");
	}
	
	function openWindow(url)
	{
		var thumb = document.getElementById('zoom');
		var width = screen.width - 200;
		var height = screen.height - 200;
		
			var thumbRatio = thumb.width / thumb.height;
			var viewRatio = width / height;
			if (thumbRatio > viewRatio)
			{
				height = Math.round(height * (viewRatio / thumbRatio)); 
			}
			else
			{
				width = Math.round(width * (thumbRatio / viewRatio));
			}
		
		var winLeft = Math.round((screen.width - width) / 2); 
		var winTop = Math.round((screen.height - height) / 2); 
		window.open(url,'MA','top='+winTop+',left='+winLeft+',height='+height+',width='+width+',resizable=1,scrollbars=1,status=0,menubar=0').focus();
	}