$(document).ready(function(){
				
	$(".bar-images").carouFredSel({
		items: '5',
		next: '#next-header-image',
		width: 960,
		padding: 0,
		auto: false,
		scroll: {
			items: 1
		}
	});
	
	$('.event-summary:odd').addClass('odd');
	$('#back-room-photos a:nth-child(3n) img').addClass('row-end');
	$('#back-room-photos a:nth-child(3n-2) img').addClass('row-start');

	gm_initialize();
	
	$("#bigger-map").click(function(){
		$('#map-canvas').animate({
			width:'20.375em',
			height:'18em'
		}, 200, function(){
			google.maps.event.trigger(map,"resize");
			newOptions = myOptions;
			newOptions.mapTypeControl = true;
			newOptions.streetViewControl = true;
			map.setOptions(newOptions);
		});
		$("#bigger-map").remove();
		return false;
	})
});

function gm_initialize() {
	var latlng = new google.maps.LatLng(40.723414,-73.956226);
	myOptions = {
		zoom: 16,
		center: latlng,
		panControl: false,
		zoomControl: true,
		scaleControl: false,
		streetViewControl: false,
		mapTypeControl: false,
		mapTypeId: google.maps.MapTypeId.ROADMAP
	};
	map = new google.maps.Map(document.getElementById("map-canvas"), myOptions);
	
	var image = 'http://thegutterbrooklyn.com/style/images/bowling-pin-icon.png';
	var myLatLng = new google.maps.LatLng(40.723014,-73.955326);
	var marker = new google.maps.Marker({
		position: myLatLng,
		map: map,
		icon: image
	});
  
}

