function emoticon(text) {
	text = ' ' + text + ' ';
	if (document.news.tresc.createTextRange && document.news.tresc.caretPos) {
		var caretPos = document.news.tresc.caretPos;
		caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' '
				: text;
		document.news.tresc.focus();
	} else {
		document.news.tresc.value += text;
		document.news.tresc.focus();
	}
}

$(document).ready( function() {
	$("a").tooltip({
		track: true, 
	    delay: 0, 
	    showURL: false, 
	    showBody: " - ", 
	    fade: 250
	});
});
