// jquery.forum.js

jQuery(function() {
	
	jQuery('div#topic_locked h3.custom_navline>*, div#topic h3.custom_navline>*').each(function() {
		var content = jQuery(this).text();
		jQuery(this).attr('title', content).filter('a').text( jQuery.trim(content.substring(0,3))+'...' ).hover(function() {
			// in
			jQuery(this).text( jQuery(this).attr('title') );
			jQuery(this).parent().find('span').text( jQuery.trim(jQuery(this).parent().find('span').attr('title').substring(0,3))+'...' );
		}, function() {
			// out
			jQuery(this).text( jQuery.trim(jQuery(this).text().substring(0,3))+'...' );
			jQuery(this).parent().find('span').text( jQuery(this).parent().find('span').attr('title') );
		});
	});
});