Cufon.replace('.side-links-title, #home-cols .col h2, .map-info h2', { fontFamily: 'museo-300' });
Cufon.replace('#navigation ul li a span', { fontFamily: 'museo-500' });
Cufon.replace('.article h2, .article h3 ', { fontFamily: 'museo-500' });
Cufon.replace('#home-cols .big-col .post .entry h1, .post h2, h2.side-title, h2.widgettitle, #comments h3, #respond h3', { fontFamily: 'museo-500' });
Cufon.replace('#home-cols .events ul li a', { fontFamily: 'helvetica_neue', hover: true });
Cufon.replace('.footer-nav ul li a, .singup-form label, .footer-text', { fontFamily: 'helvetica' });
Cufon.replace('h2.gallery-title ', { fontFamily: 'museo-700' });

jQuery(function($){
	
	$('#navigation ul li a').hover(function () {
		$(this).parent().addClass('hover');
		Cufon.refresh('#navigation ul li a span');
	}, function () {
		$(this).parent().removeClass('hover');
		Cufon.refresh('#navigation ul li a span');
	});
	
	$('.blink').focus(function(){
		if ( $(this).attr('value') == $(this).attr('title') ) {
			$(this).attr({ 'value': '' })
		}
	}).blur(function(){
		if ( $(this).attr('value') == '' ) {
			$(this).attr({ 'value': $(this).attr('title') })
		}
	});
	
	$('.footer-nav li:last, .side-links li:last').addClass('last');
	$('.posts-list .event-post:last').addClass('last-event-post');
	
	$('.soc-links').each(function() {
		$(this).find('span:last').remove();
	});
	
	$('a.fancybox').fancybox({
		'overlayColor': '#CAE1EE',
		'overlayOpacity': 0.7
	});
	
});
