//zav_slide.js
$(document).ready(function(){
	$('#slide_banco').cycle({        
	    fx:      'scrollHorz',
	    timeout:  10000,
	    easing:  'backinout',
	    pager:  '.nav-slider',
	    before:  onBefore,
	    pagerAnchorBuilder: function(idx, slide) { 
	    return '<li><a href="#!"> '+(idx+1)+' </a></li>'; 
	    }
	});
}); 
   
function onBefore() {
	texto = $( '#texto'+this.id ).html();
   	$('.slide-text').html(' ' + texto + ' ');
    num = this.id.substr(1,1);
   moveThumb(parseInt(num));
} 
function moveThumb(nu){
        switch(nu){
        	case 1:
        		to = 1;
        	break;
        	default:
        	n = nu - 1;
        	to = n * 30;
        }
    $('.selector').animate({
    	'background-position' : to
    }, 300);
}

function bt_hide(id1, id2){
		$(id1).hide();	
        $(id2).show();
        }
