// JavaScript Document


/* SCROLLING EFFECT */

var arrsections = new Array();
	
arrsections[0] = new Array('#logo_1','home');
arrsections[1] = new Array('#logo_2','shows');
arrsections[2] = new Array('#logo_3','attractions');
arrsections[3] = new Array('#logo_4','reviews');
arrsections[4] = new Array('#logo_5','directions');

	
function animateMenuLogo(logo, menu) {
	var scrollposition = $(window).scrollTop();
	var top = $("a[name='"+ menu +"']").offset().top;
	var sectionheight = $("a[name='"+ menu +"']").parent().outerHeight();
	//alert( top + '   ' + sectionheight);
	if (((top ) < scrollposition) && ((top + sectionheight  ) > scrollposition)) {
		$("a[href='#"+ menu +"']").addClass("current");
	} else {
		$("a[href='#"+ menu +"']").removeClass("current");
	}		
}

$(window).scroll(
	function() {
		var top = 0;
		top = $(window).scrollTop();
		if (top > 868) {
		  // $("#floating-header-wrapper").css("top", 0);
		  $("#floating_header_left").css("top", 0);
		  $("#floating-buy-tickets").css("top", 0);
		} else {
		  // $("#floating-header-wrapper").css("top", 900-top);
		  $("#floating_header_left").css("top", 868-top);
		  $("#floating-buy-tickets").css("top", 868-top);
		} 
		for (var i = 0; i < arrsections.length; i++) {
			//animateMenuLogo(arrsections[i][0],arrsections[i][1]);
		} 
		
	}
);

/* END SCROLLING EFFECT */







