Cufon.replace('h1');
Cufon.replace('h3');

jQuery(function(){
	jQuery("ul.wpsc_categories li a").hover( function () {
		jQuery(this).stop().animate({ 
			paddingLeft: "14px",
			backgroundPosition: '0px 9px'
		}, 100 );
	}, 
	function () {
		jQuery(this).stop().animate({ 
			paddingLeft: "0px",
			backgroundPosition: '-10px 9px'
		}, 100 );
	});
	jQuery('a.spam_protect').spam_protect();
	
	jQuery('a.wpsc-current-cat').next('ul').show();
	
	if(jQuery('ul.wpsc_categories ul a').hasClass('wpsc-current-cat')) {
		jQuery('a.wpsc-current-cat').parent().parent().show().prev('a').addClass('wpsc-current-cat');
	}
	
});
(function(jQuery){
	jQuery.fn.spam_protect = function(options) {
		return this.each(function() {
			obj = jQuery(this);
			href = obj.attr('href');
			href_replaced_1 = href.replace("|", "@");
			href_replaced_2 = href_replaced_1.replace(":", ".");
			obj.attr({ 
				href: 'mailto:'+href_replaced_2,
				title: 'E-mail cí­m: '+href_replaced_2
          	});
			obj.html(href_replaced_2);
		});
	};
})(jQuery);
