$(window).load(function() {
});

	function initializeMap(mapid, mapimg, mapwidth, mapheight, bulletinfo){
		$(mapid).fadeOut(500, function(){
			$(mapid).empty().css({
				width: mapwidth+'px',
				height: mapheight+'px',
				backgroundImage: 'url(images/maps/'+mapimg+')',
				position: 'relative'
			});
			$(mapid).fadeIn();
			loadBullets(bulletinfo, false, mapid, mapimg, mapwidth, mapheight,bulletinfo);
		});
	}

	function addZoomable(id, width, height, top, left, mapid, mapimg, mapwidth, mapheight, bulletinfo, alt){
		$('<img class="zoomable" src="images/blank710x1060.gif" id="' + id + '" title="'+alt+'" alt="'+alt+'" />').css({
			border: 'none',
			position: 'absolute',
			width: width + 'px',
			height: height + 'px',
			top: top-5 + 'px',
			left: left-5 + 'px',
			cursor: 'pointer'
		}).appendTo(mapid).click(function() {
			$(this).siblings().fadeOut();
			$(this).hide()
				   .attr('src', 'images/maps/'+id+'.jpg')
				   .fadeIn('slow')
				   .animate({
						width: mapwidth+'px',
						height: mapheight+'px',
						top: '0px',
						left: '0px'
					}, 1000, '', function(){
						$(mapid).css({backgroundImage: 'url(images/maps/'+id+'.jpg)'}).empty();
						loadBullets(id, true, mapid, mapimg, mapwidth, mapheight,bulletinfo);
					});
		});
	}
	
	function loadBullets(id, back, mapid, mapimg, mapwidth, mapheight,bulletinfo){
		$(mapid).load('details/'+id+'.php', {}, function(){
			//add back button
			if(back){
				$('<a id="mapback" href="javascript:void(0)"><span>return to site map &gt;</span></a>')
					.appendTo(this)
					.click(function(){initializeMap(mapid, mapimg, mapwidth, mapheight, bulletinfo)});
			}
			else{
				switch(mapid){
					case '#eaglespringsmap':
						addZoomable('EagleSpringsLotsLowerLeft', 10, 10, 992, 112, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 2');	//updated
						addZoomable('EagleSpringsLotsLowerLeft', 10, 10, 967, 95, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 3');	//updated
						addZoomable('EagleSpringsLotsLowerLeft', 10, 10, 968, 67, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 4');	//updated
						addZoomable('EagleSpringsLotsLowerLeft', 10, 10, 995, 83, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 5');	//updated
						addZoomable('EagleSpringsLotsLowerLeft', 10, 10, 985, 49, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 6');	//updated
						addZoomable('EagleSpringsLotsLowerLeft', 10, 10, 955, 59, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 7');	//updated
						addZoomable('EagleSpringsLotsLowerLeft', 10, 10, 931, 80, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 8');	//updated
						addZoomable('EagleSpringsLotsLowerLeft', 10, 10, 919, 89, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 9');	//updated
						addZoomable('EagleSpringsLotsLowerLeft', 10, 10, 904, 100, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 10');	//updated
						addZoomable('EagleSpringsLotsLowerLeft', 10, 10, 895, 122, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 11');	//updated
						addZoomable('EagleSpringsLotsLowerRight', 10, 10, 910, 164, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 12');	//updated
						addZoomable('EagleSpringsLotsLowerRight', 10, 10, 945, 184, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 13');	//updated
						addZoomable('EagleSpringsLotsLowerRight', 10, 10, 974, 160, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 14');	//updated
						addZoomable('EagleSpringsLotsLowerLeft', 10, 10, 970, 136, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 15');	//updated
						addZoomable('EagleSpringsLotsLowerLeft', 10, 10, 958, 151, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 16');	//updated
						addZoomable('EagleSpringsLotsLowerLeft', 10, 10, 944, 139, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 17');	//updated
						addZoomable('EagleSpringsLotsLowerLeft', 10, 10, 921, 134, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 18');	//updated
						addZoomable('EagleSpringsLotsLowerRight', 10, 10, 950, 258, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 19');	//updated
						addZoomable('EagleSpringsLotsLowerRight', 10, 10, 931, 233, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 20');	//updated
						addZoomable('EagleSpringsLotsLowerRight', 10, 10, 959, 224, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 21');	//updated
						addZoomable('EagleSpringsLotsLowerRight', 10, 10, 981, 229, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 22');	//updated
						addZoomable('EagleSpringsLotsLowerRight', 10, 10, 996, 256, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 23');	//updated
						addZoomable('EagleSpringsLotsLowerRight', 10, 10, 967, 335, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 25');	//updated
						addZoomable('EagleSpringsLotsLowerRight', 10, 10, 923, 353, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 26');	//updated
						addZoomable('EagleSpringsLotsLowerRight', 10, 10, 942, 323, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 27');	//updated
						addZoomable('EagleSpringsLotsLowerRight', 10, 10, 943, 307, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 28');	//updated
						addZoomable('EagleSpringsLotsLowerRight', 10, 10, 942, 293, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 29');	//updated
						addZoomable('EagleSpringsLotsLowerRight', 10, 10, 953, 283, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 30');	//updated
						addZoomable('EagleSpringsLotsLowerRight', 10, 10, 914, 280, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 31');	//updated
						addZoomable('EagleSpringsLotsLowerRight', 10, 10, 904, 296, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 32');	//updated
						addZoomable('EagleSpringsLotsLowerRight', 10, 10, 907, 314, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 33');	//updated
						addZoomable('EagleSpringsLotsLowerRight', 10, 10, 894, 324, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 34');	//updated
						addZoomable('EagleSpringsLotsLowerRight', 10, 10, 882, 337, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 35');	//updated
//						addZoomable('EagleSpringsLot36', 10, 10, 854, 270, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 36');
						addZoomable('EagleSpringsLotsLowerRight', 10, 10, 884, 239, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 37');	//updated
						addZoomable('EagleSpringsLotsLowerRight', 10, 10, 783, 207, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 38');	//updated
						addZoomable('EagleSpringsLotsLowerRight', 10, 10, 821, 203, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 39');	//updated
						addZoomable('EagleSpringsLotsLowerRight', 10, 10, 854, 193, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 40');	//updated
						//addZoomable('EagleSpringsLot41', 10, 10, 857, 213, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 41');	//updated
						addZoomable('EagleSpringsLotsLowerRight', 10, 10, 857, 213, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 42');
						addZoomable('EagleSpringsLotsLowerRight', 10, 10, 851, 233, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 43');	//updated
						addZoomable('EagleSpringsLotsLowerRight', 10, 10, 822, 229, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 44');	//updated
						addZoomable('EagleSpringsLotsLowerRight', 10, 10, 808, 226, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 45');	//updated
						addZoomable('EagleSpringsLotsLowerRight', 10, 10, 829, 256, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 46');	//updated
						addZoomable('EagleSpringsLotsLowerRight', 10, 10, 826, 311, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 47');	//updated
						addZoomable('EagleSpringsLotsLowerRight', 10, 10, 807, 284, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 48');	//updated
						addZoomable('EagleSpringsLotsLowerRight', 10, 10, 776, 250, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 49');	//updated
						addZoomable('EagleSpringsLotsLowerRight', 10, 10, 765, 271, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 50');	//updated
						addZoomable('EagleSpringsLotsLowerRight', 10, 10, 760, 221, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 52');	//updated
						addZoomable('EagleSpringsLotsLowerRight', 10, 10, 742, 237, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 53');	//updated
//						addZoomable('EagleSpringsLot54', 10, 10, 716, 256, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 54');
						addZoomable('EagleSpringsLotsLowerRight', 10, 10, 703, 266, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 55');	//updated
						addZoomable('EagleSpringsLotsLowerRight', 10, 10, 691, 275, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 56');	//updated
						addZoomable('EagleSpringsLotsLowerRight', 10, 10, 679, 283, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 57');	//updated
						addZoomable('EagleSpringsLotsMiddle', 10, 10, 664, 294, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 58');	//updated
						addZoomable('EagleSpringsLotsMiddle', 10, 10, 644, 307, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 59');	//updated
						addZoomable('EagleSpringsLotsMiddle', 10, 10, 620, 316, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 60');	//updated
						addZoomable('EagleSpringsLotsMiddle', 10, 10, 591, 333, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 61');	//updated
						addZoomable('EagleSpringsLotsMiddle', 10, 10, 564, 350, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 62');	//updated
						addZoomable('EagleSpringsLotsMiddle', 10, 10, 534, 357, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 63');	//updated
						addZoomable('EagleSpringsLotsMiddle', 10, 10, 510, 377, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 64');	//updated
						addZoomable('EagleSpringsLotsUpperInnerRight', 10, 10, 491, 395, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 65');	//updated
						addZoomable('EagleSpringsLotsUpperInnerRight', 10, 10, 467, 412, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 66');	//updated
						addZoomable('EagleSpringsLotsUpperInnerRight', 10, 10, 459, 434, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 67');	//updated
						addZoomable('EagleSpringsLotsUpperInnerRight', 10, 10, 441, 466, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 68');	//updated
						addZoomable('EagleSpringsLotsUpperInnerRight', 10, 10, 418, 489, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 69');	//updated
						addZoomable('EagleSpringsLotsUpperInnerRight', 10, 10, 393, 507, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 70');	//updated
						addZoomable('EagleSpringsLotsUpperInnerRight', 10, 10, 371, 522, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 71');	//updated
						addZoomable('EagleSpringsLotsUpperInnerRight', 10, 10, 353, 532, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 72');	//updated
						addZoomable('EagleSpringsLotsUpperInnerRight', 10, 10, 332, 546, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 73');	//updated
						addZoomable('EagleSpringsLotsUpperInnerRight', 10, 10, 313, 555, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 74');	//updated
						addZoomable('EagleSpringsLotsUpperOuterRight', 10, 10, 289, 571, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 75');	//updated
						addZoomable('EagleSpringsLotsUpperOuterRight', 10, 10, 269, 571, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 76');	//updated
						addZoomable('EagleSpringsLotsUpperInnerRight', 10, 10, 270, 549, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 77');	//updated
						addZoomable('EagleSpringsLotsUpperInnerRight', 10, 10, 278, 530, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 78');	//updated
						addZoomable('EagleSpringsLotsUpperInnerRight', 10, 10, 292, 514, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 79');	//updated
						addZoomable('EagleSpringsLotsUpperInnerRight', 10, 10, 312, 493, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 80');	//updated
						addZoomable('EagleSpringsLotsUpperInnerRight', 10, 10, 328, 470, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 81');	//updated
						addZoomable('EagleSpringsLotsUpperInnerRight', 10, 10, 341, 448, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 82');	//updated
						addZoomable('EagleSpringsLotsUpperInnerRight', 10, 10, 359, 435, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 83');	//updated
						addZoomable('EagleSpringsLotsUpperInnerRight', 10, 10, 381, 423, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 84');	//updated
						addZoomable('EagleSpringsLotsUpperInnerRight', 10, 10, 397, 405, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 85');	//updated
						addZoomable('EagleSpringsLotsMiddle', 10, 10, 407, 386, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 86');	//updated
						addZoomable('EagleSpringsLotsMiddle', 10, 10, 474, 373, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 87');	//updated
						addZoomable('EagleSpringsLotsMiddle', 10, 10, 421, 375, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 88');	//updated
						addZoomable('EagleSpringsLotsMiddle', 10, 10, 431, 347, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 89');	//updated
						addZoomable('EagleSpringsLotsMiddle', 10, 10, 400, 357, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 90');	//updated
						addZoomable('EagleSpringsLotsMiddle', 10, 10, 381, 378, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 91');	//updated
						addZoomable('EagleSpringsLotsUpperInnerRight', 10, 10, 369, 398, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 92');	//updated
						addZoomable('EagleSpringsLotsUpperInnerRight', 10, 10, 351, 411, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 93');	//updated
						addZoomable('EagleSpringsLotsUpperInnerRight', 10, 10, 326, 422, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 94');	//updated
						addZoomable('EagleSpringsLotsUpperInnerRight', 10, 10, 313, 439, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 95');	//updated
						addZoomable('EagleSpringsLotsUpperInnerRight', 10, 10, 299, 467, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 96');	//updated
						addZoomable('EagleSpringsLotsUpperInnerRight', 10, 10, 274, 490, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 97');	//updated
						addZoomable('EagleSpringsLotsUpperInnerRight', 10, 10, 257, 511, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 98');	//updated
						addZoomable('EagleSpringsLotsUpperInnerRight', 10, 10, 246, 534, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 99');	//updated
						addZoomable('EagleSpringsLotsUpperOuterRight', 10, 10, 243, 560, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 100');	//updated
						addZoomable('EagleSpringsLotsUpperOuterRight', 10, 10, 246, 582, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 101');	//updated
						addZoomable('EagleSpringsLotsUpperOuterRight', 10, 10, 264, 629, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 102');	//updated
						addZoomable('EagleSpringsLotsUpperLeft', 10, 10, 351, 335, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 103');	//updated
						addZoomable('EagleSpringsLotsUpperLeft', 10, 10, 297, 329, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 104');	//updated
						addZoomable('EagleSpringsLotsUpperLeft', 10, 10, 278, 337, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 105');	//updated
						addZoomable('EagleSpringsLotsUpperLeft', 10, 10, 258, 343, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 106');	//updated
						addZoomable('EagleSpringsLotsUpperInnerRight', 10, 10, 239, 354, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 107');	//updated
						addZoomable('EagleSpringsLotsUpperInnerRight', 10, 10, 219, 358, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 108');	//updated
						addZoomable('EagleSpringsLotsUpperInnerRight', 10, 10, 199, 363, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 109');	//updated
						addZoomable('EagleSpringsLotsUpperInnerLeft', 10, 10, 172, 378, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 110');	//updated
						addZoomable('EagleSpringsLotsUpperInnerLeft', 10, 10, 128, 380, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 111');	//updated
						addZoomable('EagleSpringsLotsUpperLeft', 10, 10, 141, 333, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 112');	//updated
						addZoomable('EagleSpringsLotsUpperLeft', 10, 10, 328, 284, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 113');	//updated
						addZoomable('EagleSpringsLotsMiddle', 10, 10, 470, 317, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 114');	//updated
						addZoomable('EagleSpringsLotsUpperLeft', 10, 10, 346, 242, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 122');	//updated
						addZoomable('EagleSpringsLotsUpperLeft', 10, 10, 284, 182, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 125');	//updated
						addZoomable('EagleSpringsLotsUpperLeft', 10, 10, 267, 174, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 126');	//updated
						addZoomable('EagleSpringsLotsMiddle', 10, 10, 435, 264, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 130');	//updated
						addZoomable('EagleSpringsLotsUpperLeft', 10, 10, 413, 250, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 131');	//updated
						addZoomable('EagleSpringsLotsUpperLeft', 10, 10, 387, 234, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 133');	//updated
						addZoomable('EagleSpringsLotsUpperLeft', 10, 10, 372, 222, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 134');	//updated
						addZoomable('EagleSpringsLotsUpperLeft', 10, 10, 360, 210, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 135');	//updated
						addZoomable('EagleSpringsLotsUpperLeft', 10, 10, 337, 187, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 137');	//updated
						addZoomable('EagleSpringsLotsUpperLeft', 10, 10, 323, 167, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 139');	//updated
						addZoomable('EagleSpringsLotsUpperLeft', 10, 10, 356, 147, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 143');	//updated
						addZoomable('EagleSpringsLotsMiddle', 10, 10, 375, 154, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 144');	//updated
						addZoomable('EagleSpringsLotsMiddle', 10, 10, 396, 168, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 145');	//updated
						addZoomable('EagleSpringsLotsMiddle', 10, 10, 409, 177, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 146');	//updated
						addZoomable('EagleSpringsLotsMiddle', 10, 10, 534, 250, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 152');	//updated
						addZoomable('EagleSpringsLotsMiddle', 10, 10, 555, 244, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 153');	//updated
						addZoomable('EagleSpringsLotsMiddle', 10, 10, 579, 238, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 154');	//updated
						addZoomable('EagleSpringsLotsMiddle', 10, 10, 600, 230, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 155');	//updated
						addZoomable('EagleSpringsLotsMiddle', 10, 10, 617, 212, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 156');	//updated
						addZoomable('EagleSpringsLotsMiddle', 10, 10, 628, 197, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 157');	//updated
						addZoomable('EagleSpringsLotsMiddle', 10, 10, 642, 187, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 158');	//updated
						addZoomable('EagleSpringsLotsMiddle', 10, 10, 664, 203, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 159');	//updated
						addZoomable('EagleSpringsLotsMiddle', 10, 10, 654, 161, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 160');	//updated
						addZoomable('EagleSpringsLotsMiddle', 10, 10, 668, 173, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Lot 161');	//updated
						addZoomable('EagleSpringsLotsUpperLeft', 10, 10, 224, 283, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Parcel 0371B112.01');	//updated
						addZoomable('EagleSpringsLotsMiddle', 10, 10, 443, 236, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Parcel 0371B128.00');	//updated
						addZoomable('Legend', 10, 10, 529, 627, mapid, mapimg, mapwidth, mapheight, bulletinfo, 'Legend');	//updated
						break;
					case '#eaglespringsmaphorizontal':
						break;
					case '#map3':
						break;
				}
			}
			//place bullets
			$(this).children('a.bullet').each(function(){
				var coords = $(this).attr('rel').split('-');
				$(this).css({left: coords[0] + 'px', top: coords[1] + 'px'})
					   .hide()
					   .fadeIn()
					   .click(function(){showPopup($(this).attr('id'),mapid);});
			});
		});
	}
	
	function showPopup(id,mapid){
		$(mapid+' div.popup').fadeOut(); 
		var boxid = '#' + id + '-box';
		$(boxid).fadeIn();
		$('a.close').click(function(){
			$(this).parent().fadeOut();
		});
	}

	
	//initialize map
//	initializeMap('#eaglespringsmap','detailed_site_map_vert_710x1051.jpg',710,1051,'EagleSpringsSitemap');
//	initializeMap('#eaglespringsmap','Cabin_Detail_710x1060_vert.gif',710,1060,'EagleSpringsSitemap');
	//initializeMap('#map2','map2.jpg',400,218,'map2');
	


