
var active_color = '#ffffff';
var inactive_color = '#ffffff';

VideoJS.setupAllWhenReady();

$(document).ready(function(){

	$("#home .pad table#homeNY").fadeIn(1000);
	$("#home .pad").fadeIn(500,function(){
		$("#home .pad h1").fadeIn(2000,function(){
			$("#home .pad p").fadeIn(1000,function(){
			});
			$("#home .pad table#homePlay").animate({ opacity: 1 },500).fadeIn(1000);
		});
	});

	$("input.default-value").css("color", inactive_color);
		var default_values = new Array();
		$("input.default-value").focus(function() {
			if (!default_values[this.id]) {
			default_values[this.id] = this.value;
		}
		if (this.value == default_values[this.id]) {
			this.value = '';
			this.style.color = active_color;
		}
		$(this).blur(function() {
			if (this.value == '') {
				this.style.color = inactive_color;
				this.value = default_values[this.id];
			}
		});
	});

	$("#close").hover(function(){
		$(this).attr("src","images/buttons/close-over.gif");
	},function(){
		$(this).attr("src","images/buttons/close.png");
	});

	$("#donate").hover(function(){
		$(this).attr("src","images/buttons/donate-over.gif");
	},function(){
		$(this).attr("src","images/buttons/donate.gif");
	});

	$("#submitContact").hover(function(){
		$(this).attr("src","images/buttons/submit-over.gif");
	},function(){
		$(this).attr("src","images/buttons/submit.gif");
	});

	$("#mc-embedded-subscribe").hover(function(){
		$(this).attr("src","images/buttons/signup-over.gif");
	},function(){
		$(this).attr("src","images/buttons/signup.gif");
	});

	$("h4.performer-header").click(function(){
		if ($(this).hasClass("Open")) {
			$(this).removeClass("Open").children(".toggle").html("+").parent().next(".performer-content").slideUp("fast");
		}
		else {
			$(this).addClass("Open").children(".toggle").html("&times;").parent().next(".performer-content").slideDown("fast");
		}
	});

});

