jQuery.noConflict();

jQuery(document).ready(function($) {
    $('table.inner-boxes').each(function() {
        var h = 0;
        $(this).find('div.inner-boxes-content').each(function() {
            var th = $(this).height();
            if (th > h) {
                h = th;
            }
        }).height(h);
    });
    
    $('#homeBanner div.itemContent a').bigTarget({ clickZone: 'div:eq(0)' });
    
    $('div.serviceBlock td').hover(function() {
        $(this).addClass('hover');
    }, function() {
        $(this).removeClass('hover');
    });
    var h = 0;
    $('div.serviceBlock div.whiteBox').each(function() {
        var th = $(this).height();
        if (th > h) {
            h = th;
        }
    }).height(h);

    $('div.homeDropDown h2').click(function() {
        $(this).toggleClass('open').next().slideToggle();
    });

    $('#homeBanner ul li').each(function(i, e) {
        var $this = $(this);

        $this.find('h2').each(function(i, e) {
            $(this).addClass('h' + i);
        }).appendTo($this);
    });

    $('div.homeFooter div.feedCaseStudy div.carouselMask ul').adidoCarousel({ pager: true, pagerElement: 'div.homeFooter div.feedCaseStudy div.carouselPager', pagerStyle: 'numeric', resizeMask: true });
    //$('#homeBanner div.carouselMask ul').adidoCarousel({ pager: true, pagerAuto: false, pagerElement: '#homeBanner div.carouselPager', mode: 'fade', animDelay: 200 });
    $('#homeBanner div.carouselMask ul').adidoCarousel({ pager: true, pagerAuto: false });

    $(':first-child').addClass('first');
    $(':last-child').addClass('last');
});
