$(function () {
	var deadlineDay = new Date();
	var finaldDay = new Date();
	deadlineDay = new Date(2011, 10 - 1, 16);
	finaldDay = new Date(2011, 11 - 1, 16);
	$('#noSeconds').countdown({until: deadlineDay, format: 'dHM'});
	$('#noSeconds2').countdown({until: $.countdown.UTCDate(-8, finaldDay), format: 'dHM'});
	$('#faq h3').each(function() {
    var tis = $(this), state = false, answer = tis.next('div').slideUp();
    tis.click(function() {
      state = !state;
      answer.slideToggle(state);
      tis.toggleClass('active',state);
    });
  });
	$("#gform_wrapper_1").after("<div id='fakeprogress'><h2>Uploading Files.. Please Wait</h2></div>");
  		$("#fakeprogress").hide();
		$("#gform_wrapper_1 .gform_footer input").click(function () {
   			$("#fakeprogress").delay(3000).show('slow');
		});
});

$(document).ready(function(){
     $('#home-slider').bxSlider({
    mode: 'fade',
    auto: true,
    pause: 7500,
    controls: false
  });
   $('#alumni-slider').bxSlider({
    mode: 'fade',
    auto: true,
    prevImage: 'http://www.bluecatscreenplay.com/v2/wp-content/themes/bluecat/images/prev-button.jpg',
    nextImage: 'http://www.bluecatscreenplay.com/v2/wp-content/themes/bluecat/images/next-button.jpg',
    pause: 9500
  });
  });

sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
