Cufon.replace('#top h2, #top h3, #top li a, #top span', { fontFamily:'HelveticaNeue Regular', hover:true });
Cufon.replace('#top h3 strong, .box h3, #container h1, #container h2, #thumblist li td', { fontFamily:'HelveticaNeue Bold', hover:true });

$(document).ready(function () {

	$(".newsletter .btn").click(function () {
		$(this).parent().parent().slideToggle();
		$(this).parent().parent().parent().find(".subscribed").slideToggle();
	});

	$("#menu li").mouseenter(
			function () {
				$(this).find(".sub > li").show();
			}).mouseleave(function () {
				$(this).find(".sub > li").hide();
			});
	$("#menu li .sub li").mouseenter(
			function () {
				$(this).addClass("current-dynamic");
				$(this).find("li").show();
			}).mouseleave(function () {
				$(this).removeClass("current-dynamic");
				$(this).find("li").hide();
			});

	$("#thumblist li").mouseenter(function () {

		$(this).parent().children("li").removeClass("active");
		$(this).addClass("active");
		$(this).parent().children("li").find(".enabled").show();
		$(this).find(".enabled").hide();
		$(this).find(".disabled").show();
		var current = $(this).attr("id");

		$("#slides").find(".slide").hide();
		$("#slides").find('.' + current).fadeIn("fast");
		Cufon.refresh();

	});

	/* autoclear function for inputs */
	$('.autoclear').click(function () {
				if (this.value == this.defaultValue) {
					this.value = '';
				}
			});
	$('.autoclear').blur(function () {
				if (this.value == '') {
					this.value = this.defaultValue;
				}
			});

});


