﻿
$(document).ready(function() {

$('#hardware-section').addClass('not-here');
$('#seo-section').addClass('not-here');

    $("#business-areas a").hover(
      function() {
          var relLink = $(this).attr('rel');
          $('.section').removeClass("here").addClass("not-here");
          $('#' + relLink).addClass("here").removeClass("not-here");
      }
    );

    /* Fancy Box */

    $("a.iframe").fancybox({
        'hideOnContentClick': true,
        'width': 880,
        'height': 450,
        'overlayOpacity': 0.8
    });


        function mycarousel_initCallback(carousel) {
            // Disable autoscrolling if the user clicks the prev or next button.
            carousel.buttonNext.bind('click', function () {
                carousel.startAuto(0);
            });

            carousel.buttonPrev.bind('click', function () {
                carousel.startAuto(0);
            });

            // Pause autoscrolling if the user moves with the cursor over the clip.
            carousel.clip.hover(function () {
                carousel.stopAuto();
            }, function () {
                carousel.startAuto();
            });
        };


        jQuery('#mycarousel').jcarousel({
            scroll: 1,
            auto: 12,
            wrap: 'both',
            initCallback: mycarousel_initCallback

        });


});
