<!--
//<![CDATA[

//-------This page and code copyright Don Pickerel 2006 ---------------

			
    var map,point;
    var geocoder;

		// Creates a marker at the given point with the given number label
	function createMarker(spoint, place,tab2) 
		{
			// Our info window content
			var infoTabs = 
			[
				new GInfoWindowTab("Winery",place),
				new GInfoWindowTab("Weather","Coming Soon"),
			];
			// Create our "tiny" marker icon
			var icon = new GIcon();
			icon.image = "http://www.northcarolinatourist.com/Wineries/grape1.png";
			icon.shadow = "http://www.northcarolinatourist.com/Wineries/shadow1.png";
			icon.iconSize = new GSize(12, 20);
			icon.shadowSize = new GSize(22, 20);
			icon.iconAnchor = new GPoint(6, 20);
			icon.infoWindowAnchor = new GPoint(5, 1);   
			var htmls=[place, tab2,"Coming Soon"];
			var labels = ["Winery","Visit","Weather"];
		  var marker = new GMarker(spoint,icon);
		  GEvent.addListener(marker, "click", function() 
			{
          		// adjust the width so that the info window is large enough for this many tabs
          		if (htmls.length > 2) 
		  		{
            		htmls[0] = '<div style="width:'+htmls.length*88+'px">' + htmls[0] + '</div>';
          		}
          		var tabs = [];
          		for (var i=0; i<htmls.length; i++) 
		  		{
            		tabs.push(new GInfoWindowTab(labels[i],htmls[i]));
          		}
          		marker.openInfoWindowTabsHtml(tabs);
        	});
		  return marker;
		}

