$(function(){
	
	$('.ngg-gallery-thumbnail a').attr('title',$('.ngg-gallery-thumbnail a img').attr('title'));
	
	$("a[rel*=lightbox]").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200,
	    'showNavArrows' :   false,
		'overlayShow'	:	true
	});

	
	$('#coin-slider').nivoSlider({
		effect:'fade', //Specify sets like: 'fold,fade,sliceDown'
		slices:15,
		animSpeed:500, //Slide transition speed
		pauseTime:3000,
		startSlide:0, //Set starting Slide (0 index)
		directionNav:false, //Next & Prev
		directionNavHide:false, //Only show on hover
		controlNav:false, //1,2,3...
		controlNavThumbs:false, //Use thumbnails for Control Nav
		controlNavThumbsFromRel:false, //Use image rel for thumbs
		controlNavThumbsSearch: '.jpg', //Replace this with...
		controlNavThumbsReplace: '_thumb.jpg', //...this in thumb Image src
		pauseOnHover:true, //Stop animation while hovering
		captionOpacity:0.8 //Universal caption opacity
	});
	//$('#content img').protectImage();
	
	
	$('.gallery').cycle({
		prev:   '.prev', 
		next:   '.next'
	});
	
	$('.resume').hide();
	$(".pause").click(function(){
		$('.gallery').cycle('pause'); 
		$('.resume').show();
		$(this).hide();
		return false;
	});
	
		
	$(".resume").click(function() { 
		$('.gallery').cycle('resume', true); 
		$('.pause').show();
		$(this).hide();
		return false;
	});
	
	$('.scroll').jScrollPane();	
});	



