$(document).ready(function(){
$('.fadein').slideshow({ timeout: 6000, speed: 1000 });
/* *** Fancybox ***
	**************** */
	$("a.fancybox").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'fade',
		'showCloseButton'	: true,
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'overlayShow'	:	true
	});
	/* *** Sidebar nudge ***
	**************** 	*/
	
		$('.sidebar a, .inspiration a').hover(function() {
		    $(this).stop().animate( {
		        paddingLeft:"30px"
		    }, "fast");
		}, function() {
		    jQuery(this).stop().animate( {
		        paddingLeft:"20px"
		    }, "fast");
	});
	/* *** Magnifying image when over ***
	Edited from http://goo.gl/swYGw
	*/
	$(function() {
	// OPACITY OF BUTTON SET TO 0%
			$(".roll,.roll_a").css("opacity","0");
			// ON MOUSE OVER
			$(".roll,.roll_a").hover(function () {
			// SET OPACITY TO 70%
			$(this).stop().animate({
			opacity: .8
			}, "500");
	},
	// ON MOUSE OUT
	function () {
	// SET OPACITY BACK TO 50%
		$(this).stop().animate({
		opacity: 0
		}, "slow");
	});
	});
		
	
});