// ---------------- mountain wineries -------------------------
	function mountain_markers(mwhich)
	{
		var i,j;
		switch (mwhich)
		{
		case 1:
			i="<a href=\"/Wineries/#wab\">Biltmore Estate Winery</a>";
			j="One North Pack Square<br />Asheville, NC 28801<br />800-543-2961<br />Mon-Sat, 11 am-7 pm<br />Sun Noon-7 pm";

point = new GLatLng(35.595137,-82.550968 );
			map.addOverlay(createMarker(point, i,j));
		break;
		case 2:					
			i="<a href=\"/Wineries/#wac\">Cerminaro Vineyard</a>";
			j="4399 Wilkesboro Blvd<br />Boomer, NC 28606<br />828-754-9306<br />Sat Noon-6 pm; Sun-Fri by appointment";
j="Coming Soon";
point = new GLatLng(36.022454 , -81.344559);
			map.addOverlay(createMarker(point, i,j));
		break;
		case 3:					
			
			i="<a href=\"/Wineries/#wac\">Chateau Laurinda</a>";
			j="690 Reeves Ridge Rd<br />Sparta, NC 28675<br />800-650-3236<br />Tue-Sat 10 am-7 pm; Sun Noon-5 pm";
point = new GLatLng(36.528183,-81.216724 );
			map.addOverlay(createMarker(point, i,j));
		break;
		case 4:					
			
			i="<a href=\"/Wineries/#waf\">Foothills Wineworx</a>";
			j="204 East Main Street<br />Glen Alpine, NC 28628<br />828-584-4551<br />We will still be selling everything that you need to make wine at your own home.";
point = new GLatLng(35.728597,-81.777746 );
			map.addOverlay(createMarker(point, i,j));
		break;
		case 5:					
			
			i="<a href=\"/Wineries/#wag\">Garden Gate Vineyards</a>";
			j="261 Scenic Dr<br />Mocksville, NC 27028<br />336-751-3794<br />Wed-Sat 12:00-5:00 P.M.<br />Sun from 1:00 P.M. to 5:00 P.M.";
point = new GLatLng(35.884777 , -80.594026);
			map.addOverlay(createMarker(point, i,j));
		break;
		case 6:					
			
			i="<a href=\"/Wineries/#wag\">Ginger Creek Vineyards</a>";
			j="858 John Cline Rd<br />Taylorsville, NC 28681<br />828-312-4362 or 828-312-4359<br />Thursday&#8211;Saturday, 12:00 p.m.&#8211;6:00 p.m.<br />Sunday, 1:00 p.m.&#8211;5:00 p.m. By Appointment Only";
point = new GLatLng(35.894771, -81.318108 );
			map.addOverlay(createMarker(point, i,j));
			
		break;
		case 7:					
			i="<a href=\"/Wineries/#wag\">Green Creek Winery</a>";
			j="413 Gilbert Rd<br />Columbus, NC 28722<br />828-863-2182<br />Thu-Sun 1-5 pm";
point = new GLatLng(35.236359,-82.101874 );
			map.addOverlay(createMarker(point, i,j));
			
		break;
		case 8:					
			i="<a href=\"/Wineries/#wal\">Lake James Cellars Winery</a>";
			j="204 E Main St<br />Glen Alpine, NC 28628<br />828-584-4551<br />Tue-Fri 11 am-6 pm<br />Sat 10 am-5 pm; Sun 1-5 pm";
point = new GLatLng(35.728019, -81.77322);
			map.addOverlay(createMarker(point, i,j));
			
		break;
		case 9:					
			i="<a href=\"/Wineries/#war\">Rockhouse Vineyards</a>";
			j="1525 Turner Rd<br />Tryon, NC 28782<br />828-863-2784<br />Thu-Sun 1-5 pm; closed January and February";
point = new GLatLng(35.255441,-82.098464);
			map.addOverlay(createMarker(point, i,j));
			
		break;
		case 10:					
			i="<a href=\"/Wineries/#wat\">The Teensy Winery</a>";
			j="3661 Painters Gap Rd<br />Union Mills, NC 28167<br />828-287-7763<br />By appointment only";
point = new GLatLng(35.504958, -82.038762);
			map.addOverlay(createMarker(point, i,j));
			
		break;
		case 11:					
			i="<a href=\"/Wineries/#wat\">Thistle Meadow Winery</a>";
			j="102 Thistle Meadow<br />Laurel Springs, NC 28644<br />800-233-1505<br />Mon-Fri Noon-5 pm; Sat Noon-4 pm; Sun 2-6 pm";
point = new GLatLng(36.41788585,-81.25025211 );
			map.addOverlay(createMarker(point, i,j));
			
		break;
		case 12:					
			i="<a href=\"/Wineries/#waw\">Waldensian Heritage Wines</a>";
			j="4940 Villar Lane NE<br />Valdese, NC 28690<br />828-879-3202<br />Thu-Sun 1-6 pm";
point = new GLatLng(35.759463, -81.560921);
			map.addOverlay(createMarker(point, i,j));
			
		break;
		case 13:					
			i="<a href=\"/Wineries/#waw\">Wood Mill Winery</a>";
			j="1350 WoodMill Winery Lane<br />Vale, NC 28168<br />704-276-2288<br />Sat 11 am-6 pm; Sun, 1-6 pm<br />during week by appt.";
point = new GLatLng(35.51979496, -81.41736087 );
			map.addOverlay(createMarker(point, i,j));
	}
		return point;
}


   function add_mmarker() 
   	{
			var y;
			// mountain wineries
			for (y=1;y<=13;y++)
			{
			mountain_markers(y);
			}
			
	}
	
