jQuery.noConflict();
jQuery(document).ready(function($) {
	$('.modelImageFull').attr('src', $('.jqueryCarouselModel a').eq(0).attr('href'));
	$('.jqueryCarouselModel a').click(function(e){
		e.preventDefault();
		$('.modelImageFull').attr('src', $(this).attr('href'));
	})
	$('.jqueryCarouselModel').jCarouselLite({
		auto: 5000,
		speed: 500,
		visible: 3,
		circular: true,
		scroll: 1
	});
	$('.jqueryCycle').cycle({fx:'fade',timeout:5000});
	$('.jFancyBox').fancybox();
	$('.jqueryFancyBoxGroup[rel=fancyBoxGroup]').fancybox({
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'titlePosition' 	: 'over',
		'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
		    return '<span id="fancybox-title-over">Image ' +  (currentIndex + 1) + ' / ' + currentArray.length + ' ' + title + '</span>';
		}
	});
	
	// Gallery
	$('.galleryDisplay').attr('src', $('#Gallery a.jqueryTriggerClick:eq(0)').attr('href'));
	$('#Gallery a.jqueryTriggerClick').click(function(e){
		e.preventDefault();
		$.scrollTo('.galleryDisplay', 400);
		var source = $(this).attr('href');
		$('.galleryDisplay').attr('src', source);
	});
	
	// Portfolio
	$('#Portfolio a.jqueryTriggerClick').fancybox();;
});
