var Porter = Porter || (function(){
    var _pageType  = ''; // private
	var _pageShow  = ''; // private
	var _filter    = new Array(); // private
	var _images    = new Array(); // private
	var _imgIdx    = 0; // private
	var _mapHeight = 650; // private
	var _lang      = new Array(); // private
	var _message   = null; // private
	var _debug     = false; // private

    return {
        init : function(Args) {
            _args = Args;
			if (Args['pageType']) {
				_pageType = Args['pageType'];
			}
			if (Args['pageShow']) {
				_pageShow = Args['pageShow'];
			}
			if (Args['images']) {
				_images = Args['images'];
			}
			if (Args['debug']) {
				_debug = Args['debug'];
			}
			this.debug(_pageType, _pageShow, _images, _debug);
			$(document).ready(function () {
				$("#lang_selector a").click( function (e) {
					// add hash to language switch URL
					if (location.hash) {
						location.href = $(this).attr("href") + location.hash;
						e.preventDefault();
					}
				});
				if (_pageType != 'main') {
					$("#hcard-VB-Porter-phone h1").click(function () {
						location.href = $("#nav_menu li:first a").attr("href");
					});
				}
				//$(window).bind('hashchange', function() {
				//   alert("Якорь изменен на "+window.location.hash);
				//});
				if ($("#slogan-rotation").length > 0 ) {
					//$("#slogan-rotation p").hide();
					//Porter.preloadImages();
					//$("#slogan-rotation").append(_images[_imgIdx]);
					//$("#headerimg").show();
					//window.setTimeout("Porter.changeImage()", 5000);
					var y = -20;
					$("#slogan-rotation p").each(function () {
						$(this).css({'line-height':'80px', 'position':'absolute', 'top':y+'px', 'width':'1000px'}).show();
						y += 60;
					});
				}
				if (Args['russian'] && Args['english']) {
					$("#search-form").after('<ul id="lang_selector" class="menu"><li><a href="' + Args['english'] + '" id="lang-en">English</a></li><li><a href="' + Args['russian'] + '" id="lang-ru">Русский</a></li></ul>');
					$("#lang-" + Args['current']).closest("li").addClass('active');
				}
				if ($("#brochure").length > 0) {
					Porter.seeCallback();
				}
				if ($("a.contact").length > 0) {
					$("a.contact").button({icons: {primary:'ui-icon-mail-open'}});
				}
				var value,
					states = ['success', 'highlight', 'error'];
				for (var key in states) {
					value = $.bbq.getState(states[key], true);
					if (value != null) {
						_message = value;
						Porter.messenger(states[key]);
						$.bbq.removeState(states[key]);
					}
				}
			});
			switch (_pageType) {
				case 'catalog':
					this.catalogInit();
					break;
				case 'news':
					$(document).ready(function(){
						$("#news.accordion").accordion({autoHeight: false});
						$("#news.accordion .newsBlock").hover(
							function () {
								$("h3 a, .more a, p", this).addClass('hover');
							},
							function () {
								$("h3 a, .more a, p", this).removeClass('hover');
							}
						);
						$("#news.accordion .newsBlock").click(function () {
							location.href = $("h3 a", this).attr("href");
						});
					});
					break;
				case 'contact':
					$(document).ready(function(){
						$('#contact #send').button({icons: {primary:'ui-icon-mail-closed'}});
					});
					break;
				case 'glossary':
					$(document).ready(function(){
						$("#glossary td").mouseover(function(){
							$(this).parent().toggleClass("active");
						});

						$("#glossary td").mouseout(function(){
							$(this).parent().removeClass("active");
						});
					});
					break;
				default:
					console.warn('unknown page type = "%s"', _pageType);
			}
        },
		catalogInit : function () {
			$(document).ready(function () {

			});
			switch (_pageShow) {
				case 'search':
					$(document).ready(function () {
						// initial setup
						var tabs = $('.tabs'),
							tab_a_selector = 'ul.ui-tabs-nav a';
						tabs.tabs({ event: 'change' });
						tabs.find( tab_a_selector ).click(function(){
							var state = {},
								id = $(this).closest( '.tabs' ).attr( 'ref' ),
								idx = $(this).attr('href').replace('#','');
							state[ id ] = idx;
							$.bbq.pushState( state );
						});
						$(window).bind( 'hashchange', function() {
							tabs.each(function(){
								var idx = $.bbq.getState( $(this).attr('ref'), true ) || 0;
								$(this).find( tab_a_selector + "[href='#" + idx + "']" ).triggerHandler( 'change' );
								var contentH = 0;
								$("#content").children("h2, p, .context").each(function () {
									contentH += parseInt($(this).css("height"));
									contentH += parseInt($(this).css("marginBottom"));
									contentH += parseInt($(this).css("paddingBottom"));
								});
								if ( contentH < _mapHeight) {
									$("#content").css('height',_mapHeight+'px');
								} else {
									$("#content").css('height',contentH+'px');
								}
							});
							if ((($.bbq.getState( 'subcategory', true ) == 'office' || $.bbq.getState( 'subcategory', true ) == null) && ($.bbq.getState( 'category', true ) == 'commercial' || $.bbq.getState( 'category', true ) == null)) || ($.bbq.getState( 'subcategory', true ) == null && $.bbq.getState( 'category', true ) == null)) {
								$('.toggle_calc').show();
							} else {
								$('.toggle_calc').hide();
							}
						});
						$(window).trigger( 'hashchange' );

						$("span[ref='if_active']").hide();
						// end of initial setup

						$(".markets .market").each(function(){
							// bind custom events for root markets
							$(this).bind("mark", function(){
								var id = $(this).attr("id");
								$("input", this).val(id);
								$(this).addClass("active");
								$("span[ref='if_active']", this).show();
								$("span[ref='if_inactive']", this).hide();
							});
							$(this).bind("unmark", function(){
								$("input", this).removeAttr("value");
								$(this).removeClass("active");
								$("span[ref='if_active']", this).hide();
								$("span[ref='if_inactive']", this).show();
							});
						});
						$(".markets .submarket").each(function(){
							// bind custom events for submarkets
							$(this).bind("mark", function() {
								$("input", this).val($("input", this).attr("title"));
								$("input", this).addClass("active");
								$(this).addClass("active");
								if (locations[$("input", this).attr("title")]) {
									locations[$("input", this).attr("title")]['normal'].setMap(map);
								}
							});
							$(this).bind("unmark", function() {
								$("input", this).removeAttr("value");
								$("input", this).removeClass("active");
								$(this).removeClass("active");
								if (locations[$("input", this).attr("title")]) {
									locations[$("input", this).attr("title")]['normal'].setMap(null);
								}
							});
							$(this).bind("mouseenter", function() {
								if (locations[$("input", this).attr("title")]) {
									locations[$("input", this).attr("title")]['hover'].setMap(map);
								}
							});
							$(this).bind("mouseleave", function() {
								if (locations[$("input", this).attr("title")]) {
									locations[$("input", this).attr("title")]['hover'].setMap(null);
								}
							});
						});
						$(".markets .market").click(function(){

							$(this).toggleClass("active");
							var id = $(this).attr("id");
							if($(this).hasClass("active")) {
								$("div."+id+" > .submarket").each(function(){
									$(this).trigger("mark");
								});
								$(this).trigger("mark");
							} else {
								$("div."+id+" > .submarket").each(function(){
									$(this).trigger("unmark");
								});
								$(this).trigger("unmark");
							}
						});
						$(".markets .submarket").click(function() {
							$(this).toggleClass("active");
							var id = $("input", this).attr("rel");
							if($(this).hasClass("active")) {
								$(this).trigger("mark");
								$("#"+id).trigger("mark");
							} else {
								$(this).trigger("unmark");
								if($("input[rel='" + id + "'].active").length == 0) {
									$("#"+id).trigger("unmark");
								}
							}
						});
						$('button').button();
						$('.showall a').button();
						$('.toggle_calc').button({icons: {primary:'ui-icon-newwin'}});
						$('.toggle_conv').button({icons: {primary:'ui-icon-newwin'}});
						$(".toggle_conv").click(function() {
							var w=screen.width;
							var h=screen.height;
							var st=document.documentElement.scrollTop;
							var sl=document.documentElement.scrollLeft;
							var convertr=$('#convertr');
							convertr.css("top", (w-convertr.height())/2+st-250);
							convertr.css("left", (h-convertr.width())/2+sl);

							convertr.toggle();
						});

						$(".toggle_calc").click(function() {
							var w=screen.width;
							var h=screen.height;
							var st=document.documentElement.scrollTop;
							var sl=document.documentElement.scrollLeft;
							var calculator=$('#calculator');
							calculator.css("top", (w-calculator.height())/2+st-410);
							calculator.css("left", (h-calculator.width())/2+sl+200);

							calculator.toggle();
						});
						$("#close_calc_bot").click(function() {
							var calculator=$('#calculator');
							calculator.toggle();
						});
						$("#close_conv_bot").click(function() {
							var convertr=$('#convertr');
							convertr.toggle();
						});
						$("#close_calc_top").click(function() {
							var calculator=$('#calculator');
							calculator.toggle();
						});
						$("#foot").keyup(function() {
							$("#metr").val(Math.round(Math.round($(this).val()*0.0929*1000)/1000));
						});
						$("#metr").keyup(function() {
							$("#foot").val(Math.round(Math.round($(this).val()*10.763*1000)/1000));
						});
						var dragOpt = {opacity: 0.9, containment: 'document'};
						$("#calculator").draggable(dragOpt);
						$("#convertr").draggable(dragOpt);
					});
					this.GMapInit();
					break;
				case 'results':
					$(document).ready(function(){
						Porter.fancyInit();
						$(".position h3 a, .position a.show").hover(
							function () {
								$(this).closest(".position").find("h3 a").addClass('hover');
								$(this).closest(".position").find("a.show").addClass('hover ui-state-hover');
							},
							function () {
								$(this).closest(".position").find("h3 a").removeClass('hover');
								$(this).closest(".position").find("a.show").removeClass('hover ui-state-hover');
							}
						);
						$("a.back").button({ icons: {primary:'ui-icon-circle-triangle-w'} });
						$("a.show").button();
					});
					break;
				case 'position':
					$(document).ready(function(){
						Porter.fancyInit();
					});
					break;
				default:
					console.warn('unknown catalog page = "%s"', _pageShow);
			}
		},
		rehash : function () {
			var hash = '#';
			if (_filter['category'] !== undefined && _filter['category'] !== null) {
				hash += _filter['category'];
			}
			if (_filter['subcategory'] !== undefined && _filter['subcategory'] !== null) {
				hash += '/' + _filter['subcategory'];
			}
			window.location.hash = hash;
		},

		preloadImages : function() {
			for(var i = 0; i<_images.length; i++) {
				_images[i] = $("<img>").attr({"src": _images[i], "id" : "headerimg", "style" : "display: none;"});
			}
		},
		changeImage : function () {

			_imgIdx++;

			if(!_images[_imgIdx]) {
				_imgIdx=0;
			}

			$("#headerimg").fadeOut("slow", function() {
				$("#headerimg").replaceWith(_images[_imgIdx]);
				$("#headerimg").fadeIn("slow");
			});

			window.setTimeout("Porter.changeImage()", 5000);
		},
		fancyInit : function () {
			$("a[rel=lightbox]").fancybox({
				'transitionIn'	 :	'elastic',
				'transitionOut'  :	'elastic',
				'showNavArrows'  :	false,
				'centerOnScroll' :	true
			});
		},
		seeCallback : function () {
			window.setTimeout(function() {
				$( "#brochure" ).effect( 'shake', {}, 300, Porter.seeCallback);
			}, 30000 );
		},
		showMessage : function (state) {
			$("#content").prepend('<div id="highlighter"></div><div id="messenger" class="ui-widget"><div class="ui-state-' + state + ' ui-corner-all" style="padding: 0 .7em;"><p><span class="ui-icon ui-icon-alert" style="float: left; margin-right: .3em;"></span>' + _lang['l'+_message] + '</p></div>');
			$("#messenger").css("margin-left", 0 - parseInt($("#messenger").css("width")) / 2);
			$("#messenger").hide();
			window.setTimeout(function() { $("#highlighter").hide('fade'); }, 1000);
			$("#messenger").show('bounce', function() { window.setTimeout(function() { $("#messenger").hide('fade'); }, 10000); });
		},
		messenger : function (state) {
			$.ajax({
				url: "/userfiles/lang/en.conf",
				dataType: 'text',
				success: function (data) {
					data = data.replace("\r", "");
					var lines = data.split("\n"),
						line;
					for (var i=0; i<lines.length; i++){
						line = lines[i].split(' = ');
						_lang[line[0]] = line[1];
					}
					Porter.showMessage(state);
				}
			});
		},
		GMapInit : function () {
			$(document).ready(function () {
				var myOptions = {
					center: new google.maps.LatLng(40.777, -73.945),
					zoom: 12,
					streetViewControl: false,
					mapTypeId: google.maps.MapTypeId.ROADMAP
				};
				$("#content").append('<div id="map_canvas"></div>');//alert(actH);
				$("#map_canvas").css({'width':'450px', 'height':_mapHeight+'px', 'position':'absolute', 'top':'10px', 'right':'10px'});
				map = new google.maps.Map(document.getElementById("map_canvas"),
					myOptions);
				locations = new Array();
				var locationCoords = new Array();
				//uptown
				locationCoords = [
					new google.maps.LatLng(40.765766,-73.951164),
					new google.maps.LatLng(40.766434,-73.950600),
					new google.maps.LatLng(40.767403,-73.949738),
					new google.maps.LatLng(40.767673,-73.949501),
					new google.maps.LatLng(40.769005,-73.948517),
					new google.maps.LatLng(40.771145,-73.946510),
					new google.maps.LatLng(40.771397,-73.946274),
					new google.maps.LatLng(40.772202,-73.945267),
					new google.maps.LatLng(40.772591,-73.944832),
					new google.maps.LatLng(40.772915,-73.944511),
					new google.maps.LatLng(40.773426,-73.944046),
					new google.maps.LatLng(40.774353,-73.943199),
					new google.maps.LatLng(40.774879,-73.942787),
					new google.maps.LatLng(40.775414,-73.942497),
					new google.maps.LatLng(40.775757,-73.942398),
					new google.maps.LatLng(40.776016,-73.941978),
					new google.maps.LatLng(40.776413,-73.941956),
					new google.maps.LatLng(40.776447,-73.942032),
					new google.maps.LatLng(40.777000,-73.942062),
					new google.maps.LatLng(40.777100,-73.942162),
					new google.maps.LatLng(40.777164,-73.942352),
					new google.maps.LatLng(40.777203,-73.942352),
					new google.maps.LatLng(40.777233,-73.942314),
					new google.maps.LatLng(40.777161,-73.942162),
					new google.maps.LatLng(40.777245,-73.942093),
					new google.maps.LatLng(40.777287,-73.942154),
					new google.maps.LatLng(40.777313,-73.942230),
					new google.maps.LatLng(40.777351,-73.942223),
					new google.maps.LatLng(40.777351,-73.942253),
					new google.maps.LatLng(40.777332,-73.942268),
					new google.maps.LatLng(40.777416,-73.942459),
					new google.maps.LatLng(40.778141,-73.942657),
					new google.maps.LatLng(40.778625,-73.942886),
					new google.maps.LatLng(40.779099,-73.942535),
					new google.maps.LatLng(40.779152,-73.942543),
					new google.maps.LatLng(40.779190,-73.942734),
					new google.maps.LatLng(40.779305,-73.942619),
					new google.maps.LatLng(40.779541,-73.942757),
					new google.maps.LatLng(40.779495,-73.942818),
					new google.maps.LatLng(40.779537,-73.942932),
					new google.maps.LatLng(40.779591,-73.942909),
					new google.maps.LatLng(40.779617,-73.942970),
					new google.maps.LatLng(40.779308,-73.943207),
					new google.maps.LatLng(40.780201,-73.943619),
					new google.maps.LatLng(40.781284,-73.943871),
					new google.maps.LatLng(40.781586,-73.943871),
					new google.maps.LatLng(40.782700,-73.943634),
					new google.maps.LatLng(40.782932,-73.943489),
					new google.maps.LatLng(40.783379,-73.943192),
					new google.maps.LatLng(40.783955,-73.942383),
					new google.maps.LatLng(40.785103,-73.940102),
					new google.maps.LatLng(40.785278,-73.939789),
					new google.maps.LatLng(40.787106,-73.938164),
					new google.maps.LatLng(40.787670,-73.937805),
					new google.maps.LatLng(40.789185,-73.937126),
					new google.maps.LatLng(40.788792,-73.936211),
					new google.maps.LatLng(40.788940,-73.936089),
					new google.maps.LatLng(40.789364,-73.937073),
					new google.maps.LatLng(40.791111,-73.935799),
					new google.maps.LatLng(40.791317,-73.935524),
					new google.maps.LatLng(40.791260,-73.935440),
					new google.maps.LatLng(40.791477,-73.935188),
					new google.maps.LatLng(40.791523,-73.935272),
					new google.maps.LatLng(40.792866,-73.933327),
					new google.maps.LatLng(40.794613,-73.930153),
					new google.maps.LatLng(40.795071,-73.929825),
					new google.maps.LatLng(40.795883,-73.929260),
					new google.maps.LatLng(40.796803,-73.929039),
					new google.maps.LatLng(40.797825,-73.928978),
					new google.maps.LatLng(40.799553,-73.928894),
					new google.maps.LatLng(40.799919,-73.928902),
					new google.maps.LatLng(40.799892,-73.928940),
					new google.maps.LatLng(40.801067,-73.929047),
					new google.maps.LatLng(40.801128,-73.929222),
					new google.maps.LatLng(40.801762,-73.929367),
					new google.maps.LatLng(40.803104,-73.930046),
					new google.maps.LatLng(40.803268,-73.929901),
					new google.maps.LatLng(40.804729,-73.930862),
					new google.maps.LatLng(40.807232,-73.933243),
					new google.maps.LatLng(40.808857,-73.934319),
					new google.maps.LatLng(40.810139,-73.934509),
					new google.maps.LatLng(40.812347,-73.934059),
					new google.maps.LatLng(40.815189,-73.933929),
					new google.maps.LatLng(40.815628,-73.933975),
					new google.maps.LatLng(40.815628,-73.933823),
					new google.maps.LatLng(40.818405,-73.933807),
					new google.maps.LatLng(40.822613,-73.934151),
					new google.maps.LatLng(40.824688,-73.934296),
					new google.maps.LatLng(40.829494,-73.934685),
					new google.maps.LatLng(40.834007,-73.935112),
					new google.maps.LatLng(40.835567,-73.934814),
					new google.maps.LatLng(40.836006,-73.934448),
					new google.maps.LatLng(40.837402,-73.933762),
					new google.maps.LatLng(40.843536,-73.930389),
					new google.maps.LatLng(40.844772,-73.929962),
					new google.maps.LatLng(40.855808,-73.922279),
					new google.maps.LatLng(40.856621,-73.922302),
					new google.maps.LatLng(40.858257,-73.920891),
					new google.maps.LatLng(40.859524,-73.922028),
					new google.maps.LatLng(40.860306,-73.921402),
					new google.maps.LatLng(40.859264,-73.920670),
					new google.maps.LatLng(40.858761,-73.919426),
					new google.maps.LatLng(40.860920,-73.917885),
					new google.maps.LatLng(40.861942,-73.916985),
					new google.maps.LatLng(40.863049,-73.915459),
					new google.maps.LatLng(40.863892,-73.915222),
					new google.maps.LatLng(40.864265,-73.916039),
					new google.maps.LatLng(40.864426,-73.914597),
					new google.maps.LatLng(40.864899,-73.913589),
					new google.maps.LatLng(40.866535,-73.912537),
					new google.maps.LatLng(40.866634,-73.912796),
					new google.maps.LatLng(40.869164,-73.910995),
					new google.maps.LatLng(40.869408,-73.911575),
					new google.maps.LatLng(40.869572,-73.911293),
					new google.maps.LatLng(40.869408,-73.910912),
					new google.maps.LatLng(40.871063,-73.910675),
					new google.maps.LatLng(40.871468,-73.910439),
					new google.maps.LatLng(40.872475,-73.910736),
					new google.maps.LatLng(40.873463,-73.911766),
					new google.maps.LatLng(40.874111,-73.913849),
					new google.maps.LatLng(40.874519,-73.915115),
					new google.maps.LatLng(40.874599,-73.916183),
					new google.maps.LatLng(40.874195,-73.917580),
					new google.maps.LatLng(40.873981,-73.918098),
					new google.maps.LatLng(40.873367,-73.918419),
					new google.maps.LatLng(40.873302,-73.918716),
					new google.maps.LatLng(40.873627,-73.919151),
					new google.maps.LatLng(40.874130,-73.919319),
					new google.maps.LatLng(40.874634,-73.918976),
					new google.maps.LatLng(40.875443,-73.920891),
					new google.maps.LatLng(40.875118,-73.921211),
					new google.maps.LatLng(40.873901,-73.920006),
					new google.maps.LatLng(40.873333,-73.920326),
					new google.maps.LatLng(40.873173,-73.920998),
					new google.maps.LatLng(40.873726,-73.922112),
					new google.maps.LatLng(40.874699,-73.922646),
					new google.maps.LatLng(40.875687,-73.922409),
					new google.maps.LatLng(40.876888,-73.922302),
					new google.maps.LatLng(40.877472,-73.923248),
					new google.maps.LatLng(40.877422,-73.923889),
					new google.maps.LatLng(40.877586,-73.924232),
					new google.maps.LatLng(40.877586,-73.924965),
					new google.maps.LatLng(40.877068,-73.926468),
					new google.maps.LatLng(40.877586,-73.926575),
					new google.maps.LatLng(40.876595,-73.927841),
					new google.maps.LatLng(40.876240,-73.928528),
					new google.maps.LatLng(40.875134,-73.929489),
					new google.maps.LatLng(40.872166,-73.931358),
					new google.maps.LatLng(40.870220,-73.932129),
					new google.maps.LatLng(40.867901,-73.932304),
					new google.maps.LatLng(40.858860,-73.938568),
					new google.maps.LatLng(40.856930,-73.940132),
					new google.maps.LatLng(40.852985,-73.942642),
					new google.maps.LatLng(40.850552,-73.946915),
					new google.maps.LatLng(40.848488,-73.946632),
					new google.maps.LatLng(40.847076,-73.946831),
					new google.maps.LatLng(40.845860,-73.946510),
					new google.maps.LatLng(40.844299,-73.946037),
					new google.maps.LatLng(40.839611,-73.948547),
					new google.maps.LatLng(40.836884,-73.949577),
					new google.maps.LatLng(40.834351,-73.950134),
					new google.maps.LatLng(40.831070,-73.952347),
					new google.maps.LatLng(40.827400,-73.955070),
					new google.maps.LatLng(40.827904,-73.956314),
					new google.maps.LatLng(40.826897,-73.956932),
					new google.maps.LatLng(40.827061,-73.957321),
					new google.maps.LatLng(40.823635,-73.959465),
					new google.maps.LatLng(40.822853,-73.957962),
					new google.maps.LatLng(40.820450,-73.959618),
					new google.maps.LatLng(40.820354,-73.959984),
					new google.maps.LatLng(40.815807,-73.963951),
					new google.maps.LatLng(40.809830,-73.968155),
					new google.maps.LatLng(40.802685,-73.973221),
					new google.maps.LatLng(40.795406,-73.978371),
					new google.maps.LatLng(40.786438,-73.984657),
					new google.maps.LatLng(40.781277,-73.988121),
					new google.maps.LatLng(40.776218,-73.975983),
					new google.maps.LatLng(40.772442,-73.966995),
					new google.maps.LatLng(40.769768,-73.960594),
					new google.maps.LatLng(40.769054,-73.959045),
					new google.maps.LatLng(40.768784,-73.958427),
					new google.maps.LatLng(40.765766,-73.951164)
				];
				locations[16] = new Array();
				locations[16]['normal'] = new google.maps.Polygon({
					paths: locationCoords,
					strokeColor: "#FF0000",
					strokeOpacity: 0.8,
					strokeWeight: 3,
					fillColor: "#FF0000",
					fillOpacity: 0.35
				});
				locations[16]['hover'] = new google.maps.Polygon({
					paths: locationCoords,
					strokeColor: "#CC0000",
					strokeOpacity: 0.4,
					strokeWeight: 1,
					fillColor: "#CC0000",
					fillOpacity: 0.15
				});
				// midtown
				locationCoords = [
					new google.maps.LatLng(40.765762,-73.951164),
					new google.maps.LatLng(40.767803,-73.955994),
					new google.maps.LatLng(40.768818,-73.958511),
					new google.maps.LatLng(40.769222,-73.959435),
					new google.maps.LatLng(40.769760,-73.960594),
					new google.maps.LatLng(40.770466,-73.962250),
					new google.maps.LatLng(40.771797,-73.965462),
					new google.maps.LatLng(40.772457,-73.967056),
					new google.maps.LatLng(40.776211,-73.975967),
					new google.maps.LatLng(40.777424,-73.978851),
					new google.maps.LatLng(40.778606,-73.981636),
					new google.maps.LatLng(40.779800,-73.984497),
					new google.maps.LatLng(40.780842,-73.987022),
					new google.maps.LatLng(40.781281,-73.988121),
					new google.maps.LatLng(40.779942,-73.989006),
					new google.maps.LatLng(40.779816,-73.988968),
					new google.maps.LatLng(40.779678,-73.991409),
					new google.maps.LatLng(40.779514,-73.991516),
					new google.maps.LatLng(40.779671,-73.988846),
					new google.maps.LatLng(40.777615,-73.990326),
					new google.maps.LatLng(40.777565,-73.990585),
					new google.maps.LatLng(40.777611,-73.990746),
					new google.maps.LatLng(40.777515,-73.990898),
					new google.maps.LatLng(40.775337,-73.992455),
					new google.maps.LatLng(40.775105,-73.992409),
					new google.maps.LatLng(40.774906,-73.992477),
					new google.maps.LatLng(40.774914,-73.992607),
					new google.maps.LatLng(40.773693,-73.993446),
					new google.maps.LatLng(40.773479,-73.993683),
					new google.maps.LatLng(40.773357,-73.993706),
					new google.maps.LatLng(40.773319,-73.993843),
					new google.maps.LatLng(40.773232,-73.993835),
					new google.maps.LatLng(40.773121,-73.993889),
					new google.maps.LatLng(40.774014,-73.996017),
					new google.maps.LatLng(40.773872,-73.996124),
					new google.maps.LatLng(40.773830,-73.996056),
					new google.maps.LatLng(40.773727,-73.996132),
					new google.maps.LatLng(40.773296,-73.995117),
					new google.maps.LatLng(40.773422,-73.995026),
					new google.maps.LatLng(40.773102,-73.994232),
					new google.maps.LatLng(40.772991,-73.994339),
					new google.maps.LatLng(40.772781,-73.993866),
					new google.maps.LatLng(40.772404,-73.994156),
					new google.maps.LatLng(40.773220,-73.996094),
					new google.maps.LatLng(40.773109,-73.996185),
					new google.maps.LatLng(40.772343,-73.994408),
					new google.maps.LatLng(40.771877,-73.994751),
					new google.maps.LatLng(40.772758,-73.996864),
					new google.maps.LatLng(40.772545,-73.997047),
					new google.maps.LatLng(40.771610,-73.994934),
					new google.maps.LatLng(40.771561,-73.994987),
					new google.maps.LatLng(40.771454,-73.994911),
					new google.maps.LatLng(40.771381,-73.994972),
					new google.maps.LatLng(40.771397,-73.995010),
					new google.maps.LatLng(40.771397,-73.995094),
					new google.maps.LatLng(40.771133,-73.995285),
					new google.maps.LatLng(40.771389,-73.995888),
					new google.maps.LatLng(40.771275,-73.995956),
					new google.maps.LatLng(40.771172,-73.995720),
					new google.maps.LatLng(40.771111,-73.995743),
					new google.maps.LatLng(40.770985,-73.995399),
					new google.maps.LatLng(40.770496,-73.995758),
					new google.maps.LatLng(40.770565,-73.995872),
					new google.maps.LatLng(40.770401,-73.995995),
					new google.maps.LatLng(40.770344,-73.995850),
					new google.maps.LatLng(40.769749,-73.996292),
					new google.maps.LatLng(40.770771,-73.998718),
					new google.maps.LatLng(40.770451,-73.998955),
					new google.maps.LatLng(40.769398,-73.996567),
					new google.maps.LatLng(40.768707,-73.997055),
					new google.maps.LatLng(40.769699,-73.999374),
					new google.maps.LatLng(40.769367,-73.999641),
					new google.maps.LatLng(40.768044,-73.996437),
					new google.maps.LatLng(40.767113,-73.997124),
					new google.maps.LatLng(40.768105,-73.999550),
					new google.maps.LatLng(40.768456,-74.000397),
					new google.maps.LatLng(40.768162,-74.000603),
					new google.maps.LatLng(40.767902,-74.000031),
					new google.maps.LatLng(40.766808,-73.997383),
					new google.maps.LatLng(40.765938,-73.997986),
					new google.maps.LatLng(40.767303,-74.001244),
					new google.maps.LatLng(40.766804,-74.001595),
					new google.maps.LatLng(40.766739,-74.001488),
					new google.maps.LatLng(40.765385,-73.998314),
					new google.maps.LatLng(40.765003,-73.998489),
					new google.maps.LatLng(40.764511,-73.998863),
					new google.maps.LatLng(40.765846,-74.001999),
					new google.maps.LatLng(40.765476,-74.002274),
					new google.maps.LatLng(40.764164,-73.999130),
					new google.maps.LatLng(40.763515,-73.999588),
					new google.maps.LatLng(40.763355,-73.999908),
					new google.maps.LatLng(40.764614,-74.002876),
					new google.maps.LatLng(40.764290,-74.003113),
					new google.maps.LatLng(40.764069,-74.002586),
					new google.maps.LatLng(40.763374,-74.000923),
					new google.maps.LatLng(40.762779,-74.001358),
					new google.maps.LatLng(40.763718,-74.003601),
					new google.maps.LatLng(40.763546,-74.003746),
					new google.maps.LatLng(40.763496,-74.003647),
					new google.maps.LatLng(40.762592,-74.001518),
					new google.maps.LatLng(40.762154,-74.001854),
					new google.maps.LatLng(40.762131,-74.001816),
					new google.maps.LatLng(40.761696,-74.002167),
					new google.maps.LatLng(40.762608,-74.004272),
					new google.maps.LatLng(40.762630,-74.004410),
					new google.maps.LatLng(40.762451,-74.004539),
					new google.maps.LatLng(40.761520,-74.002327),
					new google.maps.LatLng(40.760876,-74.002762),
					new google.maps.LatLng(40.761024,-74.003098),
					new google.maps.LatLng(40.759960,-74.003914),
					new google.maps.LatLng(40.759792,-74.003548),
					new google.maps.LatLng(40.759655,-74.003654),
					new google.maps.LatLng(40.759846,-74.004097),
					new google.maps.LatLng(40.759647,-74.004219),
					new google.maps.LatLng(40.759579,-74.004066),
					new google.maps.LatLng(40.759037,-74.004478),
					new google.maps.LatLng(40.759850,-74.006470),
					new google.maps.LatLng(40.759144,-74.006981),
					new google.maps.LatLng(40.758305,-74.004997),
					new google.maps.LatLng(40.757977,-74.005234),
					new google.maps.LatLng(40.757854,-74.004974),
					new google.maps.LatLng(40.757771,-74.004890),
					new google.maps.LatLng(40.757668,-74.004860),
					new google.maps.LatLng(40.757233,-74.005165),
					new google.maps.LatLng(40.757252,-74.005402),
					new google.maps.LatLng(40.754887,-74.007111),
					new google.maps.LatLng(40.754932,-74.007240),
					new google.maps.LatLng(40.754807,-74.007332),
					new google.maps.LatLng(40.747269,-73.989601),
					new google.maps.LatLng(40.748512,-73.988708),
					new google.maps.LatLng(40.741535,-73.972099),
					new google.maps.LatLng(40.742302,-73.971947),
					new google.maps.LatLng(40.742622,-73.971725),
					new google.maps.LatLng(40.742683,-73.971870),
					new google.maps.LatLng(40.743725,-73.971184),
					new google.maps.LatLng(40.743790,-73.971344),
					new google.maps.LatLng(40.743996,-73.971207),
					new google.maps.LatLng(40.743797,-73.970665),
					new google.maps.LatLng(40.743923,-73.970573),
					new google.maps.LatLng(40.744156,-73.971100),
					new google.maps.LatLng(40.744434,-73.970909),
					new google.maps.LatLng(40.744354,-73.970764),
					new google.maps.LatLng(40.744984,-73.970299),
					new google.maps.LatLng(40.745010,-73.970329),
					new google.maps.LatLng(40.745445,-73.969963),
					new google.maps.LatLng(40.745415,-73.969833),
					new google.maps.LatLng(40.746494,-73.968964),
					new google.maps.LatLng(40.746487,-73.968903),
					new google.maps.LatLng(40.747334,-73.968216),
					new google.maps.LatLng(40.747395,-73.968353),
					new google.maps.LatLng(40.750435,-73.965797),
					new google.maps.LatLng(40.752548,-73.963898),
					new google.maps.LatLng(40.753548,-73.962990),
					new google.maps.LatLng(40.755131,-73.961601),
					new google.maps.LatLng(40.755527,-73.961082),
					new google.maps.LatLng(40.755795,-73.960762),
					new google.maps.LatLng(40.756386,-73.960236),
					new google.maps.LatLng(40.756542,-73.960182),
					new google.maps.LatLng(40.757210,-73.959648),
					new google.maps.LatLng(40.757732,-73.959290),
					new google.maps.LatLng(40.758224,-73.958755),
					new google.maps.LatLng(40.758495,-73.958527),
					new google.maps.LatLng(40.758759,-73.958252),
					new google.maps.LatLng(40.758865,-73.958092),
					new google.maps.LatLng(40.759823,-73.957054),
					new google.maps.LatLng(40.760727,-73.956055),
					new google.maps.LatLng(40.761730,-73.954956),
					new google.maps.LatLng(40.762600,-73.954079),
					new google.maps.LatLng(40.763577,-73.953148),
					new google.maps.LatLng(40.764549,-73.952225),
					new google.maps.LatLng(40.765320,-73.951569),
					new google.maps.LatLng(40.765762,-73.951164)
				];
				locations[17] = new Array();
				locations[17]['normal'] = new google.maps.Polygon({
					paths: locationCoords,
					strokeColor: "#FF0000",
					strokeOpacity: 0.8,
					strokeWeight: 3,
					fillColor: "#FF0000",
					fillOpacity: 0.35
				});
				locations[17]['hover'] = new google.maps.Polygon({
					paths: locationCoords,
					strokeColor: "#CC0000",
					strokeOpacity: 0.4,
					strokeWeight: 1,
					fillColor: "#CC0000",
					fillOpacity: 0.15
				});
				locationCoords = [
					new google.maps.LatLng(40.754803,-74.007332),
					new google.maps.LatLng(40.747272,-73.989616),
					new google.maps.LatLng(40.748512,-73.988708),
					new google.maps.LatLng(40.741535,-73.972099),
					new google.maps.LatLng(40.740673,-73.972282),
					new google.maps.LatLng(40.740658,-73.972153),
					new google.maps.LatLng(40.739967,-73.972290),
					new google.maps.LatLng(40.739986,-73.972435),
					new google.maps.LatLng(40.739204,-73.972641),
					new google.maps.LatLng(40.735752,-73.972481),
					new google.maps.LatLng(40.736382,-73.974411),
					new google.maps.LatLng(40.735699,-73.974564),
					new google.maps.LatLng(40.731243,-73.973427),
					new google.maps.LatLng(40.729259,-73.971794),
					new google.maps.LatLng(40.726105,-73.971901),
					new google.maps.LatLng(40.725079,-73.971947),
					new google.maps.LatLng(40.717598,-73.973961),
					new google.maps.LatLng(40.714737,-73.975037),
					new google.maps.LatLng(40.711727,-73.976517),
					new google.maps.LatLng(40.710751,-73.977631),
					new google.maps.LatLng(40.710526,-73.978081),
					new google.maps.LatLng(40.710461,-73.978554),
					new google.maps.LatLng(40.710247,-73.981255),
					new google.maps.LatLng(40.709808,-73.981216),
					new google.maps.LatLng(40.709110,-73.988358),
					new google.maps.LatLng(40.709938,-73.988617),
					new google.maps.LatLng(40.709549,-73.991943),
					new google.maps.LatLng(40.716003,-73.995544),
					new google.maps.LatLng(40.717354,-73.999153),
					new google.maps.LatLng(40.726185,-74.011559),
					new google.maps.LatLng(40.728210,-74.011421),
					new google.maps.LatLng(40.728451,-74.014420),
					new google.maps.LatLng(40.730675,-74.014099),
					new google.maps.LatLng(40.730434,-74.011208),
					new google.maps.LatLng(40.734657,-74.010757),
					new google.maps.LatLng(40.739136,-74.010330),
					new google.maps.LatLng(40.739178,-74.011414),
					new google.maps.LatLng(40.739243,-74.011559),
					new google.maps.LatLng(40.740681,-74.011414),
					new google.maps.LatLng(40.740585,-74.009613),
					new google.maps.LatLng(40.740707,-74.009483),
					new google.maps.LatLng(40.741852,-74.009239),
					new google.maps.LatLng(40.744869,-74.008713),
					new google.maps.LatLng(40.744949,-74.009560),
					new google.maps.LatLng(40.745266,-74.009552),
					new google.maps.LatLng(40.745495,-74.011742),
					new google.maps.LatLng(40.745926,-74.011673),
					new google.maps.LatLng(40.745811,-74.010567),
					new google.maps.LatLng(40.745850,-74.010513),
					new google.maps.LatLng(40.745720,-74.009422),
					new google.maps.LatLng(40.746315,-74.009331),
					new google.maps.LatLng(40.746552,-74.011543),
					new google.maps.LatLng(40.746948,-74.011482),
					new google.maps.LatLng(40.746712,-74.009193),
					new google.maps.LatLng(40.747330,-74.009117),
					new google.maps.LatLng(40.747581,-74.011375),
					new google.maps.LatLng(40.747963,-74.011307),
					new google.maps.LatLng(40.747746,-74.009033),
					new google.maps.LatLng(40.748409,-74.008904),
					new google.maps.LatLng(40.748581,-74.010590),
					new google.maps.LatLng(40.748940,-74.010490),
					new google.maps.LatLng(40.748898,-74.009911),
					new google.maps.LatLng(40.749039,-74.009872),
					new google.maps.LatLng(40.748974,-74.009583),
					new google.maps.LatLng(40.750332,-74.009087),
					new google.maps.LatLng(40.751003,-74.010635),
					new google.maps.LatLng(40.751263,-74.010513),
					new google.maps.LatLng(40.750622,-74.008957),
					new google.maps.LatLng(40.751816,-74.008553),
					new google.maps.LatLng(40.752499,-74.010117),
					new google.maps.LatLng(40.752571,-74.010086),
					new google.maps.LatLng(40.751980,-74.008484),
					new google.maps.LatLng(40.752144,-74.008415),
					new google.maps.LatLng(40.752384,-74.008972),
					new google.maps.LatLng(40.752506,-74.008850),
					new google.maps.LatLng(40.752262,-74.008301),
					new google.maps.LatLng(40.754246,-74.007599),
					new google.maps.LatLng(40.754303,-74.007706),
					new google.maps.LatLng(40.754475,-74.007584),
					new google.maps.LatLng(40.754440,-74.007439),
					new google.maps.LatLng(40.754684,-74.007256),
					new google.maps.LatLng(40.754803,-74.007332)
				];
				locations[18] = new Array();
				locations[18]['normal'] = new google.maps.Polygon({
					paths: locationCoords,
					strokeColor: "#FF0000",
					strokeOpacity: 0.8,
					strokeWeight: 3,
					fillColor: "#FF0000",
					fillOpacity: 0.35
				});
				locations[18]['hover'] = new google.maps.Polygon({
					paths: locationCoords,
					strokeColor: "#CC0000",
					strokeOpacity: 0.4,
					strokeWeight: 1,
					fillColor: "#CC0000",
					fillOpacity: 0.15
				});
				//downtown
				locationCoords = [
					new google.maps.LatLng(40.726200,-74.011581),
					new google.maps.LatLng(40.721455,-74.012527),
					new google.maps.LatLng(40.721516,-74.013054),
					new google.maps.LatLng(40.721218,-74.013123),
					new google.maps.LatLng(40.721504,-74.015579),
					new google.maps.LatLng(40.721180,-74.015640),
					new google.maps.LatLng(40.720840,-74.012840),
					new google.maps.LatLng(40.720291,-74.012955),
					new google.maps.LatLng(40.720699,-74.016273),
					new google.maps.LatLng(40.720348,-74.016350),
					new google.maps.LatLng(40.719990,-74.013359),
					new google.maps.LatLng(40.719776,-74.013405),
					new google.maps.LatLng(40.719704,-74.012871),
					new google.maps.LatLng(40.718285,-74.013176),
					new google.maps.LatLng(40.718292,-74.013268),
					new google.maps.LatLng(40.718353,-74.013710),
					new google.maps.LatLng(40.718525,-74.014999),
					new google.maps.LatLng(40.718525,-74.015312),
					new google.maps.LatLng(40.718498,-74.015503),
					new google.maps.LatLng(40.718636,-74.016632),
					new google.maps.LatLng(40.718616,-74.016670),
					new google.maps.LatLng(40.718567,-74.016678),
					new google.maps.LatLng(40.716461,-74.017067),
					new google.maps.LatLng(40.716488,-74.017273),
					new google.maps.LatLng(40.716610,-74.017250),
					new google.maps.LatLng(40.716625,-74.017395),
					new google.maps.LatLng(40.716316,-74.017441),
					new google.maps.LatLng(40.716301,-74.017319),
					new google.maps.LatLng(40.716434,-74.017281),
					new google.maps.LatLng(40.716408,-74.017075),
					new google.maps.LatLng(40.714199,-74.017502),
					new google.maps.LatLng(40.713036,-74.017693),
					new google.maps.LatLng(40.713020,-74.017670),
					new google.maps.LatLng(40.713032,-74.017632),
					new google.maps.LatLng(40.713566,-74.017548),
					new google.maps.LatLng(40.713505,-74.017197),
					new google.maps.LatLng(40.713425,-74.017220),
					new google.maps.LatLng(40.713425,-74.017235),
					new google.maps.LatLng(40.713257,-74.017296),
					new google.maps.LatLng(40.713242,-74.017227),
					new google.maps.LatLng(40.713417,-74.017174),
					new google.maps.LatLng(40.713421,-74.017204),
					new google.maps.LatLng(40.713509,-74.017181),
					new google.maps.LatLng(40.713463,-74.016930),
					new google.maps.LatLng(40.713390,-74.016953),
					new google.maps.LatLng(40.713390,-74.016975),
					new google.maps.LatLng(40.713215,-74.017014),
					new google.maps.LatLng(40.713211,-74.016975),
					new google.maps.LatLng(40.713379,-74.016922),
					new google.maps.LatLng(40.713383,-74.016945),
					new google.maps.LatLng(40.713463,-74.016922),
					new google.maps.LatLng(40.713379,-74.016312),
					new google.maps.LatLng(40.713085,-74.016403),
					new google.maps.LatLng(40.712826,-74.016602),
					new google.maps.LatLng(40.712643,-74.016624),
					new google.maps.LatLng(40.712421,-74.016548),
					new google.maps.LatLng(40.712166,-74.016617),
					new google.maps.LatLng(40.712189,-74.016808),
					new google.maps.LatLng(40.712170,-74.016884),
					new google.maps.LatLng(40.712322,-74.017822),
					new google.maps.LatLng(40.711731,-74.017937),
					new google.maps.LatLng(40.711639,-74.017944),
					new google.maps.LatLng(40.710499,-74.018188),
					new google.maps.LatLng(40.709587,-74.018425),
					new google.maps.LatLng(40.708195,-74.018768),
					new google.maps.LatLng(40.708000,-74.018806),
					new google.maps.LatLng(40.707954,-74.018768),
					new google.maps.LatLng(40.707909,-74.018600),
					new google.maps.LatLng(40.707783,-74.018150),
					new google.maps.LatLng(40.706905,-74.018486),
					new google.maps.LatLng(40.706989,-74.019012),
					new google.maps.LatLng(40.706966,-74.019081),
					new google.maps.LatLng(40.706821,-74.019112),
					new google.maps.LatLng(40.706768,-74.019112),
					new google.maps.LatLng(40.706673,-74.019150),
					new google.maps.LatLng(40.706394,-74.019211),
					new google.maps.LatLng(40.706055,-74.019295),
					new google.maps.LatLng(40.705528,-74.019135),
					new google.maps.LatLng(40.705486,-74.019112),
					new google.maps.LatLng(40.705364,-74.019089),
					new google.maps.LatLng(40.705296,-74.019051),
					new google.maps.LatLng(40.705025,-74.018982),
					new google.maps.LatLng(40.704731,-74.018867),
					new google.maps.LatLng(40.704697,-74.018822),
					new google.maps.LatLng(40.704620,-74.018532),
					new google.maps.LatLng(40.704556,-74.018143),
					new google.maps.LatLng(40.704521,-74.018150),
					new google.maps.LatLng(40.704517,-74.018059),
					new google.maps.LatLng(40.704597,-74.018021),
					new google.maps.LatLng(40.704655,-74.017517),
					new google.maps.LatLng(40.704636,-74.017448),
					new google.maps.LatLng(40.704552,-74.017471),
					new google.maps.LatLng(40.704395,-74.018623),
					new google.maps.LatLng(40.704132,-74.018417),
					new google.maps.LatLng(40.704212,-74.017776),
					new google.maps.LatLng(40.704151,-74.017525),
					new google.maps.LatLng(40.703930,-74.017609),
					new google.maps.LatLng(40.703667,-74.017639),
					new google.maps.LatLng(40.703457,-74.017601),
					new google.maps.LatLng(40.703209,-74.017509),
					new google.maps.LatLng(40.702873,-74.017273),
					new google.maps.LatLng(40.701874,-74.016365),
					new google.maps.LatLng(40.701546,-74.016014),
					new google.maps.LatLng(40.701038,-74.015388),
					new google.maps.LatLng(40.700813,-74.015091),
					new google.maps.LatLng(40.700951,-74.014984),
					new google.maps.LatLng(40.700848,-74.014778),
					new google.maps.LatLng(40.700871,-74.014771),
					new google.maps.LatLng(40.700783,-74.014610),
					new google.maps.LatLng(40.700798,-74.014603),
					new google.maps.LatLng(40.700542,-74.014107),
					new google.maps.LatLng(40.700127,-74.014244),
					new google.maps.LatLng(40.700092,-74.014244),
					new google.maps.LatLng(40.700089,-74.014191),
					new google.maps.LatLng(40.700966,-74.013901),
					new google.maps.LatLng(40.700916,-74.013542),
					new google.maps.LatLng(40.700676,-74.013512),
					new google.maps.LatLng(40.700661,-74.013573),
					new google.maps.LatLng(40.700481,-74.013535),
					new google.maps.LatLng(40.700218,-74.013519),
					new google.maps.LatLng(40.700207,-74.013573),
					new google.maps.LatLng(40.700108,-74.013626),
					new google.maps.LatLng(40.700058,-74.013557),
					new google.maps.LatLng(40.700111,-74.013496),
					new google.maps.LatLng(40.700245,-74.013435),
					new google.maps.LatLng(40.700451,-74.013435),
					new google.maps.LatLng(40.700466,-74.013237),
					new google.maps.LatLng(40.700291,-74.013176),
					new google.maps.LatLng(40.699772,-74.013100),
					new google.maps.LatLng(40.699734,-74.013069),
					new google.maps.LatLng(40.699741,-74.013008),
					new google.maps.LatLng(40.699772,-74.012970),
					new google.maps.LatLng(40.700108,-74.013046),
					new google.maps.LatLng(40.700474,-74.013077),
					new google.maps.LatLng(40.700493,-74.012863),
					new google.maps.LatLng(40.700294,-74.012787),
					new google.maps.LatLng(40.700130,-74.012634),
					new google.maps.LatLng(40.700096,-74.012566),
					new google.maps.LatLng(40.700104,-74.012505),
					new google.maps.LatLng(40.700138,-74.012482),
					new google.maps.LatLng(40.700558,-74.012566),
					new google.maps.LatLng(40.700565,-74.012527),
					new google.maps.LatLng(40.700352,-74.012413),
					new google.maps.LatLng(40.700401,-74.012276),
					new google.maps.LatLng(40.700600,-74.012375),
					new google.maps.LatLng(40.700603,-74.012360),
					new google.maps.LatLng(40.700195,-74.012123),
					new google.maps.LatLng(40.700222,-74.012054),
					new google.maps.LatLng(40.700592,-74.012268),
					new google.maps.LatLng(40.700680,-74.012009),
					new google.maps.LatLng(40.700802,-74.011475),
					new google.maps.LatLng(40.700890,-74.011055),
					new google.maps.LatLng(40.701027,-74.011093),
					new google.maps.LatLng(40.701027,-74.011192),
					new google.maps.LatLng(40.701210,-74.011253),
					new google.maps.LatLng(40.701256,-74.011063),
					new google.maps.LatLng(40.701439,-74.011139),
					new google.maps.LatLng(40.701828,-74.009567),
					new google.maps.LatLng(40.700737,-74.008728),
					new google.maps.LatLng(40.700516,-74.008575),
					new google.maps.LatLng(40.700642,-74.008308),
					new google.maps.LatLng(40.700886,-74.008492),
					new google.maps.LatLng(40.701305,-74.007545),
					new google.maps.LatLng(40.701519,-74.007713),
					new google.maps.LatLng(40.701103,-74.008675),
					new google.maps.LatLng(40.701904,-74.009254),
					new google.maps.LatLng(40.701981,-74.009071),
					new google.maps.LatLng(40.702454,-74.008308),
					new google.maps.LatLng(40.702820,-74.007706),
					new google.maps.LatLng(40.702908,-74.007584),
					new google.maps.LatLng(40.703075,-74.007500),
					new google.maps.LatLng(40.703533,-74.006737),
					new google.maps.LatLng(40.703938,-74.006134),
					new google.maps.LatLng(40.703827,-74.006004),
					new google.maps.LatLng(40.704983,-74.004242),
					new google.maps.LatLng(40.705078,-74.004372),
					new google.maps.LatLng(40.705357,-74.003906),
					new google.maps.LatLng(40.705265,-74.003792),
					new google.maps.LatLng(40.705608,-74.003296),
					new google.maps.LatLng(40.704582,-74.002151),
					new google.maps.LatLng(40.704720,-74.001945),
					new google.maps.LatLng(40.705414,-74.002686),
					new google.maps.LatLng(40.705517,-74.002533),
					new google.maps.LatLng(40.705338,-74.002113),
					new google.maps.LatLng(40.705402,-74.002022),
					new google.maps.LatLng(40.704849,-74.001427),
					new google.maps.LatLng(40.705395,-74.000549),
					new google.maps.LatLng(40.706142,-74.001404),
					new google.maps.LatLng(40.706387,-74.000946),
					new google.maps.LatLng(40.706753,-74.001289),
					new google.maps.LatLng(40.707470,-73.999924),
					new google.maps.LatLng(40.707592,-73.999886),
					new google.maps.LatLng(40.708511,-73.998077),
					new google.maps.LatLng(40.708813,-73.996658),
					new google.maps.LatLng(40.709072,-73.994865),
					new google.maps.LatLng(40.709229,-73.993866),
					new google.maps.LatLng(40.709560,-73.991943),
					new google.maps.LatLng(40.716000,-73.995537),
					new google.maps.LatLng(40.716515,-73.997009),
					new google.maps.LatLng(40.716820,-73.997772),
					new google.maps.LatLng(40.717094,-73.998611),
					new google.maps.LatLng(40.717255,-73.998917),
					new google.maps.LatLng(40.717350,-73.999084),
					new google.maps.LatLng(40.717560,-73.999329),
					new google.maps.LatLng(40.718006,-73.999969),
					new google.maps.LatLng(40.718437,-74.000534),
					new google.maps.LatLng(40.718964,-74.001282),
					new google.maps.LatLng(40.719402,-74.001877),
					new google.maps.LatLng(40.719910,-74.002609),
					new google.maps.LatLng(40.720375,-74.003258),
					new google.maps.LatLng(40.720558,-74.003510),
					new google.maps.LatLng(40.720867,-74.003944),
					new google.maps.LatLng(40.721355,-74.004639),
					new google.maps.LatLng(40.721600,-74.005005),
					new google.maps.LatLng(40.721905,-74.005371),
					new google.maps.LatLng(40.722530,-74.006325),
					new google.maps.LatLng(40.723694,-74.007950),
					new google.maps.LatLng(40.724392,-74.008858),
					new google.maps.LatLng(40.724888,-74.009537),
					new google.maps.LatLng(40.725796,-74.010803),
					new google.maps.LatLng(40.725868,-74.011185),
					new google.maps.LatLng(40.726200,-74.011581)
				];
				locations[19] = new Array();
				locations[19]['normal'] = new google.maps.Polygon({
					paths: locationCoords,
					strokeColor: "#FF0000",
					strokeOpacity: 0.8,
					strokeWeight: 3,
					fillColor: "#FF0000",
					fillOpacity: 0.35
				});
				locations[19]['hover'] = new google.maps.Polygon({
					paths: locationCoords,
					strokeColor: "#CC0000",
					strokeOpacity: 0.4,
					strokeWeight: 1,
					fillColor: "#CC0000",
					fillOpacity: 0.15
				});
			});
		},
		debug : function () {
			if (_debug) {
				this.debug.history = this.debug.history || [];
				this.debug.history.push(arguments);
				if (console && typeof console.log == 'function') {
					if ((Array.prototype.slice.call(arguments)).length == 1 && typeof Array.prototype.slice.call(arguments)[0] == 'string') {
						console.log( (Array.prototype.slice.call(arguments)).toString() );
					} else {
						console.log( Array.prototype.slice.call(arguments) );
					}
				}
			}
		}
    };
}());

