// gallery gimmicks
document.observe('dom:loaded', function()
{
    if ($('thumbs'))
        $('transfertarget').replace($('thumbs').remove());
    var img = window.location.search.match(/img=(\d+)/);
    if (img != null)
        var id = 'thumb' + img[1];
    else
        var id = 'thumb0';
    $('thumbs').scrollTop = $(id).offsetTop - 60;
});

