
		//<![CDATA[
		var map;
		var icon0;
		var newpoints = new Array();
		 
		function addLoadEvent(func) { 
			var oldonload = window.onload; 
			if (typeof window.onload != 'function'){ 
				window.onload = func
			} else { 
				window.onload = function() {
					oldonload();
					func();
				}
			}
		}
		 
		addLoadEvent(loadMap);
		addLoadEvent(addPoints);
		 
		function loadMap() {
			map = new GMap2(document.getElementById("map"));
			map.addControl(new GLargeMapControl());
			map.addControl(new GMapTypeControl());
		
			map.setCenter(new GLatLng(39.198205348894795, -120.0091552734375), 11, G_NORMAL_MAP);
			//arts and entertainment
			icon1 = new GIcon();
			icon1.image = "http://maps.google.com/mapfiles/ms/micons/arts.png";
			icon1.iconSize = new GSize(32, 32);
			icon1.iconAnchor = new GPoint(9, 34);
			icon1.infoWindowAnchor = new GPoint(9, 2);
			icon1.infoShadowAnchor = new GPoint(18, 25);
			//bars
			icon2 = new GIcon();
			icon2.image = "http://maps.google.com/mapfiles/ms/micons/bar.png";
			icon2.iconSize = new GSize(32, 32);
			icon2.iconAnchor = new GPoint(9, 34);
			icon2.infoWindowAnchor = new GPoint(9, 2);
			icon2.infoShadowAnchor = new GPoint(18, 25);
			//coffeehouses
			icon3 = new GIcon();
			icon3.image = "http://maps.google.com/mapfiles/ms/micons/coffeehouse.png";
			icon3.iconSize = new GSize(32, 32);
			icon3.iconAnchor = new GPoint(9, 34);
			icon3.infoWindowAnchor = new GPoint(9, 2);
			icon3.infoShadowAnchor = new GPoint(18, 25);
			//golf
			icon4 = new GIcon();
			icon4.image = "http://maps.google.com/mapfiles/ms/micons/flag.png";
			icon4.iconSize = new GSize(32, 32);
			icon4.iconAnchor = new GPoint(9, 34);
			icon4.infoWindowAnchor = new GPoint(9, 2);
			icon4.infoShadowAnchor = new GPoint(18, 25);
			//grocery
			icon5 = new GIcon();
			icon5.image = "http://maps.google.com/mapfiles/ms/micons/grocerystore.png";
			icon5.iconSize = new GSize(32, 32);
			icon5.iconAnchor = new GPoint(9, 34);
			icon5.infoWindowAnchor = new GPoint(9, 2);
			icon5.infoShadowAnchor = new GPoint(18, 25);
			//lodging
			icon6 = new GIcon();
			icon6.image = "http://maps.google.com/mapfiles/ms/micons/lodging.png";
			icon6.iconSize = new GSize(32, 32);
			icon6.iconAnchor = new GPoint(9, 34);
			icon6.infoWindowAnchor = new GPoint(9, 2);
			icon6.infoShadowAnchor = new GPoint(18, 25);
			//theaters
			icon7 = new GIcon();
			icon7.image = "http://maps.google.com/mapfiles/ms/micons/movies.png";
			icon7.iconSize = new GSize(32, 32);
			icon7.iconAnchor = new GPoint(9, 34);
			icon7.infoWindowAnchor = new GPoint(9, 2);
			icon7.infoShadowAnchor = new GPoint(18, 25);
			//restaurant
			icon8 = new GIcon();
			icon8.image = "http://maps.google.com/mapfiles/ms/micons/restaurant.png";
			icon8.iconSize = new GSize(32, 32);
			icon8.iconAnchor = new GPoint(9, 34);
			icon8.infoWindowAnchor = new GPoint(9, 2);
			icon8.infoShadowAnchor = new GPoint(18, 25);
			//shopping
			icon9 = new GIcon();
			icon9.image = "http://maps.google.com/mapfiles/ms/micons/shopping.png";
			icon9.iconSize = new GSize(32, 32);
			icon9.iconAnchor = new GPoint(9, 34);
			icon9.infoWindowAnchor = new GPoint(9, 2);
			icon9.infoShadowAnchor = new GPoint(18, 25);
			//skiing
			icon10 = new GIcon();
			icon10.image = "http://maps.google.com/mapfiles/ms/micons/ski.png";
			icon10.iconSize = new GSize(32, 32);
			icon10.iconAnchor = new GPoint(9, 34);
			icon10.infoWindowAnchor = new GPoint(9, 2);
			icon10.infoShadowAnchor = new GPoint(18, 25);
			//outdoor
			icon11 = new GIcon();
			icon11.image = "http://maps.google.com/mapfiles/ms/micons/trail.png";
			icon11.iconSize = new GSize(32, 32);
			icon11.iconAnchor = new GPoint(9, 34);
			icon11.infoWindowAnchor = new GPoint(9, 2);
			icon11.infoShadowAnchor = new GPoint(18, 25);
			//golf
			icon12 = new GIcon();
			icon12.image = "http://maps.google.com/mapfiles/ms/micons/flag.png";
			icon12.iconSize = new GSize(32, 32);
			icon12.iconAnchor = new GPoint(9, 34);
			icon12.infoWindowAnchor = new GPoint(9, 2);
			icon12.infoShadowAnchor = new GPoint(18, 25);
		
		}
		 
		function addPoints() {
		 
		newpoints[0] = new Array(-119.94383811950684, 39.25365755377603, icon12, '1', '<table style="font-family:verdana; font-size:11px;color:#000"><tr><td width="330" valign="top"><div id="divlayer_title">The Championship Course</div><div id="divlayer_desc">Stunning Lake Tahoe views and an exquisite mountain backdrop frame the world-renowned golf courses in Incline Village. </div><div id="divlayer_desc" style="margin-top:4px;">955 Fairway Blvd, Incline Village, NV 89451<br />phone: (866) 925-GOLF</div><hr /><div id="divlayer_links"><a href="http://www.golfincline.com/" target="_blank">web link</a><hr /></div></div><div id="divlayer_calendar"><b>Details</b><br /><div id="divlayer_calendar_text">To check out the season rates <a href="http://www.golfincline.com/courses_rates/season_rates">click here</a>. <a href="http://www.golfincline.com/miscTools/download.php?file=champscore.pdf">Click here</a> to view the score card.<br /></div></div></td></tr></table>');
		newpoints[1] = new Array(-119.94804382324219, 39.26010418652877, icon12, '2', '<table style="font-family:verdana; font-size:11px;color:#000"><tr><td width="330" valign="top"><div id="divlayer_title">The Mountain Course</div><div id="divlayer_desc">With spectacular green sites and contours, the Mountain Course demands more accuracy than distance. "Shot making" skills are necessary to navigate the terrain.</div><div id="divlayer_desc" style="margin-top:4px;">690 Wilson Way, Incline Village, NV 89451<br />phone: (866) 925-GOLF</div><hr /><div id="divlayer_links"><a href="http://www.golfincline.com/" target="_blank">web link</a><hr /></div></div><div id="divlayer_calendar"><b>Details</b><br /><div id="divlayer_calendar_text">The Mountain Course offers a very large practice green, along with a bunker, to help you on your short game skills.</div></div></td></tr></table>');
		newpoints[2] = new Array(-120.03284454345703, 39.238768219416556, icon12, '3', '<table style="font-family:verdana; font-size:11px;color:#000"><tr><td width="330" valign="top"><div id="divlayer_title">The Old Brockway Golf Course</div><div id="divlayer_desc">Old Brockway Golf Course meanders through towering Jeffery pines with majestic mountain and Lake Tahoe views. Enjoy more than 3400 yards of quality golfing experience, including two par 5 holes. The tight fairways and the postage stamp greens are reminiscent of golf in an era gone by.</div><div id="divlayer_desc" style="margin-top:4px;">7900 North Lake Blvd. Kings Beach, CA 96143 <br />phone: (530) 546-9909</div><hr /><div id="divlayer_links"><a href="http://www.golfincline.com/" target="_blank">web link</a><hr /></div></div><div id="divlayer_calendar"><b>Details</b><br /><div id="divlayer_calendar_text">Home of the 1st Bing Crosby Golf Tournament 1934 - 1935. 1st 9-hole golf course in country to become an Audubon cooperative sanctuary. Old Brockway Golf Course is a family business that proudly applies organic management practices.</div></div></td></tr></table>');
		newpoints[3] = new Array(-119.95079040527344, 39.251131907185105, icon5, '4', '<table style="font-family:verdana; font-size:11px;color:#000"><tr><td width="330" valign="top"><div id="divlayer_title">Raleys Shopping Center</div><div id="divlayer_desc">With tons of shopping and resturants, this center offers alot of things to do in one area.</div><div id="divlayer_desc" style="margin-top:4px;">930 Tahoe Blvd, Incline Village, NV 89451<br />phone: (775) 831-3400</div><hr /></div></div><div id="divlayer_calendar"><b>Details</b><br /><div id="divlayer_calendar_text">Pizza, Italian Food and knick-knacks available at the Raley\'s Center</div></div></td></tr></table>');
		newpoints[4] = new Array(-119.94396686553955, 39.2380702043139, icon8, '5', '<table style="font-family:verdana; font-size:11px;color:#000"><tr><td width="330" valign="top"><div id="divlayer_title">Lone Eagle</div><div id="divlayer_desc">Surrounded by the country\'s top ski areas and the Sierra Nevadas, Hyatt Regency Lake Tahoe Resort and Casino is nestled in an unspoiled natural paradise.</div><div id="divlayer_desc" style="margin-top:4px;">Lake Shore Blvd. and Country Club Dr., Incline Village, NV 89451<br />phone: (775) 886-6899</div><hr /><div id="divlayer_links"><a href="http://laketahoe.hyatt.com/hyatt/hotels/entertainment/restaurants/index.jsp" target="_blank">web link</a><hr /></div></div></div><div id="divlayer_calendar"><b>Details</b><br /><div id="divlayer_calendar_text"><a href="http://www.hyatt.com/hyatt/images/hotels/tvllt/legdinner053107.pdf" target="_blank">View their menu [pdf]</a><br />Enjoy the breathtaking scenery of snow-capped mountain peaks reflecting on serene waters in our North Lake Tahoe restaurants.</div></div></td></tr></table>');
		newpoints[5] = new Array(-119.92299735546112, 39.25395248354803, icon10, '6', '<table style="font-family:verdana; font-size:11px;color:#000"><tr><td width="330" valign="top"><div id="divlayer_title">Diamond Peak Ski Resort</div><div id="divlayer_video"><embed src="http://media.touringtahoe.com/mediaplayer.swf" width="320" height="240" allowscriptaccess="always" allowfullscreen="true" flashvars="height=240&width=320&file=http://media.touringtahoe.com/videos/Diamond_Peak_Mountain_Tour.flv&autostart=true" /></div></td><td width="220" valign="top"><div id="divlayer_desc">At Diamond Peak, you will find some of the best value for season passes in the Lake Tahoe Basin. Year round, we offer great deals on Lake Tahoe Season Passes.</div><div id="divlayer_desc" style="margin-top:4px;">1210 Ski Way, Incline Village, NV 89451<br />phone: (775) 831-3211</div><hr /><div id="divlayer_links"><a href="http://www.diamondpeak.com/">web link</a></div><hr /><div id="divlayer_calendar"><b>Details</b><br /><div id="divlayer_calendar_text">At Diamond Peak, you\'ll fall in love with our uncrowded mountain.  It features stunning views of Lake Tahoe and offers a great learning environment for beginners as well as Solitude Canyon and other challenging terrain for experts . Family skiing at Lake Tahoe has never been better, families love Diamond Peak for the Child Ski Center and our money-saving Tahoe Family Ski Packages, such as the Interchangeable Parent\'s Pass for $48.<br /></div></div></td></tr></table>');

		for(var i = 0; i < newpoints.length; i++) {
		 
				var point = new GPoint(newpoints[i][0],newpoints[i][1]);
		 
				//Add overlay to map 
				var popuphtml = newpoints[i][4] ;
				var marker = createMarker(point,newpoints[i][2],popuphtml);
				map.addOverlay(marker);
			}
		}
		 
		function createMarker(point, icon, popuphtml) {
			var marker = new GMarker(point, icon);
			GEvent.addListener(marker, "click", function() {
				marker.openInfoWindowHtml(popuphtml);
			});
			return marker;
		}
		 
		//]]>