// cufon config
function initCufon() {
	Cufon.set('fontFamily', 'Serifa Std');

	Cufon.replace('.nav ul li.active a');
	Cufon.replace('.nav ul li a', { hover: true });
	Cufon.replace('#promo h1', { fontFamily: 'Serifa Std_400' });
	Cufon.replace('.main-text p ', { fontFamily: 'DIN 30640 Std', hover: true });
	Cufon.replace('.news h2', { fontFamily: 'DIN 30640 Std' });
	Cufon.replace('.info strong', { fontFamily: 'Neutraface Text Book Alt' });
	Cufon.replace('.info address em', { fontFamily: 'Neutraface Text Book Alt' });
}

function initSlideshow() {
	// fade gallery
	$('ul.slideshow').slideShow({
		autoSlideShow:true,
		switchTime:8000,
		duration:1500,
		slideEl:'li',
		event:'click'
	});
}

// page init code
$(document).ready(function(){
	initCufon();
	initSlideshow();
});