			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();
					});
			
				};
				
				function super_initCallback(carousel) {					
					$('#pag p a').bind('click', function() {
					    carousel.scroll(jQuery.jcarousel.intval(jQuery(this).text()));
					    return false;
					});					
					$('#ctrl .next').bind('click', function() {
					    carousel.next();
					    return false;
					});					
					$('#ctrl .prev').bind('click', function() {
					    carousel.prev();
					    return false;
					});
				};
				
				
			$(function(){
				$('#listCana').jcarousel({
					scroll: 6,
					auto: 3,
					animation: "slow",
					wrap: 'last',
        			initCallback: mycarousel_initCallback
				});
				
	$("#slidPrin").jcarousel({			
	scroll: 1,			
	auto:3,			
	wrap: 'last',
	buttonNextHTML: null,			
	buttonPrevHTML: null,			
	initCallback: super_initCallback		
	});

				$('#oportunidad').jcarousel({
					scroll: 3,
					auto: 5,
					animation: "slow",
					wrap: 'last',
        			initCallback: mycarousel_initCallback
				});
				
				$("#modGale li").mouseenter(
					function(){
						var papito = $(this);
						$("#modGale li").removeClass("hover");	
						$("#modGale li").animate({width:"121px"}, 0, function(){
								papito.animate({width:"242px"}, 0, function(){
								papito.addClass("hover");
							});
						});
					});
					
				$("#modGale").mouseleave(function(){
					$("#modGale li").removeClass("hover");
					$("#modGale li").animate({width:"121px"}, 0);
					var papasote = $("#modGale").find("li");
					if( papasote.attr("class") != "hover"){
						$("#modGale li:first").addClass("hover");
						$("#modGale li:first").animate({width:"242px"}, 300);
					}
				})
				
			});

