/***********************************************
* Ultimate Fade-In Slideshow (v1.5): © Dynamic Drive (http://www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/
 
var fadeimages=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages[0]=["images/slideshow/m1.jpg", "", ""] //plain image syntax
fadeimages[1]=["images/slideshow/m2.jpg", "", ""] 
fadeimages[2]=["images/slideshow/m3.jpg", "", ""] 
fadeimages[3]=["images/slideshow/m4.jpg", "", ""] 
fadeimages[4]=["images/slideshow/m5.jpg", "", ""] 
fadeimages[5]=["images/slideshow/m6.jpg", "", ""] 

 
var fadeimages2=new Array() //2nd array set example. Remove or add more sets as needed.
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages2[0]=["images/slideshow/i1.jpg", "", ""] //plain image syntax
fadeimages2[1]=["images/slideshow/i2.jpg", "", ""] //image with link syntax
fadeimages2[2]=["images/slideshow/i3.jpg", "", ""] //image with link and target syntax
fadeimages2[3]=["images/slideshow/i4.jpg", "", ""] //image with link and target syntax
 
var fadebgcolor="#452830"
 
////NO need to edit beyond here/////////////
 
var fadearray=new Array() //array to cache fadeshow instances
var fadeclear=new Array() //array to cache corresponding clearinterval pointers
 
var dom=(document.getElementById) //modern dom browsers
var iebrowser=document.all
 
function fadeshow(theimages, fadewidth, fadeheight, borderwidth, delay, pause, displayorder){
this.pausecheck=pause
this.mouseovercheck=0
this.delay=delay
this.degree=10 //initial opacity degree (10%)
this.curimageindex=0
this.nextimageindex=1
fadearray[fadearray.length]=this
this.slideshowid=fadearray.length-1
this.canvasbase="canvas"+this.slideshowid
this.curcanvas=this.canvasbase+"_0"
if (typeof displayorder!="undefined")
theimages.sort(function() {return 0.5 - Math.random();}) //thanks to Mike (aka Mwinter) :)
this.theimages=theimages
this.imageborder=parseInt(borderwidth)
this.postimages=new Array() //preload images
for (p=0;p<theimages.length;p++){
this.postimages[p]=new Image()
this.postimages[p].src=theimages[p][0]
}
 
var fadewidth=fadewidth+this.imageborder*2
var fadeheight=fadeheight+this.imageborder*2
 
if (iebrowser&&dom||dom) //if IE5+ or modern browsers (ie: Firefox)
document.write('<div id="master'+this.slideshowid+'" style="position:relative;width:'+fadewidth+'px;height:'+fadeheight+'px;overflow:hidden;"><div id="'+this.canvasbase+'_0" style="position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);-moz-opacity:10;-khtml-opacity:10;background-color:'+fadebgcolor+'"></div><div id="'+this.canvasbase+'_1" style="position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);-moz-opacity:10;background-color:'+fadebgcolor+'"></div></div>')
else
document.write('<div><img name="defaultslide'+this.slideshowid+'" src="'+this.postimages[0].src+'"></div>')
 
if (iebrowser&&dom||dom) //if IE5+ or modern browsers such as Firefox
this.startit()
else{
this.curimageindex++
setInterval("fadearray["+this.slideshowid+"].rotateimage()", this.delay)
}
}

function fadepic(obj){
if (obj.degree<100){
obj.degree+=10
if (obj.tempobj.filters&&obj.tempobj.filters[0]){
if (typeof obj.tempobj.filters[0].opacity=="number") //if IE6+
obj.tempobj.filters[0].opacity=obj.degree
else //else if IE5.5-
obj.tempobj.style.filter="alpha(opacity="+obj.degree+")"
}
else if (obj.tempobj.style.MozOpacity)
obj.tempobj.style.MozOpacity=obj.degree/101
else if (obj.tempobj.style.KhtmlOpacity)
obj.tempobj.style.KhtmlOpacity=obj.degree/100
}
else{
clearInterval(fadeclear[obj.slideshowid])
obj.nextcanvas=(obj.curcanvas==obj.canvasbase+"_0")? obj.canvasbase+"_0" : obj.canvasbase+"_1"
obj.tempobj=iebrowser? iebrowser[obj.nextcanvas] : document.getElementById(obj.nextcanvas)
obj.populateslide(obj.tempobj, obj.nextimageindex)
obj.nextimageindex=(obj.nextimageindex<obj.postimages.length-1)? obj.nextimageindex+1 : 0
setTimeout("fadearray["+obj.slideshowid+"].rotateimage()", obj.delay)
}
}
 
fadeshow.prototype.populateslide=function(picobj, picindex){
var slideHTML=""
if (this.theimages[picindex][1]!="") //if associated link exists for image
slideHTML='<a href="'+this.theimages[picindex][1]+'" target="'+this.theimages[picindex][2]+'">'
slideHTML+='<img src="'+this.postimages[picindex].src+'" border="'+this.imageborder+'px">'
if (this.theimages[picindex][1]!="") //if associated link exists for image
slideHTML+='</a>'
picobj.innerHTML=slideHTML
}
 
 
fadeshow.prototype.rotateimage=function(){
if (this.pausecheck==1) //if pause onMouseover enabled, cache object
var cacheobj=this
if (this.mouseovercheck==1)
setTimeout(function(){cacheobj.rotateimage()}, 100)
else if (iebrowser&&dom||dom){
this.resetit()
var crossobj=this.tempobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
crossobj.style.zIndex++
fadeclear[this.slideshowid]=setInterval("fadepic(fadearray["+this.slideshowid+"])",50)
this.curcanvas=(this.curcanvas==this.canvasbase+"_0")? this.canvasbase+"_1" : this.canvasbase+"_0"
}
else{
var ns4imgobj=document.images['defaultslide'+this.slideshowid]
ns4imgobj.src=this.postimages[this.curimageindex].src
}
this.curimageindex=(this.curimageindex<this.postimages.length-1)? this.curimageindex+1 : 0
}
 
fadeshow.prototype.resetit=function(){
this.degree=10
var crossobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
if (crossobj.filters&&crossobj.filters[0]){
if (typeof crossobj.filters[0].opacity=="number") //if IE6+
crossobj.filters(0).opacity=this.degree
else //else if IE5.5-
crossobj.style.filter="alpha(opacity="+this.degree+")"
}
else if (crossobj.style.MozOpacity)
crossobj.style.MozOpacity=this.degree/101
else if (crossobj.style.KhtmlOpacity)
crossobj.style.KhtmlOpacity=obj.degree/100
}
 
 
fadeshow.prototype.startit=function(){
var crossobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
this.populateslide(crossobj, this.curimageindex)
if (this.pausecheck==1){ //IF SLIDESHOW SHOULD PAUSE ONMOUSEOVER
var cacheobj=this
var crossobjcontainer=iebrowser? iebrowser["master"+this.slideshowid] : document.getElementById("master"+this.slideshowid)
crossobjcontainer.onmouseover=function(){cacheobj.mouseovercheck=1}
crossobjcontainer.onmouseout=function(){cacheobj.mouseovercheck=0}
}
this.rotateimage()
}

function swapLocation(which,which2) {
		
		document.getElementById('location_btnattractions').className='location_btnunselected';
		document.getElementById('location_btnshopping').className='location_btnunselected';
		document.getElementById('location_btnrestaurants').className='location_btnunselected';
		document.getElementById('location_btncommunityservices').className='location_btnunselected';

		document.getElementById(which2).className='location_btnselected';

		document.getElementById('location_attractions').style.display='none';
		document.getElementById('location_shopping').style.display='none';
		document.getElementById('location_restaurants').style.display='none';
		document.getElementById('location_communityservices').style.display='none';

		document.getElementById(which).style.display='block';
}



function switchMoveInNow(which) {
		document.getElementById('moveinnow_ashton301').style.display='none';
		document.getElementById('moveinnow_charleston103').style.display='none';

		document.getElementById(which).style.display='block';
}


// ********************** BEGIN MAPPING **********************


	var map;

	var baseIcon = new GIcon();
	baseIcon.image = "./images/map_marker.png";
	baseIcon.shadow = "./images/map_marker_shadow.png";
	baseIcon.iconSize = new GSize(39, 38);
	baseIcon.shadowSize = new GSize(39, 38);
	baseIcon.iconAnchor = new GPoint(18, 18);
	baseIcon.infoWindowAnchor = new GPoint(18, 18);
	baseIcon.infoShadowAnchor = new GPoint(18, 18);


	function startApp()
	{
		loadMap();
		getMarkers2("attractions");
	}

	function loadMap()
	{
	    if (GBrowserIsCompatible())
	    { 

			// Display the map, with some controls and set the initial location 
			map = new GMap2(document.getElementById("location_map"));
			map.addControl(new GSmallMapControl());
		//	map.addControl(new GMapTypeControl());
			map.setCenter(new GLatLng(39.788476, -77.226906),11);

		}
		else
		{
			alert("not compatible!");
		}
    }
    

      // A function to create the marker and set up the event window
      // Dont try to unroll this function. It has to be here for the function closure
      // Each instance of the function preserves the contends of a different instance
      // of the "marker" and "html" variables which will be needed later when the event triggers.    
	function createMarker(point, key)
	{

		var html = "<b>" + key + "</b><br>" + poi[key].address;

		switch (poi[key].type)
		{
			case "start" :
				var marker = new GMarker(point, baseIcon);
				break;
			default :
				var marker = new GMarker(point);
				break;
		}
		GEvent.addListener(marker, "click", function()
		{
			marker.openInfoWindowHtml(html);
		});
		return marker;
	}

	function myclick(i)
	{
		GEvent.trigger(poi[i].marker, "click");
	}

	function getMarkers2(whichCategory)
	{

		map.clearOverlays();
		for (var key in poi)
		{
			if ((poi[key].type == whichCategory) || (poi[key].type == "start"))
			{
				var point = new GLatLng(parseFloat(poi[key].latitude), parseFloat(poi[key].longitude));
				poi[key].marker = createMarker(point, key);
				map.addOverlay(poi[key].marker);
			//	document.getElementById('listview').innerHTML += marker[j].getAttribute("name") + "<br />";
			}
		}

	}


poi = [];

poi["The Links At Gettysburg"] = new Object();
poi["The Links At Gettysburg"].type = "start";
poi["The Links At Gettysburg"].latitude = "39.728476";
poi["The Links At Gettysburg"].longitude = "-77.226906";
poi["The Links At Gettysburg"].address = "601 Mason-Dixon Road, Gettysburg, PA 17325";

poi["American Civil War Museum"] = new Object();
poi["American Civil War Museum"].type = "attractions";
poi["American Civil War Museum"].latitude = "39.819245";
poi["American Civil War Museum"].longitude = "-77.234647";
poi["American Civil War Museum"].address = "297 Steinwehr Avenue";

poi["American Stories Historic Walking Tours and Programs"] = new Object();
poi["American Stories Historic Walking Tours and Programs"].type = "attractions";
poi["American Stories Historic Walking Tours and Programs"].latitude = "39.830585";
poi["American Stories Historic Walking Tours and Programs"].longitude = "-77.231096";
poi["American Stories Historic Walking Tours and Programs"].address = "22 Baltimore Street";

poi["Ski Liberty"] = new Object();
poi["Ski Liberty"].type = "attractions";
poi["Ski Liberty"].latitude = "39.838236";
poi["Ski Liberty"].longitude = "-77.260181";
poi["Ski Liberty"].address = "78 Country Club Trail";

poi["Ghosts of Gettysburg Candlelight Walking Tours"] = new Object();
poi["Ghosts of Gettysburg Candlelight Walking Tours"].type = "attractions";
poi["Ghosts of Gettysburg Candlelight Walking Tours"].latitude = "39.827150";
poi["Ghosts of Gettysburg Candlelight Walking Tours"].longitude = "-77.231064";
poi["Ghosts of Gettysburg Candlelight Walking Tours"].address = "271 Baltimore Street";

poi["Mulligan MacDuffer Adventure Golf"] = new Object();
poi["Mulligan MacDuffer Adventure Golf"].type = "attractions";
poi["Mulligan MacDuffer Adventure Golf"].latitude = "39.820892";
poi["Mulligan MacDuffer Adventure Golf"].longitude = "-77.229226";
poi["Mulligan MacDuffer Adventure Golf"].address = "1360 Baltimore Street";

poi["Gettysburg Country Club"] = new Object();
poi["Gettysburg Country Club"].type = "attractions";
poi["Gettysburg Country Club"].latitude = "39.830885";
poi["Gettysburg Country Club"].longitude = "-77.235";
poi["Gettysburg Country Club"].address = "730 Chambersburg Street";


poi["Hall of Presidents and 1st Ladies"] = new Object();
poi["Hall of Presidents and 1st Ladies"].type = "attractions";
poi["Hall of Presidents and 1st Ladies"].latitude = "39.821080";
poi["Hall of Presidents and 1st Ladies"].longitude = "-77.229392";
poi["Hall of Presidents and 1st Ladies"].address = "789 Baltimore Street";

poi["Soldier\'s National Museum"] = new Object();
poi["Soldier\'s National Museum"].type = "attractions";
poi["Soldier\'s National Museum"].latitude = "39.821305";
poi["Soldier\'s National Museum"].longitude = "-77.229591";
poi["Soldier\'s National Museum"].address = "777 Baltimore Street";

poi["Jennie Wade House"] = new Object();
poi["Jennie Wade House"].type = "attractions";
poi["Jennie Wade House"].latitude = "39.823516";
poi["Jennie Wade House"].longitude = "-77.230940";
poi["Jennie Wade House"].address = "548 Baltimore Street";

poi["General Lee\'s Headquarters"] = new Object();
poi["General Lee\'s Headquarters"].type = "attractions";
poi["General Lee\'s Headquarters"].latitude = "39.833620";
poi["General Lee\'s Headquarters"].longitude = "-77.242560";
poi["General Lee\'s Headquarters"].address = "401 Buford Avenue";

poi["Pioneer Lines Scenic Railway"] = new Object();
poi["Pioneer Lines Scenic Railway"].type = "attractions";
poi["Pioneer Lines Scenic Railway"].latitude = "39.832093";
poi["Pioneer Lines Scenic Railway"].longitude = "-77.233312";
poi["Pioneer Lines Scenic Railway"].address = "106 N. Washington Street";

poi["Majestic Performing Arts Center"] = new Object();
poi["Majestic Performing Arts Center"].type = "attractions";
poi["Majestic Performing Arts Center"].latitude = "39.831845";
poi["Majestic Performing Arts Center"].longitude = "-77.231105";
poi["Majestic Performing Arts Center"].address = "25 Carlisle Street";

/*
poi["Gettysburg Village 10 Theater"] = new Object();
poi["Gettysburg Village 10 Theater"].type = "attractions";
poi["Gettysburg Village 10 Theater"].latitude = "asd";
poi["Gettysburg Village 10 Theater"].longitude = "asd";
poi["Gettysburg Village 10 Theater"].address = "1865 Gettysburg Village Street";

poi["Gateway Theater"] = new Object();
poi["Gateway Theater"].type = "attractions";
poi["Gateway Theater"].latitude = "asd";
poi["Gateway Theater"].longitude = "asd";
poi["Gateway Theater"].address = "20 Presidential Circle";
*/
poi["Eisenhower National Historic Site"] = new Object();
poi["Eisenhower National Historic Site"].type = "attractions";
poi["Eisenhower National Historic Site"].latitude = "39.818453";
poi["Eisenhower National Historic Site"].longitude = "-77.232594";
poi["Eisenhower National Historic Site"].address = "97 Taneytown Road";

