$(function () {
    var eventStopper = null,
        listImageSelect = null,
        selectJumpFunc = null;

    eventStopper = function (func, selector) {
        return function (e) {
            e.preventDefault();
            func(this, selector);
        };
    };

    listImageSelect = function (that, selector) {
        var imgLink = $(that).attr('href');
        $('.main-img', $(selector)).attr('src', imgLink);
    };

    selectJumpFunc = function (e) {
        e.preventDefault();
        window.location = $(this).val();
    };

    $('#jump-select').change(selectJumpFunc);
    $('#size-nav').find('a').trigger('hover');
    $('a', $('#container-home')).
        click(eventStopper(listImageSelect, '#container-home'));
});


