jQuery.noConflict();

// Show caption for visible slide
var current_slide = '';
function showSlideCaption() {
	if (current_slide != jQuery('.slides_container li:visible').attr('id')) {
		current_slide = jQuery('.slides_container li:visible').attr('id');
		jQuery('.slideshow .captions li').hide();
		jQuery('.slideshow .captions li[rel='+current_slide+']').fadeIn();
	}
}

jQuery(function() {

	// Slideshow
	jQuery(function(){
		jQuery('.slideshow').slides({
			preload: true,
			preloadImage: 'img/loading.gif',
			play: 7500,
			pause: 1000,
			hoverPause: true,
			slideSpeed: 1000
		});
	});
	
	setInterval("showSlideCaption();",100);
	
	// Lightbox
	jQuery('a[rel=lightbox]').lightBox();
	//jQuery('.gallery a').lightBox();

});
