 //<![CDATA[

	var locList = 
		[
		[40.109654, -88.239698, "106 E. John St.", "Champaign"],
		[40.115561, -88.230257, "602 E. Clark St.", "Champaign"],
		[40.113986, -88.215923, "711 W. Main St.", "Urbana"],
		[40.106634, -88.217897, "808 W. Nevada St.", "Urbana"],
		[40.115233, -88.254375, "201 S. New St.", "Champaign"],
		[40.104008, -88.246908, "305 W. Ells Ave.", "Champaign"],
		[40.110310, -88.250256, "506 W. Green St.", "Champaign"],
		[40.110310, -88.250256, "508 W. Green St.", "Champaign"],
		[40.112476, -88.256693, "803 W. Springfield Ave.", "Champaign"],
		[40.095933, -88.265276, "1727 Lincoln Rd.", "Champaign"],
		[40.118450, -88.248453, "308 N. Prairie St.", "Champaign"],
		[40.118450, -88.246737, "308 N. State St.", "Champaign"],
		[40.119106, -88.247080, "309 W. Hill St.", "Champaign"],
		[40.108994, -88.217833, "505 S. Busey Ave", "Urbana"],
		[40.109982, -88.248367, "606 S. Prairie St.", "Champaign"],
		[40.105267, -88.238795, "1101 S. First St.", "Champaign"],
		[40.093996, -88.264160, "1201 Broadmoor Dr.", "Champaign"],
		[40.120238, -88.246779, "312 W Washington St.", "Champaign"],
		[40.115348, -88.248625, "406 W Clark St.", "Champaign"],
		[40.120254, -88.248496, "504 N Prairie St.", "Champaign"]
		];
	function MM_preloadImages() 
		{ //v3.0  -- This is the only code from Macromedia
		var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
		var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
		if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
		}

    function load()
    	{
      	if(GBrowserIsCompatible())
      		{
	        var map = new GMap2(document.getElementById("map"));
	        map.addControl(new GLargeMapControl());
			map.addControl(new GMapTypeControl());
    	    map.setCenter(new GLatLng(40.11, -88.24), 13);
    	    		
    	    for(var id = 0; id <= locList.length; id++)
    	    	{
    			var point = new GLatLng(locList[id][0], locList[id][1]);
 				map.addOverlay(createClickableMarker(point, id));
    	    	}
    		}
	    }

	function createClickableMarker(point, id)
		{
    	var marker = new GMarker(point);
 		GEvent.addListener(marker, "click", function()
 			{
 			MM_preloadImages("http://www.wamplerapartments.com/" + locList[id][4] + "/" + locList[id][5] + "thumb-tiny.jpg");
			marker.openInfoWindowHtml('	<div class="InfoWindow"><div><a href="http://www.wamplerapartments.com/' + locList[id][4] + '/' + locList[id][5] + '"><img src="http://www.wamplerapartments.com/' + locList[id][4] + '/' + locList[id][5] + '/thumb-tiny.jpg" alt="" /></a></div><div><a href="http://www.wamplerapartments.com/' + locList[id][4] + '/' + locList[id][5] + '">' + locList[id][2] + '</a> ' + locList[id][3] + '</div></div>');
			});
		return marker;
		}
		
    //]]>