	/*
Your key is:
ABQIAAAA03Dia8EcT9LgMBjgRdkXnBRSqqWjqwoj2WhnGh4UJZF9NvSlZhTvIUT2W_pZkqyh80yvth2VjKq_5g
This key is good for all URLs in this directory:
http://rochester.regencycourtapartments.com/
*/
	
var map;

var infowinhandle = new Array();

function fireInfowin(index){

	var point = new GLatLng(43.147176, -77.561535);
  	GEvent.trigger(infowinhandle[index], "mouseover");
  	return false;

}

function createMarker(point, index, markertext) {

	// shadow, icon dimensions, etc.
	var baseIcon = new GIcon();
	baseIcon.shadow = "http://www.google.com/mapfiles/shadow50.png";
	baseIcon.iconSize = new GSize(20, 34);
	baseIcon.shadowSize = new GSize(37, 34);
	baseIcon.iconAnchor = new GPoint(9, 34);
	baseIcon.infoWindowAnchor = new GPoint(9, 2);
	baseIcon.infoShadowAnchor = new GPoint(18, 25);

	// Create a number icon for this point using our icon class
	var icon = new GIcon(baseIcon);
	icon.image = "http://www.tricityrentals.com/splashpages/rochester/images/marker" + (index+1) + ".png";

  	var marker = new GMarker(point, icon);

  	infowinhandle[index] = marker;

  	GEvent.addListener(marker, "mouseover", function() {
  	marker.openInfoWindowHtml('<span class="smallType">' + markertext + '</span>');
  });

  return marker;

}

