jQuery(function(){

			var visible = 3; // how many items should be visible

			var scroll = 1; // how many items should scroll once

			var speed = 550; // the speed of the animation in milliseconds

			var next = jQuery('ul#circular_nav li.next'); // the next button

			var prev = jQuery('ul#circular_nav li.prev'); // the prev button

			var auto = false; // whether the carousel should auto scroll or not

			var delay = 2; //if the carousel is set to auto scroll, this is the delay between two scrolls, in seconds

			var stopAutoAfterClick = false; // if the carousel is set to auto scroll, this option sets if the carousel should stop auto scrolling if you click prev/next

			jQuery('#circular').circularCarousel(visible, scroll, speed, prev, next, auto, delay, stopAutoAfterClick);

			jQuery("#circular li a").each(function(){

		jQuery(this).removeAttr('href');

	});	



	jQuery("#circular li a").click(function(){ 

	imageSrc = jQuery(this).attr('rev');
	previewSrc = jQuery(this).attr('rel');
    jQuery('.imagecol .preview_link').attr('href',previewSrc);
	jQuery('.imagecol img.product_image').attr('src',imageSrc);

	jQuery('.imagecol img.product_image').attr('width', '254px');

	jQuery('.imagecol img.product_image').attr('height', '191px');

    });

		});
