// 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_class){
	$(element).next('.should_destroy').value = 1
	$(element).up(element_class).hide();
}

$(document).ready(function(){
	
	init_tooltip('abbr, acronym');
	
})

function init_tooltip(element){
	$(element).each(function(){
		tipText = $(this).attr('title')
		$(this).append('<div class="body_tooltip"><p>' + tipText + '</p></div>')
	})
}