	$(document).ready(function()
	{
		//hide the object with blink effect  
		$("#blink_out").click(function()
		{
			$("#object").fadeOut(100).fadeIn(100).fadeOut(100).fadeIn(100).fadeOut(100).fadeIn(100).fadeOut(100);
		});
		//show the object with blink effect  
		$("#blink_in").click(function()
		{
			$("#object").fadeIn(100).fadeOut(100).fadeIn(100).fadeOut(100).fadeIn(100).fadeOut(100).fadeIn(100);
		});
		//bounce an object
		$("#bounce").click(function()
		{
			$("#object").fadeIn(100).animate({top:"-=20px"},100).animate({top:"+=20px"},100).animate({top:"-=20px"},100)
			.animate({top:"+=20px"},100).animate({top:"-=20px"},100).animate({top:"+=20px"},100);

		});
	});

	
	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('#home_selection').jcarousel({
			auto: 6,
			wrap: 'last',
			initCallback: mycarousel_initCallback,
			scroll: 1,
	        vertical: true
		});
		
	});