function load() {
	 
  if(GBrowserIsCompatible()){
		

		var weburl = new Array(		'http://www.tricityrentals.com/RochesterRegion/1600EastAvenueApartments/1600EastAvenueApartmentsHome.aspx',
'http://www.tricityrentals.com/RochesterRegion/1600Elmwood/1600ElmwoodHome.aspx',		
'http://www.tricityrentals.com/RochesterRegion/BrookHillVillage/BrookHillVillageHome.aspx',
'http://www.tricityrentals.com/RochesterRegion/CloverParkApartments/CloverParkApartmentsHome.aspx',		
'http://www.tricityrentals.com/RochesterRegion/FrenchCourt/FrenchCourtHome.aspx',
'http://www.tricityrentals.com/RochesterRegion/ImperialSouth/ImperialSouthHome.aspx',
'http://www.tricityrentals.com/RochesterRegion/RusticVillage/RusticVillageHome.aspx',
'http://www.tricityrentals.com/RochesterRegion/SpanishGardensApartments/SpanishGardensApartmentsHome.aspx',
'http://www.tricityrentals.com/RochesterRegion/TheMeadowsApartments/TheMeadowsApartmentsHome.aspx',
'http://www.tricityrentals.com/RochesterRegion/WoodgatePlace/WoodgatePlaceHome.aspx')
		
		var aptimage = new Array('http://www.tricityrentals.com/Images/Rochester/ContentImages/1600eastavenue/1600EastAvenue.jpg',
'http://www.tricityrentals.com/Images/Rochester/ContentImages/1600elmwoodavenue/1600ElmwoodAvenue.jpg',		'http://www.tricityrentals.com/Images/Rochester/ContentImages/brookhillvillage/BrookhillVillage.jpg',	
'http://www.tricityrentals.com/Images/Rochester/ContentImages/cloverpark/CloverPark.jpg',
'http://www.tricityrentals.com/Images/Rochester/ContentImages/frenchcourt/frenchcourtsign.jpg',
'http://www.tricityrentals.com/Images/Rochester/ContentImages/imperialsouth/imperialsouthsign1.jpg',
'http://www.tricityrentals.com/Images/Rochester/ContentImages/rusticvillage/RusticVillage.jpg',
'http://www.tricityrentals.com/Images/Rochester/ContentImages/spanishgardens/SpanishGardens.jpg',
'http://www.tricityrentals.com/Images/Rochester/ContentImages/themeadows/TheMeadows.jpg',
'http://www.tricityrentals.com/Images/Rochester/ContentImages/woodgateplace/complex.jpg')


		
		var propertylonlat = new Array(
      		43.147176, -77.561535, // 1600 East Avenue
		    43.126726, -77.594699, // 1600 Elmwood Avenue
		    43.136263, -77.498026, // Brook Hill Village
 			43.110573, -77.550129, // Clover Park Apartments
      		43.099159, -77.569628, // French Court
      		43.121814, -77.597823, // Imperial South
      		43.100493, -77.614379, // Rustic Village
		    43.253979, -77.617587, // Spanish Gardens Apartments
		    43.202518, -77.944409, // The Meadows Apartments
      		43.195917, -77.783642 // Woodgate Place
			);
			
		var propertytext = new Array(
        '<b>1600 East Avenue Apartments</b><br><IMG SRC="' + aptimage[0] +'" BORDER="0" WIDTH="105"><br>Studio, 1, 2 and<br>3 Bedroom Apartments<br><A HREF="' + weburl[0] + '" TARGET="0">Visit Our Web Site</A>',
        '<b>1600 Elmwood Avenue Apartments</b><br><IMG SRC="' + aptimage[1] +'" BORDER="0" WIDTH="105"><br>Studio, 1, 2 and<br>3 Bedroom Apartments<br><A HREF="' + weburl[1] + '" TARGET="0">Visit Our Web Site</A>',
      '<b>Brook Hill Village Apartments</b><br><IMG SRC="' + aptimage[2] +'" BORDER="0" WIDTH="105"><br>1 & 2 Bedroom Apartments<br><A HREF="' + weburl[2] + '" TARGET="0">Visit Our Web Site</A>',
       '<b>Clover Park Apartments</b><br><IMG SRC="' + aptimage[3] +'" BORDER="0" WIDTH="105"><br>3 Styles of 2 Bedroom Apartments <br><A HREF="' + weburl[3] + '" TARGET="0">Visit Our Web Site</A>',
       '<b>French Court Apartments</b><br><IMG SRC="' + aptimage[4] +'" BORDER="0" WIDTH="105"><br>1 & 2 Bedroom Apartments<br><A HREF="' + weburl[4] + '" TARGET="0">Visit Our Web Site</A>',
       '<b>Imperial South Apartments</b><br><IMG SRC="' + aptimage[5] +'" BORDER="0" WIDTH="105"><br>1 & 2 Bedroom Apartments<br><A HREF="' + weburl[5] + '" TARGET="0">Visit Our Web Site</A>',
       '<b>Rustic Village Apartments</b><br><IMG SRC="' + aptimage[6] +'" BORDER="0" WIDTH="105"><br>1 & 2 Bedroom Apartments<br><A HREF="' + weburl[6] + '" TARGET="0">Visit Our Web Site</A>',
       '<strong style="color:#FF0000; font-size:11pt;">$99 Move-In</strong><br><b>Spanish Gardens Apartments</b><br><IMG SRC="' + aptimage[7] +'" BORDER="0" WIDTH="105"><br>1 & 2 Bedroom Apartments<br>and 2 Bedroom Townhomes<br><A HREF="' + weburl[7] + '" TARGET="0">Visit Our Web Site</A>',
       '<b>The Meadows Apartments</b><br><IMG SRC="' + aptimage[8] +'" BORDER="0" WIDTH="105"><br>Studio, 1, 2 and 3 Bedroom Apartments<br><A HREF="' + weburl[8] + '" TARGET="0">Visit Our Web Site</A>',
'<b>Woodgate Place</b><br><IMG SRC="' + aptimage[9] +'" BORDER="0" WIDTH="105"><br>1 & 2 Bedroom Apartments<br>and 2 & 3 Bedroom Townhomes<br><A HREF="' + weburl[9] + '" TARGET="0">Visit Our Web Site</A>'
    );
	
		map = new GMap2(document.getElementById("map"));
		map.setCenter(new GLatLng(43.207176, -77.691535), 10);
		map.addControl(new GScaleControl()); 
		map.addControl(new GLargeMapControl());
		map.addControl(new GMapTypeControl()); 
		map.addControl(new GOverviewMapControl());

		var j = 0;
		for (var i = 0; i < propertylonlat.length; i++){

			var point = new GLatLng(propertylonlat[i], propertylonlat[++i]);
			map.addOverlay(createMarker(point, j, propertytext[j++]));

		}

	}
		
}
