$(document).ready(function() {

	if ($('.imageRotator').size() >0){
	 	$('.imageRotator').cycle({ 
	    fx:     'fade', 
	    speed:  'fast', 
	    timeout: 0, 
	    next:   '#next', 
	    prev:   '#prev', 
	    after: onAfter
		});
	}
	if ($('a[rel*=lightbox]').size() >0){
	 $('a[rel*=lightbox]').lightBox();
	
	}
 


 });

function onAfter() { 
	$('.caption').html(this.alt) 

}

