var headline_count;
var current_headline = 0;
var speed = 500;
var delay = 5000;

$.noConflict();

jQuery(document).ready(function(){
	jQuery(".slideshow div").css({ opacity: 0.00 })
	headline_count = jQuery(".slideshow div").size();
	jQuery(".slideshow div:eq("+current_headline+")").animate({top: 0, opacity: 1.00},speed, function() { jQuery(this).css({ filter: 'none', 'font-weight':'bold'}); });
	setInterval(headline_rotate,delay);
});

function headline_rotate() {
	old_headline = current_headline % headline_count;
	new_headline = ++current_headline % headline_count;
	jQuery(".slideshow div:eq(" + old_headline + ")").animate({top: -20, opacity: 0.00}, speed, function() { jQuery(this).css({ top: 20}); });
	jQuery(".slideshow div:eq(" + new_headline + ")").animate({top: 0, opacity: 1.00}, speed, function() {  jQuery(this).css({ filter: 'none', 'font-weight':'bold'});  });     
}
