jQuery(function($) {
    $(document).ready(function() {
        $("input[type=text]")
            .focus(function() {
                if (this.value == this.defaultValue) this.value = "";
            })
            .blur(function() {
                if (this.value == "") this.value = this.defaultValue;
            });
    })

    $('div.subsidiary a').click(function() {
        window.open(this.href);
        return false;
    });

    if( 0 === $('nav ul').length && 1 === $('nav + ul').length ) {
        // Pre-HTML5 UA
        $('nav').append($('nav + ul'));
        $('footer').append($('footer + p'));
    }
})
