function mycarousel_initCallback(carousel)
{
	carousel.buttonNext.bind('click', function() {
		carousel.startAuto(0);
	});

	carousel.buttonPrev.bind('click', function() {
		carousel.startAuto(0);
	});

	carousel.clip.hover(function() {
		carousel.stopAuto();
	}, function() {
		carousel.startAuto();
	});
};
	
$(document).ready(function () {
	$(".search select[name='pr']").change(
        function() {
$(".search #r2").attr('checked', true);
$(".search #r2").focus();
return true;
     });
	
	$(".b1").click(
        function() {
			var top = parseInt($(".cat1 UL").css("top"),10);
			if (top<0){
			  $(".cat1 UL").animate({
				top: '+=321px'
				},700);
			};
     });
	
	$(".b2").click(
        function() {
			var top = parseInt($(".logos UL").css("top"),10);
			if (top<0){
			  $(".logos UL").animate({
				top: '+=321px'
				},700);
			};
     });
	
	$(".k1").click(
        function() {
		  $(".cat1 LI").filter(':last').after($(".cat1 LI").clone());
		  $(".cat1 UL").animate({
			top: '-=321px'
			},700);
     });
	
	$(".k2").click(
        function() {
		  $(".logos LI").filter(':last').after($(".logos LI").clone());
		  $(".logos UL").animate({
			top: '-=340px'
			},700);
     });
	
	$("#motioncontainer LI").hover(function(){
		$(this).find("IMG").css("opacity","1");
		$(this).next().find("IMG").css("opacity","1");
		$(this).next().next().find("IMG").css("opacity","1");
		$(this).prev().find("IMG").css("opacity","1");
		$(this).prev().prev().find("IMG").css("opacity","1");
		$(this).find("SPAN").hide();
		$(this).addClass("hov").find("DIV").show();
	  },function(){
		$(this).parent().find("IMG").css("opacity","0.5");
		$(this).removeClass("hov").find("SPAN").show();
		$(this).find("DIV").hide(0);
	});
	
	$(".fc").fancybox();
	$(".fancybox").fancybox();
	
});

