function loadMap()
{
	var myLatlng = new google.maps.LatLng(44.33110858038705,-79.69825744628906);
	var myOptions = {
	  zoom: 14,
	  center: myLatlng,
	  mapTypeId: google.maps.MapTypeId.ROADMAP
	}
	var contentString = "<h3>Market Buffet &amp; Grill</h3><div>147 Mapleview Drive West<br />Barrie, ON L4N 9E8<br />(705) 792-1888<br /><a href='http://maps.google.ca/maps?q=147+mapleview+dr+w+barrie,+on&ie=UTF8&hq=&hnear=147+Mapleview+Dr+W,+Barrie,+Simcoe+County,+Ontario+L4N+9E8&gl=ca&z=16' target='_blank'>Get Directions</a></div>";

	var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
	
	var image = '/images/map-logo.jpg';
	var marker = new google.maps.Marker({
		position: myLatlng, 
		map: map,
		title:"Market Buffet & Grill",
		icon: image
	});
	
	var infowindow = new google.maps.InfoWindow({
		content: contentString
	}); 
	
	infowindow.open(map,marker);	
}

function showContactForm()
{
	$("#emailUs").fancybox({
		'width'				: '35%',
		'height'			: '45%',
		'autoScale'			: false,
		'transitionIn'		: 'fade',
		'transitionOut'		: 'none',
		'type'				: 'iframe'
	});	
}
function showContactFormLocation()
{
	$("#emailUsLocation").fancybox({
		'width'				: '35%',
		'height'			: '45%',
		'autoScale'			: false,
		'transitionIn'		: 'fade',
		'transitionOut'		: 'none',
		'type'				: 'iframe'
	});	
}
function changeMenuClassMouseOver(id)
{
	document.getElementById(id).className = "item-hover";
}
function changeMenuClassMouseOut(id)
{
	document.getElementById(id).className = "item";
}
function featureNightsFancyBox()
{
	$("a#featureNights01").fancybox({
	    'titleShow'     : false,
		'transitionIn'	: 'elastic',
		'transitionOut'	: 'elastic'
	});
	
	$("a[rel=featurenights_group]").fancybox({
		'transitionIn'		: 'elastic',
		'transitionOut'		: 'elastic'
		//'titlePosition' 	: 'over',
		//'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
		    //return '<span id="fancybox-title-over">Image ' +  (currentIndex + 1) + ' / ' + currentArray.length + ' ' + title + '</span>';
		//}
	})
}
