	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({
	        auto: 3,
	        wrap: 'last',
	        initCallback: mycarousel_initCallback
	    });
	});	
	
	
	var int_t = new Array();
	var delay_t = 200;
	var top_t = 59;
	
	$(function(){
		$("a.lbox").lightBox();
		
		$("#menu li:eq(1)").bind("mouseenter", function() {
			clearArrayTime(int_t);						
			var off = $(this).offset();
			$("#submenu").css({top:off.top+top_t, left:off.left-7, display:"block"});
			
    	}).bind("mouseleave", function() {
			int_t[int_t.length] = setTimeout(function() {
				$("#submenu").css({display:"none"}); 
			},delay_t);
		});
		
		$("#submenu").bind("mouseleave", function() {
			int_t[int_t.length] = setTimeout(function() {
				$("#submenu").css({display:"none"}); 
			},delay_t);
		}).bind("mouseenter",function() {
			clearArrayTime(int_t);
		});
	});
	
	function clearArrayTime(array) {
		var i=0;
		for(i=0;i<array.length;i++)
			clearTimeout(array[i]);
		array=new Array();
	}
	
	
