function f_scrollTop() {
    return f_filterResults (
        window.pageYOffset ? window.pageYOffset : 0,
        document.documentElement ? document.documentElement.scrollTop : 0,
        document.body ? document.body.scrollTop : 0
    );
}
function f_filterResults(n_win, n_docel, n_body) {
    var n_result = n_win ? n_win : 0;
    if (n_docel && (!n_result || (n_result > n_docel)))
        n_result = n_docel;
    return n_body && (!n_result || (n_result > n_body)) ? n_body : n_result;
}
function image_focus(el) {
    if (!$('#image_preview').length) $('body').append('<div id="image_preview" style="display: none; border: 1px solid #000; position: absolute; left: 0; top: 0; width: 260px; height: 360px;"></div>');
    if (!$(el).find('.product_image').attr('big')) return;
    $('#image_preview:hidden').css('top', f_scrollTop() + 'px').show().css('background', '#fff url(' + $(el).find('.product_image').attr('big') + ') no-repeat 50% 50%');
}
function image_blur(el) {
    if (!$('#image_preview').length) return;
    $('#image_preview:visible').hide();
}

