$(document).ready(function(){
    var bs=$('#animain').after('<div id="nav_banner">').cycle({
		cleartype:  1, 
        fx: 'fade',
        timeout: 5000,
        startingSlide: 0, // zero-based 
        after: onAfter,
		before:onBefore
    });
    a = $('#animain blockquote:eq(0)').attr('alt')
  
    
    
    function onAfter(curr,next,opts){
        $('#animain a').attr('href', $(this).attr('alt'))		
    }
	
	function onBefore(curr,next,opts){
		var index=$('#animain blockquote').index(this)
		if(index==0){
			opts.timeout=5000
		}else{
			opts.timeout=5000
		}		
	}
    
});

