function slideSwitch() {
	var $active = $('#page-focus .promotions div.active');

	if ( $active.length == 0 ) $active = $('#page-focus .promotions div:last');

	var $next =  $active.next().length ? $active.next()
        : $('#page-focus .promotions div:first');

	$active.addClass('last-active');

	$next.css({opacity: 0.0})
	.addClass('active')
	.animate({opacity: 1.0}, 500, function() {
		$active.removeClass('active last-active');
	});
}

$(function() {
	setInterval( "slideSwitch()", 2000 );
});

$(document).ready(function() {		
	/* Using custom settings */

	$("a.fancybox").fancybox({
		'hideOnContentClick'	:	true,
		'autoScale'				:	true,
		'overlayOpacity'		:	0.5,
		'overlayColor'			:	'#000',
		'titlePosition'			:	'over',
		'transitionIn'			:	'elastic',
		'transitionOut'			:	'elastic',
		'speedIn'				:	500,
		'padding'				:	0
	});
});
