$(document).ready(function() {	
	
	$('#slider').nivoSlider({
        effect:'fade', //Specify sets like: 'fold,fade,sliceDown'
        slices:15,
        animSpeed:500, //Slide transition speed
        pauseTime:4000,
        startSlide:0, //Set starting Slide (0 index)
        directionNav:false, //Next & Prev
        directionNavHide:true, //Only show on hover
        controlNav:true, //1,2,3...
		controlNavThumbs:true, // Use thumbnails for Control Nav
        controlNavThumbsFromRel:false, // Use image rel for thumbs
        controlNavThumbsSearch: '.jpg', // Replace this with...
        controlNavThumbsReplace: '_thumb.png', // ...this in thumb Image src
        keyboardNav:true, //Use left & right arrows
        pauseOnHover:false, //Stop animation while hovering
        manualAdvance:false, //Force manual transitions
        captionOpacity:0, //Universal caption opacity
		controlNavThumbsFromRel:false, //Use image rel for thumbs
        beforeChange: function(){},
        afterChange: function(){},
        slideshowEnd: function(){}, //Triggers after all slides have been shown
        lastSlide: function(){}, //Triggers when last slide is shown
        afterLoad: function(){} //Triggers when slider has loaded
    });
	
	
	
	/*$(".destacados_home").children("li").children("a").children("img").css("opacity","0.5");
	$(".destacados_home").children(".imagen7").children("a").children("img").css("opacity","1");
	$(".destacados_home").children(".imagen7").children("a").children("img").delay(4000).fadeTo(500, 0.5);
	$(".destacados_home").children(".imagen22").children("a").children("img").delay(4000).fadeTo(500, 1);
	$(".destacados_home").children(".imagen22").children("a").children("img").delay(4000).fadeTo(500, 0.5);
	$(".destacados_home").children(".imagen25").children("a").children("img").delay(8000).fadeTo(500, 1);
	$(".destacados_home").children(".imagen25").children("a").children("img").delay(4000).fadeTo(500, 0.5);
	$(".destacados_home").children(".imagen27").children("a").children("img").delay(12000).fadeTo(500, 1);
	$(".destacados_home").children(".imagen27").children("a").children("img").delay(4000).fadeTo(500, 0.5);*/
	
	/*$(".destacados_home").children("li").children("a").children("img").css("opacity","0.5");
	var valor = 0;
	miFuncion();
	
	function miFuncion(){

       $(".posicion" + valor).fadeTo(100, 1).delay(3500).fadeTo(500, 0.5, function(){
               valor++;               
               if ( valor > 3 ){ valor = 0;}
               miFuncion();
       });
	}*/

	
	
});

/*function miFuncion(valor){
		$(".destacados_home").children("li").children("a").children("img").css("opacity","0.5");
		clase =".posicion" + valor;
       $(clase).fadeTo(500, 1);
	   $(clase).delay(4000).fadeTo(500, 0.5);
	   valor++;
	   /*alert(clase);
       if ( valor > 3 ){ valor = 0;}
       miFuncion(valor);
}*/