poi["Boyd\'s Bear Country"] = new Object();
poi["Boyd\'s Bear Country"].type = "attractions";
poi["Boyd\'s Bear Country"].latitude = "39.763143";
poi["Boyd\'s Bear Country"].longitude = "-77.277220";
poi["Boyd\'s Bear Country"].address = "75 Cunningham Road";

poi["Allstar Events Complex"] = new Object();
poi["Allstar Events Complex"].type = "attractions";
poi["Allstar Events Complex"].latitude = "39.765176";
poi["Allstar Events Complex"].longitude = "-77.272887";
poi["Allstar Events Complex"].address = "2638 Emmitsburg Road";

poi["Adam\'s County Winery"] = new Object();
poi["Adam\'s County Winery"].type = "attractions";
poi["Adam\'s County Winery"].latitude = "39.868622";
poi["Adam\'s County Winery"].longitude = "-77.372768";
poi["Adam\'s County Winery"].address = "251 Peach Tree Road, Orrtanna, PA";

// SHOPPING

poi["Boyd\'s Bear Country"] = new Object();
poi["Boyd\'s Bear Country"].type = "shopping";
poi["Boyd\'s Bear Country"].latitude = "39.763143";
poi["Boyd\'s Bear Country"].longitude = "-77.277220";
poi["Boyd\'s Bear Country"].address = "75 Cunningham Road";

