function ranges(point) {
	
	var date = new Date()
  	var hour = date.getHours()
	var minute = date.getMinutes()
	var day = date.getDay()
	var timeString = hour + "." + minute
	var time = parseFloat(timeString)
	
	// Load URL in the main frame
	
	function topUrl(url){
		//alert("We are currently experiencing technical difficulties with our online ordering system. To place an order for delivery or pickup, please call 212-780-0577 x 2.")
		top.location.href = url;
	}
	
	function goUrl(url){
		//alert("We are currently experiencing technical difficulties with our online ordering system. To place an order for delivery or pickup, please call 212-780-0577 x 2.")
		document.location.href = url;
	}

	var url =
	{ 
		FlatIron: "http://www.wichcraftnyc.com/dinner/interstitial.php?store=FlatIron",
		Tribeca: "http://www.wichcraftnyc.com/dinner/interstitial.php?store=Tribeca",
		WestChelsea: "http://www.wichcraftnyc.com/dinner/interstitial.php?store=WestChelsea",
		Village: "http://www.wichcraftnyc.com/dinner/interstitial.php?store=Village",
		FifthAvenue: "http://www.wichcraftnyc.com/dinner/interstitial.php?store=FifthAvenue",
		MurrayHill: "http://www.wichcraftnyc.com/dinner/interstitial.php?store=MurrayHill",
		ParkAvenue: "http://www.wichcraftnyc.com/dinner/interstitial.php?store=ParkAvenue",
		RockCenter: "http://www.wichcraftnyc.com/dinner/interstitial.php?store=RockCenter",
		SoHo: "http://www.wichcraftnyc.com/dinner/interstitial.php?store=SoHo",
		WestfieldCentre: "http://www.wichcraftnyc.com/dinner/interstitial.php?store=WestfieldCentre",
		Dinner: "http://www.wichcraftnyc.com/dinner/delivery.php",
		
		feeFlatIron: "http://www.wichcraftnyc.com/fee/feeFlatIron.html",
		feeTribeca: "http://www.wichcraftnyc.com/fee/feeTribeca.html",
		feeWestChelsea: "http://www.wichcraftnyc.com/feeWestChelsea.html",
		feeVillage: "http://www.wichcraftnyc.com/fee/feeTheVillage.html",
		feeFifthAvenue: "http://www.wichcraftnyc.com/fee/feeFifthAvenue.html",
		feeMurrayHill: "http://www.wichcraftnyc.com/fee/feeMurrayHill.html",
		feeParkAvenue: "http://www.wichcraftnyc.com/fee/feeParkAvenue.html",
		feeRockCenter: "http://www.wichcraftnyc.com/fee/feeRockCenter.html",
		feeSoHo: "http://www.wichcraftnyc.com/fee/feeSoHo.html",
		feeWestfieldCentre: "http://www.wichcraftnyc.com/fee/feeWestfieldCentre.html",
				
		invalid: "http://www.wichcraftnyc.com/error.html" 
			
	} 
	
	// Clear map
	map.clearOverlays();
	
	// Position store delivery boundaries
	
	// FlatIron
	/*var FlatIron = new GPolygon([
		new GLatLng(40.740965495861055, -74.00544047355652), //9th Ave & 14th St
		new GLatLng(40.73134018820158, -73.98251295089722), //1st Ave & 14th St
		new GLatLng(40.738754399747904, -73.97716999053955), //1st Ave & 26th St
		new GLatLng	(40.74207101635607, -73.98498058319092), //Park Ave S & 26th St
		new GLatLng(40.74270505658409, -73.98452997207642), //Park Ave S & 27th St
		new GLatLng(40.74404627561214, -73.98773789405823), //5th Ave & 27th St
		new GLatLng(40.744664040127105, -73.98730874061584), //5th Ave & 28th St
		new GLatLng(40.74602960448274, -73.9905059337616), //6th Ave & 28th St
		new GLatLng(40.7472569628042, -73.98961544036865), //6th Ave & 30th St
		new GLatLng(40.74846804252026, -73.9924393107605), //7th Ave & 30th St
		new GLatLng(40.74598083481, -73.99426102638245), //7th Ave & 26th St
		new GLatLng(40.74717568149654, -73.99711489677429), //8th Ave & 26th St
		new GLatLng(40.74340411957342, -73.9998722076416), //8th Ave & 20th St
		new GLatLng(40.74460714100379, -74.00268316268921), //9th Ave & 20th St
		new GLatLng(40.740965495861055, -74.00544047355652) //9th Ave & 14th St
	], "#000000", 1, 1, "#000000", 0.2);
	*/
	
	// FlatIron South
	var FlatIronSouth = new GPolygon([
		new GLatLng(40.740965495861055, -74.00544047355652), //9th Ave & 14th St
		new GLatLng(40.73134018820158, -73.98251295089722), //1st Ave & 14th St
		new GLatLng(40.7369, -73.9785), //1st Ave & 23rd St
		new GLatLng(40.7453, -73.9985), //8th Ave & 23rd St
		new GLatLng(40.74340411957342, -73.9998722076416), //8th Ave & 20th St
		new GLatLng(40.74460714100379, -74.00268316268921), //9th Ave & 20th St
		new GLatLng(40.740965495861055, -74.00544047355652) //9th Ave & 14th St
	], "#000000", 1, 1, "#000000", 0.2);
	
	// FlatIron North
	var FlatIronNorth = new GPolygon([
		new GLatLng(40.7453, -73.9985), //8th Ave & 23rd St
		new GLatLng(40.7369, -73.9785), //1st Ave & 23rd St
		new GLatLng(40.738754399747904, -73.97716999053955), //1st Ave & 26th St
		new GLatLng	(40.74207101635607, -73.98498058319092), //Park Ave S & 26th St
		new GLatLng(40.74270505658409, -73.98452997207642), //Park Ave S & 27th St
		new GLatLng(40.74404627561214, -73.98773789405823), //5th Ave & 27th St
		new GLatLng(40.744664040127105, -73.98730874061584), //5th Ave & 28th St
		new GLatLng(40.74602960448274, -73.9905059337616), //6th Ave & 28th St
		new GLatLng(40.7472569628042, -73.98961544036865), //6th Ave & 30th St
		new GLatLng(40.74846804252026, -73.9924393107605), //7th Ave & 30th St
		new GLatLng(40.74598083481, -73.99426102638245), //7th Ave & 26th St
		new GLatLng(40.74717568149654, -73.99711489677429), //8th Ave & 26th St
		new GLatLng(40.7453, -73.9985), //8th Ave & 23rd St
	], "#000000", 1, 1, "#000000", 0.2);
	
	// Tribeca
	var Tribeca = new GPolygon([
		new GLatLng(40.729169423860725, -74.0113091468811), //Water & Houston St
		new GLatLng(40.728397037445006, -74.00285263755798), //6th Ave & Houston St
		//----------------------------------------------------------------
		//new GLatLng(40.72407150784349, -74.00459289550781), //6th Ave & Broome St
		//new GLatLng(40.723290931205135, -74.003005027771), //West Broadway & Broome St
		//new GLatLng(40.72133944955806, -74.00463581085205), //West Broadway & Canal St
		//new GLatLng(40.71932285841479, -74.0018892288208), //Broadway & Canal St
		new GLatLng(40.726966066290515, -74.00343418121338), //6th Ave & Prince St
		new GLatLng(40.725730202803845, -74.00090217590332), //West Broadway & Prince St
		new GLatLng(40.72452683998822, -74.00195360183716), //West Broadway & Spring St
		new GLatLng(40.722916901655005, -73.99877786636353), //Broadway & Spring St
		//----------------------------------------------------------------
		new GLatLng(40.71132907560049, -74.00861620903015), //Broadway & Vesey St
		new GLatLng(40.71358174428129, -74.01353001594543), //West St & Vesey
		new GLatLng(40.71086552060471, -74.01420593261719), //West St & Liberty St
		new GLatLng(40.709694419924965, -74.01468873023987), //West St & Albany St
		new GLatLng(40.710442625512925, -74.01827216148376), //Water
		new GLatLng(40.71232936749063, -74.01789665222168), //Water
		new GLatLng(40.71215045459756, -74.01669502258301), //Water
		new GLatLng(40.713402834753445, -74.01637315750122), //Water
		new GLatLng(40.71366306663503, -74.01768207550049), //Water
		new GLatLng(40.718664200491425, -74.01671648025513), //Water
		new GLatLng(40.718241354932935, -74.0133261680603), //Water
		new GLatLng(40.723982067234715, -74.01196360588074), //Water
		new GLatLng(40.726258699866705, -74.01151299476624), //Water
		new GLatLng(40.729169423860725, -74.0113091468811) //Water & Houston St
	], "#000000", 1, 1, "#000000", 0.2);
	
	// West Chelsea
	var WestChelsea = new GPolygon([	
		new GLatLng(40.742526225336874, -74.00921702384949), //Water & 14th St
		new GLatLng(40.740965495861055, -74.00544047355652), //9th Ave & 14th St
		new GLatLng(40.74460714100379, -74.00268316268921), //9th Ave & 20th St
		new GLatLng(40.74340411957342, -73.9998722076416), //8th Ave & 20th St
		new GLatLng(40.74717568149654, -73.99711489677429), //8th Ave & 26th St
		new GLatLng(40.74598083481, -73.99426102638245), //7th Ave & 26th St
		new GLatLng(40.75353157987466, -73.98875713348389), //7th Ave & 38th St
		new GLatLng(40.75471003646179, -73.99158954620361), //8th Ave & 38th St
		new GLatLng(40.757201298398356, -73.98976637290955), //8th Ave & 42nd St
		new GLatLng(40.76229229543118, -74.00177121162415), //Water & 42nd St
		new GLatLng(40.754547491967486, -74.00751113891602), //Water
		new GLatLng(40.750085490425825, -74.00916337966919), //Water
		new GLatLng(40.74847617049751, -74.00819778442383), //Water
		new GLatLng(40.742526225336874, -74.00921702384949) //Water & 14th St
	], "#000000", 1, 1, "#000000", 0.2);
	
	// Village
	var Village = new GPolygon([
		new GLatLng(40.73973989238722, -74.00252223014832), //8th Ave & 14th St
		new GLatLng(40.73938847159067, -74.0027904510498), //8th Ave & Greenwich Ave
		new GLatLng(40.73468156344358, -73.99999022483826), //10th St & Greenwich Ave
		new GLatLng(40.733673477640544, -73.9995288848877), //6th Ave & Greenwich Ave
		new GLatLng(40.73101498457055, -74.00145716003418), //6th Ave & 3rd St
		new GLatLng(40.728397037445006, -74.00285263755798), //6th Ave & Houston St
		//----------------------------------------------------------------
		//new GLatLng(40.72537244856386, -73.99699687957764), //Broadway & Houston St
		//new GLatLng(40.72494964561905, -73.99519443511963), //Lafayette St & Houston St
		new GLatLng(40.726966066290515, -74.00343418121338), //6th Ave & Prince St
		new GLatLng(40.725730202803845, -74.00090217590332), //West Broadway & Prince St
		new GLatLng(40.72452683998822, -74.00195360183716), //West Broadway & Spring St
		new GLatLng(40.722916901655005, -73.99877786636353), //Broadway & Spring St
		new GLatLng(40.721680962976556, -73.99985074996948), //Broadway & Broome St
		new GLatLng(40.71946922595716, -73.9944863319397), //Bowery & Broome #1
		new GLatLng(40.71927406916247, -73.9942717552185), //Bowery & Broome #2
		new GLatLng(40.71820069656462, -73.99068832397461), //Allen St & Broome St
		new GLatLng(40.721550862833276, -73.9889931678772), //Allen St & Stanton St
		//----------------------------------------------------------------
		new GLatLng(40.722900639452966, -73.98867130279541), //1st Ave & Houston St
		new GLatLng(40.73134018820158, -73.98251295089722), //1st Ave & 14th St
		new GLatLng(40.73973989238722, -74.00252223014832) //8th Ave & 14th St
	], "#000000", 1, 1, "#000000", 0.2);
	
	// Fifth Avenue
	var FifthAvenue = new GPolygon([	
		new GLatLng(40.76807796052895, -73.98192140724182), //8th Ave & 59th St
		new GLatLng(40.764291332174466, -73.97305011749268), //5th Ave & 59th St
		new GLatLng(40.76035821078917, -73.97583961486816), //5th Ave & 53rd St
		new GLatLng(40.75970808566679, -73.97425174713135), //Madison Ave & 53rd St
		new GLatLng(40.757790179509335, -73.97566795349121), //Madison Ave & 50th St
		new GLatLng(40.75714002927082, -73.97403717041016), //Park Ave & 50th St
		new GLatLng(40.7508332419881, -73.97865056991577), //Park Ave & 40th St
		new GLatLng(40.75148345390278, -73.9802598953247), //Madison & 40th St
		new GLatLng(40.750930774180645, -73.98073196411133), //Madison & 39th St
		new GLatLng(40.75151596433163, -73.98219108581543), //5th Ave & 39th St
		new GLatLng(40.75094702953215, -73.98269534111023), //5th Ave & 38th St
		new GLatLng(40.75471003646179, -73.99158954620361), //8th Ave & 38th St
		new GLatLng(40.76807796052895, -73.98192140724182) //8th Ave & 59th St
	], "#000000", 1, 1, "#000000", 0.2);
	
	// Murray Hill
	var MurrayHill = new GPolygon([
		new GLatLng(40.74846804252026, -73.9924393107605), //7th Ave & 30th St
		new GLatLng(40.7472569628042, -73.98961544036865), //6th Ave & 30th St
		new GLatLng(40.74602960448274, -73.9905059337616), //6th Ave & 28th St
		new GLatLng(40.744664040127105, -73.98730874061584), //5th Ave & 28th St
		new GLatLng(40.74404627561214, -73.98773789405823), //5th Ave & 27th St
		new GLatLng(40.74270505658409, -73.98452997207642), //Park Ave S & 27th St
		new GLatLng	(40.74207101635607, -73.98498058319092), //Park Ave S & 26th St
		new GLatLng(40.738754399747904, -73.97716999053955), //1st Ave & 26th St
		new GLatLng(40.74753331850711, -73.97079706192017), //1st Ave & 40th St
		new GLatLng(40.75148345390278, -73.9802598953247), //Madison & 40th St
		new GLatLng(40.750930774180645, -73.98073196411133), //Madison & 39th St
		new GLatLng(40.75151596433163, -73.98219108581543), //5th Ave & 39th St
		new GLatLng(40.75094702953215, -73.98269534111023), //5th Ave & 38th St
		new GLatLng(40.75353157987466, -73.98875713348389), //7th Ave & 38th St
		new GLatLng(40.74846804252026, -73.9924393107605) //7th Ave & 30th St
	], "#000000", 1, 1, "#000000", 0.2);
	
	// Park Avenue
	var ParkAvenue = new GPolygon([
		new GLatLng(40.75959431311663, -73.96195650100708), //1st Ave & 59th St
		new GLatLng(40.74753331850711, -73.97079706192017), //1st Ave & 40th St
		new GLatLng(40.7508332419881, -73.97865056991577), //Park Ave & 40th St
		new GLatLng(40.75714002927082, -73.97403717041016), //Park Ave & 50th St
		new GLatLng(40.757790179509335, -73.97566795349121), //Madison Ave & 50th St
		new GLatLng(40.75970808566679, -73.97425174713135), //Madison Ave & 53rd St
		new GLatLng(40.76035821078917, -73.97583961486816), //5th Ave & 53rd St
		new GLatLng(40.764291332174466, -73.97305011749268), //5th Ave & 59th St
		new GLatLng(40.75959431311663, -73.96195650100708) //1st Ave & 59th St
	], "#000000", 1, 1, "#000000", 0.2);
	
	// Rock Center
	var RockCenter = new GPolygon([
		new GLatLng(40.75978935165481, -73.97622585296631),
		new GLatLng(40.761187111098295, -73.9795732498169),
		new GLatLng(40.76058575307979, -73.97998094558716),
		new GLatLng(40.75863536531348, -73.98141860961914),
		new GLatLng(40.75723755221195, -73.9781141281128),
		new GLatLng(40.75978935165481, -73.97622585296631)
	], "#000000", 1, 1, "#000000", 0);
	
	// SoHo
	var SoHo = new GPolygon([
		new GLatLng(40.728397037445006, -74.00285263755798), //6th Ave & Houston St
		new GLatLng(40.72407150784349, -74.00459289550781), //6th Ave & Broome St
		new GLatLng(40.723290931205135, -74.003005027771), //West Broadway & Broome St
		new GLatLng(40.72133944955806, -74.00463581085205), //West Broadway & Canal St
		new GLatLng(40.71932285841479, -74.0018892288208), //Broadway & Canal St
		new GLatLng(40.71850969954106, -74.00257587432861), //Broadway & Walker St
		new GLatLng(40.71753389578094, -74.00025844573975), //Centre St & Walker St
		new GLatLng(40.715679829230425, -73.9949369430542), //Chrystie St & Walker St
		new GLatLng(40.718021799448955, -73.99377822875977), //Chrystie St & Grand St
		new GLatLng(40.71727367902918, -73.99120330810547), //Allen St & Grand St
		new GLatLng(40.722900639452966, -73.98867130279541), //1st Ave & Houston St
		new GLatLng(40.72494964561905, -73.99519443511963), //Lafayette St & Houston St
		new GLatLng(40.72537244856386, -73.99699687957764), //Broadway & Houston St
		new GLatLng(40.728397037445006, -74.00285263755798) //6th Ave & Houston St
	], "#000000", 1, 1, "#000000", 0.2);

	// Westfield Centre
	var WestfieldCentre = new GPolygon([
		new GLatLng(37.78777, -122.40507),
		new GLatLng(37.79815, -122.40705),
		new GLatLng(37.79948, -122.39730),
		new GLatLng(37.78896, -122.38743),
		new GLatLng(37.78214, -122.38790),
		new GLatLng(37.76956, -122.40438),
		new GLatLng(37.76942, -122.41786),
		new GLatLng(37.77488, -122.41966),
		new GLatLng(37.78577, -122.42172),
		new GLatLng(37.78777, -122.40507)
	], "#000000", 1, 1, "#000000", 0.2);
	
	// Fee - FlatIron
	var feeFlatIron = new GPolygon([
		new GLatLng(40.738754399747904, -73.97716999053955), //1st Ave & 26th St
		new GLatLng(40.73134018820158, -73.98251295089722), //1st Ave & 14th St
		new GLatLng(40.728494602539605, -73.97571086883545), //Avenue C & 14th St
		new GLatLng(40.73174669050531, -73.97305011749268), //Water
		new GLatLng(40.73577905884602, -73.9724063873291), //Water
		new GLatLng(40.73701473570521, -73.97270679473877), //Water
		new GLatLng(40.738754399747904, -73.97716999053955) //1st Ave & 26th St
	], "#000000", 1, 1, "#000000", 0.1);
	
	// Fee - Tribeca
	var feeTribeca = new GPolygon([
		new GLatLng(40.71132907560049, -74.00861620903015), //Broadway & Vesey St
		new GLatLng(40.71358174428129, -74.01353001594543), //West St & Vesey
		new GLatLng(40.71086552060471, -74.01420593261719), //West St & Liberty St
		new GLatLng(40.709694419924965, -74.01468873023987), //West St & Albany St
		new GLatLng(40.710442625512925, -74.01827216148376), //Water
		new GLatLng(40.706115929123065, -74.0194845199585), //Water
		new GLatLng(40.70416394400037, -74.01866912841797), //Water
		new GLatLng(40.70126839403173, -74.01596546173096), //Water
		new GLatLng(40.70038994387415, -74.01356220245361), //Water
		new GLatLng(40.70078036759664, -74.01098728179932), //Water
		new GLatLng(40.70185402103404, -74.00918483734131), //Water
		new GLatLng(40.705758069466754, -74.00146007537842), //Water
		new GLatLng(40.708718486958574, -73.99111747741699), //Manhattan Bridge & Water
		//----------------------------------------------------------------
		new GLatLng(40.71001972773535, -73.97759914398193), //Water
		new GLatLng(40.71828201327641, -73.97347927093506), //Houston St & Water
		new GLatLng(40.722900639452966, -73.98867130279541), //1st Ave & Houston St
		new GLatLng(40.721550862833276, -73.9889931678772), //Allen St & Stanton St
		new GLatLng(40.71820069656462, -73.99068832397461), //Allen St & Broome St
		new GLatLng(40.71927406916247, -73.9942717552185), //Bowery & Broome #2
		new GLatLng(40.71946922595716, -73.9944863319397), //Bowery & Broome #1
		new GLatLng(40.721680962976556, -73.99985074996948), //Broadway & Broome St
		//new GLatLng(40.722900639452966, -73.98867130279541), //1st Ave & Houston St
		//new GLatLng(40.715679829230425, -73.9949369430542), //Chrystie St & Walker St
		//new GLatLng(40.71753389578094, -74.00025844573975), //Centre St & Walker St
		//new GLatLng(40.71850969954106, -74.00257587432861), //Broadway & Walker St
		//----------------------------------------------------------------
		new GLatLng(40.71132907560049, -74.00861620903015) //Broadway & Vesey St
	], "#000000", 1, 1, "#000000", 0.1);
	
	// Fee - West Chelsea
	var feeWestChelsea = new GPolygon([
		new GLatLng(40.75962681957938, -73.9954692718506), //10th Ave & 42nd St
		new GLatLng(40.76229229543118, -74.00177121162415), //Water & 42nd St
		new GLatLng(40.76385252438133, -73.99944305419922), //Water
		new GLatLng(40.77004432189692, -73.99510860443115), //Water
		new GLatLng(40.771360613935286, -73.99500131607056), //Water
		new GLatLng(40.77302187935118, -73.99373531341553), //Water & 59th St
		new GLatLng(40.77161562030104, -73.99038791656494), //11th Ave & 59th St
		new GLatLng(40.76897176836408, -73.99238348007202), //11th Ave & 55th St
		new GLatLng(40.76780169022038, -73.98946523666382), //10th Ave & 55th St
		new GLatLng(40.75962681957938, -73.99546192718506) //10th Ave & 42nd St
	], "#000000", 1, 1, "#000000", 0.1);
	
	// Fee - Village
	var feeVillage1 = new GPolygon([
		new GLatLng(40.742526225336874, -74.00921702384949), //Water & 14th St
		new GLatLng(40.73973989238722, -74.00252223014832), //8th Ave & 14th St
		new GLatLng(40.73938847159067, -74.0027904510498), //8th Ave & Greenwich Ave
		new GLatLng(40.73468156344358, -73.99999022483826), //10th St & Greenwich Ave
		new GLatLng(40.733673477640544, -73.9995288848877), //6th Ave & Greenwich Ave
		new GLatLng(40.73101498457055, -74.00145716003418), //6th Ave & 3rd St
		new GLatLng(40.728397037445006, -74.00285263755798), //6th Ave & Houston St
		new GLatLng(40.729169423860725, -74.0113091468811), //Water & Houston St
		new GLatLng(40.739242147855705, -74.0104079246521), //Water
		new GLatLng(40.740721628572345, -74.00963544845581), //Water
		new GLatLng(40.742526225336874, -74.00921702384949) //Water & 14th St
	], "#000000", 1, 1, "#000000", 0.1);
	
	var feeVillage2 = new GPolygon([
		new GLatLng(40.73134018820158, -73.98251295089722), //1st Ave & 14th St
		new GLatLng(40.722900639452966, -73.98867130279541), //1st Ave & Houston St
		new GLatLng(40.71828201327641, -73.97347927093506), //Houston St & Water
		new GLatLng(40.729405203191035, -73.97009018096924), //Water
		new GLatLng(40.73174669050531, -73.97305011749268), //Water
		new GLatLng(40.728494602539605, -73.97571086883545), //Avenue C & 14th St
		new GLatLng(40.73134018820158, -73.98251295089722) //1st Ave & 14th St
	], "#000000", 1, 1, "#000000", 0.1);
	
	// Fee - Fifth Avenue
	var feeFifthAvenue = new GPolygon([
		new GLatLng(40.757221298398356, -73.98979637290955), //8th Ave & 42nd St
		new GLatLng(40.75962681957938, -73.9954692718506), //10th Ave & 42nd St
		new GLatLng(40.76780169022038, -73.98946523666382), //10th Ave & 55th St
		new GLatLng(40.76897176836408, -73.99238348007202), //11th Ave & 55th St
		new GLatLng(40.77161562030104, -73.99038791656494), //11th Ave & 59th St
		new GLatLng(40.76807796052895, -73.98192140724182), //8th Ave & 59th St
		new GLatLng(40.757221298398356, -73.98979637290955) //8th Ave & 42nd St
	], "#000000", 1, 1, "#000000", 0.1);
	
	// Fee - Murray Hill
	var feeMurrayHill = new GPolygon([
		new GLatLng(40.74286763002801, -73.9712905883789), //Water
		new GLatLng(40.746639222374434, -73.96832942962646), //Water
		new GLatLng(40.74753331850711, -73.97079706192017), //1st Ave & 40th St
		new GLatLng(40.738754399747904, -73.97716999053955), //1st Ave & 26th St
		new GLatLng(40.73701473570521, -73.97270679473877), //Water
		new GLatLng(40.74286763002801, -73.9712905883789) //Water
	], "#000000", 1, 1, "#000000", 0.1);
	
	// Fee - Park Avenue
	var feeParkAvenue = new GPolygon([
		new GLatLng(40.75959431311663, -73.96195650100708), //1st Ave & 59th St
		new GLatLng(40.74753331850711, -73.97079706192017), //1st Ave & 40th St
		new GLatLng(40.746639222374434, -73.96832942962646), //Water
		new GLatLng(40.754116747135704, -73.96154880523682), //Water
		new GLatLng(40.75518954040458, -73.95987510681152), //Water
		new GLatLng(40.757985223340995, -73.95798683166504), //Water
		new GLatLng(40.75959431311663, -73.96195650100708) //1st Ave & 59th St
	], "#000000", 1, 1, "#000000", 0.1);
	
	// Fee - SoHo
	var feeSoHo = new GPolygon([
		new GLatLng(40.715679829230425, -73.9949369430542), //Chrystie St & Walker St
		new GLatLng(40.708718486958574, -73.99111747741699), //Manhattan Bridge & Water
		new GLatLng(40.71001972773535, -73.97759914398193), //Water
		new GLatLng(40.71828201327641, -73.97347927093506), //Houston St & Water
		new GLatLng(40.722900639452966, -73.98867130279541), //1st Ave & Houston St
		new GLatLng(40.71727367902918, -73.99120330810547), //Allen St & Grand St
	new GLatLng(40.718021799448955, -73.99377822875977), //Chrystie St & Grand St
	//	new GLatLng(40.715679829230425, -73.9949369430542) //Chrystie St & Walker St
	], "#000000", 1, 1, "#000000", 0.1);
	
	// Fee - Westfield Centre
	var feeWestfieldCentre = new GPolygon([
		new GLatLng(37.79550844953692, -122.42709159851074),
		new GLatLng(37.77302148107203, -122.42249965667725),
		new GLatLng(37.77152889115204, -122.42056846618652),
		new GLatLng(37.76477793772538, -122.41992473602295),
		new GLatLng(37.76698309079086, -122.38207340240479),
		new GLatLng(37.771461045439764, -122.38087177276611),
		new GLatLng(37.77542991490521, -122.38138675689697),
		new GLatLng(37.78116235022467, -122.38357543945312),
		new GLatLng(37.79038758480464, -122.38443374633789),
		new GLatLng(37.80001858607365, -122.39301681518555),
		new GLatLng(37.79550844953692, -122.42709159851074)
	], "#000000", 1, 1, "#000000", 0.1);

	// Draw store delivery boundaries
	map.addOverlay(FlatIronSouth);
	map.addOverlay(FlatIronNorth);
	map.addOverlay(Tribeca);
	map.addOverlay(WestChelsea);
	map.addOverlay(Village);
	map.addOverlay(FifthAvenue);
	map.addOverlay(MurrayHill);
	map.addOverlay(ParkAvenue);
	map.addOverlay(RockCenter);
	//map.addOverlay(SoHo);
	map.addOverlay(WestfieldCentre);
	
	map.addOverlay(feeFlatIron);
	map.addOverlay(feeTribeca);
	map.addOverlay(feeWestChelsea);
	map.addOverlay(feeVillage1);
	map.addOverlay(feeVillage2);
	map.addOverlay(feeFifthAvenue);
	map.addOverlay(feeMurrayHill);
	map.addOverlay(feeParkAvenue);
	//map.addOverlay(feeSoHo);
	map.addOverlay(feeWestfieldCentre);
	
	// FlatIron
	if (FlatIronSouth.Contains(point)) {
		if ((time >= 16.30) && (day < 6)) {
			topUrl(url.Dinner)
		}
		else {
			topUrl(url.FlatIron)
		}
	}
	else if (FlatIronNorth.Contains(point)) {
		if ((time >= 16.30) && (day < 6)) {
			topUrl(url.Dinner)
		}
		else {
			topUrl(url.FlatIron)
		}
	}
	
	// SoHo
	else if ((SoHo.Contains(point)) && (time < 18.00)) {
		topUrl(url.SoHo)
	}
	
	// Tribeca
	else if (Tribeca.Contains(point)) {
		topUrl(url.Tribeca)
	}
	
	// West Chelsea
	else if (WestChelsea.Contains(point)) {
		topUrl(url.WestChelsea)
	}
	
	// Village
	else if (Village.Contains(point)) {
		topUrl(url.Village)
	}
	
	// Rock Center
	else if (RockCenter.Contains(point)) {
		topUrl(url.RockCenter)
	}
	
	// Fifth Avenue
	else if (FifthAvenue.Contains(point)) {
		topUrl(url.FifthAvenue)
	}
	
	// Murray Hill
	else if (MurrayHill.Contains(point)) {
		topUrl(url.MurrayHill)
	}
	
	// Park Avenue
	else if (ParkAvenue.Contains(point)) {
		topUrl(url.ParkAvenue)
	}
	
	// WestfieldCentre
	else if (WestfieldCentre.Contains(point)) {
		topUrl(url.WestfieldCentre)
	}

	// Fee - FlatIron
	else if (feeFlatIron.Contains(point)) {
		topUrl(url.feeFlatiron)
	}
	
	// Fee - Tribeca
	else if (feeTribeca.Contains(point)) {
		goUrl(url.feeTribeca)
	}
	
	// Fee - West Chelsea
	else if (feeWestChelsea.Contains(point)) {
		goUrl(url.feeWestChelsea)
	}
	
	// Fee - Village1
	else if (feeVillage1.Contains(point)) {
		goUrl(url.feeVillage)
	}
		
	// Fee - Village2
	else if (feeVillage2.Contains(point)) {
		goUrl(url.feeVillage)
	}
	
	// Fee - Fifth Avenue
	else if (feeFifthAvenue.Contains(point)) {
		goUrl(url.feeFifthAvenue)
	}
	
	// Fee - Murray Hill
	else if (feeMurrayHill.Contains(point)) {
		goUrl(url.feeMurrayHill)
	}
	
	// Fee - Park Avenue
	else if (feeParkAvenue.Contains(point)) {
		goUrl(url.feeParkAvenue)
	}
	
	// Fee - SoHo
	else if (feeSoHo.Contains(point)) {
		if (time < 18.00) {
			goUrl(url.feeSoHo)
		}
		else {
			goUrl(url.feeVillage)
		}
	}
		
	// fee - Westfield Centre
	else if (feeWestfieldCentre.Contains(point)) {
		goUrl(url.feeWestfieldCentre)
	}
		
	// Unknown Address
	else {
		goUrl(url.invalid)
		initialize();
		ranges();
	}
}