function onAfter() {
    $('#output').html("Current anchor: " + this.href);
}

function onBefore(currSlideElement, nextSlideElement, options, fordwardFlag) {
	//if (fordwardFlag == true) options.fx = "scrollLeft";  else  options.fx = "scrollRight";
}


tmpIndiceSL = 0;
function onPagerClick( indiceSL, elementoSL ){
        if (indiceSL > tmpIndiceSL ) {
			//this.fx = "scrollLeft";  
			this.fx = "fade";
		} else {
			//this.fx = "scrollRight";
			this.fx = "fade";
		}
		tmpIndiceSL = indiceSL;
}


$('#miNuevoSlide').cycle({ 
    fx:     'fade', 
	speed:   2000,
    timeout: 9000, 
    after:   onAfter,
    before:  onBefore,	
	pagerClick:  onPagerClick,
	pager:  '#navNuevoSlide',
    next:   '#next',
    prev:   '#prev',
	pagerEvent: 'mouseover' ,
    pauseOnPagerHover: true
});


function miLink(donde){
	window.location.href=donde;
}


