Cufon.replace('h1', { fontFamily: 'Interstate-Light' });
Cufon.replace('h2', { fontFamily: 'Interstate-Bold' });
Cufon.replace('h3', { fontFamily: 'Interstate-Bold' });

Cufon.replace('p', { fontFamily: 'Interstate-Light' });
Cufon.replace('#blog .text', { fontFamily: 'Interstate-Light' });
Cufon.replace('a', { fontFamily: 'Interstate-Bold' });
Cufon.replace('.phat', { fontFamily: 'Interstate-Bold' });

Cufon.replace('.section-nav', { fontFamily: 'Interstate-Bold' });
Cufon.replace('.section-nav a', { fontFamily: 'Interstate-Light' });
Cufon.replace('#nav', { fontFamily: 'Interstate-Light' });
Cufon.replace('#nav .active', { fontFamily: 'Interstate-Bold' });

Cufon.replace('#heading h1', { fontFamily: 'Interstate-Bold' });
Cufon.replace('.skinny', { fontFamily: 'Interstate-Light' });

$(function() {
	$('#directors-nav').hoverIntent(
		function() { $('ul#directors').slideDown() },
		function() { $('ul#directors').slideUp() }
	);

	$('.slider a.toggle').click(function() {
		slide($(this));
		return false;
	});
});

function open_slide(which) {
	slide($('#' + which));
}

function slide(item) {
	
	item.attr('active') == 1 ? item.attr('active',0) : item.attr('active',1);
	var parent = item.parent();

	if (item.attr('active') == 1)
		item.css('background-position', 'bottom left');

	parent.find('.content').slideToggle(function() {
		if (item.attr('active') == 0)
			item.css('background-position', 'top left');
	});

}
