function rentalagreement() 
{    window.open('/rentalagreement.html','RentalAgreement','toolbar=no,location=no,directories=no,status=yes,menubar=yes,resizable=yes,copyhistory=no,scrollbars=yes,width=600,height=540');
}

// Google map

    var map;
    var currLat = "";
    var currLon = "";

    var baseicon = new GIcon();
    baseicon.image = "http://www.gite.com/art/maps/flag.png";
    baseicon.shadow = "http://www.gite.com/art/maps/flag-shadow.png";
    baseicon.printImage = "http://www.gite.com/art/maps/flag-print-icon.gif"; 
    baseicon.mozPrintImage = "http://www.gite.com/art/maps/flag-print-icon.gif";       
    baseicon.iconSize = new GSize(61, 70);
    baseicon.shadowSize = new GSize(61, 70);
    baseicon.iconAnchor = new GPoint(6, 70);
    baseicon.infoWindowAnchor = new GPoint(5, 1);

    var icon = new GIcon(baseicon);
    icon.image = "http://www.gite.com/art/maps/flag.png";
    icon.shadow = "http://www.gite.com/art/maps/flag-shadow.png";
    icon.printImage = "http://www.gite.com/art/maps/flag-print-icon.gif"; 
    icon.mozPrintImage = "http://www.gite.com/art/maps/flag-print-icon.gif";       
    icon.iconSize = new GSize(61, 70);
    icon.shadowSize = new GSize(61, 70);
    icon.iconAnchor = new GPoint(6, 70);
    icon.infoWindowAnchor = new GPoint(5, 1);
    
    function showFlag() {
    map.addOverlay(new GMarker(new GLatLng(currLat,currLon),icon));
    document.getElementById('toggleflag').innerHTML='<a class = "map-options-left" href="javascript:hideFlag()">Hide flag</a>';
    	}
    
    function hideFlag() {
	map.clearOverlays();
    document.getElementById('toggleflag').innerHTML='<a class = "map-options-left"  href="javascript:showFlag()">Show flag</a>';
    	}
		
	function LoadMap(lat, lon, zoom) 
{
  
    if (GBrowserIsCompatible()) {
		map = new GMap2(document.getElementById("map"));
		map.disableDoubleClickZoom();
		map.addControl(new LZoomControl());
		map.addControl(new GScaleControl());
		map.addControl(new GMapTypeControl());
		map.addControl(new GOverviewMapControl());
		map.setCenter(new GLatLng(lat,lon), zoom);
		map.addOverlay(new GMarker(new GLatLng(lat,lon),icon));
		currLat = lat;
		currLon = lon;
		}
}

    
// Customized zoom buttons
function LZoomControl() {
}
LZoomControl.prototype = new GControl();
LZoomControl.prototype.initialize = function(map) {
  var container = document.createElement("div");
  container.id = "LZoomBox";
  var zoomInDiv = document.createElement("div");
  container.appendChild(zoomInDiv);
  zoomInDiv.id = "LZoomIn";
  GEvent.addDomListener(zoomInDiv, "click", function() {
    map.zoomIn();
  });

  var zoomOutDiv = document.createElement("div");
  container.appendChild(zoomOutDiv);
  zoomOutDiv.id = "LZoomOut";
  GEvent.addDomListener(zoomOutDiv, "click", function() {
    map.zoomOut();
  });

  map.getContainer().appendChild(container);
  return container;
}

LZoomControl.prototype.getDefaultPosition = function() {
  return new GControlPosition(G_ANCHOR_TOP_LEFT, new GSize(2, 2));
}
// End customized zoom buttons


function    openmap(propid) {  
	newurl = 'http://www.gite.com/gite.com/googlemap.php?pr_id='+propid;
	mywindow = window.open(newurl,'Map','left=0,top=0,toolbar=no,location=no,directories=no,status=yes,menubar=no,resizable=yes,copyhistory=no,scrollbars=yes,width=700,height=680');
	mywindow.focus();
}