poi["Wal-Mart"] = new Object();
poi["Wal-Mart"].type = "shopping";
poi["Wal-Mart"].latitude = "39.843855";
poi["Wal-Mart"].longitude = "-77.201453";
poi["Wal-Mart"].address = "1270 York Road";

poi["Rite-Aid"] = new Object();
poi["Rite-Aid"].type = "shopping";
poi["Rite-Aid"].latitude = "39.828093";
poi["Rite-Aid"].longitude = "-77.236643";
poi["Rite-Aid"].address = "231 West Street";

poi["CVS"] = new Object();
poi["CVS"].type = "shopping";
poi["CVS"].latitude = "39.844307";
poi["CVS"].longitude = "-77.200568";
poi["CVS"].address = "1275 York Road";

poi["Liquor Store"] = new Object();
poi["Liquor Store"].type = "shopping";
poi["Liquor Store"].latitude = "39.844307";
poi["Liquor Store"].longitude = "-77.200568";
poi["Liquor Store"].address = "1275 York Road";

poi["Beer Mart"] = new Object();
poi["Beer Mart"].type = "shopping";
poi["Beer Mart"].latitude = "39.834112";
poi["Beer Mart"].longitude = "-77.220662";
poi["Beer Mart"].address = "646 York Street";

poi["Giant"] = new Object();
poi["Giant"].type = "shopping";
poi["Giant"].latitude = "39.839484";
poi["Giant"].longitude = "-77.208519";
poi["Giant"].address = "44 Natural Springs Road";

