// JavaScript Document

function loadLocationMap() {
	if (GBrowserIsCompatible()) {
		// Create our "tiny" marker icon
        var tmpIcon = new GIcon(G_DEFAULT_ICON);
        tmpIcon.image = "/images/googleMarker.png";
        tmpIcon.shadow = "/images/googleMarkerShadow.png";
        tmpIcon.iconSize = new GSize(24, 17);
        tmpIcon.shadowSize = new GSize(27, 9);
        tmpIcon.iconAnchor = new GPoint(12, 8);
		tmpIcon.shadowAnchor = new GPoint(12, 1);
        tmpIcon.infoWindowAnchor = new GPoint(9, 2);
        tmpIcon.infoShadowAnchor = new GPoint(18, 25);		// Set up our GMarkerOptions object
		markerOptions = { icon:tmpIcon };

		var map = new GMap2(document.getElementById("mapMain"));
//		map.addControl(new GSmallMapControl());
		
//Center map
		var tmpMapCenter = new GLatLng(37.5,-94.658375);
		map.setCenter(tmpMapCenter, 4);

//Atlanta, GA
		var tmpPoint2 = new GLatLng(33.93072,-84.337599);
		var tmpMarker2 = new GMarker(tmpPoint2, markerOptions);
		map.addOverlay(tmpMarker2);
		var tmpHtml2 = '<h3>TMP Directional Marketing</h3>' + 
			'<p>400 Perimeter Center Terraces North<br />' + 
			'Atlanta, GA 30346</p>' + 
			'<p>t: 800.291.5930 | p: 770.325.1200 | f: 770.551.5946<br />' + 
			'<a href="/contact/atlanta.asp">Details</a> | ' + 
			'<a target="_blank" href="http://maps.google.com/maps?f=q&hl=en&q=tmp+directional+marketing,+atlanta,+georgia&layer=&ie=UTF8&z=11&ll=33.868705,-84.37294&spn=0.424179,0.720978&om=1&iwloc=B">Directions</a></p>';
	  	GEvent.addListener(tmpMarker2, 'click', function() {
			tmpMarker2.openInfoWindowHtml(tmpHtml2);
	  	});

//Chicago, IL
		var tmpPoint3 = new GLatLng(42.009876,-87.899358);
		var tmpMarker3 = new GMarker(tmpPoint3, markerOptions);
		map.addOverlay(tmpMarker3);
		var tmpHtml3 = '<h3>TMP Directional Marketing</h3>' + 
			'<p>1011 E. Touhy Ave., Ste. 390<br />' + 
			'Des Plaines, IL 60018</p>' + 
			'<p>t: 800.323.8157 | p: 847.227.3600 | f: 847.227.3682<br />' + 
			'<a href="/contact/chicago.asp">Details</a> | ' + 
			'<a target="_blank" href="http://maps.google.com/maps?f=q&hl=en&geocode=&q=1011+E.+Touhy+Ave.,+Ste.+390+Des+Plaines,+IL+60018&sll=61.630271,-149.327&sspn=0.012133,0.029182&ie=UTF8&ll=42.009876,-87.899358&spn=0.009486,0.014591&z=16&iwloc=addr">Directions</a></p>';
	  	GEvent.addListener(tmpMarker3, 'click', function() {
			tmpMarker3.openInfoWindowHtml(tmpHtml3);
	  	});
		
//Dallas, TX
		var tmpPoint4 = new GLatLng(33.070595,-96.816458);
		var tmpMarker4 = new GMarker(tmpPoint4, markerOptions);
		map.addOverlay(tmpMarker4);
		var tmpHtml4 = '<h3>TMP Directional Marketing</h3>' + 
			'<p>5600 Tennyson Parkway Ste. 275<br />' + 
			'Plano, TX 60018</p>' + 
			'<p>p: 972.340.7620 | f: 972.608.1887<br />' + 
			'<a href="/contact/dallas.asp">Details</a> | ' + 
			'<a target="_blank" href="http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=5600+Tennyson+Parkway+Suite+275+Plano,+Texas+75024&sll=33.070596,-96.816459&sspn=0.00686,0.010546&ie=UTF8&hq=&hnear=5600+Tennyson+Pkwy+%23275,+Plano,+Collin,+Texas+75024&t=h&z=17">Directions</a></p>';
	  	GEvent.addListener(tmpMarker4, 'click', function() {
			tmpMarker4.openInfoWindowHtml(tmpHtml4);
	  	});

//Fort Wayne, IN
		var tmpPoint10 = new GLatLng(41.145117,-85.162969);
		var tmpMarker10 = new GMarker(tmpPoint10, markerOptions);
		map.addOverlay(tmpMarker10);
		var tmpHtml10 = '<h3>TMP Directional Marketing</h3>' + 
			'<p>1200 Airport North Office Park<br />' + 
			'Fort Wayne, IN 46825</p>' + 
			'<p>p: 260.497.1800 | f: 260.497.1801<br />' + 
			'<a href="/contact/ftwayne.asp">Details</a> | ' + 
			'<a target="_blank" href="http://maps.google.com/maps?f=q&hl=en&geocode=&q=1200+Airport+North+Office+Park+Fort+Wayne,+IN+46825&sll=39.378082,-77.412457&sspn=0.009869,0.014591&ie=UTF8&ll=41.145117,-85.162969&spn=0.009614,0.014591&z=16&iwloc=addr">Directions</a></p>';
	  	GEvent.addListener(tmpMarker10, 'click', function() {
			tmpMarker10.openInfoWindowHtml(tmpHtml10);
	  	});

//Overland Park, KS
		var tmpPoint11 = new GLatLng(39.013315,-94.658375);
		var tmpMarker11 = new GMarker(tmpPoint11, markerOptions);
		map.addOverlay(tmpMarker11);
		var tmpHtml11 = '<h3>TMP Directional Marketing</h3>' + 
			'<p>6330 Lamar Ave., Ste. 130<br />' + 
			'Overland Park, KS 66202</p>' + 
			'<p>t: 800.831.4307 | p: 913.671.6737 | f: 913.722.0921<br />' + 
			'<a href="/contact/overlandpark.asp">Details</a> | ' + 
			'<a target="_blank" href="http://maps.google.com/maps?f=q&hl=en&geocode=&q=6330+Lamar+Ave.,+Ste.+130+Overland+Park,+KS+66202&sll=61.630271,-149.327&sspn=0.012133,0.029182&ie=UTF8&ll=39.013315,-94.658375&spn=0.00992,0.014591&z=16&iwloc=addr">Directions</a></p>';
	  	GEvent.addListener(tmpMarker11, 'click', function() {
			tmpMarker11.openInfoWindowHtml(tmpHtml11);
	  	});

//Memphis, TN
		var tmpPoint14 = new GLatLng(35.098107,-89.837866);
		var tmpMarker14 = new GMarker(tmpPoint14, markerOptions);
		map.addOverlay(tmpMarker14);
		var tmpHtml14 = '<h3>TMP Directional Marketing</h3>' + 
			'<p>6750 Poplar Ave., Ste. 110<br />' + 
			'Memphis, TN 38138</p>' + 
			'<p>t: 800.949.2010 | p: 901.680.0112 | f: 901.680.0125<br />' + 
			'<a href="/contact/memphis.asp">Details</a> | ' + 
			'<a target="_blank" href="http://maps.google.com/maps?f=q&hl=en&geocode=&q=6750+Poplar+Ave.,+Ste.+110+Memphis,+TN+38138&sll=34.153118,-118.254948&sspn=0.021131,0.029182&ie=UTF8&ll=35.098107,-89.837866&spn=0.020892,0.029182&z=15&iwloc=addr">Directions</a></p>';
	  	GEvent.addListener(tmpMarker14, 'click', function() {
			tmpMarker14.openInfoWindowHtml(tmpHtml14);
	  	});

//Milwaukee, WI
		var tmpPoint17 = new GLatLng(43.178675,-88.007269);
		var tmpMarker17 = new GMarker(tmpPoint17, markerOptions);
		map.addOverlay(tmpMarker17);
		var tmpHtml17 = '<h3>TMP Directional Marketing</h3>' + 
			'<p>7800 W. Brown Deer Rd., Ste. 300<br />' + 
			'Milwaukee, WI 53223</p>' + 
			'<p>t: 800.558.6966 | p: 414.918.6000 | f: 414.918.6346<br />' + 
			'<a href="/contact/milwaukee.asp">Details</a> | ' + 
			'<a target="_blank" href="http://maps.google.com/maps?f=q&hl=en&geocode=&q=7800+W.+Brown+Deer+Rd.,+Ste.+300+Milwaukee,+WI+53223&sll=25.873203,-80.364261&sspn=0.022975,0.029182&ie=UTF8&ll=43.178675,-88.007269&spn=0.01862,0.029182&z=15&iwloc=addr">Directions</a></p>';
	  	GEvent.addListener(tmpMarker17, 'click', function() {
			tmpMarker17.openInfoWindowHtml(tmpHtml17);
	  	});

//Minneapolis, MN
		var tmpPoint19 = new GLatLng(44.861679,-93.398767);
		var tmpMarker19 = new GMarker(tmpPoint19, markerOptions);
		map.addOverlay(tmpMarker19);
		var tmpHtml19 = '<h3>TMP Directional Marketing</h3>' + 
			'<p>7825 Washington Ave. South, Ste. 800<br />' + 
			'Minneapolis, MN 55439</p>' + 
			'<p>t: 800.232.2399 | p: 952.903.4600 | f: 952.941.9010<br />' + 
			'<a href="/contact/minneapolis.asp">Details</a> | ' + 
			'<a target="_blank" href="http://maps.google.com/maps?f=q&hl=en&geocode=&q=7825+Washington+Ave.+South,+Ste.+800+Minneapolis,+MN+55439&sll=43.178675,-88.007269&sspn=0.01862,0.029182&ie=UTF8&ll=44.861679,-93.398767&spn=0.018099,0.029182&z=15&iwloc=addr">Directions</a></p>';
	  	GEvent.addListener(tmpMarker19, 'click', function() {
			tmpMarker19.openInfoWindowHtml(tmpHtml19);
	  	});

//New York, NY
		var tmpPoint21 = new GLatLng(40.753597,-73.97923);
		var tmpMarker21 = new GMarker(tmpPoint21, markerOptions);
		map.addOverlay(tmpMarker21);
		var tmpHtml21 = '<h3>TMP Directional Marketing</h3>' + 
			'<p>317 Madison Ave., Ste. 2310<br />' + 
			'New York, NY 10017</p>' + 
			'<p>p: 212.351.7595 | f: 917.256.8320<br />' + 
			'<a href="/contact/newyork.asp">Details</a> | ' + 
			'<a target="_blank" href="http://maps.google.com/maps?f=q&hl=en&geocode=&q=317+Madison+Ave.,+Ste.+2310+New+York,+NY+10017&sll=45.449022,-73.57265&sspn=0.017914,0.029182&ie=UTF8&ll=40.753597,-73.97923&spn=0.019343,0.029182&z=15&iwloc=addr">Directions</a></p>';
	  	GEvent.addListener(tmpMarker21, 'click', function() {
			tmpMarker21.openInfoWindowHtml(tmpHtml21);
	  	});

//St. Louis, MO
		var tmpPoint24 = new GLatLng(38.64731,-90.334439);
		var tmpMarker24 = new GMarker(tmpPoint24, markerOptions);
		map.addOverlay(tmpMarker24);
		var tmpHtml24 = '<h3>TMP Directional Marketing</h3>' + 
			'<p>200 S. Hanley Rd., Ste. 900<br />' + 
			'St. Louis, MO 63105</p>' + 
			'<p>t: 800.447.6927 | p: 314.863.1221 | f: 314.863.7554<br />' + 
			'<a href="/contact/stlouis.asp">Details</a> | ' + 
			'<a target="_blank" href="http://maps.google.com/maps?f=q&hl=en&geocode=&q=200+S.+Hanley+Rd.,+Ste.+900+St.+Louis,+MO+63105&sll=40.593686,-122.357612&sspn=0.01939,0.029182&ie=UTF8&ll=38.64731,-90.334439&spn=0.019943,0.029182&z=15&iwloc=addr">Directions</a></p>';
	  	GEvent.addListener(tmpMarker24, 'click', function() {
			tmpMarker24.openInfoWindowHtml(tmpHtml24);
	  	});

//Toronto, ON
		var tmpPoint26 = new GLatLng(43.77159,-79.323349);
		var tmpMarker26 = new GMarker(tmpPoint26, markerOptions);
		map.addOverlay(tmpMarker26);
		var tmpHtml26 = '<h3>TMP Directional Marketing</h3>' + 
			'<p>515 Consumers Road, Suite 500<br />' + 
			'Toronto, ON M2J 4Z2</p>' + 
			'<p>t: 800.263.4293 | p: 416.864.1990 | f: 416.864.1897<br />' + 
			'<a href="/contact/toronto.asp">Details</a> | ' + 
			'<a target="_blank" href="http://maps.google.com/maps?f=q&hl=en&geocode=&q=515+Consumers+Road,+Suite+500+Toronto,+ON+M2J+4Z2&sll=27.988035,-82.149754&sspn=0.090193,0.11673&ie=UTF8&ll=43.77159,-79.323349&spn=0.018439,0.029182&z=15&iwloc=addr">Directions</a></p>';
	  	GEvent.addListener(tmpMarker26, 'click', function() {
			tmpMarker26.openInfoWindowHtml(tmpHtml26);
	  	});
	}
}
