
//Print Page
if ( $("#printPage").length) {
    document.getElementById('printPage').style.display = 'block';
}

//ticker
(function ($) {
    $.fn.list_ticker = function (options) {

        var defaults = {
            speed: 4000,
            effect: 'slide'
        };

        var options = $.extend(defaults, options);

        return this.each(function () {

            var obj = $(this);
            var list = obj.children();
            list.not(':first').hide();

            setInterval(function () {

                list = obj.children();
                list.not(':first').hide();

                var first_li = list.eq(0)
                var second_li = list.eq(1)

                if (options.effect == 'slide') {
                    first_li.slideUp();
                    second_li.slideDown(function () {
                        first_li.remove().appendTo(obj);
                    });
                } else if (options.effect == 'fade') {
                    first_li.fadeOut(400, function () {
                        second_li.fadeIn(900);
                        first_li.remove().appendTo(obj);
                    });
                }
            }, options.speed)
        });
    };
})(jQuery);

function NotRegistered() {
    Shadowbox.open({
        player: "html",
        content: '<div class="popup"><p>You must <a href="/promote/register">register</a> to download images.</p></div>',
        height: 240,
        width: 320
    });
	return false;
}

