$(document).ready(function () {

	$.fn.onfocus = function () {
		$(this).css("color","#888");

		return this.focus(function () {
			if( this.value == this.defaultValue ) {
				this.value = "";
				$(this).css("color","#000");
			}
		}).blur(function () {
			if( !this.value.length ) {
				this.value = this.defaultValue;
				$(this).css("color","#888");
			}
		});
	};

	$("#email").onfocus();

	$("#submit").hover(function () {
		$(this).addClass("hover");
	}, function() {
		$(this).removeClass("hover");
	});

	$('ul.nav li ul').hide();
	$('ul.nav li.active ul').show();
	$('ul.nav li span').click(function () {
		$(this).next('ul').slideToggle();
	});

	$(".accordion").accordion({
        autoHeight: false
    });

});
