function addCustomIcon(name, lat, lon, imagename, imagesizex, imagesizey, imageanchorx, imageanchory)  {
			
	name = new GIcon();
	name.image = imagename;
	name.iconSize = new GSize(imagesizex, imagesizey);
	name.iconAnchor = new GPoint(imageanchorx, imageanchory);
	name.infoWindowAnchor = new GPoint (imagesizex + 5, 0);
		
	customIcon = new GMarker(new GLatLng(lat, lon), name);
			
	return customIcon;
}
	
function IconZoomControl() {
	}
	
	IconZoomControl.prototype = new GControl();
	
	IconZoomControl.prototype.initialize = function(map) {
  		
	var container = document.createElement("div");

	var zoomInImg= document.createElement("img");
	zoomInImg.setAttribute("src", "img/zoom-in.png");
  		
	container.appendChild(zoomInImg);
			
	GEvent.addDomListener(zoomInImg, "click", function() {
		map.zoomIn();
	});
	
	GEvent.addDomListener(zoomInImg, "mouseover", changeCursor);
		
	var zoomOutImg= document.createElement("img");
	zoomOutImg.setAttribute("src", "img/zoom-out.png");
  		
	container.appendChild(zoomOutImg);
  		
	GEvent.addDomListener(zoomOutImg, "click", function() {
		map.zoomOut();
	});
	
	GEvent.addDomListener(zoomOutImg, "mouseover", changeCursor);
		
	map.getContainer().appendChild(container);
		return container;
	}
	
	IconZoomControl.prototype.getDefaultPosition = function() {
		return new GControlPosition(G_ANCHOR_TOP_LEFT, new GSize(7, 7));
	}
			
function InfoOverlay(marker, html, imgurl, adjustx, adjusty) {
	this.htmlcontent = html;
	this.marker = marker;
	this.imgurl = imgurl;
	this.adjustx = adjustx;
	this.adjusty = adjusty;
}
			
InfoOverlay.prototype = new GOverlay();
			
InfoOverlay.prototype.initialize = function(map) {
				
	var div = document.createElement("div");
				
	map.getPane(G_MAP_FLOAT_PANE).appendChild(div);
				
	this.map = map;
	this.containerElement = div;
				
}
			
InfoOverlay.prototype.redraw = function(force) {
	if (!force) { return };
				
	var markerposition = this.map.fromLatLngToDivPixel(this.marker.getPoint());
				
	this.containerElement.innerHTML = this.htmlcontent;
	this.containerElement.style.backgroundImage = "url("+ this.imgurl +")";
	this.containerElement.style.width = "190px";
	this.containerElement.style.height = "23px";
	this.containerElement.style.position = "absolute";
	this.containerElement.style.left = (markerposition.x - this.adjustx) + "px";
	this.containerElement.style.top = (markerposition.y - this.adjusty) + "px";
	this.containerElement.style.font = "bold 12px/12px verdana, arial, sans";
	this.containerElement.style.paddingLeft = "10px";
	this.containerElement.style.paddingTop = "7px";
				
}
			
InfoOverlay.prototype.remove = function() {
	this.containerElement.parentNode.removeChild(this.containerElement);
}
			
InfoOverlay.prototype.copy = function() {
	return new InfoOverlay(this.marker , this.htmlcontent, this.imgurl, this.adjustx, this.adjusty);
}
