function ControlTurkish() {}
	ControlTurkish.prototype = new GControl();
	
	ControlTurkish.prototype.initialize = function(map) {
	  var container = document.createElement("div");
	  this.setContainerStyle_(container);
	  
	  var mapTypeSelectHybrid = document.createElement("div");
	  this.setButtonStyle_(mapTypeSelectHybrid);
	  container.appendChild(mapTypeSelectHybrid);
	  mapTypeSelectHybrid.appendChild(document.createTextNode("Uydu"));
	  GEvent.addDomListener(mapTypeSelectHybrid, "click", function() { map.setMapType(G_HYBRID_MAP); });
	
	  var seperator = document.createElement("div");
	  this.setSeperatorStyle_(seperator);
	  container.appendChild(seperator);
	  seperator.appendChild(document.createTextNode("  "));
	  		  
	  var mapTypeSelectNormal = document.createElement("div");
	  this.setButtonStyle_(mapTypeSelectNormal);
	  container.appendChild(mapTypeSelectNormal);
	  mapTypeSelectNormal.appendChild(document.createTextNode("Harita"));
	  GEvent.addDomListener(mapTypeSelectNormal, "click", function() { map.setMapType(G_NORMAL_MAP); });
					  
	  map.getContainer().appendChild(container);
	  return container;
        };
	
	ControlTurkish.prototype.getDefaultPosition = function() {
	  return new GControlPosition(G_ANCHOR_TOP_RIGHT, new GSize(10, 10));
	};
	
	ControlTurkish.prototype.setSeperatorStyle_ = function(seperator) {
	    seperator.style.cssFloat = "left";
	    seperator.style.padding = "3px 3px 3px 3px";
	};
	
	ControlTurkish.prototype.setContainerStyle_ = function(ctnr) {
	}
	
	ControlTurkish.prototype.setButtonStyle_ = function(button) {
	  button.style.textDecoration = "none";
	  button.style.color = "#666";
	  button.style.backgroundColor = "#fff";
	  button.style.fontFamily = "verdana";
	  button.style.fontSize = "1.0em";
	  button.style.border = "1px solid black";
	  button.style.padding = "2px";
	  button.style.margin = "0 0 3px 0";
	  button.style.textAlign = "center";
	  button.style.width = "4.5em";
	  button.style.cursor = "pointer";
	  button.style.cssFloat = "left";
	};
	

function mapInitialize()
{
    if (new GBrowserIsCompatible()) {
	
	var map = new GMap2(document.getElementById("demap"));
	var topLeft = new GControlPosition(G_ANCHOR_TOP_LEFT, new GSize(10,10));
	
	map.addControl(new GSmallZoomControl(), topLeft);
	map.removeMapType(G_SATELLITE_MAP);
	map.addControl(new ControlTurkish());
	map.setCenter(new GLatLng(40.996390,29.134433), 17);
	map.setMapType(G_HYBRID_MAP);

	
	var address = "<div style='width: 315px; margin: 10px 10px 0 0' />";
	address += "<div style='float: left; height: 75px; width: 148px'>";
	address += "<span style='color: #666'><a href='http://www.demtas.com' style='font-weight: bold; text-decoration: none; color: #0000CC;'>Demtaž Group</a>";
	address += "<br><br><a href='http://www.demtas.com' style='text-decoration: none; color: #008000;'>www.demtas.com</a>";
	address += "</div><div style='float: right; height: 58px'><div style='height: 58px; width:162px; border: 1px solid #000'>";
	address += "<img src='images/logo_demtas_group.gif' width=162 height=58 alt='demtas'></div></div>";

	var point = new GLatLng(40.996390,29.134433);
	var marker = new GMarker(point);
	
	GEvent.addListener(marker, "mouseover", function() {
	    marker.openInfoWindowHtml(address);
	});
	map.addOverlay(marker);
	
    }
}