$(document).ready(
	function(){
		
		$(document).pngFix();
		
		$.fn.search = function() {
			return this.focus(function() {
				if( this.value == this.defaultValue ) {
					this.value = "";
				}
			}).blur(function() {
				if( !this.value.length ) {
					this.value = this.defaultValue;
				}
			});
		};
		// clear feedburner by email
		$("#emailburn input").search();
		// clear search bit
		$("#searchform input").search();
		
		// show feedburner form
		$('#byEmail').click(function () {
			$("#emailburn").show("slow");	     
		})	
		
		// archive list dropdown
		$('#archiveToggle').click(function () {
			if ($("#archiveList").is(":hidden")) {
		        $("#archiveList").show("slow");
		      } else {
		        $("#archiveList").slideUp();
		      }
		})
	}
);