jQuery.noConflict();


jQuery(document).ready(function(){
	
	var intervallId = startNewsticker();
	
	jQuery('#tx-jgnewsticker-pi').hover(
	function(){
		stopNewsticker(intervallId);
	},
	function() {
		intervallId = startNewsticker();
	});
	
});

function startNewsticker()
{
	return setInterval(newsticker, tickerConfiguration.pause);
}

function stopNewsticker(intervallId)
{
	clearInterval(intervallId);
}

function newsticker()
{
	var last = jQuery('#tx-jgnewsticker-pi ul li:last').hide().remove();
	jQuery('#tx-jgnewsticker-pi ul').prepend(last);
	jQuery('#tx-jgnewsticker-pi ul li:first').slideDown(tickerConfiguration.speed);
}
