$("#example1").tooltip({cssClass:"tooltip-red"});
$("#example1").tooltip({
cssClass: "",
delay : 0,// time in milliseconds that you must leave the mouse over the link until the tooltip appears
duration : 500,//time in milliseconds that the tooltip will stay visible after you remove the mouse over the link
xOffset : 15,
yOffset : 15,
opacity : 0,
fadeDuration: 400
});
variation by Steve Favorito.