﻿function hideTip() {
    if (Tooltip == null)
        return;
    if (!Tooltip.ready) {
        Tooltip.init();
    }
    Tooltip.hide();
}
function doTooltip(e) {
    if (e == null)
        e = window.event;
    if (Tooltip == null)
        return;
    if (!Tooltip.ready) {
        Tooltip.init();
    }
    var url = getElement('largeImage').src;
    var cntnt = wrapTipContent();
    Tooltip.show(e, cntnt, 'url(' + url + ') no-repeat');
}
function wrapTipContent() {
    var myPhoto = getElement('largeImage');
    var cntnt = document.createElement("DIV");
    cntnt.style.width = myPhoto.width + 'px';
    cntnt.style.height = myPhoto.height + 'px';
    return cntnt;
}