function mycarousel_itemLoadCallback(carousel, state)
			{
			    // Since we get all URLs in one file, we simply add all items
			    // at once and set the size accordingly.
			    if (state != 'init')
			        return;
			
			    jQuery.get('dynamic_ajax.txt', function(data) {
			        mycarousel_itemAddCallback(carousel, carousel.first, carousel.last, data);
			    });
			};
			function mycarousel_itemAddCallback(carousel, first, last, data)
			{
			    // Simply add all items at once and set the size accordingly.
			    var items = data.split('|');
			
			    for (i = 0; i < items.length; i++) {
			        carousel.add(i+1, mycarousel_getItemHTML(items[i]));
			    }
			
			    carousel.size(items.length);
			};
			/**
			 * Item html creation helper.
			 */
			function mycarousel_getItemHTML(url)
			{
			    return '<img onclick="location.replace('+"'http://www.rivla.ru/клиенты-компании-rivla.html'"+')" border="0" src="' + url + '" width="122" height="75" alt=""/></a>';
			};
				
			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({
			        itemLoadCallback: mycarousel_itemLoadCallback,
			        auto: 3,
			        scroll: 1,
			        buttonNextHTML: 0,
			        buttonPrevHTML: 0,
			        wrap: 'last',
			        initCallback: mycarousel_initCallback
			    });
			});	
