
/*
 * jQuery 1.2.3
 * News Ticker
 */

$(document).ready(
function(){
				
	$('.articleWrapper').cycle({ 
		fx:		'scrollLeft', 
		pause:	1,
		sync:	0, 
		speed:	500, 
		timeout:5000
	});
});

/*
 * jQuery 1.2.3
 * jCarousel
 */

// Below is simplest function needed to run carousel without config options onload

//
//	jQuery(document).ready(function() {
//		jQuery('#mycarousel').jcarousel();
//	});


// Below is current config 

function mycarousel_initCallback(carousel)
{
    // Disable autoscrolling if the user clicks the prev or next button.
    carousel.buttonNext.bind('click', function() {
        carousel.startAuto(0);
    });

    carousel.buttonPrev.bind('click', function() {
        carousel.startAuto(0);
    });

    // Pause autoscrolling if the user moves with the cursor over the clip.
    carousel.clip.hover(function() {
        carousel.stopAuto();
    }, function() {
        carousel.startAuto();
    });
};

jQuery(document).ready(function() {
    jQuery('#mycarousel').jcarousel({
        scroll: 5,		// how many thumbs to scroll at a time
		size:10,		// total number of thumbs, optional
		auto: 5,		// include for auto scroll every x seconds
        wrap: '',		// first, last or both, null = no wrapping
		animation: 5000,// fast, slow, seconds or milliseconds for transition
        initCallback: mycarousel_initCallback
    });
});