// ---------------- Coastal wineries --------------------------

	function coastal_markers(mwhich)
	{
		var i,j;

		switch (mwhich)
		{
		case 1:
			i="<a href=\"/Wineries/#wca\">A Secret Garden Winery</a>";
			j="1018 Airport Rd, Pikeville<br >919-734-0260<br />Thu-Sat 10 am-6 pm and Sun 1-6 pm. <br />Call ahead for other hours";
point = new GLatLng(35.479661 , -77.965199 );
			map.addOverlay(createMarker(point, i,j));
		break;
		case 2:
			i="<a href=\"/Wineries/#wcb\">Bannerman Vineyard</a>";
			j="2624 Stag Park Rd, Burgaw, NC 28425<br />910-259-5474<br />Off Season Hours November - August:<br />Wed - Sat 12 noon - 4 pm<br />Seasonal Vineyard Hours August - November:<br />Mon - Sat 9 am - 6 pm - Sun 12 noon - 6 pm";
point = new GLatLng(34.556844 , -77.881004 );
			npoint = point;
			map.addOverlay(createMarker(point, i,j));
		break;
		case 3:
			i="<a href=\"/Wineries/#wcb\">Bennett Vineyards</a>";
			j="6832 Old Sandhill Rd, Edward, NC 27821<br />877-762-9463<br />Mon-Sat 9 am-5:30 pm;<br /> Sun 1-5 pm";
			point = new GLatLng(35.30692 , -76.86595 );
			npoint = point;
			map.addOverlay(createMarker(point, i,j));
		break;
		case 4:
			i="<a href=\"/Wineries/Coastal/CypressBend.php\">Cypress Bend Vineyards<img src=\"/assets/images/Wineries/Coastal/CypressBend/markers/DSC_0386.jpg\" alt=\"Cypress Bend Vineyards\" width=\"120\" height=\"80\" hspace=\"4\" vspace=\"4\" border=\"1\" align=\"left\"></a>";
			j="21904 Riverton Rd, Wagram, NC 28396<br />910-369-0411<br />Wed - Fri, Noon - 6pm Saturday, 10am - 6pm<br />Sunday, Noon - 6pm Mon & Tue, by appointment only.";
point = new GLatLng(34.844766 , -79.347379 );
			npoint = point;
			map.addOverlay(createMarker(point, i,j));
		break;
		case 5:
			i="<a href=\"/Wineries/#wcd\">Duplin Winery</a>";
			j="505 N. Sycamore St., Rose Hill, N.C. 28458<br />800-774-9634, 910-289-3888<br />Mon-Sat 9-6 PM - Last Tour at 4 PM";
point = new GLatLng(34.830406 , -78.02388 );
			npoint = point;
			map.addOverlay(createMarker(point, i,j));
		break;
		case 6:
			i="<a href=\"/Wineries/Coastal/Grapefull/Grapefull.php\">Grapefull Sisters Vineyard</a>";
			j="4903 Ramsey Ford Rd, Tabor City, NC 28463<br />910-653-2944<br />Mon-Wed 1:30 pm-6 pm, <br />Thu-Sat 10 am-6 pm & by appt ";
point = new GLatLng(34.05893906, -78.70713241 );
			npoint = point;
			map.addOverlay(createMarker(point, i,j));
		break;
		case 7:
			i="<a href=\"/Wineries/#wch\">Hinnant Family Vineyards</a>";
			j="826 Pine Level-Micro Rd, Pine Level, NC 27568<br />919-965-3350<br />Tue-Fri 11 am-5 pm;<br /> Sat 10 am-6 pm; Sun 1-5 pm";
point = new GLatLng(35.521895 , -78.237789 );
			npoint = point;
			map.addOverlay(createMarker(point, i,j));
		break;
		case 8:
			i="<a href=\"/Wineries/#wcl\">Lumina Winery</a>";
			j="206 S. Kerr Ave, Unit 112 A, Wilmington, NC 28403<br />910-793-5299<br />Mon-Wed Noon-6:00 pm;<br />Sat 11 am-3 pm";
point = new GLatLng(34.237843 , -77.88888 );
			npoint = point;
			map.addOverlay(createMarker(point, i,j));
		break;
		case 9:
			i="<a href=\"/Wineries/Coastal/LuMil/LuMil.php\">Lu Mil Vineyard</a>";
			j="474 Suggs-Taylor Rd., Dublin NC 28332<br />910-866-5819<br />Mon-Sat 10 am-6 pm;<br />Sun 1-6 pm";
point = new GLatLng(34.669553 , -78.71321 );
			map.addOverlay(createMarker(point, i,j));
		break;
		case 10:
			i="<a href=\"/Wineries/#wcm\">Martin Vineyards</a>";
			j="213 Martin Farm Lane, Knotts Island, NC<br />252-429-3542<br />Open Daily Noon-5 pm";
point = new GLatLng(36.51396 , -75.91776 );
			map.addOverlay(createMarker(point, i,j));
		break;
		case 11:
			i="<a href=\"/Wineries/#wcm\">Moonrise Bay Vineyard</a>";
			j="134 Moonrise Bay Lndg <br />Knotts Island, NC 27950<br />866-888-9463, 252-429-WINE<br />Open Daily Noon-5 pm";
point = new GLatLng(36.514224 , -75.92221 );
			map.addOverlay(createMarker(point, i,j));
		break;
		case 12:
			i="<a href=\"/Wineries/#wcs\">Silver Coast Winery</a>";
			j="6680 Barbeque Rd<br />Ocean Isle Beach, NC 28469<br />910-287-2800<br />Mon-Sat 11 am-6 pm<br />Sun Noon-5 pm; Seasonal hours Jan-Mar";
point = new GLatLng(33.985675 , -78.506006 );
			map.addOverlay(createMarker(point, i,j));
		break;			
		}

		return point;
	}

   function add_cmarker() 
   	{
			var y;
			// mountain wineries
			for (y=1;y<=12;y++)
			{
			coastal_markers(y);
			}
	}

