﻿function Init() {
    jQuery('#mycarousel').jcarousel();
    resize();

    $(window).resize(function () {
        resize();
    });

    $('a[rel=darkbox]').darkbox();
}

function resize() {
    var mainContent = $("#mainContent");

//   if (mainContent.height() < $(window).height()) {
//        mainContent.height($(window).height() - 350);
//    }

    var top = mainContent.offset().top + mainContent.height() - 120;
    $("#wrench").css("top", top);

}
