jQuery(document).ready(function(){ 
  // jQuery stuff here
	jQuery('#credit').fadeTo(0, .3);

	jQuery('#credit').hover(function() {
		jQuery(this).fadeTo(500, 1);
	}, function() {
		jQuery(this).fadeTo(500, .3);
	});

	jQuery('#newsletter label').each(function() {
		formVar = jQuery(this).text();
		fieldId = jQuery(this).attr('for');
		
		// only change input if it's blank.
		if (jQuery('#' + fieldId).val() == '') jQuery('#' + fieldId).attr('value', formVar);

		jQuery('#' + fieldId).attr('title', formVar);
		jQuery(this).hide();
	});

	jQuery('#newsletter input').focusin(function() {
		formTitle = jQuery(this).attr('title');
		formValue = jQuery(this).attr('value');
		if (formTitle == formValue) jQuery(this).attr('value', '');
	});

	jQuery('#newsletter input').focusout(function() {
		formTitle = jQuery(this).attr('title');
		formValue = jQuery(this).attr('value');
		if (formValue == '') jQuery(this).attr('value', formTitle);
	});


}); 

