$(document).ready(function() {

	$('.contact-form-field').click( function() {
		if (this.value == this.defaultValue) {
			this.value = '';
		}
	});
	$('.contact-form-field').blur(function() {
		if (this.value == '') {
			this.value = this.defaultValue;
		}
	});

	$('.contact-form-textarea').click( function() {
		if (this.value == this.defaultValue) {
			this.value = '';
		}
	});
	$('.contact-form-textarea').blur(function() {
		if (this.value == '') {
			this.value = this.defaultValue;
		}
	});

	$('.contact-form-field-small').click( function() {
		if (this.value == this.defaultValue) {
			this.value = '';
		}
	});
	$('.contact-form-field-small').blur(function() {
		if (this.value == '') {
			this.value = this.defaultValue;
		}
	});

	$('.rfq-form-field-other').click( function() {
		if (this.value == this.defaultValue) {
			this.value = '';
		}
	});
	$('.rfq-form-field-other').blur(function() {
		if (this.value == '') {
			this.value = this.defaultValue;
		}
	});

});

$(document).ready(function(){
	$("a[rel^='prettyPhoto']").prettyPhoto({theme:'light_square'});
});

$(document).ready(function() {

	$('#rf_materials').change(function() {
		if ($("#rf_materials").val() == 'Other') {
			$('#rf_materials_other').fadeIn(200);
		} else {
			$('#rf_materials_other').fadeOut(200);
		}
	});

	$('#rf_services').change(function() {
		if ($("#rf_services").val() == 'Other') {
			$('#rf_services_other').fadeIn(200);
		} else {
			$('#rf_services_other').fadeOut(200);
		}
	});

});

