$(function () {
     // start the ticker 
	$('#js-news').ticker({
			speed: 0.10,
            htmlFeed: false,
            titleText: 'Latest Jobs',
			ajaxFeed: true,
            feedUrl: 'http://www.hornbychapman.com/category/featured/feed/rss/',
            feedType: 'xml',
			displayType: 'reveal',
			fadeInSpeed: 600,
			fadeOutSpeed: 300,
			direction: 'ltr',
			debugMode: true
	});

	// hide the release history when the page loads
	$('#release-wrapper').css('margin-top', '-' + ($('#release-wrapper').height() + 20) + 'px');

	// show/hide the release history on click
	$('a[href="#release-history"]').toggle(function () {	
		$('#release-wrapper').animate({
			marginTop: '0px'
		}, 600, 'linear');
	}, function () {
		$('#release-wrapper').animate({
			marginTop: '-' + ($('#release-wrapper').height() + 20) + 'px'
		}, 600, 'linear');
	});	
	
});

