Cufon.replace('#blog-title', {
	letterSpacing: '5px',
	hover: true,
	textTransform: 'uppercase'
});

Cufon.replace('.sf-menu', {
	letterSpacing: '4px',
	hover: true,
	textTransform: 'uppercase'
});

jQuery(document).ready(function() {
	
	jQuery('.current_page_item a').width(175);
	
	jQuery("#blog-title a").click(
	
		function() {
			jQuery(".current_page_item a").stop().animate({width: "0px"}, "2000");
		}
		
	);
	
	jQuery('.sf-menu li').mouseover(
		function() {
			jQuery("a",this).stop().animate({width: "175px"}, "2000");
		}
	
	);
	
	jQuery('.sf-menu li').mouseout(
	function() {
		if (jQuery(this).is('.current_page_item')) {} else {
				jQuery("a",this).stop().animate({width: "0px"}, "2000");
		}
		}
	
	);
	
	jQuery(".sf-menu li a").click(
	
		function() {
			jQuery(".sf-menu li").unbind("mouseout");
			jQuery(".current_page_item a").stop().animate({width: "0px"}, "2000");
		}
		
	);
	
	jQuery('.portfolio').cycle({
		fx:'fade', 
		speed:'2000', 
		timeout: 0, 
		next:'.ngg-browser-next', 
		prev:'.ngg-browser-prev',
		after:     onAfter
	});
	
	function onAfter(curr,next,opts) {
		var caption = (opts.currSlide + 1) + ' of ' + opts.slideCount;
		jQuery('.counter').html(caption);
	}

	
});


