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#inline").fancybox({
		'hideOnContentClick': true
	});
});