/**
 * jQuery DOM ready handler.
 **/
$(document).ready(function() {
	
	$('.default-value').each(function() {
	    var default_value = this.value;
	    //$(this).css('color', '#999'); // this could be in the style sheet instead
	    $(this).focus(function() {
	        if(this.value == default_value) {
	            this.value = '';
	            $(this).css('color', '#76797b');
	        }
	    });
	    $(this).blur(function() {
	        if(this.value == '') {
	            $(this).css('color', '#999');
	            this.value = default_value;
	        }
	    });
	});
	
	/* Subract 1px vertical padding from form submit btns in FF */
	if ($.browser.mozilla) {
	    $('.fbsubmitbtn').css('padding', '4px 8px');
	 }
	
	$('.back-to-top').click(function(){
		$('html, body').animate({scrollTop:0}, 'slow');
		return false;
	});

			
});