poi["Kennies Market"] = new Object();
poi["Kennies Market"].type = "shopping";
poi["Kennies Market"].latitude = "39.829712";
poi["Kennies Market"].longitude = "-77.235255";
poi["Kennies Market"].address = "217 W. Middle Street";

poi["Weis Market"] = new Object();
poi["Weis Market"].type = "shopping";
poi["Weis Market"].latitude = "39.842271";
poi["Weis Market"].longitude = "-77.224624";
poi["Weis Market"].address = "735 Old Harrisburg Road";

poi["Staples"] = new Object();
poi["Staples"].type = "shopping";
poi["Staples"].latitude = "39.844307";
poi["Staples"].longitude = "-77.200568";
poi["Staples"].address = "1275 York Road";

poi["Peebles"] = new Object();
poi["Peebles"].type = "shopping";
poi["Peebles"].latitude = "39.844307";
poi["Peebles"].longitude = "-77.200568";
poi["Peebles"].address = "1275 York Road";

poi["Battlefield Harley Davidson-Buell"] = new Object();
poi["Battlefield Harley Davidson-Buell"].type = "shopping";
poi["Battlefield Harley Davidson-Buell"].latitude = "39.846087";
poi["Battlefield Harley Davidson-Buell"].longitude = "-77.181513";
poi["Battlefield Harley Davidson-Buell"].address = "21 Cavalry Field Rd";

