$(document).ready(function() {
	$('a[rel="kitchen"]').colorbox({transition:"fade"});
	
	jQuery('#requestReset').click(function() {
		clearForm(jQuery(this).parents('form:first'));
		return false;
	});
	
	function clearForm(form) {
		jQuery(':input', form).each(function() {
			var type = this.type;
			var tag = this.tagName.toLowerCase();
			if (type == 'text' || type == 'password' || tag == 'textarea')
				this.value = "";
			else if (type == 'checkbox' || type == 'radio')
				this.checked = false;
			else if (tag == 'select')
				this.selectedIndex = -1;
		});
	};
});