// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults

function mark_for_destroy(element) {
	$(element).next('.should_destroy').value = 1;
	$(element).up('.picture').hide();
}

function mark_as_default(element) {
	$$('input.is_default').each(function(el) { el.value = 0 });
	$$('input.is_default').each(function(el) { el.parentNode.style.fontWeight = 'normal' });
	$(element).next('.is_default').value = 1;
	$(element).parentNode.style.fontWeight = 'bold';
	$(element).parentNode.style.fontSize = '110%';
}
