$(document).ready(function(){
    
    $('.post-content > li:not(#post-content-1)').hide();
    $('.post-tabs li a').click(function(event){
        event.preventDefault();
        $('.post-tabs li').removeClass('active');
        $(this).closest('li').addClass('active');
        
        $('.post-content > li').hide();
        $('#' + event.target.href.split('#')[1]).show();
    });
   
   
    $('#form-contact-submit').click(function(event){
        event.preventDefault();
       
        jQuery.post('/remote.php', {
            data: $('#form-contact').serialize()
        }, function(result, status, request){
            var val = $('#system').html();
            $('#system').html(val.replace('$name', $('#name').val()));
            $('#system').slideDown();
        });
    });
    
    var items = $('ul.list li');
    items.hover(function(){
        $(this).animate({
            backgroundColor: '#ddd',
            fontSize: '20px',
            lineHeight: '32px'
        }, 250);
    }, function(){
        $(this).animate({
            backgroundColor: 'transparent',
            fontSize: '12px',
            lineHeight: '20px'
        });
    });
   
});
