$(document).ready(function() {
	//$("a").fancybox();
	
	$('#myOils').jcarousel({
		wrap: 'last'
	});		
	
	$('#myDrawings').jcarousel({
		wrap: 'last'
	});
	
	$('#myWatercolors').jcarousel({
		wrap: 'last'
	});
	
	var alto = 200;
	var imagen = 120;
	$('.jcarousel-container').css({
				  "position": "relative", 
				  "top" : alto/2 - imagen/2});
	
	$('a.lightbox').fancybox({
		'zoomOpacity' : true,
		'overlayShow' : false,
		'zoomSpeedIn' : 500,
		'zoomSpeedOut' : 500
	});
	
	$('#slider_portada').nivoSlider({
					effect:'random',
					slices:15,
					animSpeed:1500,
					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
					controlNavThumbsSearch: '.jpg', //Replace this with...
					controlNavThumbsReplace: '_thumb.jpg', //...this in thumb Image src
					keyboardNav:false, //Use left & right arrows
					pauseOnHover:false, //Stop animation while hovering
					manualAdvance:false, //Force manual transitions
					captionOpacity:0.8, //Universal caption opacity
					beforeChange: function(){},
					afterChange: function(){},
					slideshowEnd: function(){} //Triggers after all slides have been shown
				});
	
});