poi["Just Jennifer Gallery"] = new Object();
poi["Just Jennifer Gallery"].type = "shopping";
poi["Just Jennifer Gallery"].latitude = "39.830939";
poi["Just Jennifer Gallery"].longitude = "-77.230273";
poi["Just Jennifer Gallery"].address = "33 York Street";

poi["Gallery 30"] = new Object();
poi["Gallery 30"].type = "shopping";
poi["Gallery 30"].latitude = "39.830938";
poi["Gallery 30"].longitude = "-77.230345";
poi["Gallery 30"].address = "30 York St.";

poi["Hallmark"] = new Object();
poi["Hallmark"].type = "shopping";
poi["Hallmark"].latitude = "39.839484";
poi["Hallmark"].longitude = "-77.208519";
poi["Hallmark"].address = "44B Natural Springs Road";

poi["The House of Bender"] = new Object();
poi["The House of Bender"].type = "shopping";
poi["The House of Bender"].latitude = "39.830814";
poi["The House of Bender"].longitude = "-77.231099";
poi["The House of Bender"].address = "1 Baltimore Street";

poi["Main Street Gettysburg"] = new Object();
poi["Main Street Gettysburg"].type = "shopping";
poi["Main Street Gettysburg"].latitude = "39.832093";
poi["Main Street Gettysburg"].longitude = "-77.231105";
poi["Main Street Gettysburg"].address = "35 Carlisle Street";

