//var cloudXtemp, pointIcon;
//var cloudX = -630;
//var windowWidth = $(window).width();

$(document).ready(function() {
	
	setupNav();
	
	
	
	window.setTimeout(function() {
		$('#party').fadeIn(1000);
	}, 1000);
	
	$('#party a').hover(
		function () {
			$(this).stop().animate({ paddingBottom:"60px" }, 400);
			$('#party').stop().animate({ bottom:"70px" } ,400);
			$('#ground').stop().animate({ bottom:"-320px" }, 400);
		},
		function () {
			$(this).stop().animate({ paddingBottom:"0px" }, 400);
			$('#party').stop().animate({ bottom:"10px" } ,400);
			$('#ground').stop().animate({ bottom:"-380px" }, 400);
		}
	);
	
	window.setInterval(function() {
		moveCloud();
	}, 75);
	
	$('#ground').animate({bottom:"0px"}, 1000);
	
	$(window).resize(function(){
		windowWidth = $(window).width();
	});
	
	//$('#party a').click(startParty);
	
	///////////////////
	// gmaps
	// var map = new GMap2(document.getElementById("theMap"), { size: new GSize(700,450) });
	// 
	// var reindeerPoint = new GLatLng(40.7265351428124, -74.00473237037659);
	// var defaultCenter = new GLatLng(40.71916022743469, -73.97747039794922);
	// 
	// map.setCenter(defaultCenter, 13);
	// //map.setUIToDefault();
	// 
	// createMarker(reindeerPoint);
	// 
	// function createMarker(latlng) {
	// 	var marker = new GMarker(latlng);
	// 	GEvent.addListener(marker,'click', function() {
	// 		var myHtml = '<p class="infoWindow">Reindeer<br/>' +
	// 		'30 Vandam St.<br/>' +
	// 		'New York, NY 10013<br/><br/>' +
	// 		'<a href="http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=30+Vandam+St,+New+York,+NY+10013&sll=40.728332,-73.99189&sspn=0.039872,0.065403&ie=UTF8&ll=40.726608,-74.005086&spn=0.009968,0.016351&z=16&iwloc=A">Open in Google Maps</a><br/></p>';
	// 		map.openInfoWindowHtml(latlng, myHtml);
	// 	});
	// 	map.addOverlay(marker);
	// }
	// 
	// GEvent.addListener(map, 'dblclick', function() {});
	// 
	// map.disableDoubleClickZoom();
	
	//GEvent.addListener(map, 'click', function() {
	//  var center = map.getCenter();
	//  alert(center.toString());
	//});
	
	// $('#mapButton').click(function() {
	// 	map.panTo(defaultCenter);
	// 	return false;
	// });
	
});








