/* jQuery CSS detection script from http://monc.se/kitchen/144/detect-css-with-jquery */
function hasCSS() {
	var _d = document.createElement('div');
	_d.id = 'checkCSS';
	$('body').append(_d);
	$('#checkCSS').css({width:'1px',height:'1px',display:'none'});
	var _v = ($('#checkCSS').width() != 1) ? false : true;
	$('#checkCSS').remove();
	return _v;
}

$(document).ready(function(){
	if (hasCSS()) {
		/* Fix for Firefox "sticking" in hover state (per Simo) */
		if (window.addEventListener) {
			window.addEventListener("unload", function(){}, false);
		}

		Cufon.replace('h1', {hover: true});
		Cufon.replace('h2', {hover: true});
		Cufon.replace('h4', {hover: true});
	}
});
