/*

*/

function initialize(directionF) {
	if (GBrowserIsCompatible()) {
		var map = new GMap2(document.getElementById("map_canvas"));
		var directionsPanel = document.getElementById("my_textual_div");  
		
		map.setCenter(new GLatLng(51.012472, 13.648838), 13);
		map.setMapType(G_NORMAL_MAP);
		
		var customUI = map.getDefaultUI();
        map.setUI(customUI);

		
		directions = new GDirections(map, directionsPanel);  
		if (directionF)
		    directions.load("from: "+directionF+" to: Wilsdruffer Straße 25, 01705 Freital, Germany");
		
		var HTMLNode = document.createElement("div");
		var cap = document.createElement("h4");
		cap.appendChild(document.createTextNode("Ziegelwerk Freital EDER GmbH"));
		
		HTMLNode.appendChild(cap);
		HTMLNode.appendChild(document.createTextNode("Wilsdruffer Straße 25"));
		HTMLNode.appendChild(document.createElement("br"));
		HTMLNode.appendChild(document.createTextNode("01705 Freital"));
		
		map.openInfoWindow(map.getCenter(),HTMLNode);
	}
}  