jQuery.noConflict(); 
jQuery(document).ready(function() { 
	/*Script for  image banner in side bar	*/
		temp = 0;
		jQuery(document).ready(function() {
          						
			var imgName =   jQuery("#imageArray").val();
			imgNameArray =  imgName.split(",");
			jQuery("#mycarousel li").each(function() {
				if(temp >3) {
					
					id = jQuery(this).attr("id");
					jQuery("#img_" + id).attr("src",imgNameArray[temp]);
				}
				temp++;
		});
			
		});
            });

 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();
		});
	};
	
	$(document).ready(function() {
		$('#mycarousel').jcarousel({
			auto: 2,
			scroll: 1,
			wrap: 'last',
			vertical: true,
			initCallback: mycarousel_initCallback
		});
	});
