	//Easing con bote
	jQuery.extend(true, { 
		easing: 
		{
			bounceEaseOut:function(p, n, firstNum, diff) {
			var c=firstNum+diff;
				if (p < (1/2.75))
				{
					return c*(7.5625*p*p) + firstNum;
				}
				else if (p < (2/2.75))
				{
					return c*(7.5625*(p-=(1.5/2.75))*p + .75) + firstNum;
				}
				else if (p < (2.5/2.75))
				{
					return c*(7.5625*(p-=(2.25/2.75))*p + .9375) + firstNum;
				}
				else
				{
					return c*(7.5625*(p-=(2.625/2.75))*p + .984375) + firstNum;
				}
			}
		}
	});




	//Document ready On Dom
	$(document).ready(function(){
		
		
		
		// Carrusel
		var showCarousel = true;
		if($.browser.msie && $.browser.version == "6.0"){
			showCarousel = false;
		}
		
		if(showCarousel){
			var carouselName = "infocarousel";
			var carouselItem = $("#" + carouselName);
			var carouselItemList = new Array();
			
			var round = 0;
			var maxRound = 10;
			for(var i = 0; i < carouselItem.children().length && round < maxRound; i++){
				var aItem = $(carouselItem.children()[i]).find("a")[0];
				var item = $(carouselItem.children()[i]).find("img")[0];
				
				carouselItemList.push({
					url: item.src,
					title: item.alt,
					w: item.width,
					h: item.height,
					href: aItem.href
				});
				
				if(i == carouselItem.children().length - 1){
					i = -1;
					round++;
				}
			}
			
			$('#infocarousel').html('');
			
		    $('#infocarousel').jcarousel({
		        wrap: 'circular',
		        visible: 1,
		        scroll: 1,
		        auto: 5,
		        animationSpeed:     0.5,
		        easing: 'easeOutCubic',
				
		        initCallback: function(carousel){
					$('.infocarousel_container').removeClass('infocarousel_container');


		    		carousel.clip.hover(function() {
			            carousel.stopAuto();
			        }, function() {
				        carousel.startAuto();
			        });
		    	},
		        itemVisibleInCallback:{
		    		onBeforeAnimation: function(carousel, item, i, state, evt){
				    	var scGetItem = function(item){
							return '<a href="' + item.href + '">' + '<img src="' + item.url + '" width="' + item.w + '" height="' + item.h + '" alt="' + item.title + '" /></a>';
						};
						
						// The index() method calculates the index from a
						// given index who is out of the actual item range.
						var idx = carousel.index(i, carouselItemList.length);
						carousel.add(i, scGetItem(carouselItemList[idx - 1]));
					}
		    	},
		        itemVisibleOutCallback: {
		    		onAfterAnimation: function(carousel, item, i, state, evt){
						carousel.remove(i);
					} 
		    	}
		    });
		    

		}
		



					
		//activa el movimiento de los links
		slideClass(".btn", 25, 20, 150, .8);
		
	
	});
