(function($) {
    $(function() {
        // Fix 1px header bug in FF 2.x and 3.0.0-3.0.9
        var ffver = navigator.userAgent.match(/Firefox.((?:\d\.)+\d+)/);
        var versionBits = ffver[1].split('.');
        if(ffver) {
            if(parseInt(versionBits[0]) === 3 && parseInt(versionBits[1]) === 0 && parseInt(versionBits[2]) < 10) {
                $('#header').css('margin', '0 1px 0 -1px');
            } else if(parseFloat(ffver[1]) < 3) {
                $('#header').css('margin', '0 -1px 0 1px');
            }
        }
        
        $('a.offsite').click(function() {
            window.open($(this).attr('href'));
            return false;
        });
    });
})(jQuery);