var gotham_medium = '#nav a, #sshow-title h1, .featured h1, div.press .entry h1, div.cv h2, div.cv .entry h1, div.home .entry h1, div.press .sidebar li a, div.book h1, div.contact h2';

Cufon.replace(gotham_medium, { fontFamily: 'GothamHTF-Medium', hover: true });

jQuery(function($) {


	$('a.trigger').click(function() {
		
		id = $('a.trigger').index(this) + 1;
		eid=$(this).attr('id');

		if ($(this).hasClass('open')) {
			$(this).removeClass('open');
			$(this).addClass('close');
			$(this).next().slideDown(500, function() {
				$.scrollTo( '#' + eid, 700 );
			});
			
			return false;
		} else {
			$(this).removeClass('close');
			$(this).addClass('open');
			$(this).next().slideUp(500, function() {
				$.scrollTo( '#' + eid, 700 );
			});
			
			return false;
		}			
	});

});