// RESTAURANTS

poi["Dobbin House Tavern"] = new Object();
poi["Dobbin House Tavern"].type = "restaurants";
poi["Dobbin House Tavern"].latitude = "39.822915";
poi["Dobbin House Tavern"].longitude = "-77.232024";
poi["Dobbin House Tavern"].address = "89 Steinwehr Avenue";

poi["Ragged Edge Coffeehouse"] = new Object();
poi["Ragged Edge Coffeehouse"].type = "restaurants";
poi["Ragged Edge Coffeehouse"].latitude = "39.838301";
poi["Ragged Edge Coffeehouse"].longitude = "-77.252743";
poi["Ragged Edge Coffeehouse"].address = "110 Chambersburg Road";

poi["Herr Tavern & Publick House"] = new Object();
poi["Herr Tavern & Publick House"].type = "restaurants";
poi["Herr Tavern & Publick House"].latitude = "39.830885";
poi["Herr Tavern & Publick House"].longitude = "-77.235";
poi["Herr Tavern & Publick House"].address = "900 Chambersburg Street";

poi["Farnsworth House Inn and Restaurant"] = new Object();
poi["Farnsworth House Inn and Restaurant"].type = "restaurants";
poi["Farnsworth House Inn and Restaurant"].latitude = "39.825756";
poi["Farnsworth House Inn and Restaurant"].longitude = "-77.231068";
poi["Farnsworth House Inn and Restaurant"].address = "401 Baltimore Street";

poi["Centuries on the Square"] = new Object();
poi["Centuries on the Square"].type = "restaurants";
poi["Centuries on the Square"].latitude = "39.836955";
poi["Centuries on the Square"].longitude = "-77.23038";
poi["Centuries on the Square"].address = "1 Lincoln Square";

poi["Blue Parrot Bistro, Inc."] = new Object();
poi["Blue Parrot Bistro, Inc."].type = "restaurants";
poi["Blue Parrot Bistro, Inc."].latitude = "39.830923";
poi["Blue Parrot Bistro, Inc."].longitude = "-77.231967";
poi["Blue Parrot Bistro, Inc."].address = "35 Chambersburg Street";

