$(document).ready(function() {
	$("a.single_1").fancybox();
		
	$("a.panorama").fancybox({
		'frameWidth': 850,
       		'frameHeight': 460
	});
	
	$("a.single_2").fancybox({
		'overlayShow'			: true,
		'zoomSpeedIn'			: 600,
		'zoomSpeedOut'			: 500,
		'easingIn'			: 'easeOutBack',
		'easingOut'			: 'easeInBack'
	});
	
	$("a.group").fancybox({
		'hideOnContentClick'	: false,
		'zoomOpacity'			: true,
		'zoomSpeedIn'			: 500,
		'zoomSpeedOut'			: 500
	});

});


$(function() {
    $('#slideshow1').cycle();
    
    $('#slideshow2').cycle({
        prev:   '#prev',
        next:   '#next',
        timeout: 0
    });
    
    $('#slideshow3').cycle({
	    prev:   '#prev',
        next:   '#next',
        delay: 2000,
        speed: 500,
        before: onBefore
    });
    
    function onBefore() {
        $('#title').html(this.title);
    }
});