
var CufonHandler = Class.create({
	initialize: function() {
		document.observe('custom:systemfontreplace', this.refreshEvent.bindAsEventListener(this));
	},
	config: function() {
		//Cufon.set('fontFamily','MyriadPro');
		Cufon.replace('h1');
		Cufon.replace('h3', {
			hover: true
		}); 
		Cufon.replace('#lCol p'); 
		//document.fire('custom:contentrefresh');
    },
	refreshEvent: function(evt) {
		this.config();
		this.refresh();
	},
	refresh: function() {
		Cufon.now();
	}
});

new CufonHandler();