// ---------------- piedmont wineries --------------------------
	function piedmont_markers(mwhich)
	{
		var i,j;

		switch (mwhich)
		{
			case 1:
			i="<a href=\"http://www.northcarolinatourist.com/Wineries/Piedmont/GlenMarie/GlenMarie.php\">GlenMarie Winery<img src=\"/assets/images/Wineries/Piedmont/GlenMarie/markers/DSC_0104.jpg\" alt=\"Glen Marie Winery vineyards\" width=\"120\" height=\"80\" hspace=\"4\" vspace=\"4\" border=\"1\" align=\"left\"></a>";
			j="1838 Johnson Road<br /> Burlington, NC<br />336-578-3938<br />Thur -Sun Noon to 6pm.";
point = new GLatLng(36.138156,-79.331380);
			map.addOverlay(createMarker(point, i,j));
			break;
			case 2:
			i="<a href=\"http://www.northcarolinatourist.com/Wineries/Piedmont/IronGate/Iron_Gate.php\">Iron Gate Vineyards<img src=\"/assets/images/Wineries/Piedmont/Iron_Gate/markers/DSC_0048.jpg\" alt=\"Irongate Tasting Room\" width=\"120\" height=\"80\" border=\"1\" align=\"left\"></a>";
			j="2540 Lynch Store Rd,<br />Mebane, NC<br />919-304-WINE (9463)<br />Monday - Friday 10-7<br />Saturday 10-6   Sunday 1-6";
point = new GLatLng(36.150122, -79.273626);
			map.addOverlay(createMarker(point, i,j));
			break;
			case 3:
			i="<a href=\"http://www.northcarolinatourist.com/Wineries/Piedmont/Horizon/Horizon_Cellars.php\">Horizon Cellars Winery<img src=\"/assets/images/Wineries/Piedmont/Horizon/markers/DSC_0094.jpg\" alt=\"Horizon Cellars\" width=\"120\" height=\"80\" hspace=\"4\" vspace=\"4\" border=\"1\" align=\"left\"></a>";
			j="466 Vineyard Ridge<br />Siler City, NC<br />(919) 742-1404<br />Monday 11am - 5pm<br />Tuesday - Wednesday Closed<br />Thursday - Friday  11am - 5pm<br />Friday  11am - 5pm<br />Saturday  10am - 6pm<br />Sunday  Noon - 6pm";
point = new GLatLng(35.68262492112781, -79.44120526313782);
			map.addOverlay(createMarker(point, i,j));
			break;
			case 4:
			i="<a href=\"/Wineries/#wpb\">Benjamin Vineyards & Winery</a>";
			j="6516 Whitney Rd<br /> Graham, NC 27253<br />336-376-1080<br />Thu-Sun Noon-5 pm";
point = new GLatLng(35.927898 , -79.310847  );
			map.addOverlay(createMarker(point, i,j));
			break;
			case 5:
			i="<a href=\"/Wineries/#wpc\">Chatham Hill Winery</a>";
			j="3800 Gateway Centre Blvd #310<br />  Morrisville, NC 27560<br />800-808-6768, 919-380-7135<br />Mon-Fri 11 am-5 pm;<br />Sat 11 am-6 pm; Sun 1-5 pm";
point = new GLatLng(35.848319 ,-78.802012 );
			map.addOverlay(createMarker(point, i,j));
			break;
			case 6:
			i="<a href=\"/Wineries/Piedmont/Creekside/CreekSide.php\">Creek Side Winery</a>";
			j="3515 Stoney Creek Church Rd<br /> Elon, NC 27244<br />336-584-4117<br />Nov  - Mar: Mon,Thu,Fri,Sat, 12 -5:30 pm<br />Sun 1-5:30 pm;<br />Apr  - Oct:  Mon, Thur, Fri., Sat. 12:00 - 6:00 Sun. 1:00 - 6:00<br />Other times by appointment, call ahead.";
point = new GLatLng(36.224096 , -79.491847 );
			map.addOverlay(createMarker(point, i,j));
			break;
			case 7:
			i="<a href=\"/Wineries/#wpd\">Dennis Vineyards</a>";
			j="24043 Endy Rd<br /> Albemarle, NC 28001<br />800-230-1743, 704-982-6090<br />Mon-Sat 10 am-6 pm<br />Seasonal Sun hours, call ahead";
point = new GLatLng(35.313056 ,-80.282035 );
			map.addOverlay(createMarker(point, i,j));
			break;
			case 8:
			i="<a href=\"/Wineries/#wpd\">Desi's Dew Meadery</a>";
			j="8902 Charlotte's Mtn Rd<br />Rougemont, NC 27572<br />919-632-4770<br />by appointment only";
point = new GLatLng(36.200941 , -78.978988 );
			map.addOverlay(createMarker(point, i,j));
			break;
			case 9:
			i="<a href=\"/Wineries/#wpg\">Germanton Vineyard & Winery</a>";
			j="3530 Hwy 8-65<br />Germanton, NC 27019<br />336-969-2075<br />Tue-Fri 10 am-6 pm<br />Sat 9 am-5 pm<br />call for Sunday hours";
point = new GLatLng(36.264702 , -80.226445 );
			map.addOverlay(createMarker(point, i,j));
			break;
			case 10:
			i="<a href=\"/Wineries/Piedmont/Grove/Grove.php\">Grove Winery</a>";
			j="7360 Brooks Bridge Rd<br />Osceola, NC 27249<br />336-584-4060<br />Fri-Sat Noon-5 pm<br />Sun 1-5 pm";
point = new GLatLng(36.222548 , -79.546104 );
			map.addOverlay(createMarker(point, i,j));
			break;
			case 11:
			i="<a href=\"/Wineries/#wpo\">Old Stone Vineyard & Winery</a>";
			j="6245 U.S. Hwy 52<br />Salisbury, NC 28146<br />704-279-0930<br />Tue-Sat 11 am-6 pm<br />Sun 1-5 pm";
point = new GLatLng(35.597483 , -80.42631 );
			map.addOverlay(createMarker(point, i,j));
			break;
			case 12:
			i="<a href=\"/Wineries/#wps\">SilkHope Winery</a>";
			j="2601 Silk Hope Gum Springs Rd<br />Pittsboro, NC 27312<br />919-742-4601<br />Sat & Sun 12:00  5 pm<br />Mon-Fri by appointment";
point = new GLatLng(35.77104 , -79.274157  );
			map.addOverlay(createMarker(point, i,j));
			break;
			case 13:
			i="<a href=\"/Wineries/Piedmont/Stonefield/Stonefield.php\">Stonefield Cellars<img src=\"/assets/images/Wineries/Piedmont/Stonefield/markers/DSC_0022.jpg\" alt=\"Stonefield Cellars Offices\" width=\"120\" height=\"80\" hspace=\"4\" vspace=\"4\" border=\"0\" align=\"left\"></a>";
			j="8220 NC 68 North<br />Stokesdale, NC 27357<br />336-644-9908<br />Thu-Sat Noon-6 pm<br />Sun 1-6 pm";
point = new GLatLng(36.248055 , -79.970301 );
			map.addOverlay(createMarker(point, i,j));
			break;
			case 14:
			i="<a href=\"/Wineries/#wps\">Stony Mountain Vineyards</a>";
			j="26370 Mountain Ridge Rd<br />Albemarle, NC 28001<br />704-982-0922<br />Fri-Sat Noon-6 pm<br />Sun-Thu by appointment only";
point = new GLatLng(35.335282 ,-80.096569 );
			map.addOverlay(createMarker(point, i,j));
			break;
			case 15:
			i="<a href=\"/Wineries/#wpu\">Uwharrie Vineyards</a>";
			j="28014 Austin Rd<br />Albemarle, NC 28001<br />704-982-WINE (9463)<br />Tue-Fri 10 am-6 pm<br />Sat 9 am-6 pm; Sun 1-5 pm";
point = new GLatLng(35.380319 , -80.271719 );
			map.addOverlay(createMarker(point, i,j));
			break;

		}
		return point;
	}

		
   function add_pmarker() 
   	{

			var y;

			for (y=1;y<=15;y++)
			{
			piedmont_markers(y);
			}
	}


