jQuery(function( $ ){

      
    $('#Slideshow2').cycle({ 
    fx: 'scrollHorz', 
    pager: '#SlidesPager',
    timeout: 8200 
});

    $('#WorkSlideshow').cycle({ 
    fx: 'scrollHorz', 
    pager: '#WorkSlidesNav SPAN',
    next: '#Next',
    prev: '#Prev',
    timeout: 10200,
    before: onAfter,
    start: 0
});

function onAfter(curr,next,opts) {  
	var scaption = this.alt; 
	var stitle = this.title;
	if((opts.nextSlide+1).toString().length < 2) { num = "0"+ (opts.nextSlide+1); } else { num = (opts.nextSlide+1);};
	var snum = "work ."+ num;

	$('#snum').fadeOut(0, function(){ $(this).html(snum); }).fadeIn(100);
	$('#scaption').fadeOut(0, function(){ $(this).html(scaption); }).fadeIn(100); 
	$('#stitle').fadeOut(0, function(){ $(this).html(stitle); }).fadeIn(100); 
	
	}
	

$('#WorkSlideshow').cycle(0);
$('#Work #Breadcrumbs LI').delay(260).fadeIn(600);
});



