var ie6 = false;
$(document).ready(function(){
    if($('body').hasClass('single-post'))
        $('#header #nav li.page-item-1000').addClass('current_page_item');
        
    if(ie6){
        //$('#header #nav ul').css('display', 'block');
    }else{
        /* nav highlights */
        $('#header #nav li:not(.current_page_item) a')
            .mouseenter(function(){ $(this).animate({backgroundColor: "#63a6ce"}, {queue:false, duration:500}); })
            .mouseleave(function(){ $(this).animate({backgroundColor: "#84b22e"}, {queue:false, duration:500}); });
        $('#header #nav ul').parent()
            .mouseenter(function(){ $('ul', this).fadeIn(150); $(this).addClass('hover'); })
            .mouseleave(function(){ $('ul', this).fadeOut(150); $(this).removeClass('hover'); })
            .addClass('sub-nav');
    }
    $('.column-container .column').each(function(){
        var first = $(this).children().eq(0);
        if(first[0].tagName == 'P' || first[0].tagName == 'p'){
            first.css('margin-top', '30px');
        }
    });
});
jQuery.preloadImages = function(){for(var i = 0; i<arguments.length; i++){jQuery("<img>").attr("src", arguments[i]);}}
