$(document).ready(function(){

	$('a.lightsGal').zoomimage(
		{
			controls: true,
			border: 3,			
		opacity: 0.8,
		beforeZoomIn: function(boxID) {
			$('#' + boxID)
				.find('img')
				.css('opacity', 0)
				.animate(
					{'opacity':1},
					{ duration: 500, queue: false }
				);
		},
		beforeZoomOut: function(boxID) {
			$('#' + boxID)
				.find('img')
				.css('opacity', 1)
				.animate(
					{'opacity':0},
					{ duration: 500, queue: false }
				);
		}
	
	}
		);
	$('a.bwGal').zoomimage({
		border: 20,
		centered: true,
		hideSource: true
	});
	$('a.customGal').zoomimage({
		controlsTrigger: 'mouseover',
		className: 'custom',
		shadow: 40,
		controls: false,
		opacity: 1,
		beforeZoomIn: function(boxID) {
			$('#' + boxID)
				.find('img')
				.css('opacity', 0)
				.animate(
					{'opacity':1},
					{ duration: 500, queue: false }
				);
		},
		beforeZoomOut: function(boxID) {
			$('#' + boxID)
				.find('img')
				.css('opacity', 1)
				.animate(
					{'opacity':0},
					{ duration: 500, queue: false }
				);
		}
	});
	
	
    // initialize scrollable  
    $("div.scrollable").scrollable({ 
        vertical:true,  
        size: 1,
		speed: 5000, easing:"linear"
    // use mousewheel plugin 
    }).mousewheel().autoscroll({autoplay: true, interval:2000, steps: 1}).circular(); 

	
});
