function fancyboxFormatTitle(title, currentArray, currentIndex, currentOpts) {
    return '<div id="tip7-title">' + (title && title.length ? '<b>' + title + '</b><br />' : '' ) + '画像 ' + (currentIndex + 1) + ' / ' + currentArray.length + '</div>';
}

jQuery(function ($) {
    $('img.highlightable, input.highlightable').each(function () {
        var orig = $(this).attr('src');
        var over = $(this).attr('src').replace(/\.inactive\./, '.active.');
        document.createElement('img').src = over;

        $(this).hover(function () { $(this).attr('src', over); }, function () { $(this).attr('src', orig); });
    });
});
