try {Typekit.load();}catch(e){}


;(function($){var defaults={perPage:5,startPage:1,speed:500,atEnd:'stop'};$.fn.evtpaginate=function(options){return this.each(function(){var opts=$.extend({},defaults,options);var $wrap=opts.$wrapper=$(this);$wrap.bind('show.evtpaginate',function(e,pageNum){show(opts,pageNum-1)});$wrap.bind('next.evtpaginate',function(){next(opts)});$wrap.bind('prev.evtpaginate',function(){prev(opts)});$wrap.bind('refresh.evtpaginate',function(){refresh(opts)});setUp(opts)})};function setUp(opts){opts.$items=opts.$wrapper.children();opts.totalItems=opts.$items.size();opts.totalPages=Math.ceil(opts.totalItems/opts.perPage);opts.currentPage=opts.startPage-1;opts.first=isFirstPage(opts,opts.currentPage);opts.last=isLastPage(opts,opts.currentPage);opts.pages=[];opts.$items.hide();for(var i=0;i<opts.totalPages;i++){var startItem=i*opts.perPage;opts.pages[i]=opts.$items.slice(startItem,(startItem+opts.perPage))}show(opts,opts.currentPage);opts.$wrapper.trigger('initialized.evtpaginate',[opts.currentPage+1,opts.totalPages])}function refresh(opts){opts.startPage=opts.currentPage+1;setUp(opts)}function next(opts){switch(opts.atEnd){case'loop':show(opts,(opts.last?0:opts.currentPage+1));break;default:show(opts,(opts.last?opts.totalPages-1:opts.currentPage+1));break}}function prev(opts){switch(opts.atEnd){case'loop':show(opts,(opts.first?opts.totalPages-1:opts.currentPage-1));break;default:show(opts,(opts.first?0:opts.currentPage-1));break}}function show(opts,pageNum){if(!opts.pages[opts.currentPage].is(':animated')){opts.$wrapper.trigger('started.evtpaginate',opts.currentPage+1);$.fn.evtpaginate.swapPages(opts,pageNum,function(){opts.currentPage=pageNum;opts.first=isFirstPage(opts,opts.currentPage)?true:false;opts.last=isLastPage(opts,opts.currentPage)?true:false;opts.$wrapper.trigger('finished.evtpaginate',[opts.currentPage+1,opts.first,opts.last])})}}$.fn.evtpaginate.swapPages=function(opts,pageNum,onFinish){opts.pages[opts.currentPage].hide();opts.pages[pageNum].show();onFinish()};function isFirstPage(opts,internalPageNum){return(internalPageNum===0)}function isLastPage(opts,internalPageNum){return(internalPageNum===opts.totalPages-1)}})(jQuery);

$.fn.evtpaginate.swapPages = function( opts, pageNum, onFinish )
{
	opts.pages[opts.currentPage].fadeOut(2000);
	opts.pages[pageNum].fadeIn(2000);
	onFinish();
};

$(function(){
	
	$('#slideshow').evtpaginate({perPage: 1, atEnd:'loop'});
	
	setInterval(function(){
		$('#slideshow').trigger('next')
	}, 6000);

});
