$(window).load(function() {
	$('#slider').nivoSlider({
		effect:'fade',
		slices:10,
		animSpeed:500,
		pauseTime:5000,
		directionNav:true, //Next & Prev
		directionNavHide:true, //Only show on hover
		controlNav:true, //1,2,3...
		pauseOnHover:false, //Stop animation while hovering
		beforeChange: function(){},
		afterChange: function(){}
	});
});

$(document).ready(function() {

			$("#various3").fancybox({
				'width'				: '70%',
				'height'			: '60%',
				'autoScale'			: true,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'overlayOpacity'	: '0.7',
				'overlayColor'		: '#222',
				'type'				: 'iframe'
			});

	$("#manual1").click(function() {
		$.fancybox({
			'padding'		: 25,
			'href'			: 'contact.png',
			'transitionIn'	: 'elastic',
			'transitionOut'	: 'elastic',
			'overlayOpacity'	: '0.7',
			'overlayColor'		: '#222'
		});
    });

    $("#archive1").click(function() {
		$.fancybox([
'images/archive/archive014.jpg',

		], {
			'padding'			: 20,
			'showCloseButton'	: true,
			'cyclic'			: true,
			'transitionIn'		: 'elastic',
			'transitionOut'		: 'elastic',
			'type'              : 'image',
			'changeFade'        : 0,
			'overlayOpacity'	: '0.8',
			'overlayColor'		: '#ccc'
		});
	});

    $("#out1").click(function() {
		$.fancybox([
'images/outofbox/out001.jpg',
		], {
			'padding'			: 20,
			'showCloseButton'	: true,
			'cyclic'			: true,
			'transitionIn'		: 'elastic',
			'transitionOut'		: 'elastic',
			'type'              : 'image',
			'changeFade'        : 0,
			'overlayOpacity'	: '0.8',
			'overlayColor'		: '#ccc'
		});
	});

});
