$(document).ready(function(){
        
        $('#contact_form').validationEngine();
        $('#newsletter_form').validationEngine();

    // OVERVIEW WHEEL
    $('.overview_wheel .accuracy, .accuracy_overview').hover(function(){
        $('.overview_wheel').removeClass('agility_hover');
        $('.overview_wheel').removeClass('acceleration_hover');
        $('.overview_wheel').addClass('accuracy_hover');

        $('.acceleration_overview').removeClass('overview_block_hover');
        $('.agility_overview').removeClass('overview_block_hover');
        $('.accuracy_overview').addClass('overview_block_hover');
    });

    $('.overview_wheel .agility, .agility_overview').hover(function(){
        $('.overview_wheel').removeClass('accuracy_hover');
        $('.overview_wheel').removeClass('acceleration_hover');
        $('.overview_wheel').addClass('agility_hover');

        $('.acceleration_overview').removeClass('overview_block_hover');
        $('.accuracy_overview').removeClass('overview_block_hover');
        $('.agility_overview').addClass('overview_block_hover');
    });

    $('.overview_wheel .acceleration, .acceleration_overview').hover(function(){
        $('.overview_wheel').removeClass('agility_hover');
        $('.overview_wheel').removeClass('accuracy_hover');
        $('.overview_wheel').addClass('acceleration_hover');

        $('.agility_overview').removeClass('overview_block_hover');
        $('.accuracy_overview').removeClass('overview_block_hover');
        $('.acceleration_overview').addClass('overview_block_hover');
    });

    // SUMMARY WHEEL
    $('#accordion .accuracy').click(function(){
        $('.summary_wheel').removeClass('agility_hover');
        $('.summary_wheel').removeClass('acceleration_hover');
        $('.summary_wheel').addClass('accuracy_hover');
    });

    $('#accordion .agility').click(function(){
        $('.summary_wheel').removeClass('accuracy_hover');
        $('.summary_wheel').removeClass('acceleration_hover');
        $('.summary_wheel').addClass('agility_hover');
    });

    $('#accordion .acceleration').click(function(){
        $('.summary_wheel').removeClass('agility_hover');
        $('.summary_wheel').removeClass('accuracy_hover');
        $('.summary_wheel').addClass('acceleration_hover');
    });

    $(function() {
        $('.dd').hover(function(){
            $(this).children('ul').show();
        }, function() {
            $(this).children('ul').hide();
        });
    });

    Cufon.replace('.content_box h1, .modal_form h4', { fontFamily: 'Gill Sans MT' });

    $(function(){
        $('.search_box input').focus(function(){
            var original_value = $(this).val();
            $(this).val('');
        });
    });

    $('.one').click(function(){
            $('.banner').innerFadeTo(0);
            $('.carousel_btn ul li').removeClass('active');
            $(this).parent().addClass('active');
    });

    $('.two').click(function(){
            $('.banner').innerFadeTo(1);
            $('.carousel_btn ul li').removeClass('active');
            $(this).parent().addClass('active');
    });

    $('.three').click(function(){
            $('.banner').innerFadeTo(2);
            $('.carousel_btn ul li').removeClass('active');
            $(this).parent().addClass('active');
    });

    $('.four').click(function(){
            $('.banner').innerFadeTo(3);
            $('.carousel_btn ul li').removeClass('active');
            $(this).parent().addClass('active');
    });

    $('.boxy').click(function() {
        var login_prompt = new Boxy($('.modal_form'), {modal: true});
        return false;
    });

    $('.seminar-register').click(function(){
       $('.seminar-form').slideDown('slow');
       $('.seminar-register').css('display','none');
       return false;
    });

});