// ---------------- Yadkin wineries --------------------------
	function yadkin_markers(mwhich)
	{
		var i,j;

		switch (mwhich)
		{
			case 1:
			i="<a href=\"/Wineries/#wbl\">Black Wolf Vineyards</a>";
			j="283 Vineyard Ln<br />Dobson, NC 27017<br />336-374-2532<br />Mon-Sat 11 am-2:30 pm<br />Thu-Sat 5-10 pm<br />Sun Noon-8 pm";
point = new GLatLng(36.404137 , -80.701615);
			map.addOverlay(createMarker(point, i,j));		
			break;
			case 2:
			i="<a href=\"/Wineries/#wbl\">Buck Shoals Vineyard</a>";
			j="6137 Vintner Way<br />Hamptonville, NC 27020<br />336-468-9274<br />Wed-Thu 11 am-5 pm<br />Fri-Sat 11am-6 pm; Sun 1-5 pm";
point = new GLatLng(36.111845 , -80.856538);
			map.addOverlay(createMarker(point, i,j));		
			break;
			case 3:
			i="<a href=\"/Wineries/#wbl\">Childress Vineyards</a>";
			j="1000 Childress Vineyards Rd<br />Lexington, NC 27295<br />336-236-9463<br />Mon-Sat 10 am-6 pm<br />Sun Noon-6 pm";
point = new GLatLng(35.846884 , -80.253317);
			map.addOverlay(createMarker(point, i,j));		
			break;
			case 4:
			i="<a href=\"/Wineries/#wbl\">Flint Hill Vineyards</a>";
			j="2133 Flint Hill Road<br />East Bend, NC 27018<br />336-699-4455<br />Fri 11 am-6 pm; Sat 11 am-5 pm; Sun 1-5 pm";
point = new GLatLng(36.180617 , -80.48151);
			map.addOverlay(createMarker(point, i,j));		
			break;
			case 5:
			i="<a href=\"/Wineries/#wbl\">Grassy Creek Vineyard &amp; Winery</a>";
			j="235 Chatham Cottage Circle<br />State Road NC 28676<br />336-835-4230<br />Thu-Sat Noon-6 pm, Sun 1-5 pm";
point = new GLatLng(36.29776  , -80.86354);
			map.addOverlay(createMarker(point, i,j));		
			break;
			case 6:
			i="<a href=\"/Wineries/#wbl\">Hanover Park Vineyard</a>";
			j="1927 Courtney-Huntsville Rd<br />Yadkinville, NC 27055<br />336-463-2875<br />Thu-Sat Noon-6 pm; Sun 1-5 pm";
point = new GLatLng(36.062009 , -80.627792);
			map.addOverlay(createMarker(point, i,j));		
			break;
			case 7:
			i="<a href=\"/Wineries/#wbl\">Laurel Gray Vineyards</a>";
			j="5726 Old Hwy 421<br />Hamptonville, NC 27020<br />336-468-9463 (got wine) 336-468-8463 (got vine)<br />Wednesday 1:00 pm 6:00 pm<br />Thursday 10:00 am  6:00 pm<br />Friday 10:00 am - 6:00pm<br />Saturday 10:00 am - 5:00 pm<br />Sunday 1:00 pm  5:00 pm<br />Closed Monday and Tuesday<br />Note: will be closed the month of January and will re-open February 1st.";
point = new GLatLng(36.134265 , -80.842311);
			map.addOverlay(createMarker(point, i,j));
			break;
			case 8:
			i="<a href=\"/Wineries/#wbl\">Old North State Winery</a>";
			j="308 North Main St<br />Mt. Airy, NC 27030<br />336-789-WINE (9463)<br />Mon-Sat 10 am-6 pm; Sun 1-6 pm";
point = new GLatLng(36.501762 , -80.60843);
			map.addOverlay(createMarker(point, i,j));		
			break;
			case 9:
			i="<a href=\"/Wineries/#wbl\">Raffaldini Vineyards</a>";
			j="450 Groce Rd<br />Ronda, NC 28670<br />336-835-9463<br />Wed-Sat, 11-5 pm; Sun, 1-5 pm";
point = new GLatLng(36.179805 , -80.881117);
			map.addOverlay(createMarker(point, i,j));		
			break;
			case 10:
			i="<a href=\"/Wineries/#wbl\">RagApple Lassie Vineyards</a>";
			j="3724 Rockford Rd<br />Boonville, NC 27011<br />66-RagApple, 336-367-6000<br />Open Daily Noon-6 pm";
point = new GLatLng(36.226921 , -80.656439);
			map.addOverlay(createMarker(point, i,j));		
			break;
			case 11:
			i="<a href=\"/Wineries/#wbl\">RayLen Vineyards &amp; Winery</a>";
			j="3577 US Hwy 158<br />Mocksville, NC 27028<br />336-998-3100<br />Mon-Sat 11am-6 pm";
point = new GLatLng(35.968259 , -80.498283);
			map.addOverlay(createMarker(point, i,j));		
			break;
			case 12:
			i="<a href=\"/Wineries/#wbl\">Round Peak Vineyards</a>";
			j="765 Round Peak Church Road<br />Mt. Airy, NC 27030<br />336-352-5595<br />Thu-Sat, 11 am-5 pm; <br />Sun Noon-5 pm or by appointment";
point = new GLatLng(36.501070 , -80.768386);
			map.addOverlay(createMarker(point, i,j));		
			break;
			case 13:
			i="<a href=\"/Wineries/#wbl\">Shelton Vineyards</a>";
			j="286 Cabernet Ln<br />Dobson, NC 27017<br />336-366-4724<br />Apr - Oct Mon-Sat 10am - 6pm; Sun 1-6pm;<br />Oct - Apr Mon-Sat 10 am-5 pm; Sun 1-5 pm";
point = new GLatLng(36.351500 , -80.713200);
			map.addOverlay(createMarker(point, i,j));		
			break;
			case 14:
			i="<a href=\"/Wineries/#wbl\">Stony Knoll Vineyards</a>";
			j="1143 Stony Knoll Road<br />Dobson, NC 27017<br />336-374-5752<br />Sat 12-6 pm and Sun 2-6 pm";
point = new GLatLng(36.312326 , -80.673249);
			map.addOverlay(createMarker(point, i,j));		
			break;
			case 15:
			i="<a href=\"/Wineries/#wbl\">Weathervane Winery</a>";
			j="484 Hartman Rd<br />Winston Salem, NC 27127<br />336-775-9717<br />By appt. only";
point = new GLatLng(35.973949 , -80.239181);
			map.addOverlay(createMarker(point, i,j));	
			break;
			case 16:
			i="<a href=\"/Wineries/#wbl\">Westbend Vineyards</a>";
			j="5394 Williams Rd<br />Lewisville, NC 27023<br />336-945-5032<br />Tue-Sat 11 am-5 pm; Sun 1-5 pm<br />winter hours vary, please call.";
point = new GLatLng(36.088640,-80.504555);
			map.addOverlay(createMarker(point, i,j));	
			break;
			case 17:
			i="<a href=\"/Wineries/#wbl\">Windy Gap Vineyards</a>";
			j="656 Pardue Farm Rd<br />Ronda, NC 28670<br />336-984-3926<br />Tue-Fri 11 am-6 pm; Sat 11 am-6 pm; Sun Noon-5 pm";
point = new GLatLng(36.159340,-80.946591);
			map.addOverlay(createMarker(point, i,j));					
			break;

		}
		return point;		
		
	}
   function add_ymarker() 
   	{

			var y;

			for (y=1;y<=17;y++)
			{
			yadkin_markers(y);
			}
	}
   	
    function load_wineries() 
	{
      if (GBrowserIsCompatible()) 
	  {
        map = new GMap2(document.getElementById("map2"));
		map.addControl(new GSmallMapControl());
		map.addControl(new GMapTypeControl());
        map.setCenter(new GLatLng(35.460669951495305, -79.5849609375), 7);
		map.openInfoWindowHtml(map.getCenter(),"<a href=\"http://www.northcarolinatourist.com/Wineries\" target=\"_blank\">North Carolina Wineries</a> Each grape cluster represents a winery.<br /> Click on the grape cluster to get more information.  <br />Click anywhere and drag to move map. <br />Click the X top right to close this window.");
		 add_cmarker();
		 add_pmarker();
		 add_ymarker();
		 add_mmarker();
     // geocoder = new GClientGeocoder();
      }
    }

    function load_all() 
	{
         map.setCenter(new GLatLng(35.460669951495305, -79.5849609375), 7);
		 add_cmarker();
		 add_pmarker();
		 add_ymarker();
		 add_mmarker();
	}
    function clearo() 
	{
		map.closeInfoWindow();
		map.clearOverlays(); 
	}
	function setprint()
	{
		var d = document.getElementById('wineries');
		var olddiv = document.getElementById('winelist');
		d.removeChild(olddiv);
	}
	
    function unload() 
	{
		map.setMapType(null)
		map.closeInfoWindow();
		map.clearOverlays(); 
		var d = document.getElementById('map');
		var olddiv = document.getElementById('map2');
		d.removeChild(olddiv);
		loaded=0;

	} 

	function pointo_to_winery()
	{
		var string_wine,ipoint, npoint,winenum,which_wine;
		var wdone=0;
		box = document.wineryf.whichwine;
		string_wine = box.options[box.selectedIndex].value;
		which_wine = parseInt(string_wine);

		if(which_wine == 0 ) {
        map.setCenter(new GLatLng(35.460669951495305, -79.5849609375), 7);
		return;
		}

		if(which_wine <99 ) {
		npoint = coastal_markers(which_wine);}

		if(which_wine > 300) {
		which_wine = which_wine - 300; 
		npoint = mountain_markers(which_wine);}
		
		if(which_wine > 200) {
		which_wine = which_wine - 200; 
		npoint = yadkin_markers(which_wine);}

		if(which_wine > 100) {
		which_wine = which_wine - 100; 
		npoint = piedmont_markers(which_wine);}

		map.setZoom(7);
		
		window.setTimeout(function() {
		map.panTo(npoint);
			}, 1000);


		window.setTimeout(function() {
		map.setZoom(11);
		map.panTo(npoint);
			}, 3000);


		window.setTimeout(function() {
		map.setZoom(15);
		map.panTo(npoint);
			}, 5000);


	}
	
   // addAddressToMap() is called when the geocoder returns an
    // answer.  It adds a marker to the map with an open info window
    // showing the nicely formatted version of the address and the country code.
    function addAddressToMap(response) {
      map.clearOverlays();
      if (!response || response.Status.code != 200) {
        alert("Sorry, we were unable to geocode that address");
      } else {
        place = response.Placemark[0];
        j="Coming Soon";
point = new GLatLng(place.Point.coordinates[1],
                            place.Point.coordinates[0]);
	document.getElementById("latitude").innerHTML = (place.Point.coordinates[1] + ' North and ' + place.Point.coordinates[0] + " West <br /><br />");
        marker = new GMarker(point);
        map.addOverlay(marker);
        marker.openInfoWindowHtml(place.address + '<br>' +
          '<b>Country code:</b> ' + place.AddressDetails.Country.CountryNameCode);
      }
    }

    // showLocation() is called when you click on the Search button
    // in the form.  It geocodes the address entered into the form
    // and adds a marker to the map at that location.
    function showLocation() {
      var address = document.maps.q.value;
	document.getElementById("locate").innerHTML = "show location for form";
      geocoder.getLocations(address, addAddressToMap);
    }

   // findLocation() is used to enter the sample addresses into the form.
    function findLocation(address) {
	document.getElementById("locate").innerHTML = "find location for links";
      document.maps.q.value = address;
      showLocation();
    }
	
    //]]>

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->