document.documentElement.className += ' js';

(function($){
	/* fontAvailable jQuery Plugin, v1.1
	*
	* Copyright (c) 2009, Howard Rauscher
	* Licensed under the MIT License
	*/
	(function(){
		var a;b.fontAvailable=function(e){var d,c;if(!a){a=b(document.createElement("span")).css("visibility","hidden").css("position","absolute").css("top","-10000px").css("left","-10000px").html("abcdefghijklmnopqrstuvwxyz").appendTo(document.body);}d=a.css("font-family","__FAKEFONT__").width();c=a.height();a.css("font-family",e);return d!==a.width()||c!==a.height();};
	})();
	
    //open external links in a new window
    var hostname = window.location.hostname;
    hostname = hostname.replace("www.", "").toLowerCase();
    
    $('a').each(function(){
        if (this.href.indexOf("http://") != -1 && this.href.indexOf(hostname) == -1) {
            this.target = "_blank";
            this.className += " external";
        }
    });
})(jQuery);
