function ScrollInit(e){
	var direction = 0;
  if (!e) { e = window.event; }

  if (e.wheelDelta) {
    direction = e.wheelDelta/120;
    if (window.opera){
      direction = -delta;
    }

  } else if (e.detail) {
    direction = -e.detail/3;
  }

  if (direction){
    zoom(direction);
  }

  if (e.preventDefault){
    e.preventDefault();
  }

  e.returnValue = false;
}



function scroll(){
	if (window.addEventListener){
		window.addEventListener('DOMMouseScroll', ScrollInit, false);
	}
	window.onmousewheel = document.onmousewheel = ScrollInit;
}

function noscroll(){
	
	if (window.removeEventListener){
		window.removeEventListener('DOMMouseScroll', ScrollInit, false);
	}
	window.onmousewheel = document.onmousewheel = no;
}

function no(){
	
}


if (GBrowserIsCompatible()) {
	var map = null;
	
	function load(){
		map = new GMap2(document.getElementById("map"));
		map.addControl(new GSmallZoomControl());
		//map.enableDoubleClickZoom();
		map.enableContinuousZoom();

		map.setCenter(new GLatLng(53.661183205193886, 10.19530177116394), 16);
		map.setMapType(G_HYBRID_MAP);
				
		//Marker
		var point = new GLatLng(53.661183205193886, 10.19530177116394);
		var infotext = "<b>Point of Interest: Firma Pflaum</b><br>Die erfolgreiche Reise durchs<br>Internet beginnt hier."
		
		var marker = new GMarker(point);
		GEvent.addListener(marker, "click", function() {marker.openInfoWindowHtml(infotext);}); 
   	map.addOverlay(marker);
		marker.openInfoWindowHtml(infotext);
	}
	
	function zoom(direction) {
		if(direction < 0){
			map.zoomIn();
		}else{
			map.zoomOut();
		}
	}	
}