$(document).ready(function () {
    // Fix IE6 first-child bug
    $('#wrapper ul#topNav li:first-child, #wrapper #leftNav ul li:first-child, #footer #footerNav ul li:first-child').addClass('first-child');

    // Reposition the Search box label text
    $('#searchLabel').removeClass().addClass('float');

    // Empty any previous search values upon page load
    //$('.search').val('');

    // Hide the overlaid label when the input gains focus
    $('.search').focus(function () {
        $('#searchLabel').hide();
    });

    // And also hide the overlaid label should the label itself be clicked instead of the actual input underneath
    $('#searchLabel').click(function () {
        $('#searchLabel').hide();
        // If the label itself was clicked, then we need to return the focus to the label
        $('.search').focus();
    });

    // Only re-apply the label overlay if NO value was entered
    $('.search').blur(function () {
        if (jQuery.trim(this.value) == '') {
            $('#searchLabel').fadeIn();
        }
    });

});
