Moved function showtip out of document.ready