poi["The Pub and Restaurant"] = new Object();
poi["The Pub and Restaurant"].type = "restaurants";
poi["The Pub and Restaurant"].latitude = "39.836955";
poi["The Pub and Restaurant"].longitude = "-77.23038";
poi["The Pub and Restaurant"].address = "21 Lincoln Square";

/*
poi["Antrim 1844"] = new Object();
poi["Antrim 1844"].type = "restaurants";
poi["Antrim 1844"].latitude = "asd";
poi["Antrim 1844"].longitude = "asd";
poi["Antrim 1844"].address = "30 Trevanion Road, Tanneytown, MD";
*/

poi["Ping\'s Café"] = new Object();
poi["Ping\'s Café"].type = "restaurants";
poi["Ping\'s Café"].latitude = "39.830448";
poi["Ping\'s Café"].longitude = "-77.231095";
poi["Ping\'s Café"].address = "34 Baltimore Street";

poi["Gingerbread Man"] = new Object();
poi["Gingerbread Man"].type = "restaurants";
poi["Gingerbread Man"].latitude = "39.820845";
poi["Gingerbread Man"].longitude = "-77.233520";
poi["Gingerbread Man"].address = "217 Steinwehr Avenue";

/*
poi["Ruby Tuesday"] = new Object();
poi["Ruby Tuesday"].type = "restaurants";
poi["Ruby Tuesday"].latitude = "asd";
poi["Ruby Tuesday"].longitude = "asd";
poi["Ruby Tuesday"].address = "25 Camp Letterman Drive";
*/

/*
poi["TGI Friday\'s"] = new Object();
poi["TGI Friday\'s"].type = "restaurants";
poi["TGI Friday\'s"].latitude = "asd";
poi["TGI Friday\'s"].longitude = "asd";
poi["TGI Friday\'s"].address = "1861 Gettysburg Village Dr.";
*/

// COMMUNITY SERVICES

poi["Gettysburg Library"] = new Object();
poi["Gettysburg Library"].type = "communityservices";
poi["Gettysburg Library"].latitude = "39.828982";
poi["Gettysburg Library"].longitude = "-77.231087";
poi["Gettysburg Library"].address = "140 Baltimore Street";

poi["Gettysburg Hospital"] = new Object();
poi["Gettysburg Hospital"].type = "communityservices";
poi["Gettysburg Hospital"].latitude = "39.823354";
poi["Gettysburg Hospital"].longitude = "-77.233718";
poi["Gettysburg Hospital"].address = "147 Gettys Street";

poi["Gettysburg Convention and Visitors Bureau"] = new Object();
poi["Gettysburg Convention and Visitors Bureau"].type = "communityservices";
poi["Gettysburg Convention and Visitors Bureau"].latitude = "39.832174";
poi["Gettysburg Convention and Visitors Bureau"].longitude = "-77.231106";
poi["Gettysburg Convention and Visitors Bureau"].address = "102 Carlisle Street";

poi["Gettysburg Area Chamber of Commerce"] = new Object();
poi["Gettysburg Area Chamber of Commerce"].type = "communityservices";
poi["Gettysburg Area Chamber of Commerce"].latitude = "39.831525";
poi["Gettysburg Area Chamber of Commerce"].longitude = "-77.231105";
poi["Gettysburg Area Chamber of Commerce"].address = "18 Carlisle Street, Suite 203";

/*
poi["Home Builder\'s Association of Adams County"] = new Object();
poi["Home Builder\'s Association of Adams County"].type = "communityservices";
poi["Home Builder\'s Association of Adams County"].latitude = "asd";
poi["Home Builder\'s Association of Adams County"].longitude = "asd";
poi["Home Builder\'s Association of Adams County"].address = "Gettysburg, PA";
*/

// ********************** END MAPPING **********************