// futureproof!
//"use strict";

// this should be just annoying enough for robots
function mail(user, host, tld, subject) {
    var email = 'mailto:' + user + '@' + host + '.' + tld + '?subject=' + subject;
    window.location = email;
}

// lets see what you're running
function iecheck() {
    $(document).ready(function(){
        var $browserupgrade = $('#browserupgrade');
        if (jQuery.browser.msie && parseInt(jQuery.browser.version,10) <= 6) {
            var message = 'Ahoy hoy! You should download <a href=\'http:\/\/www.google.com/chrome/\'>Chrome</a>, <a href=\'http:\/\/www.getfirefox.com/\'>Firefox</a>, <a href=\'http:\/\/www.apple.com/safari/\'>Safari</a>, or <a href=\'http://www.opera.com/browser/download/\'>Opera</a>.';
            $($browserupgrade).html(message).after("<br />");
        }
    });
}

// here or there
function selfOrBlank() {
    $(document).ready(function(){
        var site = /www.cowbird.org/i;
        $('a').each(function() {
            if (site.test(this.href)) {
                $(this).attr('target','_self');
            }
            else if (this.href !== "") {
                $(this).attr('target','_blank');
            }
        });
    });
}
