$(function() {
	$('#nav li').hover(function() {
		$(this).find('a:first').toggleClass('hover');
		$(this).find('ul').stop(true,true).slideToggle();
	});
	
	window.setTimeout(function() {
		initFader();
	}, 6000);
});

function initFader() {
	var current = $('#fader .show');
	var next = current.next().length ? current.next() : current.parent().children(':first');
	current.fadeOut(900, function() {
		$(this).removeClass('show');
	});
	next.fadeIn(900).addClass('show');
	img_fade = window.setTimeout(function() {
		initFader();
	}, 6000);
}

$(function(){
	$("a[href*=.pdf]").click(function(){
	window.open(this.href);
	return false;
	});
 });
