﻿// JScript File

var map;

function makeMap() {
    if (GBrowserIsCompatible()) {
      // resize the map
      var m = document.getElementById("google-map");
      m.style.height = "450px";
      m.style.width = "653px";
      // create the map
      map = new GMap(document.getElementById("google-map"));
      map.addControl(new GLargeMapControl());
      map.centerAndZoom(new GPoint(72.56896, 23.03302), 1);
		
		var point = new GPoint(72.56896,  23.03302);
		var mhtml = '<h2>TechTeer Systems</h2> <br />3rd floor, 5th block, <br /> Mill colony, B/H la-gajjar chambers,<br /> Ashram Road,<br /> Ahmedabad, Gujarat, <br />India - 380009 <br/>(P)+91 079 40068336 <br/> (E)   info@techteer.com';
		mhtml = '<div style="white-space:nowrap;">' + mhtml + '</div>';
		
 	 	var marker = createMarker(point,mhtml);
  		map.addOverlay(marker);
		marker.openInfoWindowHtml(mhtml);
    } else {
      var m = document.getElementById("map");
      alert('Your Browser is not compatible with Google Maps');
    }
}

function createMarker(point,html) {
        // FF 1.5 fix
        //html = '<div style="white-space:nowrap;">' + html + '</div>';
        var marker = new GMarker(point);
        GEvent.addListener(marker, "click", function() {
          marker.openInfoWindowHtml(html);
        });
		  
        return marker;
		  
}  
