
            var tip;
        
            function showTip(link, image, name, title, phone, email)
            {
                if (tip)
                    hideTip();

                // No image
                if (!image.length)
                    image = 'http://www.helsinkifilmi.fi/helsinkifilmi/defaultPerson.gif';

                // Create tip
                tip = document.createElement('DIV');
                tip.className = 'tip';
                tip.innerHTML =
                    '<div style="background-image: url(' + image + '?width=75&height=85);">' +
                        '<span class="name">' + name + '</span>' +
                        '<span class="title">' + title + '</span>' +
                        '<span class="phone">' + phone + '</span>' +
                        '<span class="email">' + email + '</span>' +
                    '</div>';
                    
                link.parentNode.appendChild(tip);
            }
            
            function hideTip()
            {
                if (tip)
                {
                    tip.parentNode.removeChild(tip);
                    tip = null;
                }
            }
        