



function popup(url, width, height, sb)
{
	w = window.open(url, 'zoom', 'width=' + width +', height=' + height + ', toolbar=no, scrollbars=' + sb + ', menubar=no, locationbar=no');
	w.focus();
}



function setAnfahrtType(showType)
{
	types = new Array('pkw', 'oepnv', 'mvb');
	
	for (i=0; i<types.length; i++)
	{
		curType = types[i];
		if (curType != showType)
		{
			dispNone(curType + 'Anfahrt');
			document.getElementById(curType + 'Link').className = "";
		}
		else
		{
			dispBlock(types[i] + 'Anfahrt');
			document.getElementById(curType + 'Link').className = "active";
		}
		
		
	}

	
	
	
	
}



function showAnfahrt(typ)
{
	
	var typen = new Array('Nord', 'Sued', 'Taxi', 'DBRegio', 'Tram', 'TramBus', 'mvbTram', 'mvbTramBus', 'mvbBus');
	
	if (typ == 'Nord' || typ == 'Sued') setAnfahrtType('pkw');
	else if (typ == 'mvbTram' || typ == 'mvbTramBus' || typ == 'mvbBus') setAnfahrtType('mvb');
	else setAnfahrtType('oepnv');
	
	for (i=0; i<typen.length; i++)
	{
		t = typen[i];
		if (t == typ)
		{
			document.getElementById('anfahrtBeschreibung' + t).className = "active";
			document.getElementById('anfahrtLink' + t).className = "active";
		}
		else
		{
			document.getElementById('anfahrtBeschreibung' + t).className = "";
			document.getElementById('anfahrtLink' + t).className = "";
		}
		
	}
	
	map.setZoom(14);    map.setCenter(new google.maps.LatLng(52.121423,11.609613), 14);
  	zoomLevel = 14;
	eval('showAnfahrt'+typ+'()');
	
	
//	document.getElementById(showType + 'Link').className = "active";
	
}