$(document).ready(function(){
    $('.content-holder-menu a').click(function(e) {
        e.preventDefault();
        $('.content-holder-menu a').removeAttr('id','content-holder-menu-active');
        $(this).attr('id','content-holder-menu-active');
    });
    $('.magazine-menu a').click(function(e) {
        e.preventDefault();
        $('.magazine-menu a').removeAttr('id','magazine-menu-active');
        $(this).attr('id','magazine-menu-active');
    });
    $('#magazine-menu-s').click(function() {
        $('#why-smm-block-first').css({display:'none'});
        $('#why-smm-block-second').css({display:'block'});
        $('#why-smm-block-third').css({display:'none'});
    });
    $('#magazine-menu-f').click(function() {
        $('#why-smm-block-first').css({display:'block'});
        $('#why-smm-block-second').css({display:'none'});
        $('#why-smm-block-third').css({display:'none'});
    });
    $('#magazine-menu-t').click(function() {
        $('#why-smm-block-first').css({display:'none'});
        $('#why-smm-block-second').css({display:'none'});
        $('#why-smm-block-third').css({display:'block'});
    });
    $('.road').mouseover(function() {
        $('#road-one').fadeIn(400);
        $('#road-two').delay(350).fadeIn(1200);
        $('#road-three').delay(700).fadeIn(1200);
        $('#road-four').delay(1050).fadeIn(1200);
        $('#road-five').delay(1400).fadeIn(1200);
        $('#road-six').delay(1750).fadeIn(1200);
        $('#road-seven').delay(2100).fadeIn(1200);
        $('#road-eight').delay(2450).fadeIn(1200);
    });
    $('.road').mouseover(function() {
        $('#road-one-email').fadeIn(400);
        $('#road-two-email').delay(350).fadeIn(1200);
        $('#road-three-email').delay(700).fadeIn(1200);
        $('#road-four-email').delay(1050).fadeIn(1200);
        $('#road-five-email').delay(1400).fadeIn(1200);
        $('#road-six-email').delay(1750).fadeIn(1200);
        $('#road-seven-email').delay(2100).fadeIn(1200);
        $('#road-eight-email').delay(2450).fadeIn(1200);
        $('#road-nine-email').delay(2800).fadeIn(1200);
        $('#road-ten-email').delay(3150).fadeIn(1200);
        $('#road-eleven-email').delay(3500).fadeIn(1200);
        $('#road-twelve-email').delay(3850).fadeIn(1200);
    });
    $('.omg li').click(function(e) {
        e.preventDefault();
        $('.omg li').removeAttr('id','recomend-slide-circle');
        $(this).attr('id','recomend-slide-circle');
    });
    $('.recomend-li-first').click(function(){
        $('#recomend-sl-one').delay(250).fadeIn(250);
        $('#recomend-sl-two').fadeOut(250);
        $('#recomend-sl-three').fadeOut(250);
    });
    $('.recomend-li-second').click(function(){
       $('#recomend-sl-one').fadeOut(250);
       $('#recomend-sl-two').delay(250).fadeIn(250);
        $('#recomend-sl-three').fadeOut(250);
    });
    $('.recomend-li-third').click(function(){
        $('#recomend-sl-one').fadeOut(250);
        $('#recomend-sl-two').fadeOut(250);
        $('#recomend-sl-three').delay(250).fadeIn(250);
    });
    $('#content-img-1').hover(function(){
        $('#content-block-f-img-1 img').stop().fadeIn(1000)
    }, function(){
        $('#content-block-f-img-1 img').stop().fadeOut(1000)
    });
    $('#content-img-2').hover(function(){
        $('#content-block-f-img-2 img').stop().fadeIn(1000)
    }, function(){
        $('#content-block-f-img-2 img').stop().fadeOut(1000)
    });
    $('#content-img-3').hover(function(){
        $('#content-block-f-img-3 img').stop().fadeIn(1000)
    }, function(){
        $('#content-block-f-img-3 img').stop().fadeOut(1000)
    });
});




