var julia_scroll_body;
var julia_slow_machine_scroll;
window.addEvent('domready', function () {
    julia_scroll_body = new Fx.Scroll($(document.body), {
        wait: false,
        duration: 1500,
        offset: {
			'x': 0,
			'y': -150
	    },
	   transition: Fx.Transitions.Quad.easeInOut,
        onComplete: function () {
            try {
                if (fnv) {
                    focus_element(fnv);
                    fnv = null
                }
            } catch(e) {}
        }
    });
    julia_slow_machine_scroll = new Fx.Scroll($(document.body), {
        wait: false,
        duration: 0,
        offset: {
			'x': 0,
			'y': -150
		},
        onComplete: function () {
            try {
                if (fnv) {
                    focus_element(fnv);
                    fnv = null
                }
            } catch(e) {}
        }
    })
});

function julia_scroll_to(to) {
	if ($('Vfx') && $('Vfx').checked) {
        if (julia_scroll_body) {
            julia_scroll_body.toElement(to)
        }
    } else {
        if (julia_slow_machine_scroll) {
            julia_slow_machine_scroll.toElement(to)
        }
    }
}
