$("html").addClass("js");

$(document).ready(function() {
	$("div.alert h5.hidealert a").click(function() {
		$("div.alert").slideUp("slow");
		var date = new Date();
		var expires = new Date(date.getTime() + (7 * 1000 * 60 * 60 * 24));
		document.cookie = 'exp_alert_banner_inmanrec=hide; expires=' + expires.toGMTString() + '; path=/'; 
		return false;
	});

	$wp_fields = $(".whitepaper_dl #dform input[type='text']");

	if ($wp_fields.length) {
		$wp_fields.focus(function() {
			if ($(this).val() == $(this).attr("title")) {
				$(this).val("");
			};
		});
		$wp_fields.blur(function() {
			if ($(this).val() == "") {
				$(this).val($(this).attr("title"));
			};
		});
	};
});

